My App

Get a single order

Retrieves a single order by specifying one of: order ID (UUID), nonce (int64), or client_order_id (string). Lookup priority is nonce > id > client_order_id. If multiple orders share the same client_order_id, the newest order is returned. Returns complete order details including status, fills, fees, and timestamps.

Requires authentication.

GET
/orders/{order}
OBSIDIAN-KEY<token>

In: header

OBSIDIAN-SECRET<token>

In: header

Path Parameters

orderstring

can be order_id (an UUID) or order nonce (an positive int64) or client_order_id

Response Body

application/json

application/json

curl -X GET "https://api.dev.obsidian.exchange/orders/string"
{
  "order": {
    "id": "string",
    "product_id": "string",
    "side": "BUY",
    "type": "LIMIT",
    "size": "string",
    "price": "string",
    "sender": "string",
    "nonce": "string",
    "stp": "CANCEL_TAKER",
    "post_only": true,
    "time_in_force": "GTC",
    "reduce_only": true,
    "status": "PENDING",
    "done_reason": "string",
    "stop_price": "string",
    "stop_price_option": "NONE",
    "order_stop_type": "STOP_NONE",
    "is_liquidation": true,
    "liquidation_fee_rate": "string",
    "maker_fee_rate": "string",
    "taker_fee_rate": "string",
    "filled_size": "string",
    "avg_price": "string",
    "total_fees_usd": "string",
    "created_at": "string",
    "updated_at": "string",
    "cancel_requested_at": "string",
    "expired_at": "string",
    "scheduled_at": "string",
    "client_order_id": "string",
    "cancel_requested": true,
    "initial_margin": "string",
    "last_trades": [
      {
        "id": "string",
        "price": "string",
        "size": "string",
        "liquidity_indicator": "MAKER",
        "time": "string",
        "funding_payment": "string",
        "trading_fee": "string",
        "sequencer_fee": "string"
      }
    ],
    "sender_name": "string"
  }
}
{
  "code": 0,
  "message": "string",
  "details": [
    {
      "@type": "string",
      "property1": null,
      "property2": null
    }
  ]
}