sammchardy / python-binance

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

Testnet #1407

Open Zhongkai939 opened 6 months ago

Zhongkai939 commented 6 months ago

Dear,

I cann't use testnet to Binance, it always say (APIError(code=-2008): Invalid Api-Key ID).

Meanwhile, I found the future testnet url had changed to https://testnet.binancefuture.com, the old one now is just for spot, there might be some potential problems.

Therefore, I tried to use testnet for spot. However, while running the following code (client = Client(api_key, api_secret, testnet=True), ps: the api of mine had been updated to the one get from testnet spot ), it still report a wrong code: BinanceAPIException: APIError(code=-2008): Invalid Api-Key ID.

What should I do to use the testnet? specially on future testnet?