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
| Field (JSON key) | Description | 
|---|---|
| f | FundingRate — Funding rate. Example: 0.01 | 
| i | IntervalHours — Interval in hours. Example: 1 | 
| e | Exchange — Exchange name. Example: binance | 
| id | TokenId — Token unique ID. Example: bitcoin | 
| s | Symbol — Symbol (base-quote). Example: BTC-USDT | 
| b | Base — Base token. Example: BTC | 
| q | Quote — Quote token. Example: USDT | 
| d | Timestamp — Timestamp in UTC milliseconds. Example: 1629780000000 | 
| p | ProcessedAt — Processed-at time in UTC milliseconds. Example: 1629780060000 | 
- schema
- example
{
"f": float,
"i": int,
"e": string,
"id": string,
"s": string,
"b": string,
"q": string,
"d": int,
"p": int
}
{
"f": 0.01,
"i": 1,
"e": "binance",
"id": "bitcoin",
"s": "BTC-USDT",
"b": "BTC",
"q": "USDT",
"d": 1629780000000,
"p": 1629780060000
}