Hello,
Recently I am trying to get historical data of FB, and AMZN in a Python-based project. I use?
durationStr?= 1 D and?
barSizeSetting?= 5 secs. Here is a snippet of my code:
reqHistoricalData(
? ? reqId=tickers.index(ticker), contract=contract, endDateTime='', durationStr='1 D',
? ? barSizeSetting='5 secs', whatToShow='ADJUSTED_LAST',
? ? useRTH=1, formatDate=1, keepUpToDate=0, chartOptions=[]
)
Unfortunately, it does not return any data for FB, AMZN (and maybe another symbol) when I use the above configuration. But it returns a result if I use other symbols, like: AAPL, MSFT, or NVAX.
Is it an issue with TWS API or something else? Also, anyone knows how to fix the issue?
#tareq