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
methodspecifies the type of request.paramslist represents of symbols on exchanges that user wants to subscribe. The format of parameter is{base}-{quote}@{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
iduniquely identifies the subscription request.
- schema
- example
{
"method": "SUBSCRIBE",
"params": [
string
],
"id": int32
}
{
"method": "SUBSCRIBE",
"params": [
"ETH-USDT@binance"
],
"id": 1
}
Response
- Schema
- Example
Schema
fnumber
Funding rate.
iinteger
Interval in hours.
estring
Exchange name.
idstring
Token unique ID.
sstring
Symbol (base-quote).
bstring
Base token.
qstring
Quote token.
dinteger
Timestamp in UTC milliseconds.
{
"f": 0.01,
"i": 1,
"e": "binance",
"id": "bitcoin",
"s": "BTC-USDT",
"b": "BTC",
"q": "USDT",
"d": 1629780000000
}