{ "opencollection": "1.0.0", "info": { "name": "SF Compute Account Orders API", "version": "v0" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "Orders", "type": "folder" }, "items": [ { "info": { "name": "List orders", "type": "http" }, "http": { "method": "GET", "url": "https://api.sfcompute.com/v0/orders", "params": [ { "name": "side", "value": "", "type": "query" }, { "name": "instance_type", "value": "", "type": "query" }, { "name": "min_price", "value": "", "type": "query" }, { "name": "max_price", "value": "", "type": "query" }, { "name": "only_open", "value": "", "type": "query" }, { "name": "only_filled", "value": "", "type": "query" }, { "name": "only_cancelled", "value": "", "type": "query" }, { "name": "sort_by", "value": "", "type": "query" }, { "name": "sort_direction", "value": "", "type": "query" }, { "name": "limit", "value": "", "type": "query" }, { "name": "offset", "value": "", "type": "query" } ] }, "docs": "List market orders for the authenticated account with filtering, sorting, and pagination." }, { "info": { "name": "Place an order", "type": "http" }, "http": { "method": "POST", "url": "https://api.sfcompute.com/v0/orders", "body": { "type": "json", "data": "{}" } }, "docs": "Place a buy or sell market order. Buy orders specify an instance type, quantity, price, duration, and start time. Sell orders list time from an existing contract back to the market." }, { "info": { "name": "Cancel all open orders", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.sfcompute.com/v0/orders" }, "docs": "Cancel all open orders" }, { "info": { "name": "Get an order", "type": "http" }, "http": { "method": "GET", "url": "https://api.sfcompute.com/v0/orders/:id", "params": [ { "name": "id", "value": "", "type": "path" } ] }, "docs": "Get an order" }, { "info": { "name": "Cancel an order", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.sfcompute.com/v0/orders/:id", "params": [ { "name": "id", "value": "", "type": "path" } ] }, "docs": "Cancel an order" }, { "info": { "name": "Get clusters for an order", "type": "http" }, "http": { "method": "GET", "url": "https://api.sfcompute.com/v0/orders/:id/clusters", "params": [ { "name": "id", "value": "", "type": "path" } ] }, "docs": "Returns the clusters provisioned from a filled order." } ] } ], "bundled": true }