본문으로 건너뛰기

Funding Rate

Funding rate stream.

Connect

websocat 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 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 id uniquely identifies the subscription request.
{
"method": "SUBSCRIBE",
"params": [
string
],
"id": int32
}

Response

Field (JSON key)Description
fFundingRate — Funding rate.
Example: 0.01
iIntervalHours — Interval in hours.
Example: 1
eExchange — Exchange name.
Example: binance
idTokenId — Token unique ID.
Example: bitcoin
sSymbol — Symbol (base-quote).
Example: BTC-USDT
bBase — Base token.
Example: BTC
qQuote — Quote token.
Example: USDT
dTimestamp — Timestamp in UTC milliseconds.
Example: 1629780000000
pProcessedAt — Processed-at time in UTC milliseconds.
Example: 1629780060000
{
"f": float,
"i": int,
"e": string,
"id": string,
"s": string,
"b": string,
"q": string,
"d": int,
"p": int
}