Open AnMakc opened 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:
/openApi/swap/v2/trade/allOrders
/openApi/swap/v1/trade/fullOrder
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.
triggerOrderId
However, triggerOrderId is always 0 for these orders.
0
This value is only filled in the WebSocket events, but not in the HTTP API endpoints.
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:
/openApi/swap/v2/trade/allOrders
User's History Orders/openApi/swap/v1/trade/fullOrder
User's All OrdersIt 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 always0
for these orders.This value is only filled in the WebSocket events, but not in the HTTP API endpoints.