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.

Add better support for test mode with Binance Futures

See original GitHub issue

If I call futuresLeverageBracket('BTCUSDT'), then I get the error. I can fix it use next condition, but I not sure what it is good idea. image

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
ghostcommented, May 7, 2020

Yesterday, Binance deployed a new version of Binance Futures, which broke the leverageBracket API and is therefore not backward compatible. Pretty amazing for an exchange which trades billions of dollars daily…

Anyway, It seems like they deployed this first on testnet, which is why this issue was reported before it started happening on production.

From changelog (https://binance-docs.github.io/apidocs/futures/en/#change-log):

    Endpoint GET /fapi/v1/leverageBracket is changed as "USER-DATA". It need to be signed, and timestamp is needed.

So yeah, MARKET_DATA should be changed to USER_DATA for leverageBracket. This will fix it both on testnet and production.

0reactions
stepanmascommented, May 5, 2020

Thank you, no hurry with release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Access Mock Trading in Binance Futures
To add testnet funds to your Mock Trading account click [Faucet], select [Coin], and click [Add Assets]. You will be able to see...
Read more >
How to Test My Functions on Binance Testnet
After developing your functions, you can utilize the Binance Spot Testnet and Futures Testnet to test your use cases for free. How to...
Read more >
How to Access Mock Trading in Binance Futures
To add testnet funds to your Mock Trading account click [Faucet], select [Coin], and click [Add Assets]. You will be able to see...
Read more >
10 Most Frequently Asked Questions About Binance Futures
Binance Futures has gathered the 10 most frequently asked questions about the trading platform to help traders have a better understanding.
Read more >
USDS-M Futures - Binance Developers
Update endpoint for Account/Trade: GET /fapi/v1/income : Support more incomeType. Add new endpoint for Portfolio Margin: GET /fapi ...
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