HTX Reconcile Trade
htx_reconcile_tradeCheck final order and fill status after a submission or network timeout to decide whether to retry safely. Prevents duplicate orders by confirming outcome.
Instructions
Read final order and fill state after a submission or network timeout.
Query this before retrying a timed-out submission.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| product | Yes | HTX product family: spot or USDT-margined perpetual swap. | |
| order_id | No | HTX exchange order ID; provide this or client_order_id. | |
| instrument | Yes | Spot symbol such as 'btcusdt' or swap contract such as 'BTC-USDT'. | |
| margin_mode | No | Swap margin mode: isolated or cross. | isolated |
| client_order_id | No | Client order ID used at submission; provide this or order_id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| order | Yes | ||
| status | No | ||
| product | Yes | ||
| instrument | Yes |