Skip to main content
Get trade data

Pushing Rules

  1. No user login required
  2. After subscribing, then the changes will be pushed

Request

Request
{
  "action":"subscribe",
  "args":["futures/trade:BTCUSDT"]
}
Message Format: {"action":"subscribe","args":["<channel:symbol>","<channel:symbol>"]}
  • actions: subscribe
  • channel: Channel name futures/trade, fixed value
  • symbol: Trading pair, such as BTCUSDT

Response

Response
{
  "group":"futures/trade:BTCUSDT",
  "data":[{
    "trade_id":1409495322,
    "symbol":"BTCUSDT",
    "deal_price":"117387.58",
    "deal_vol":"1445",
    "m":true,
    "created_at":"2023-02-24T07:54:11.124940968Z"
  }]
}

Return data description:
FieldTypeDescription
symbolStringsymbol
deal_priceStringdeal price
trade_idLongtrade id
deal_volStringdeal vol
wayIntTrading type
-1=buy_open_long sell_open_short
-2=buy_open_long sell_close_long
-3=buy_close_short sell_open_short
-4=buy_close_short sell_close_long
-5=sell_open_short buy_open_long
-6=sell_open_short buy_close_short
-7=sell_close_long buy_open_long
-8=sell_close_long buy_close_short
mBool-true=buyer is maker
-false=seller is maker
created_atStringtransaction create time(ms)