Trades Channel

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

Subscription Messages

Subscription messages have the following formats:

   action: 'subscribe',
   book: 'btc_mxn',
   type: 'trades'
   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:

Field NameDescriptionTypeUnits
aThe amountStringMajor
iA number that uniquely identifies the transaction.Number-
moMaker Order IDString-
rThe rateStringMinor
tMaker side. Possible values:
- 0 indicates buy
- 1 indicates sell
toTaker Order IDString-
vThe valueStringMinor
xCreation timestamp NumberMilliseconds

Example of Server Messages

Messages on the Trades channel look like this:

  "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