jaggedsoft/node-binance-api

Trigger callback when order trigger

tamdc opened this issue · 1 comments

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?

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