Orders
Create order
⚠️ This endpoint is in public preview.
Place a buy or sell order. Orders fill completely or not at all. All nodes fill on a single instance SKU matching the order's requirements. Order filling is asynchronous; poll GET /v2/orders/{id} to check status.
post/preview/v2/orders
Headers
Idempotency-Keystring nullable
Unique key to ensure idempotent order creation. If provided, duplicate requests with the same key will not place a new order and return the original order.
Request body
Example request
{
"capacity": "cap_k3R-nX9vLm7Qp2Yw5Jd8F",
"instance_sku": "isku_k3R-nX9vLm7Qp2Yw5Jd8F",
"allocation_schedule_delta": [
{
"start_at": 1738972800,
"end_at": 1738972800
}
],
"limit_price_dollars_per_node_hour": "2.500000"
}Response
Order created.
Example response
{
"object": "order",
"id": "ordr_k3R-nX9vLm7Qp2Yw5Jd8F",
"capacity": {
"id": "cap_k3R-nX9vLm7Qp2Yw5Jd8F",
"name": "my-resource-name"
},
"instance_sku": {
"id": "isku_k3R-nX9vLm7Qp2Yw5Jd8F",
"name": "my-resource-name"
},
"allocation_schedule_delta": [
{
"start_at": 1738972800,
"end_at": 1738972800
}
],
"limit_price_dollars_per_node_hour": "2.500000",
"created_at": 1738972800,
"filled_at": 1738972800,
"filled_average_price_dollars_per_node_hour": "2.500000",
"fills": [
{
"contract": "cont_k3R-nX9vLm7Qp2Yw5Jd8F",
"filled_at": 1738972800,
"allocation_schedule_delta": [
{
"start_at": 1738972800,
"end_at": 1738972800
}
],
"price_dollars_per_node_hour": "2.500000"
}
],
"cancelled_at": 1738972800
}