Closed yiluzhou closed 2 years ago
I believe the exception has explained why the API request failed well.
I believe the exception has explained why the API request failed well.
But the symbol should be correct. I've tried several symbols for COIN-M Futures.
Clearly it's not correct. Try to find the correct one in exchange_info()
Clearly it's not correct. Try to find the correct one in exchange_info()
Thank you so much! I just checked futures_coin_exchange_info, and realized the symbol should be "BTCUSD_PERP"...
It looks USDT-M Futures API works, while COIN-M Futures API doesn't work.
For example, the following for USDT-M Futures works! recent_trades = client.futures_recent_trades(symbol='BTCUSDT')
While the following for COIN-M Futures doesn't work. recent_trades = client.futures_coin_recent_trades(symbol='BTCUSD') https://github.com/sammchardy/python-binance/blob/59e3c8045fa13ca0ba038d4a2e0481212b3b665f/binance/client.py#L6205
Error message as below: APIError(code=-1121): Invalid symbol. Is this a bug? Thank you!