---
title: "Get market quote"
method: GET
path: "/preview/v2/orderbook/quote"
tags: ["Orderbook"]
---

# Get market quote

`GET /preview/v2/orderbook/quote`

Top-of-book quote (best bid + best ask) for the given requirements and delivery window. The book is aggregated across every SKU whose orders satisfy the requirements and that the caller is permitted to see.

## Query parameters

- `requirements` string
- `start_at` integer, required — Unix timestamp.
- `end_at` integer, required — Unix timestamp.

## Response `200`

Market quote.

- SfcApiOrderbookQuoteResponse — Top-of-book snapshot: the highest resting buy (`best_bid`) and lowest resting sell (`best_ask`) for the requested window. Either side may be absent if no orders are resting on it.
  - `requirements` SfcApiInstanceTypeRequirements, required
  - `start_at` integer, required — Unix timestamp.
  - `end_at` integer, required — Unix timestamp.
  - `requested_at` integer, required — Unix timestamp.
  - `best_bid` SfcApiPriceLevel — One price level in the order book — orders sharing the same per-node-hour rate are summed into a single entry.
    - `dollars_per_node_hour` string, required — Price rate in dollars per node-hour.
    - `node_count` integer, required — Total nodes resting at this rate.
  - `best_ask` SfcApiPriceLevel — One price level in the order book — orders sharing the same per-node-hour rate are summed into a single entry.
    - `dollars_per_node_hour` string, required — Price rate in dollars per node-hour.
    - `node_count` integer, required — Total nodes resting at this rate.

## Other responses

- `401` — Unauthorized.
- `422` — Validation failed.
- `500` — Internal server error.

---

[API](https://skmtc.net/sfcompute/apis/san-francisco-compute-documentation.md) · [All operations](https://skmtc.net/sfcompute/apis/san-francisco-compute-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sfcompute/san-francisco-compute-documentation/revisions/93dd7661e9bb/schema)
