Messages
{
"jsonrpc": "2.0",
"method": "public/subscribe",
"id": 42,
"params": {
"channels": [
"perpetual.BTC-PERPETUAL.100ms"
]
}
}{
"data": {
"interest": 0.004999511380756577,
"timestamp": 1571386349530,
"index_price": 7872.88
}
}Market Data
perpetual.(instrument_name).(interval)
Provide current interest rate - but only for perpetual instruments. Other types won’t generate any notification.
Messages
{
"jsonrpc": "2.0",
"method": "public/subscribe",
"id": 42,
"params": {
"channels": [
"perpetual.BTC-PERPETUAL.100ms"
]
}
}{
"data": {
"interest": 0.004999511380756577,
"timestamp": 1571386349530,
"index_price": 7872.88
}
}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
data
type:object
required
interest
type:number
required
Current interest
timestamp
type:integer
required
The timestamp (milliseconds since the Unix epoch)
index_price
type:number
required
Current index price
Was this page helpful?
⌘I