> For the complete documentation index, see [llms.txt](https://docs.bbx.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bbx.com/zhs/bbx-dex-public-api/cuo-wu-chu-li.md).

# 错误处理

无效参数或不可用资源可能会返回业务错误对象。

HTTP 状态码可能仍为 `200`，具体业务错误通过 `rc` 和 `mc` 字段进行标识。

### 错误响应结构

```json
{
  "rc": 1,
  "mc": "invalid_symbol",
  "ma": [],
  "result": null
}
```

### 错误代码

| 错误代码             | 说明                          |
| ---------------- | --------------------------- |
| `invalid_symbol` | 市场不存在、已下架或未公开提供             |
| `invalid_depth`  | `depth` 参数值不受支持             |
| `invalid_level`  | `level` 参数值不是 `1`、`2` 或 `3` |

对于返回全部市场列表的端点，如果某个市场的数据暂时不可用，该市场可能会被跳过，其余市场的数据仍会正常返回。
