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
Field | Description |
---|---|
d | Date - timestamp in nanoseconds |
p | Price |
q | Quantity |
i | ID |
Unsubscribe
Request
{
"t": "BTC/CHF@trades",
"e": "tdx:unsubscribe"
}
Replies
{
"t": "BTC/CHF@trades",
"e": "tdx:unsubscription_succeeded"
}
Updated 26 days ago