URL : https://testnet.binancefuture.com/fapi/v1/exchangeInfo is working perfectly everywhere but when I try to get exchange info using testnet futures api
futures_exchange_info()
(I used python-binance module), it saw me “502 Bad Gateway” error.
Thanks in advance.
You may using mainnet API for testnet or testnet API for mainnet. You should check your keys and testnet=True
parameters
From docs:
client = Client(api_key, api_secret, **testnet=True**)
or for Asynchronous client
client = await AsyncClient.create(api_key, api_secret, **testnet=True**)