Hello, I’m running a python script for a list of symbols and I have encountered a problem on a specific asset (DEFIUSDT).
The code below shows an error of:
BinanceAPIException: APIError(code=-1121): Invalid symbol.
symbol = 'DEFIUSDT'
avg_price = client.get_avg_price(symbol=symbol)
I also tried retrieving the symbol info, but it only returns a NoneType object.
info = client.get_symbol_info(symbol=symbol)
However, I can retrieve historical klines with the given symbol (DEFIUSDT).
Is it an API problem or there is something wrong in my code/system. I have tried on different symbols and it works just fine.