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

# Get market depth

`GET /preview/v2/orderbook/depth`

Depth of book for the given requirements and delivery window, aggregated by price level. Individual orders, participants, and matched SKU identities are not exposed.

## Query parameters

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

## Response `200`

Market depth.

- SfcApiOrderbookDepthResponse — Depth of book for one delivery window. Bids descending (highest first), asks ascending (lowest first). Either array may be empty when no orders rest on that side.
  - `requirements` SfcApiInstanceTypeRequirements, required
  - `start_at` integer, required — Unix timestamp.
  - `end_at` integer, required — Unix timestamp.
  - `requested_at` integer, required — Unix timestamp.
  - `bids` SfcApiPriceLevel[], required — Bids sorted descending by rate (best bid first).
    - `dollars_per_node_hour` string, required — Price rate in dollars per node-hour.
    - `node_count` integer, required — Total nodes resting at this rate.
  - `asks` SfcApiPriceLevel[], required — Asks sorted ascending by rate (best ask first).
    - `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)
