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

# 概述

> [!NOTE]
>
> 本分组下的接口为**新增**接口，由 WOO X IO 公共 API 提供，基础地址、返回结构、字段命名和交易对格式均与现有公共接口不同。

### 基础地址

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

公共接口无需鉴权。

### 交易对格式

永续合约格式为 `PERP_<BASE>_USDT`，如 `PERP_BTC_USDT`（原 `BTCUSDT`）。仅支持 WOO X 已上线的合约。

### 返回结构

> 成功

```json theme={null}
{
  "success": true,
  "timestamp": 1794963201555,
  "data": {
    "rows": []
  }
}
```

| 字段 | 类型 | 描述 |
| :- | :- | :- |
| success | Boolean | 请求成功时为 `true` |
| timestamp | Long | 服务器时间戳（毫秒） |
| data | Object | 返回数据，大多数接口的列表放在 `data.rows` |

> 失败

```json theme={null}
{
  "success": false,
  "message": "invalid symbol PERP_1000PEPE_USDT"
}
```

请求失败时 `success` 为 `false`，`message` 为错误描述，部分错误还会带有 `code` 和 `errorCode`。错误码列表请参考 [WOO X IO 错误码](https://developer.woox.io/api-reference/error_code) 页面。

### 约定

* 字段名使用 camelCase，如 `lastFundingRate`
* 价格和数量以字符串返回
* 所有时间戳均为毫秒

### 请求限制

每个 IP 每 1 秒最多 10 次请求。

### 接口列表

| 接口 | 路径 |
| :- | :- |
| 获取交易规则 | `GET /v3/public/instruments` |
| 获取合约信息 | `GET /v3/public/futures` |
| 获取订单簿快照 | `GET /v3/public/orderbook` |
| 获取最新成交 | `GET /v3/public/marketTrades` |
| 获取 K 线 | `GET /v3/public/kline` |
| 获取历史 K 线 | `GET /v3/public/klineHistory` |
| 获取预测资金费率 | `GET /v3/public/fundingRate` |
| 获取历史资金费率 | `GET /v3/public/fundingRateHistory` |


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