# Trades Subscription

`WS` `push · cmd 104`

> **Quote Permission Required · Free**
> US stocks: US LV1 included free by default (last ~1,000 ticks across pre-market, regular, after-hours, and overnight sessions).
> HK stocks: LV1 included by default (last ~1,000 ticks).
> US options: no permission by default — purchase "OPRA US Options Quotes (OpenAPI)".
> _OpenAPI quote perms are separate from App/Web perms_

Real-time trades data push of the subscribed security.

```protobuf
message PushTrade {
  string symbol = 1;
  int64 sequence = 2;
  repeated Trade trade = 3;
}
```

## Push Fields

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `symbol` | string | No | Security code, for example: AAPL.US |
| `sequence` | int64 | No | Sequence number |
| `trades` | object[] | No | Trades data |
| `└ price` | string | No | Price |
| `└ volume` | int64 | No | Volume |
| `└ timestamp` | int64 | No | Time of trading |
| `└ trade_type` | string | No | Trade type |
| `└ direction` | int32 | No | Trade direction: 0 neutral, 1 down, 2 up |
| `└ trade_session` | int32 | No | Trade session, see TradeSession |

## Response JSON Example

```json
{
  "symbol": "700.HK",
  "sequence": 160808750000000,
  "trade": [
    {
      "price": "158.760",
      "volume": 1,
      "timestamp": 1651103979,
      "trade_type": "I",
      "direction": 0,
      "trade_session": 2
    }
  ]
}
```
