v1.0.0
OAS 3.0.0

San Francisco Compute Documentation

It's a market for very large scale GPU clusters.

Server: https://api.sfcompute.com

Production

Client Libraries

Orders

Place buy and sell orders for contracts on accelerator nodes.

/v0/orders

List orders

Query Parameters
  • side
    Type:string enum

    Side of the order (buy/sell)

    • buy
    • sell
  • instance_type

    The instance type.

    Any of
    • Type:string enum
      • h100i
      • h100v
  • min_price
    Type:number | null
  • max_price
    Type:number | null
  • min_start_date
    Any of
    • Type:string Format: date

      full-date notation as defined by RFC 3339, section 5.6, for example, 2017-07-21

  • max_start_date
    Any of
    • Type:string Format: date

      full-date notation as defined by RFC 3339, section 5.6, for example, 2017-07-21

  • min_duration
    Type:number | null
  • max_duration
    Type:number | null
  • min_quantity
    Type:number | null
  • max_quantity
    Type:number | null
  • contract_id
    Type:string
  • only_open
    Type:boolean | null
  • exclude_filled
    Type:boolean | null
  • only_filled
    Type:boolean | null
  • min_filled_at
    Type:string | null
  • max_filled_at
    Type:string | null
  • min_fill_price
    Type:number | null
  • max_fill_price
    Type:number | null
  • exclude_cancelled
    Type:boolean | null
  • only_cancelled
    Type:boolean | null
  • min_cancelled_at
    Type:string | null
  • max_cancelled_at
    Type:string | null
  • min_placed_at
    Type:string | null
  • max_placed_at
    Type:string | null
  • limit
    Type:number | null
  • offset
    Type:number | null
  • sort_by
    Type:string enum
    • created_at
    • start_time
  • sort_direction
    Type:string enum
    • ASC
    • DESC
Responses
  • application/json
  • application/json
  • application/json
Request Example forGET/v0/orders
curl https://api.sfcompute.com/v0/orders
{
  "data": [
    {
      "object": "order",
      "id": "ordr_123",
      "side": "buy",
      "status": "pending",
      "instance_type": "h100i",
      "quantity": 4,
      "start_at": "2021-01-01T00:00:00Z",
      "end_at": "2021-01-01T01:00:00Z",
      "price": 2850000,
      "flags": {
        "market": false,
        "post_only": false,
        "ioc": false
      },
      "executed": false,
      "cancelled": false,
      "colocate_with": [],
      "created_at": "2021-01-01T00:00:00Z",
      "rejected": false
    }
  ],
  "has_more": true,
  "object": "list"
}

Quote (Collapsed)

Quote

Instances (Collapsed)

A VM instance you can connect to when your contract starts.

Models