Trade

Channel Update Frequency: real-time, with every order matched event

This trade channel sends public trade information whenever an order is matched on the order book.

Curl

Request format

{
  "op": "subscribe",
  "tag": 1,
  "args": ["trade:BTC-USD-SWAP-LIN"]
}

Success response format

{
  "event": "subscribe", 
  "channel": ["trade:BTC-USD-SWAP-LIN"], 
  "success": True, 
  "tag": "1", 
  "timestamp": "1594299886880"
}

Trade channel format

{
  "table": "trade",
  "data": [ {
              "side": "buy",
              "tradeId": "2778148208082945",
              "price": "5556.91",
              "quantity": "5",
              "matchType": "MAKER",
              "marketCode": "BTC-USD-SWAP-LIN",
              "timestamp": "1594299886890"
            } ]
}

Request Parameters

Parameters
Type
Required
Description

op

STRING

Yes

subscribe

tag

INTEGER or STRING

No

If given it will be echoed in the reply and the max size of tag is 32

args

LIST

Yes

list of individual markets trade:<marketCode>

Channel Update Fields

Fields
Type
Description

table

STRING

trade

data

LIST of dictionary

tradeId

STRING

Transaction Id

price

STRING

Matched price

quantity

STRING

Matched quantity

matchType

STRING

TAKER or MAKER, orders that match via the implied mechanism show as MAKERs in their respective markets

side

STRING

Matched side

timestamp

STRING

Matched timestamp

marketCode

STRING

Market code

Last updated