Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed on place order #1140

Open
dungtrandk opened this issue Aug 30, 2022 · 2 comments
Open

Speed on place order #1140

dungtrandk opened this issue Aug 30, 2022 · 2 comments

Comments

@dungtrandk
Copy link

Hi

I was wondering if anybody else would like to share how fast IT takes for you guys from placing a spot limit ordre in tour code, until the callback? In milliseconds/seconds.

My calls usually take between 500ms up to almost 1 second.

Can it somehow be done faster than this?

@prozerran
Copy link

Set the trading rules to TradeRulesBehaviour.None and it should be much faster.

@JKorf
Copy link
Owner

JKorf commented Oct 28, 2022

With TradeRulesBehaviour not set to None it will request the trade rules first before placing the order, but this is not enabled by default. The other thing you can try is setting AutoTimestamp to false in the client options, which will prevent another initial request. You'll have to make sure your server time is in sync with the Binance server time though.
Note that these things will only help for the first request in a while, when the library needs to resync these things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants