Create order
Place a buy or sell order.
Authorizations
Create an API token using sf tokens create or at https://sfcompute.com/dashboard/tokens.
Headers
Body
Change in capacity if the order fills (added on buy, subtracted on sell). Must be a single time range: one node_count held constant from start_at to end_at, with both set. start_at and end_at are Unix timestamps in seconds on the allocation schedule grid; start_at can also be the current time. node_count must be between 1 and 10000.
Price in dollars per node-hour, encoded as a decimal string. Prices are rounded to the nearest $0.000060/node-hour market tick. This is one microdollar per node-minute. Responses contain the rounded value with six decimal places. Inputs must contain a decimal point, be non-negative, and not exceed $500/node-hour.
^\d+\.\d+$"18.000000"
Preview. Buy orders only. SF Compute lists the compute this order fills for sale at limit_price_dollars_per_node_hour times this multiple, rounded up to the next $0.000060/node-hour, as standing sell orders on the same pool that allow partial fills. Must be greater than "1.0" and at most "1.2".
When a listing fills, the pool loses that time and its instances terminate, lowest priority first. Sell fees apply. Cancelling this order doesn't cancel its listings.
The order doesn't count toward your compute limit.
^\d+\.\d{1,6}$"1.25"
Response
Order created.
Price in dollars per node-hour, encoded as a decimal string. Prices are rounded to the nearest $0.000060/node-hour market tick. This is one microdollar per node-minute. Responses contain the rounded value with six decimal places. Inputs must contain a decimal point, be non-negative, and not exceed $500/node-hour.
^\d+\.\d+$"18.000000"