In FinTech

Interactive Broker Download Historical Data

1 Star2 Stars3 Stars4 Stars5 Stars (10 votes, average: 4.50 out of 5)

Interactive Broker Download Historical Data. We believe in open-sourcing code that we can share that helps others.

Here you can find some Java and Python scripts useful for downloading historical data from Interactive Brokers and merging them into a sensible text format.

IBDownloadHistoricalData @ GitHub

Data downloading

Sequential Text Files


Downloads historical data from interactive brokers and builds a data file useful for subsequent back-test

By RobustTechHouse

Java Logic

The Java class generates in desired path a series of data files in reverse chronological order eg

1.txt => most recent data

2.txt => next most recent data

... etc

Python Logic

The Python script takes the Java class output files and creates one contiguous data file in chronological order

Useful References

Historical Data Limitations:

List of IB currencies:

Sample code to request data:

Sample code:

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

Brought to you by RobustTechHouse. We provide Fintech Development services.

Recommended Posts
Showing 2 comments
  • fallout 76 hacks

    I love reading through and I believe this website got some genuinely utilitarian stuff on it! .

  • Holly Hooper

    This paragraph will help the internet users for creating new blog or even a weblog from start to end.

Leave a Comment

Contact Us

We look forward to your messages. Please drop us a note for any enquiries and we'll get back to you, asap.

Not readable? Change text. captcha txt
laptops and phoneFIntech Top 4 Resources