My App

List all active orders

Retrieves all currently active (open, pending) orders for the authenticated user. Optionally filter by product_id to get orders for a specific trading pair, or by client_order_id to find orders with a matching client identifier. Returns a list of order objects with current status and fill information.

Requires authentication.

GET
/orders
OBSIDIAN-KEY<token>

In: header

OBSIDIAN-SECRET<token>

In: header

Query Parameters

product_id?string

Filter by product_id (trading pair).

client_order_id?string

Filter by client_order_id (case-insensitive).

Response Body

application/json

application/json

curl -X GET "https://api.dev.obsidian.exchange/orders"
{
  "orders": [
    {
      "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
    }
  ]
}