ccxt: Binance futures testnet errors in latest ccxt version
I had an older ccxt version and it was all working okay, but now I updated to latest version and nothing is working…
At first I got this error :
{ AuthenticationError: binance {"code":-2015,"msg":"Invalid API-key, IP, or permissions for action, request ip: xx.xx.xx.xx"}
Then after searching found this and the error didn’t show anymore:
exchange.set_sandbox_mode(true)
When I try to create an order I get this error:
{ ExchangeError: binance {"code":-2019,"msg":"Margin is insufficient."}
When I try to set leverage to 100 I get this error : ``{ ExchangeError: binance {“code”:-4028,“msg”:“Leverage 100 is not valid”}`
And there can be other errors that I have not figured yet…
How to fix these?
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 18 (9 by maintainers)
Commits related to this issue
- binance exception mappings #8365 — committed to ccxt/ccxt by kroitor 3 years ago
It work thanks
I tried this morning with lastest version 1.41.28 and it seems solved. thanks