{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/buda/json-schema/buda-get-orders-by-client-id-response-schema.json",
  "title": "GetOrdersByClientIdResponse",
  "x-generated": "2026-11-16",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/buda-openapi-generated.yml#/components/schemas/GetOrdersByClientIdResponse",
  "type": "object",
  "properties": {
    "order": {
      "type": "object",
      "description": "Order details"
    },
    "id": {
      "type": "integer",
      "description": "Order ID"
    },
    "client_id": {
      "type": "string",
      "description": "Order Client ID"
    },
    "state": {
      "type": "string",
      "description": "Order state"
    },
    "type": {
      "type": "string",
      "description": "Order side (Bid / Ask)"
    },
    "market_id": {
      "type": "string",
      "description": "Market ID"
    },
    "fee_currency": {
      "type": "string",
      "description": "Currency in which the fee is paid"
    },
    "price_type": {
      "type": "string",
      "description": "Order type (limit / market)"
    },
    "order_type": {
      "type": "string",
      "description": "Specific Order type (market / gtc / ioc / fok / post_only)"
    },
    "limit": {
      "type": "array",
      "description": "Order price"
    },
    "amount": {
      "type": "array",
      "description": "Pending order volume"
    },
    "original_amount": {
      "type": "array",
      "description": "Original order volume"
    },
    "traded_amount": {
      "type": "array",
      "description": "Volume transacted"
    },
    "total_exchanged": {
      "type": "array",
      "description": "Total traded"
    },
    "paid_fee": {
      "type": "array",
      "description": "Fee paid by the order"
    },
    "created_at": {
      "type": "string",
      "description": "Order creation timestamp"
    }
  }
}