Funding Rate
Funding rate stream.
Connect
- websocat
- wscat
websocat wss://api.datamaxiplus.com/ws/v1/funding-rate -H 'X-DTMX-APIKEY: $YOUR_API_KEY'
wscat -c wss://api.datamaxiplus.com/ws/v1/funding-rate -H 'X-DTMX-APIKEY: $YOUR_API_KEY'
Subscribe
method
specifies the type of request.params
list represents of symbols on exchanges that user wants to subscribe. The format of parameter issymbol@exchange
(e.g."ETH-USDT@binance"
). You can request the list of supported exchanges with /api/v1/funding-rate/exchanges symbols with /api/v1/funding-rate/symbols endpoint.- The
id
uniquely identifies the subscription request.
- schema
- example
{
"method": "SUBSCRIBE",
"params": [
string
],
"id": int32
}
{
"method": "SUBSCRIBE",
"params": [
"ETH-USDT@binance"
],
"id": 1
}
Response
e
specifies the exchange name.d
specifies the date and the time in UTC milliseconds.s
specifies the symbol (base-quote).b
specifies the base token.q
specifies the quote token.r
specifies the funding rate.
- schema
- example
{
"e": string,
"d": int,
"s": string,
"b": string,
"q": string,
"r": float,
}
{
"e": "binance",
"d": 1724590730000,
"s": "ETH-USDT",
"b": "ETH",
"q": "USDT",
"r": 0.00005241
}