The trades channel provides real-time updates on trades.
// subscribe request
{
"command": "subscribe",
"identifier": "{\"channel\":\"TradesChannel\",\"market\":\"IOT-BTC\"}"
}
// confirmation
{
"type": "confirm_subscription",
"identifier": "{\"channel\":\"TradesChannel\",\"market\":\"IOT-BTC\"}"
}
// response structure
{
"identifier": "{\"channel\":\"TradesChannel\",\"market\":\"IOT-BTC\"}",
"message": {
"trade": {
"id": "d40d9f77-dbf3-4ffe-ba97-65eeacc8ebc7",
"price": "0.02394",
"size": "0.3",
"market_name": "LTC-BTC",
"side": "buy",
"created_at": "2018-04-24T13:46:05.121966Z"
}
}
}