Messages
{
"id": 42,
"jsonrpc": "2.0",
"method": "public/subscribe",
"params": {
"channels": [
"trades.BTC-PERPETUAL.100ms"
]
}
}{
"data": [
{
"amount": 10,
"direction": "sell",
"index_price": 8955.88,
"instrument_name": "BTC-PERPETUAL",
"mark_price": 8948.9,
"price": 8950,
"tick_direction": 2,
"timestamp": 1590484512188,
"trade_id": "48079269",
"trade_seq": 30289442
}
]
}Trades
trades.(instrument_name).(interval)
Trade notifications for a specific instrument.
Use this channel to receive executed trades as they happen for the given instrument. The interval controls how frequently trade events are aggregated.
WSS
trades.(instrument_name).(interval)
Messages
{
"id": 42,
"jsonrpc": "2.0",
"method": "public/subscribe",
"params": {
"channels": [
"trades.BTC-PERPETUAL.100ms"
]
}
}{
"data": [
{
"amount": 10,
"direction": "sell",
"index_price": 8955.88,
"instrument_name": "BTC-PERPETUAL",
"mark_price": 8948.9,
"price": 8950,
"tick_direction": 2,
"timestamp": 1590484512188,
"trade_id": "48079269",
"trade_seq": 30289442
}
]
}instrument_name
type:string
required
The name of the instrument
interval
type:enum
required
Frequency of notifications. Events will be aggregated over this interval. The value raw means no aggregation will be applied (Please note that raw interval is only available to authorized users)
Allowed values: raw, 100ms, agg2
Available options:
raw, 100ms, agg2Subscription Request
type:object
Client sends subscription request to subscribe to notification channel. Please refer to Notification page for more information.
Subscription Notification Data
type:object
Server sends subscription notification data
Was this page helpful?
⌘I