Public trades

Subscribe

Request

{
  "t": "BTC/CHF@trades",
  "e": "tdx:subscribe"
}

Replies

Receive confirmation and a stream of trade updates:

{
  "t": "BTC/CHF@trades",
  "e": "tdx:subscription_received"
}
{
  "t": "BTC/CHF@trades",
  "d": {
    "d": 1640760718833000000,
    "p": "10000",
    "q": "2",
    "i": "698d5f52-f72d-4220-ac19-4cf6de2ee390"
  },
  "e": "trade"
}
{
  "t": "BTC/CHF@trades",
  "d": {
    "d": 1640760847376000000,
    "p": "10000",
    "q": "1",
    "i": "698d5f52-f72d-4220-ac19-4cf6de2ee390"
  },
  "e": "trade"
}

Trade data

FieldDescription
dDate - timestamp in nanoseconds
pPrice
qQuantity
iID

Unsubscribe

Request

{
  "t": "BTC/CHF@trades",
  "e": "tdx:unsubscribe"
}

Replies

{
  "t": "BTC/CHF@trades",
  "e": "tdx:unsubscription_succeeded"
}



  © 2018-2023 Taurus SA. All rights reserved.