I am getting this error when running the getHistorydata function, my codes are bloew:
Some fields are invalid or do not exist for requested ticker(s):
data = alphien.data.getTickersSP500().ticker
tickers = data.tolist()
tickers
px = alphien.data.getHistoryData(tickers, field = ‘bb_live’, zoom=‘2006::2017’)
So the database don’t have certain tickers due to some of them getting drop out of the index.
But do they not show up as NaN?We have to find them out ourselves?
I tried getting tickers from the Wikipedia and append .US Equity to them and re run it and get the same error.
ValueError: Some fields are invalid or do not exist for requested ticker(s):
ticker: ABMD.US Equity / field: bb_live
ticker: ALGN.US Equity / field: bb_live
ticker: AMCR.US Equity / field: bb_live
ticker: ANET.US Equity / field: bb_live
ticker: ANSS.US Equity / field: bb_live
ticker: AOS.US Equity / field: bb_live
ticker: ARE.US Equity / field: bb_live
ticker: ATO.US Equity / field: bb_live
ticker: BIO.US Equity / field: bb_live
ticker: BR.US Equity / field: bb_live
ticker: CARR.US Equity / field: bb_live
ticker: CBOE.US Equity / field: bb_live
ticker: CDNS.US Equity / field: bb_live
ticker: CDW.US Equity / field: bb_live
ticker: CE.US Equity / field: bb_live
ticker: CPRT.US Equity / field: bb_live
ticker: CTVA.US Equity / field: bb_live
ticker: DISH.US Equity / field: bb_live
ticker: DOW.US Equity / field: bb_live
ticker: DPZ.US Equity / field: bb_live
ticker: DRE.US Equity / field: bb_live
ticker: DXC.US Equity / field: bb_live
ticker: DXCM.US Equity / field: bb_live
ticker: EVRG.US Equity / field: bb_live
ticker: FANG.US Equity / field: bb_live
ticker: FLT.US Equity / field: bb_live
ticker: FOX.US Equity / field: bb_live
ticker: FOXA.US Equity / field: bb_live
ticker: FRC.US Equity / field: bb_live
ticker: FTNT.US Equity / field: bb_live
ticker: HFC.US Equity / field: bb_live
ticker: HII.US Equity / field: bb_live
ticker: HLT.US Equity / field: bb_live
ticker: IDXX.US Equity / field: bb_live
ticker: IEX.US Equity / field: bb_live
ticker: INCY.US Equity / field: bb_live
ticker: INFO.US Equity / field: bb_live
ticker: IPGP.US Equity / field: bb_live
ticker: IQV.US Equity / field: bb_live
ticker: IR.US Equity / field: bb_live
ticker: IT.US Equity / field: bb_live
ticker: JKHY.US Equity / field: bb_live
ticker: KEYS.US Equity / field: bb_live
ticker: LVS.US Equity / field: bb_live
ticker: LW.US Equity / field: bb_live
ticker: LYV.US Equity / field: bb_live
ticker: MGM.US Equity / field: bb_live
ticker: MKTX.US Equity / field: bb_live
ticker: MO.US Equity / field: bb_live
ticker: MSCI.US Equity / field: bb_live
ticker: NCLH.US Equity / field: bb_live
ticker: NOW.US Equity / field: bb_live
ticker: NVR.US Equity / field: bb_live
ticker: ODFL.US Equity / field: bb_live
ticker: OTIS.US Equity / field: bb_live
ticker: PAYC.US Equity / field: bb_live
ticker: PKG.US Equity / field: bb_live
ticker: RE.US Equity / field: bb_live
ticker: REG.US Equity / field: bb_live
ticker: RJF.US Equity / field: bb_live
ticker: RMD.US Equity / field: bb_live
ticker: ROL.US Equity / field: bb_live
ticker: SBAC.US Equity / field: bb_live
ticker: SIVB.US Equity / field: bb_live
ticker: SNPS.US Equity / field: bb_live
ticker: STE.US Equity / field: bb_live
ticker: TDY.US Equity / field: bb_live
ticker: TFX.US Equity / field: bb_live
ticker: TTWO.US Equity / field: bb_live
ticker: TWTR.US Equity / field: bb_live
ticker: TXT.US Equity / field: bb_live
ticker: TYL.US Equity / field: bb_live
ticker: VAR.US Equity / field: bb_live
ticker: WAB.US Equity / field: bb_live
ticker: WRB.US Equity / field: bb_live
ticker: WST.US Equity / field: bb_live
ticker: ZBRA.US Equity / field: bb_live