question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Binance futures testnet errors in latest ccxt version

See original GitHub issue

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?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:18 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
darklagocommented, Jan 29, 2021

@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

1reaction
darklagocommented, Jan 30, 2021

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

binance does not have a testnet/sandbox URL for sapi ...
it seems to works fine, and I can see the operations in the Web UI just fine (Tested today 20-Feb-2021), but if I...
Read more >
Apikey is not authorize - Futures API
Hi I can not connect to the binance's testnet. ... So the error is related to the test server. ... const exchange =...
Read more >
Exchanges — ccxt 2.4.71 documentation
The ccxt library is a collection of available crypto exchanges or exchange classes. Each class implements the public and private API for a...
Read more >
How to Test My Functions on Binance Testnet
How to test my functions on the Futures Testnet? ... 2. Scroll down and click [API Key] and you will see the API...
Read more >
Newest 'ccxt' Questions
As I am trying to learn a little about trading bots in python. I have written a simple code that should be able...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found