Hi,

I was trying to run below code in research platform during US trading hours (11:30AM EST). However, the History() returns empty dataframe for all the symbols in sym_list. Before the trading hour, it seems to be working for a few of the symbols (ex. AAPL, ADBE, ADM), but most the symbols still not working. Wonder what's the problem with this? Thanks.

 

  1. sym_list = ['MOS', 'NVDA','AAPL','INTC','AMD','META']
  2. for sym_str in sym_list:
  3. trade_bars_df = qb.History(TradeBar, sym_str, 5)
  4. display(trade_bars_df) # <-- all the df are empty

Author

Stanley

July 2023