Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extends IBDownloader to support all security types. #4

Closed
3 tasks done
AlexCatarino opened this issue Nov 15, 2018 · 7 comments
Closed
3 tasks done

Extends IBDownloader to support all security types. #4

AlexCatarino opened this issue Nov 15, 2018 · 7 comments

Comments

@AlexCatarino
Copy link
Member

Expected Behavior

IBDownloader can fetch data from all securities types.
https://interactivebrokers.github.io/tws-api/historical_data.html

Actual Behavior

Only forex is supported.

Potential Solution

Extends IBDownloader to support all security types.

Checklist

  • I have completely filled out this template
  • I have confirmed that this issue exists on the current master branch
  • I have confirmed that this is not a duplicate issue by searching issues
@Fredoid
Copy link

Fredoid commented Jan 14, 2020

Hi QC Team,

I am very interrested to using ibdownloader to fecth equity historical data.
Do you know if there is a specific reason to support only forex for the moment ?
Technical issue ? Licence issue ? Provider issue ?
Or just because the team or the community hadn't time yet ?

Thanks,
Frédéric

@AlexCatarino
Copy link
Member Author

There is an extra issue that can be handled in this ticket:
IBDownloader is failing to download Forex data because it assumes Market.FXCM while InteractiveBrokersBrokerage requires Market.Oanda for Forex [src].

@aricooperman
Copy link

I am happy to work on this but I have a general question on how QC/Lean is supposed to resolve tickers into symbols as it relates to Toolbox. Is there some lookup mechanism that can check that the ticker is Equity or Forex or Option? Or is it expected that the user would provide this on the command line explicitly, i.e. something like --tickers=QQQ:Equity:USA,EUR.USD:Forex:FXCM

@omidkrad
Copy link

omidkrad commented Apr 8, 2021

Interactive Brokers (IBKR)

Data Subscriptions

To configure, log-in to IBKR Portal and go to: User Settings -> Market Data Subscriptions ⚙ -> Current GFIS Subscriptions - ⚙ click on gear
Select North America -> Level 1 (NBBO)

Subscriptions needed for streaming stock and options data:

For Stocks:

  • NASDAQ (Network C/UTP) - North America
  • NYSE (Network A/CTA) - North America
  • NYSE American, BATS, ARCA, IEX, and Regional Exchanges (Network B) - North America

For Stock Options:

  • OPRA (US Options Exchanges) - North America

Connecting to the API

IB Gateway

  • Goto Configuration -> Settings -> API -> Settings
    • uncheck: Read-Only API
    • set Socket Port (default is 4001). Make sure socket port is the same for IB Gateway and the client.

Or

Trader Workstation (TWS)

  • Go to Globla Configuration... -> API -> Settings
    • check: Enable ActiveX and Socket Clients
    • uncheck: Read-Only API
    • set Socket Port (default is 7497). Make sure socket port is the same for TWS and the client.

@lilith
Copy link

lilith commented Apr 10, 2021

This would be really great! Right now offline usage of LEAN is near impossible, and the online ide is constantly corrupting and duplicating files, while the build system is only intermittently online.

@Smiggus
Copy link

Smiggus commented Jul 22, 2021

Quite interested in the use case of this, would IBDownloader be allowed/added as a substitute for QC Datasets?

@Martin-Molinero Martin-Molinero transferred this issue from QuantConnect/Lean Apr 20, 2022
@Martin-Molinero
Copy link
Member

This issue has been solved by #110. The lean cli data download tool can be used, any historical resolution and asset supported by the brokerage will work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants