---
updatedAt: 2026-03-13T15:32:38.000Z
agentTools:
  siteIndex: https://docs.bitso.com/llms.txt
  projectIndex: https://docs.bitso.com/bitso-api/llms.txt
---

# Trades Channel

This article explains the subscription and server messages produced in the Trades channel.

## Subscription Messages

Subscription messages have the following formats:

```json Client Subscription Message
{
   "action": "subscribe",
   "book": "btc_mxn",
   "type": "trades"
}
```
```json Server Subscription Response Message
{
   "action": "subscribe",
   "response": "ok",
   "time": 1455831538845,
   "type": "trades"
}
```

## Server JSON Messages

The server's returned payload contains an array with one or more trades of the following form:

<Table align={["left","left","left","left"]}>
  <thead>
    <tr>
      <th>
        Field Name
      </th>

      <th>
        Description
      </th>

      <th>
        Type
      </th>

      <th>
        Units
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        **`a`**
      </td>

      <td>
        The amount
      </td>

      <td>
        String
      </td>

      <td>
        Major
      </td>
    </tr>

    <tr>
      <td>
        **`i`**
      </td>

      <td>
        A number that uniquely identifies the transaction.
      </td>

      <td>
        Number
      </td>

      <td>
        *
      </td>
    </tr>

    <tr>
      <td>
        **`mo`**
      </td>

      <td>
        Maker Order ID
      </td>

      <td>
        String
      </td>

      <td>
        *
      </td>
    </tr>

    <tr>
      <td>
        **`r`**
      </td>

      <td>
        The rate
      </td>

      <td>
        String
      </td>

      <td>
        Minor
      </td>
    </tr>

    <tr>
      <td>
        **`t`**
      </td>

      <td>
        Taker side. Possible values:  

        * 0 indicates buy
        * 1 indicates sell
      </td>

      <td>
        Number
      </td>

      <td>
        *
      </td>
    </tr>

    <tr>
      <td>
        **`to`**
      </td>

      <td>
        Taker Order ID
      </td>

      <td>
        String
      </td>

      <td>
        *
      </td>
    </tr>

    <tr>
      <td>
        **`v`**
      </td>

      <td>
        The value
      </td>

      <td>
        String
      </td>

      <td>
        Minor
      </td>
    </tr>

    <tr>
      <td>
        **`x`**
      </td>

      <td>
        Creation timestamp 
      </td>

      <td>
        Number
      </td>

      <td>
        Milliseconds
      </td>
    </tr>
  </tbody>
</Table>

## Example of Server Messages

Messages on the Trades channel look like this:

```json Server Payload
{
  "type": "trades",
  "book": "btc_mxn",
  "payload": [
    {
      "i": 77777,
      "a": "0.0035",
      "r": "7190",
      "v": "25.16",
      "mo": "laasdqw1ywYgfYI2",
      "to": "asADW123wedwqeYk",
      "t": 0,
      "x": 1675555546102
    }
  ],
  "sent": 1675555546102 
}
```

# Sibling pages

* [General](https://docs.bitso.com/bitso-api/docs/general.md)
* [Diff-Orders Channel](https://docs.bitso.com/bitso-api/docs/diff-orders-channel.md)
* [Orders Channel](https://docs.bitso.com/bitso-api/docs/orders-channel.md)
* [Processed-Orders Channel](https://docs.bitso.com/bitso-api/docs/processed-orders-channel.md)