Friday, May 15, 2020

Code to download intra-day price quotes using Interactive Brokers API into csv files

Some time ago, I was searching the internet for data download of intra-day price quotes of futures contracts and forex.

The best I found was from Interactive Brokers(IBKR) which provided an API for programmers to download the quotes. This is applicable only for IBKR customers who need to write their own code to download the quotes. Not all data is free. Futures, stocks data require paid market data subscription. Forex and index CFDs are free.

I have written python code to download intra-day hourly price quotes of continuous futures contracts, CFDs and forex from Interactive Brokers API as csv files which are convenient for analytics purposes. The csv files can then be uploaded onto charting software like Amibroker which I use personally.

The code has been uploaded onto github.
https://github.com/hyom448/ib_intraday_quotes_csv

It should be useful to Interactive Brokers customers who have a programming background. The code can serve as a base for further modifications. It will be difficult for those who have no programming experience.

If someone knows of better alternatives to this data source, please drop a comment on this blog post or drop a message to me at Telegram user hyom448. Thank you.

PS: Regarding leveraged financial instruments such as futures, CFDs, forex, please avoid if you are inexperienced and do have not much interest in financial markets. Better stick to plain vanilla stocks/bonds or better still, stock/bond index ETFs which are non-leveraged, diversified by nature. 

I personally will steer clear of leveraged instruments unless I am confident of having an edge protected by risk management rules.

5 comments:

  1. when I thought about the way things have been recently, i owe my thanks to God for letting me find this amazing personality, i mailed Mr. alex roughly 2 months now, I was actually very uncertain about investing, very scared because i was also low on cash.I gave it my all, my first investment of $2,000 two weeks ago brought me $ 29,230 last week, and what intrigues me the most is the way him handles he partners, i recommend him too to my friend jeff, after trading with him, his testimonies have let me come here to attest for him. We are happy to meet a professional in you. I am proud to recommend him to any person who has a passion for trading, meet a good mentor and get good fortunes.Contact this veteran at: totalinvestmentcompany@gmail.com

    ReplyDelete
  2. when I thought about the way things have been recently, i owe my thanks to God for letting me find this amazing personality, i mailed Mr. alex roughly 2 months now, I was actually very uncertain about investing, very scared because i was also low on cash.I gave it my all, my first investment of $2,000 two weeks ago brought me $ 29,230 last week, and what intrigues me the most is the way him handles he partners, i recommend him too to my friend jeff, after trading with him, his testimonies have let me come here to attest for him. We are happy to meet a professional in you. I am proud to recommend him to any person who has a passion for trading, meet a good mentor and get good fortunes.Contact this veteran at: totalinvestmentcompany@gmail.com

    ReplyDelete
  3. We are a licensed Money lender established in 2000. We serve more than 60 countries with more than 200, 000 agent locations around the world. Apply for business or

    personal loans,debt consolidation,home loan, mortgage loan,project loan,For more information Visit us today!
    Email: lendingcashhelpdesk@gmail.com
    watsap: +91 9108256518

    ReplyDelete
  4. Manipur Board Class 6 Syllabus gives an overview of the list of subjects covered during the academic year. It will also give an idea about the allotment of subject wise marks and the entire scheme of studies. BSEM 10th Class Revised Syllabus After analysing the subject wise allotment of marks from the Class 6 syllabus, can also prepare for the exams more effectively.

    ReplyDelete
  5. BSNL Fiber plans of FTTH broadband network updated, check the new speeds of each plan and choose the best fiber fiber broadband plan for your home or business internet connection. BSNL fiber BSNL is installing Bharat Net a country-wide fiber optic cable for internet connectivity in many of the panchayats, and on the other hand, ISP brought the same fibernet technology to your doorstep directly and through TIPs.

    ReplyDelete

Picking the right Valentine. A much more difficult task than picking the right stocks

9 years ago, I wrote about choosing your Valentine from a value investing standpoint. What I wrote then still stands today, Beauty is over...