Skip to main content
curl -X POST "https://api.polyhush.com/api/v1/trading/orders/ord_abc123/sync" \
     -H "X-API-Key: your-api-key"

Path Parameters

order_id
string
required
The ID of the order to sync.

Response

status
string
Sync result: updated (order changed), no_change (no updates), already_complete (order already filled/cancelled), error (sync failed)
order_id
string
The order ID that was synced.
filled_size
number
Total shares filled (cumulative).
new_status
string
Current order status: PLACED, PARTIALLY_FILLED, FILLED, or CANCELLED.
new_fill_size
number
New shares filled in this sync (0 if no new fills).
message
string
Error message (only present if status is “error”).
{
  "status": "updated",
  "order_id": "ord_abc123",
  "filled_size": 100.0,
  "new_status": "FILLED",
  "new_fill_size": 50.0
}