Fetches the latest CeFi funding rate for a given symbol on a specified exchange. This can be queried via REST or WebSocket.
binance, bybit, hyperliquid, deribit, okx, gate, lighter).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.
| 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). |
symbol with default exchange (all supported):symbol with specific exchange:
symbol with mulitple exchange:symbol with quote and multiple exchange:protocol (e.g. xyz:BTC):wss://api.mobula.io"protocol": "cash" in the payload when using exchange: "hyperliquid". Supported: xyz, flx, vntl, hyna, km, cash.xyz, flx, vntl, hyna, km, cash