'How can I get a message from Binance API when my order is filled

I created a limit buy order.

If this buy order is filled so I open the long position, I want to create another order immediately.

So basically, I want to get a message from the Binance server when my order event is filled.

Is there any function to do so?

I am using WebSocket via the python-binance library, so it would be perfect if there is that functionality in the python-binance library.

Thank you.



Solution 1:[1]

Binance does not currently offer notifications when orders are created, canceled, or fulfilled through API.

You can do it through user streams. Below pointer may help you

https://dev.binance.vision/t/new-order-notification/2261

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 vijy