BingX-API / docs

BingX API Docs
4 stars 4 forks source link

triggerOrderId is not set for filled STOP_MARKET and TAKE_PROFIT_MARKET orders. #5

Open AnMakc opened 6 months ago

AnMakc commented 6 months ago

After the STOP_MARKET or TAKE_PROFIT_MARKET trigger price is reached, the original order is replaced by a new one with status FILLED in the user orders lists returned by the following endpoints:

It is expected for the FILLED order to have triggerOrderId equal to the original trigger order id so it would be possible to match them.

However, triggerOrderId is always 0 for these orders.

This value is only filled in the WebSocket events, but not in the HTTP API endpoints.