Skip to main content
GET
https://api.galadriel.com
/
v1
/
orders
curl "https://api.galadriel.com/v1/orders?status=pending&limit=10" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "orders": [
    {
      "order_id": "ord_abc123",
      "side": "buy",
      "gpu_type": "h100",
      "gpu_count": 16,
      "zone": "us-west-1",
      "order_type": "limit",
      "limit_price": 1.30,
      "status": "pending",
      "filled_gpus": 0,
      "created_at": "2025-11-11T14:00:00Z",
      "expires_at": "2025-11-11T18:00:00Z"
    },
    {
      "order_id": "ord_def456",
      "side": "buy",
      "gpu_type": "h200",
      "gpu_count": 8,
      "zone": "us-east-1",
      "order_type": "market",
      "status": "filled",
      "filled_gpus": 8,
      "matched_price": 4.50,
      "lease_id": "lse_ghi789",
      "created_at": "2025-11-11T13:00:00Z",
      "filled_at": "2025-11-11T13:00:01Z"
    }
  ],
  "total": 2,
  "limit": 10,
  "offset": 0
}

Query Parameters

status
string
Filter by status: pending, partial, filled, cancelled, or all
side
string
Filter by side: buy or sell
limit
integer
default:"20"
Number of orders to return (max: 100)
offset
integer
default:"0"
Number of orders to skip

Response

orders
array
Array of order objects
total
integer
Total number of orders matching the filter
curl "https://api.galadriel.com/v1/orders?status=pending&limit=10" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "orders": [
    {
      "order_id": "ord_abc123",
      "side": "buy",
      "gpu_type": "h100",
      "gpu_count": 16,
      "zone": "us-west-1",
      "order_type": "limit",
      "limit_price": 1.30,
      "status": "pending",
      "filled_gpus": 0,
      "created_at": "2025-11-11T14:00:00Z",
      "expires_at": "2025-11-11T18:00:00Z"
    },
    {
      "order_id": "ord_def456",
      "side": "buy",
      "gpu_type": "h200",
      "gpu_count": 8,
      "zone": "us-east-1",
      "order_type": "market",
      "status": "filled",
      "filled_gpus": 8,
      "matched_price": 4.50,
      "lease_id": "lse_ghi789",
      "created_at": "2025-11-11T13:00:00Z",
      "filled_at": "2025-11-11T13:00:01Z"
    }
  ],
  "total": 2,
  "limit": 10,
  "offset": 0
}