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
}
Orders
List Orders
List all orders for your account
GET
/
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
Filter by status:
pending, partial, filled, cancelled, or allFilter by side:
buy or sellNumber of orders to return (max: 100)
Number of orders to skip
Response
Array of order objects
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
}
⌘I