curl --request GET \
--url https://api.sfcompute.com/v2/orders \
--header 'Authorization: Bearer <token>'{
"object": "list",
"has_more": true,
"data": [
{
"object": "order",
"id": "<string>",
"capacity": "<string>",
"side": "sell",
"allow_standing": true,
"zones": [
"richmond"
],
"delta": {
"node_count": 2,
"start_at": 1738972800,
"end_at": 1738972800,
"type": "rectangle"
},
"limit_price_dollars_per_node_hour": "<string>",
"status": "pending",
"created_at": 1738972800,
"filled_at": 1738972800,
"filled_price_dollars_per_node_hour": "2.500000",
"cancelled_at": 1738972800
}
],
"cursor": "ordrc_gqXR7s0Kj5mHvE2wNpLc4Q"
}List all orders.
curl --request GET \
--url https://api.sfcompute.com/v2/orders \
--header 'Authorization: Bearer <token>'{
"object": "list",
"has_more": true,
"data": [
{
"object": "order",
"id": "<string>",
"capacity": "<string>",
"side": "sell",
"allow_standing": true,
"zones": [
"richmond"
],
"delta": {
"node_count": 2,
"start_at": 1738972800,
"end_at": 1738972800,
"type": "rectangle"
},
"limit_price_dollars_per_node_hour": "<string>",
"status": "pending",
"created_at": 1738972800,
"filled_at": 1738972800,
"filled_price_dollars_per_node_hour": "2.500000",
"cancelled_at": 1738972800
}
],
"cursor": "ordrc_gqXR7s0Kj5mHvE2wNpLc4Q"
}Create an API token using sf tokens create or at https://sfcompute.com/account/api-keys.
Filter by order ID (repeatable).
ordr_[0-9a-zA-Z_-]{1,21}Filter by capacity. An ID or name identifying this resource.
(cap_[0-9a-zA-Z_-]{1,21}) | ([a-zA-Z0-9][a-zA-Z0-9._-]{0,254})"cap_k3R-nX9vLm7Qp2Yw5Jd8F"
sell, buy Filter by status (repeatable).
The status of an order in the system.
pending = not resolved/processed yet.
filled = order executed.
standing = the order is waiting for a match.
cancelled = the order was cancelled either automatically (not a standing order and didn't immediately fill, or current time past end_at) or by explicit cancellation.
rejected = validation/system error occurred.
pending, filled, rejected, cancelled, standing Unix timestamp.
1738972800
Unix timestamp.
1738972800
Prefix with - for descending.
created_at, -created_at, start_at, -start_at 1 <= x <= 200Set to the response's cursor to fetch the next page.
^ordrc_[A-Za-z0-9_-]+$"ordrc_gqXR7s0Kj5mHvE2wNpLc4Q"
Set to the response's cursor to fetch the previous page.
^ordrc_[A-Za-z0-9_-]+$"ordrc_gqXR7s0Kj5mHvE2wNpLc4Q"