Skip to content

What i intend to do: Build Command Line tool that will request historical data from InteractiveBrokers, and output to console, so I can capture & process the information on the fly using PHP, or any other language.

Notifications You must be signed in to change notification settings

jaznow/IBDownloadHistoricalDataCommandLine

 
 

Repository files navigation

IBDownloadHistoricalData

Downloads historical data from interactive brokers and outputs it on the standard output (console)

Returns 0 on success

Returns other values on Error

By Benjamin tauler, based on RobustTechHouse http://robusttechhouse.com

##Useful References##

Historical Data Limitations: https://www.interactivebrokers.com/en/software/api/apiguide/tables/historical_data_limitations.htm

List of IB currencies: https://www.interactivebrokers.com/en/?f=%2Fen%2Ftrading%2Fexchanges.php%3Fexch%3Dibfxpro%26amp%3Bshowcategories%3D%26amp%3Bib_entity%3Dllc#

Sample code to request data: http://www.elitetrader.com/et/index.php?threads/request-ib-tick-data-java-api.206254/

Sample code: http://stackoverflow.com/questions/10777885/error-getting-the-eur-usd-historical-data-using-r-on-ibrokers

##Sample IB Historical Request Format For Reference##

Symbol: USD

Security Type: CASH

Exchange: IDEALPRO

Primary Exchange: IDEALPRO

Currency: JPY

End Date/Time: 20150326 07:46:46 GMT

Duration: 1 D, another eg could be 14400 S

Bar Size Setting: 1 min

What to Show: BID/ASK

Regular Trading Hours: 1

Date Format Style: 1

##How to run it## java -jar IBDownloadHistoricalDataCommandLine.jar -currency=USD -exchange=SMART -pexchange=NASDAQ -rangenumber=1 -rangeunits=Y -security=STK -symbol=AAPL

About

What i intend to do: Build Command Line tool that will request historical data from InteractiveBrokers, and output to console, so I can capture & process the information on the fly using PHP, or any other language.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%