> ## 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.

# 【公共】最优买卖价频道

推送交易对的最优买价、卖价及对应数量。

### 推送规则

1. 无需用户登录
2. 每 10ms 推送一次

### 请求

> 请求

```json theme={null}
{
  "id": "1",
  "cmd": "SUBSCRIBE",
  "params": ["bbo@PERP_BTC_USDT"]
}
```

Topic 格式:

`bbo@<symbol>`

* symbol: 交易对，如 `PERP_BTC_USDT`

### 返回

> 返回

```json theme={null}
{
  "topic": "bbo@PERP_BTC_USDT",
  "ts": 1618820361552,
  "data": {
    "s": "PERP_BTC_USDT",
    "ap": "42598.20",
    "aq": "1.05",
    "bp": "42598.10",
    "bq": "2.01",
    "ts": 1618820361540
  }
}
```

返回数据说明:

| 字段 | 类型 | 描述 |
| :- | :- | :- |
| s | String | 交易对 |
| ap | String | 最优卖价 |
| aq | String | 最优卖价数量 |
| bp | String | 最优买价 |
| bq | String | 最优买价数量 |
| ts | Long | 撮合引擎生成时间（毫秒） |

***

## 最优买卖价（含 RPI）

推送同时包含非 RPI 和 RPI 订单的最优买卖价。

### 请求

> 请求

```json theme={null}
{
  "id": "1",
  "cmd": "SUBSCRIBE",
  "params": ["bborpi@PERP_BTC_USDT"]
}
```

Topic 格式:

`bborpi@<symbol>`

* symbol: 交易对，如 `PERP_BTC_USDT`，每 10ms 推送一次

### 返回

返回格式与 `bbo` 相同，`topic` 为 `bborpi@PERP_BTC_USDT`。


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