[testnet] Someting wrong with client.futures_create_order()

See original GitHub issue

I use my testnet account , and run the function futures_create_order() for the symbol BTCUSDT, it is all OK. The code is following:

client.futures_create_order(symbol='BTCUSDT', side='BUY', positionSide='LONG',type='MARKET',quantity=20)

But when I use it for the symbol SOLUSDT:

client.futures_create_order(symbol='SOLUSDT', side='BUY', positionSide='LONG',type='MARKET',quantity=20)

Error message appears:

binance.exceptions.BinanceAPIException: APIError(code=-4131): The counterparty’s best price does not meet the PERCENT_PRICE filter limit.

How to solve the problem? thanks!!!

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
Animouse31commented, Feb 24, 2022

Check the symbol info using client.get_symbol_info and find PERCENT_PRICE in it.

The price you send for the order should match the PERCENT_PRICE rule, as well as the PRICE_FILTER rule.

0reactions
ne0c0decommented, Aug 11, 2022

Unfortunately there’s no solution, Binance doesn’t allow to open position and giving this kind of false errors to manipulate the developers when there’s high volatility.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Creating an order in Binance Features Testnet results ... - GitHub
Dear friends, I am trying to send an order to the Binance Features Testnet with the code below. However, there is an error...
Read more >
[Websocket] No order filled event received, but only account ...
Hi, I'm currently developing a connector for futures. ... I'm using the testnet, I can successfully make API calls and get responses.
Read more >
How to Test My Functions on Binance Testnet
1. Log in to your Binance testnet account on the Binance Futures Testnet. If you don't have a testnet account, click [Create].
Read more >
Binance Spot Test Network. Error when trying to reach Testnet ...
I am trying to test a bot on the Spot Test Network but when I try to do acc = client ...
Read more >
Binance API — python-binance 0.2.0 documentation
each object is identical to Client.aggregate_trades(). ... API Key created before your futures account opened does not support futures API service ...
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