> ## 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.

# How to Fetch CeFi Funding Rates Across Binance, Bybit, OKX, Deribit, Bitget, MEXC, Kraken, Coinbase & More

> Use the CeFi Funding Rate endpoint to fetch the latest funding rate for a given symbol across supported centralized exchanges.

The [**CeFi Funding Rate**](https://docs.mobula.io/rest-api-reference/endpoint/market-cefi-funding-rate) endpoint lets you fetch the latest funding rate for a given symbol across supported exchanges.

By default, it returns results from multiple CeFi venues so you can compare rates quickly.

You can also specify one or more exchanges to narrow the response.

***

<div style={{ position: 'relative', paddingBottom: '56.25%', height: 0, overflow: 'hidden' }}>
  <iframe src="https://www.youtube.com/embed/N5LNIadPqcg" title="YouTube video player" style={{ position: 'absolute', top: 0, left: 0, width: '100%', height: '100%', border: 0 }} allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowFullScreen />
</div>

***

## What this endpoint does

With this API, you can:

* Fetch the latest CeFi funding rate for a given symbol
* Return rates from all supported exchanges by default if `exchange` is not provided
* Filter to one or multiple exchanges using a comma-separated list
* Use an optional quote currency to refine the contract symbol format on some venues
* Query via REST, and also use the WebSocket version when needed

***

## What you’ll need

* Basic knowledge of REST APIs
* A trading symbol (example: `ETH`, `BTC`)
* A Mobula API key

Note: All Mobula endpoints require an API key.\
Get a free API key: [Here](https://admin.mobula.io/)

***

## When to use CeFi Funding Rate

Use this endpoint when you want to:

* Compare funding rates across multiple centralized exchanges
* Monitor long vs short funding pressure for a symbol
* Track venue differences for arbitrage and risk monitoring
* Build funding rate widgets for dashboards
* Pull rates from a specific venue like `deribit` or `okx` when needed

If you want spot market pricing and change metrics for a token, use: [**Get Market Details**](https://docs.mobula.io/rest-api-reference/endpoint/market-details)

If you want onchain market trade history (DEX trades), use: [**Market Trades Pair**](https://docs.mobula.io/rest-api-reference/endpoint/market-trades-pair)

If you want a specific onchain trade by transaction hash, use: [**Token Trade by Transaction**](https://docs.mobula.io/rest-api-reference/endpoint/token-trade)

***

## Walkthrough to Get CeFi Funding Rate

### 1. Prepare your query

The CeFi Funding Rate endpoint requires one parameter:

| Parameter | Description                                |
| --------- | ------------------------------------------ |
| `symbol`  | The trading symbol (example: `BTC`, `ETH`) |

Optional parameters you can use:

* `quote`: Optional quote currency (example: `USDT`, `USDC`)
* `exchange`: Optional exchanges, comma-separated (example: `deribit,binance,okx,lighter`)

Tip: If you do not provide `exchange`, the endpoint returns rates across all supported exchanges by default.

### 2. Find a symbol to test

To test quickly, you can use a major symbol:

* Use `BTC` or `ETH` as your `symbol`

If you want a venue-specific contract format:

* Add `quote=USDT` (common for many perp venues)
* Add `exchange=binance` (or any supported venue) to narrow results

This symbol is used as the `symbol` parameter.

### 3. Fill the API form

Enter the symbol, set `exchange` and `quote` if needed, then click **Send**.

***

## Reviewing the response

The response returns a `queryDetails` object plus one object per exchange:

* `queryDetails`: Echoes what you queried, like symbol, quote, and exchange selection
* `binanceFundingRate` / `bybitFundingRate` / `okxFundingRate` / `deribitFundingRate`: Exchange-specific funding rate objects when available
* `hyperliquidFundingRate` / `gateFundingRate` / `lighterFundingRate` / `kucoinFundingRate`: Additional venue objects when available depending on your query
* `bitgetFundingRate` / `mexcFundingRate` / `krakenFundingRate` / `coinbaseFundingRate`: Additional venues when available

Every venue object shares the same shape:

| Field             | Type             | Description                                                                                   |
| ----------------- | ---------------- | --------------------------------------------------------------------------------------------- |
| `symbol`          | string           | The venue's own contract symbol (e.g. `ETHUSDT`, `ETHPERP`, `PF_BTCUSD`, `BTC-PERP`)          |
| `fundingTime`     | number           | Settlement timestamp of the last closed funding epoch, **in milliseconds** (UNIX epoch ms)    |
| `fundingRate`     | number           | Unitless funding rate for that epoch (e.g. `0.0001` = `0.01%`); positive = longs pay shorts   |
| `epochDurationMs` | number           | Funding interval **in milliseconds** (e.g. `28800000` for 8h, `3600000` for 1h)               |
| `marketPrice`     | string \| number | Mark/index price, on venues that provide it (`binance`, `deribit`, `coinbase`, `hyperliquid`) |

`fundingTime` and `epochDurationMs` are normalized to **milliseconds for every venue**, so you can treat them uniformly (e.g. `new Date(fundingTime)`) regardless of the source exchange.

Important interpretation notes:

* If you do not provide `exchange`, the endpoint returns rates across all supported exchanges by default.
* For Gate.io, contracts use a USDT settle format like `SYMBOL_USDT`.
* For Lighter, a positive rate means longs pay shorts, and a negative rate means shorts pay longs.
* For Hyperliquid DEX (HIP3) funding, you must prefix the symbol with `dex:` (example: `dex:BTC`).

### Quote handling per venue

The optional `quote` parameter only affects venues that list the same base under multiple quote currencies:

* **Bitget** — `quote=USDT` → `usdt-futures` (ticker `ETHUSDT`), `quote=USDC` → `usdc-futures` (ticker `ETHPERP`), `quote=USD` → coin-margined `coin-futures`. Defaults to `USDT`.
* **MEXC** — `quote=USDT` → contract `ETH_USDT`, `quote=USDC` → `ETH_USDC`. Defaults to `USDT`.
* **Coinbase** — `quote` is ignored. Coinbase International perpetuals are all USDC-quoted and listed as `SYM-PERP` (e.g. `BTC-PERP`).
* **Kraken** — `quote` is ignored. Kraken multi-collateral perpetuals are all USD-quoted and listed as `PF_SYMUSD` (e.g. `PF_BTCUSD`); `BTC` is internally mapped to Kraken's `XBT`.

For all other venues (`binance`, `bybit`, `okx`, `deribit`, `gate`, `kucoin`), `quote` defaults to `USDT` where applicable.

***

## Try It Live with Mobula CeFi Funding Rate Demo (UI)

You can also test this endpoint using our demo UI:

[Demo UI Homepage](https://mobula-demo-endpoint-production.up.railway.app/)

[CeFi Funding Rate Demo UI](https://mobula-demo-endpoint-production.up.railway.app/cefi-funding-rate)

[Docs](https://docs.mobula.io/rest-api-reference/endpoint/market-cefi-funding-rate)

***

## Summary

The [**CeFi Funding Rate**](https://docs.mobula.io/rest-api-reference/endpoint/market-cefi-funding-rate) endpoint helps you:

* Fetch the latest CeFi funding rate for a symbol like `BTC` or `ETH`
* Compare rates across multiple exchanges by default or specify exchanges to filter
* Optionally use `quote` to refine contract formats for certain venues
* Visualize results instantly in the CeFi Funding Rate Demo UI

***

## Try Mobula for Free

Try our free API today and start building in minutes.\
Get your free API key: [Here](https://admin.mobula.io/)
