> ## Documentation Index
> Fetch the complete documentation index at: https://developer.wooxpro.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 获取订单簿快照

`获取交易对的订单簿快照。`

#### 请求URL

`GET https://api.woox.io/v3/public/orderbook`

#### 请求限制

每 1 秒最多 10 次请求

#### 请求参数

> 请求

```shell theme={null}
curl "https://api.woox.io/v3/public/orderbook?symbol=PERP_BTC_USDT&maxLevel=2"
```

| 参数 | 类型 | 是否必填 | 描述 |
| :- | :- | :- | :- |
| symbol | String | 是 | 交易对，如 `PERP_BTC_USDT` |
| maxLevel | Integer | 否 | 买卖两侧最多返回的档位数，默认 `100` |
| rpi | Boolean | 否 | `true` / `false`，默认 `false`。为 `true` 时快照同时包含非 RPI 和 RPI 订单 |

#### 响应详情

> 响应

```json theme={null}
{
  "success": true,
  "timestamp": 1794963200446,
  "data": {
    "asks": [
      { "price": "64777", "quantity": "0.0005" },
      { "price": "64826", "quantity": "0.0005" }
    ],
    "bids": [
      { "price": "64676", "quantity": "0.0005" },
      { "price": "64626", "quantity": "0.0005" }
    ]
  }
}
```

| 字段 | 类型 | 描述 |
| :- | :- | :- |
| asks | List | 卖盘档位，每项包含 `price` 和 `quantity` |
| bids | List | 买盘档位，每项包含 `price` 和 `quantity` |

`asks` `bids` 明细字段说明:

| 字段 | 类型 | 描述 |
| :- | :- | :- |
| price | String | 价格 |
| quantity | String | 数量 |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.