Skip to main content

Funding Rate

Funding-rate data, exposed via four related endpoints. The /fapi/v1/fundingRate form is a transparent Binance mirror (nginx forwards to fapi.binance.com); the /funding/rates* family is served by the platform's FastAPI gateway and uses a slightly different shape per call.

GET /fapi/v1/fundingRate — historical funding rates (Binance mirror)​

Passthrough of Binance USDⓈ-M Futures /fapi/v1/fundingRate. Authentication: public.

Query parameters​

NameTypeRequiredDefaultNotes
symbolstringNo—If omitted, returns rates across all symbols.
limitintegerNoBinance default 500Maximum 1000 per Binance.
startTimeintegerNo—Unix milliseconds.
endTimeintegerNo—Unix milliseconds.

Response — 200 OK​

Array (Binance shape):

[
{
"symbol": "BTCUSDT",
"fundingTime": 1745928000000,
"fundingRate": "0.00010000",
"markPrice": "67890.12"
}
]

Example​

curl -s "https://api-dev.pipai.org/fapi/v1/fundingRate?symbol=BTCUSDT&limit=10"

GET /funding/rates — current funding rate for all symbols​

Authentication: public. No query parameters.

Response — 200 OK​

Returns whatever the platform's Binance client returns for get_funding_rates(). Typically an array of {symbol, fundingRate, ...} rows for the latest interval.

Example​

curl -s "https://api-dev.pipai.org/funding/rates"

GET /funding/rates/{symbol} — current funding rate for one symbol​

Authentication: public.

Path parameters​

NameTypeRequiredNotes
symbolstringYesUppercase futures symbol.

Response — 200 OK​

Single object for that symbol.

Example​

curl -s "https://api-dev.pipai.org/funding/rates/BTCUSDT"

GET /funding/rates/{symbol}/history — historical funding rates for one symbol​

Authentication: public.

Path parameters​

NameTypeRequiredNotes
symbolstringYesUppercase futures symbol.

Query parameters​

NameTypeRequiredDefaultNotes
start_timeintegerNo—snake_case. Unix milliseconds.
end_timeintegerNo—snake_case. Unix milliseconds.
limitintegerNo100

Response — 200 OK​

Array of historical funding-rate rows for that symbol.

Errors (all four endpoints)​

HTTPCause
502Upstream Binance request failed.

Example​

curl -s "https://api-dev.pipai.org/funding/rates/BTCUSDT/history?limit=50"