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

Most upvoted comments

@Gennttii @darklago please, update your CCXT to version 1.41.17 (the new build will arrive in 20 minutes) and let us know if you still have this issue.

It work thanks

I tried this morning with lastest version 1.41.28 and it seems solved. thanks