erdewit / ib_insync

Python sync/async framework for Interactive Brokers API
BSD 2-Clause "Simplified" License
2.75k stars 723 forks source link

Why is it not possible to get the historical data of the META #673

Closed jxhuliqun138 closed 5 months ago

jxhuliqun138 commented 6 months ago

contract = Stock(“TSLA”, exchange='SMART', currency='USD') constructing the contract as above. TSLA, GOOG can get the data fine, but META, BSC, etc. can't.

LunarSilhouette commented 6 months ago

hello, For certain stocks, like META, the primary exchange must also be specified. Stock('META','SMART','USD',primaryExchange=‘NASDAQ’)