> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pacifica.fi/llms.txt
> Use this file to discover all available pages before exploring further.

# Trades

> Streams all trades on the taker side as they occur in a chosen market.

Refer to [Websocket](/api-documentation/api/websocket) for establishing the websocket connection.

### Params

```json theme={null}
{
    "method": "subscribe",
    "params": {
        "source": "trades",
        "symbol": "SOL"
    }
}
```

### Stream

```json theme={null}
{
  "channel": "trades",
  "data": [
    {
      "h": 80062522,
      "s": "BTC",
      "a": "0.00001",
      "p": "89471",
      "d": "close_short",
      "tc": "normal",
      "t": 1765018379085,
      "li": 1559885104,
      "it": 0
    }
  ]
}
```

<table><thead><tr><th width="181.800048828125">Field</th><th width="237.4000244140625">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>'h'</code></td><td>integer</td><td>History ID</td></tr><tr><td><code>'s'</code></td><td>string</td><td>Symbol</td></tr><tr><td><code>'a'</code></td><td>decimal string</td><td>Amount</td></tr><tr><td><code>'p'</code></td><td>decimal string</td><td>Price</td></tr><tr><td><code>'d'</code></td><td>string</td><td><p>Trade side</p><p><code>open\_long</code></p><p><code>open\_short</code></p><p><code>close\_long</code></p><p><code>close\_short</code></p></td></tr><tr><td><code>'tc'</code></td><td>string</td><td><p>Trade cause</p><p><code>normal</code> <code>market\_liquidation</code> <code>backstop\_liquidation</code> <code>settlement</code> <code>insolvency\_liquidation</code> <code>game\_settlement</code> <code>fulfill\_rfq</code></p></td></tr><tr><td><code>'t'</code></td><td>number</td><td>Timestamp in milliseconds</td></tr><tr><td><code>'li'</code></td><td>number</td><td>Exchange-wide nonce. Used to reliably determine exchange event ordering. Sequential and not subject to clock drift.</td></tr><tr><td><code>'it'</code></td><td>integer</td><td>Instrument type</td></tr></tbody></table>
