Closed fiber closed 4 years ago
u could get the official doc right here
data would deliver via wrapper.HistoricalData()
it seems that u got an invalid bar sizes "1 D". it should be "1 day"
I got this to work. It's essential to have a subscription for market data. I had meant to access delayed data without a subscription, which does not work.
1.ReqHistoricalData always require a subscription, set the market data type won't work for historical data 2.ReqMktData will work with this 3.if you already subscribed the market data, it will always return live data even though you requested delayed data 4.if you did ReqMktData right after ReqMarketDataType, that may not work properly.TWS or gateway might have not set the market data type to delayed before it got ReqMarketDataType. So, ReqMarketDataType after wrapper.MarketDataType callback is better.
I can't get ReqHistoricalData() to work. Do you have an example?