Get Order

Fetch a single order by id.

GET /orders/{orderId}

Auth: Authorization: Bearer <access_token>.

Path Parameters

ParameterDescription
orderIdOrder id returned by POST /orders

Query Parameters (alternative)

Look up by your own idempotency key instead of the venue id:

GET /orders?client_order_id={client_order_id}

Exactly one of {orderId} or client_order_id must be supplied.

Example

curl https://api.godarkdex.com/api/v1/orders/ord_01HXYZ12345 \
  -H "Authorization: Bearer $TOKEN"

Response

{
  "code": 0,
  "data": {
    "order_id": "ord_01HXYZ12345",
    "client_order_id": "my-order-001",
    "symbol": "BTC-USDC-PERP",
    "side": "buy",
    "type": "limit",
    "peg_reference": null,
    "quantity": 0.1,
    "price": 95000,
    "time_in_force": "GTC",
    "expiry_time": null,
    "aon": false,
    "min_fill_size": null,
    "status": "PARTIALLY_FILLED",
    "filled_quantity": 0.03,
    "remaining_quantity": 0.07,
    "average_fill_price": 94998.5,
    "created_at": "2026-04-20T10:30:00.123Z",
    "updated_at": "2026-04-20T10:31:15.456Z"
  },
  "timestamp": "2026-04-20T10:32:00.789Z",
  "request_id": "req_01HXYZ..."
}

Field Reference

FieldTypeDescription
order_idstringVenue-assigned id
client_order_idstring | nullIdempotency key supplied on placement, if any
symbolstringInstrument id
sidestringbuy or sell
typestringmarket, limit, or peg
peg_referencestring | nullmid, bid, or ask when type=peg, else null
quantitynumberOriginal order quantity
pricenumber | nullLimit price, or null for peg / unpriced market
time_in_forcestringGTC, GTT, IOC, or FOK
expiry_timeinteger | nullNanosecond epoch; set for GTT
aonbooleanAll-or-None flag
min_fill_sizenumber | nullMinimum per-execution fill size, if set
statusstringNEW, PARTIALLY_FILLED, FILLED, CANCELLED, REJECTED
filled_quantitynumberTotal filled so far
remaining_quantitynumberUnfilled remainder
average_fill_pricenumber | nullVolume-weighted average fill price
created_atstringCreation timestamp (RFC 3339)
updated_atstringLast update timestamp (RFC 3339)

Streaming Alternative

For live updates on all your orders — including fills, cancels, and rejects — subscribe to the Orders Channel over WebSocket rather than polling GET /orders/{orderId}.

Errors

CodeMeaning
1400Order not found
1401Order belongs to a different account
1403Neither orderId nor client_order_id supplied