Skip to main content

Funding Rate History

Not on staging

This path returns HTTP 404 on https://api.ztdxtest.xyz. Current funding is GET /api/v1/funding-rates and GET /api/v1/funding-rates/{symbol} (funding_rate, mark_price, index_price, next_funding_time). GET /fapi/v1/premiumIndex returns lastFundingRate, markPrice, indexPrice, and nextFundingTime.

Description​

Query the funding rate history for a specific trading pair.

HTTP Request​

GET /fapi/v1/fundingRate

Request Parameters​

NameTypeRequiredDescription
symbolSTRINGNOTrading pair
startTimeLONGNOAccepted but currently ignored
endTimeLONGNOAccepted but currently ignored
limitINTNODefault 100; Max 1000

If symbol is omitted, the endpoint returns the current funding rate for every trading pair (one entry per symbol), not a history.

Response Example​

[
{
"symbol": "BTCUSDT",
"fundingRate": "0.00010000", // Funding rate
"fundingTime": 1558108800000, // Funding settlement time
"markPrice": "8000.00000000" // Mark price at settlement
}
]

Code Examples​

cURL​

curl -s "https://api.ztdxtest.xyz/fapi/v1/fundingRate?symbol=BTCUSDT&limit=5"

Python​

import requests

base_url = "https://api.ztdxtest.xyz"
params = {"symbol": "BTCUSDT", "limit": 5}
response = requests.get(f"{base_url}/fapi/v1/fundingRate", params=params)
for rate in response.json():
print(f"{rate['symbol']} rate={rate['fundingRate']} time={rate['fundingTime']}")