sammchardy / python-binance

Binance Exchange API python implementation for automated trading
https://python-binance.readthedocs.io/en/latest/
MIT License
6.02k stars 2.2k forks source link

client.get_symbol_ticker does'nt work on testnet #954

Closed gschurck closed 3 years ago

gschurck commented 3 years ago

Describe the bug

I set testnet = true, and all the functions are working except get_symbol_ticker Is it normal that this function is not working on testnet ? (it works normally)

To Reproduce get = client.get_symbol_ticker(symbol="DOGEUSDT") and I get this error : binance.exceptions.BinanceAPIException: APIError(code=-1121): Invalid symbol.

jlixfeld commented 3 years ago

I believe there are only certain tickers that are available in testnet, and that might not be one of them. You can use client.get_all_tickers() with testnet in your client setup to get a list of what's available.

gschurck commented 3 years ago

Ok thanks, I checked and yes there is only a few of them sadly.