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

# 【Public】Trade Channel

Get trade data

### Pushing Rules

1. No user login required
2. After subscribing, then the changes will be pushed

### Request

> Request

```json theme={null}
{
  "action":"subscribe",
  "args":["futures/trade:BTCUSDT"]
}
```

Message Format:

`{"action":"subscribe","args":["<channel:symbol>","<channel:symbol>"]}`

* actions: `subscribe`
* channel: Channel name `futures/trade`, fixed value
* symbol: Trading pair, such as `BTCUSDT`

### Response

> Response

```json theme={null}
{
  "group":"futures/trade:BTCUSDT",
  "data":[{
    "trade_id":1409495322,
    "symbol":"BTCUSDT",
    "deal_price":"117387.58",
    "deal_vol":"1445",
    "m":true,
    "created_at":"2023-02-24T07:54:11.124940968Z"
  }]
}

```

Return data description:

| Field       | Type   | Description                                                                                                                                                                                                                                                                                                                                                                                 |
| :---------- | :----- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| symbol      | String | symbol                                                                                                                                                                                                                                                                                                                                                                                      |
| deal\_price | String | deal price                                                                                                                                                                                                                                                                                                                                                                                  |
| trade\_id   | Long   | trade id                                                                                                                                                                                                                                                                                                                                                                                    |
| deal\_vol   | String | deal vol                                                                                                                                                                                                                                                                                                                                                                                    |
| way         | Int    | Trading type<br />-`1`=buy\_open\_long sell\_open\_short <br />-`2`=buy\_open\_long sell\_close\_long <br />-`3`=buy\_close\_short sell\_open\_short <br />-`4`=buy\_close\_short sell\_close\_long <br />-`5`=sell\_open\_short buy\_open\_long <br />-`6`=sell\_open\_short buy\_close\_short <br />-`7`=sell\_close\_long buy\_open\_long <br />-`8`=sell\_close\_long buy\_close\_short |
| m           | Bool   | -`true`=buyer is maker <br />-`false`=seller is maker                                                                                                                                                                                                                                                                                                                                       |
| created\_at | String | transaction create time(ms)                                                                                                                                                                                                                                                                                                                                                                 |
