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

# Overview

> [!NOTE]
>
> The channels in this group are **new**. They are served by the WOO X IO public WebSocket and use a different server URL, message format and symbol naming from the existing WebSocket channels.

### Server URL

Public Channel: `wss://wss.woox.io/v3/public`

### Symbol Format

Perpetual contracts use `PERP_<BASE>_USDT`, such as `PERP_BTC_USDT` (previously `BTCUSDT`). Only the contracts listed on WOO X are supported.

### Subscribe

Send a `SUBSCRIBE` command. Each request supports at most 20 topics.

> Request

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

> Response

```json theme={null}
{
  "id": "1",
  "cmd": "SUBSCRIBE",
  "success": true,
  "time": 1618820361552,
  "data": ["trade@PERP_BTC_USDT"]
}
```

* `id`: Request id, echoed back in the response
* `cmd`: `SUBSCRIBE`
* `time`: Server timestamp in the response (in millisecond)
* `params`: Array of topics. A topic is composed of `<channel>@<symbol>` and, for some channels, an extra dimension such as `@<interval>` or `@<depth>`. Refer to each channel for details

### Unsubscribe

> Request

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

> Response

```json theme={null}
{
  "id": "1",
  "cmd": "UN_SUBSCRIBE",
  "success": true,
  "time": 1618820361552,
  "data": ["trade@PERP_BTC_USDT"]
}
```

### Push Format

Data pushed by the server uses abbreviated keys:

```json theme={null}
{
  "topic": "trade@PERP_BTC_USDT",
  "ts": 1618820361552,
  "data": {}
}
```

| Field | Type | Description |
| :- | :- | :- |
| topic | String | The subscribed topic |
| ts | Long | Push timestamp (in millisecond) |
| data | Object | Channel data, see each channel description |

### Ping-Pong

The server supports Ping-Pong to verify connectivity and measure round-trip latency. It is not required to keep the connection alive.

> Request

```json theme={null}
{ "cmd": "PING", "ts": 1750641291182 }
```

> Response

```json theme={null}
{ "cmd": "PONG", "success": true, "time": 1750641291322 }
```

### Limits

* A connection is valid for at most 24 hours and is disconnected automatically afterwards. Please set up a reconnection mechanism
* A single connection supports at most 100 live topics. Subscriptions beyond the limit are rejected
* A single request supports at most 20 topics
* It is not recommended to exceed 200 TPS on a single connection
* Each IP can establish at most 100 connections every 5 minutes and keep at most 100 active connections. Excessive retries after reaching the limits will result in an IP ban

### Channels

| Channel | Topic | Push Interval |
| :- | :- | :- |
| Orderbook (incremental) | `orderbookupdate@<symbol>@<depth>` | 50ms / 100ms / 200ms |
| Orderbook update (RPI) | `orderbookupdaterpi@<symbol>@<depth>` | 50ms / 100ms / 200ms |
| Orderbook (10 levels) | `orderbook10@<symbol>` | 200ms |
| Best Bid Offer | `bbo@<symbol>` | 10ms |
| Best Bid Offer (RPI) | `bborpi@<symbol>` | 10ms |
| Trade | `trade@<symbol>` | Real-time |
| Ticker | `ticker@<symbol>` | 1s |
| Kline | `kline@<symbol>@<interval>` | - |
| Estimated Funding Rate | `estfundingrate@<symbol>` | 1min |
| Mark Price | `markprice@<symbol>` | 1s |


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