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

Trigger callback when order trigger #907

Open
tamdc opened this issue Mar 23, 2024 · 1 comment
Open

Trigger callback when order trigger #907

tamdc opened this issue Mar 23, 2024 · 1 comment

Comments

@tamdc
Copy link

tamdc commented Mar 23, 2024

Is there any way to do a callback when an order triggered?
I am doing a bot trade, but got stuck at moving the SL to the break event when the first TP hit - which is an LIMIT order.
But don't know how to do it. I read the source also but seems like it does not support this function. Any help guys?

@giladsmg
Copy link

you can use the userData api and provide execution callback like this:
binance.websockets.userData( accountUpdateCB, executionCB )
the executionCB will be triggered when order is been placed

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

2 participants