Get funding rate
Perps Data
Get Funding Rate
Fetches the latest CeFi funding rate for a given symbol on a specified exchange. This can be queried via REST or WebSocket.
GET
Get funding rate
Documentation Index
Fetch the complete documentation index at: https://docs.mobula.io/llms.txt
Use this file to discover all available pages before exploring further.
Query Details
Fetches the latest CeFi funding rate for a given symbol.- If no exchange is provided, the endpoint returns the rate from all supported CeFi exchanges by default (
binance,bybit,hyperliquid,deribit,okx,gate,lighter). - You can specify one or more exchanges by separating them with commas.
Note on Gate.io:
Usesusdtas the settle currency. Contracts are in formatSYMBOL_USDT(e.g.,BTC_USDT).
Note on Lighter:
Funding rate sign convention - positive rate means longs pay shorts, negative rate means shorts pay longs. Epoch duration is 1 hour.
Note on Hyperliquid (DEX - HIP3):
Funding rates from Hyperliquid DEX are available exclusively for HIP3 instruments.
- Symbol prefix: You can prefix the symbol with
dex:(e.g.,dex:BTC) or use the protocol query parameter.- Protocol parameter: Use
protocolwith one ofxyz,flx,vntl,hyna,km,cashto request funding for that protocol (e.g.?symbol=BTC&protocol=xyz→xyz:BTC). If omitted, standard behaviour applies (no prefix unless symbol contains:or is a stock-like symbol likeXYZ100which defaults toxyz).- For custom HIP3 perpetuals such as
XYZ100, you can usesymbol=dex:XYZ100orsymbol=XYZ100&protocol=xyz.
This keeps the existingdex:and stock-like prefix behaviour;protocolis an alternative way to set the prefix for Hyperliquid only.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| symbol | string | Yes | The trading pair symbol (e.g., BTC) |
| quote | string | No | Optional quote currency (e.g., USDT) |
| exchange | string | No | Optional CeFi exchanges, comma-separated (binance,bybit,deribit,okx,hyperliquid,gate,lighter) |
| protocol | string | No | Optional. Hyperliquid only. One of xyz, flx, vntl, hyna, km, cash. When set, used as symbol prefix (e.g. protocol=xyz → xyz:BTC). Default is normal (no protocol prefix). |
Step-by-Step Tutorial and Video Walkthrough
- Check out the guide: Here
Usage Examples
-
REST
- Query by
symbolwith defaultexchange(all supported):
symbol with specific exchange:
- Query by
symbolwith mulitpleexchange:
- Query by
symbolwithquoteand multipleexchange:
- Query Hyperliquid with
protocol(e.g. xyz:BTC):
-
WebSocket Access
View more details →
- Endpoint:
wss://api.mobula.io - Payload example:
- With Hyperliquid protocol (e.g. cash:HOOD): add
"protocol": "cash"in the payload when usingexchange: "hyperliquid". Supported:xyz,flx,vntl,hyna,km,cash.
Query Parameters
Available options:
xyz, flx, vntl, hyna, km, cash