News

Zerohedge

Next Big Future

VB

DataScience

QuantNews

Market Headlines

 

Quotes & Futures

AM Market Call

Pre Market CNBC

SPY vs TLT

SPY Straddle

VIX vs VXST

VIX vs VXV

VIXY

E-Mini-s

SPX 500 Futures

Index Arbitrage Program Trading Values

Allstocks - Fair Value

BTC

 

Papers

arXiv

SSRN

Collection

 

Market Analysis

Fear-and-Greed

Fed Watch

Long-Term Flows

Stockbee Market Monitor

SpreadVectors

 

Blogs

The Whole Street

Farnam Street

Art & Design - UltraLinx

House Designs

 

Calendars

Econoday: Economic Calendar

Briefing.com: Economic Calendar

Zerohedge Market Calendar

MarketWatch: Economic Calendar

Options Expiration Calendar

All Tech Events Calendar

 

Other

Search

Superlogout

 

 

Alpha Transport

 

 

 

 Base64 encoder

 

 

Code

 

 

Pure Java Client for Interactive Brokers

 

- compiled from IB API source

 

- added DataFeed class

 

TwsJavaClient.jar

 

 

 

Matlab sample code

 

Shows how to download historical quotes from IB in Matlab

 

% connect to IB TWS App

javaaddpath(['TwsJavaClient.jar']);

df = com.ib.client.DataFeed;

ip_address = '192.168.1.1'; % host running IB TWS

port = 7496;

df.connect(ip_address, port, randi(1e6));

 

% download 1 year of daily bars (that is max)

days_back = 252;

bars = df.backfill_daily_bars('XLF', days_back);

T = datenum(cell(bars.datetime));

Pc = bars.close;

Po = bars.open;

V = bars.volume;

 

% download 10 days of minute bars

days_back = 10;

bars = df.backfill_1min_bars('XLF', days_back);

T = datenum(cell(bars.datetime));

Pc = bars.close;

Po = bars.open;

V = bars.volume;

 

% disconnect

df.disconnect();

 

 

 

Contact

E-mail

 

 

Server

Usage Reports