Skip to content
Alchemy Logo

trades stream

This API is in private preview. Target September 2026; timing is subject to change.

Subscribe to real-time trades for one market.

{
  "method": "subscribe",
  "subscription": {
    "type": "trades",
    "coin": "BTC"
  }
}

{
  "channel": "trades",
  "data": [
    {
      "coin": "BTC",
      "side": "B",
      "px": "72581.0",
      "sz": "0.00017",
      "time": 1787259217020,
      "hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
      "tid": 877707108085800,
      "users": [
        "0x9b54264d7502f80163ea949038aad771eae67e38",
        "0x706bb519b05b7dc01d048af9a5e29d1ef5d6d9e3"
      ]
    }
  ]
}

FieldTypeDescription
dataarrayTrade records.
data[]objectTrade record.
data[].coinstringMarket symbol for the trade.
data[].sidestringTaker side: A is ask/sell; B is bid/buy.
data[].pxstringTrade price.
data[].szstringTrade size.
data[].timeintegerTrade time in milliseconds.
data[].hashstringLayer-1 transaction hash for the trade.
data[].tidintegerTrade identifier.
data[].usersarrayBuyer and seller addresses, in that order.

The taker is users[0] when side is B, and users[1] when side is A.

{
  "method": "unsubscribe",
  "subscription": {
    "type": "trades",
    "coin": "BTC"
  }
}
Was this page helpful?