Skip to main content

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 symbol@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

  • 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.
{
"e": string,
"d": int,
"s": string,
"b": string,
"q": string,
"r": float,
}