lindomar-oliveira / backtrader-binance

Binance API integration with Backtrader.
MIT License
129 stars 61 forks source link

get_symbol_info in line 140 returns none in both Testnet and Spot #7

Closed chem-chikweze closed 2 years ago

chem-chikweze commented 2 years ago

@retry def get_symbol_info(self, symbol): return self.binance.get_symbol_info(symbol)

returns None This leads to a TypeError: 'NoneType' object is not subscriptable error when you run store = BinanceStore( api_key=BINANCE.get("key"), api_secret=BINANCE.get("secret"), coin_refer=COIN_REFER, coin_target=COIN_TARGET, testnet=True )

chem-chikweze commented 2 years ago

Closed. Swapping my entries for COIN_REFER and COIN_TARGET fixed it.