Sources › Finance › Binance Futures › Basis

Binance Futures Basis API
The gap between a futures contract and its index — the carry a calendar spread
Request
https://api.zapi.ink/v1/finance:binance-futures/basisSend your key in the x-api-key header. The response is JSON in the { project, data, timestamp } envelope, and an identical request is served from cache for 1 minute.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
| pair | string | query | Yes | Underlying pair, not a contract symbol. Accepts BTCUSDT, BTC/USDT or btc_usdt Example: BTCUSDT |
| contractType | enum: PERPETUAL | CURRENT_QUARTER | NEXT_QUARTER | query | No | Which contract to measure against the index. Default PERPETUAL Example: PERPETUAL |
| period | enum: 5m | 15m | 30m | 1h | 2h | 4h | 6h | 12h | 1d | query | No | Bucket size. One of 5m, 15m, 30m, 1h, 2h, 4h, 6h, 12h, 1d — the upstream refuses 8h. Default 1d Example: 1d |
| count | number | query | No | Rows to return, oldest first. Default 30, max 1000 Example: 30 |
| startTime | string | query | No | Window start, inclusive. Only the last 30 days exist. ISO date or epoch milliseconds Example: 2026-08-01 |
| endTime | string | query | No | Window end, inclusive. ISO date or epoch milliseconds Example: 2026-08-20 |
Code examples
curl -X GET "https://api.zapi.ink/v1/finance:binance-futures/basis?pair=BTCUSDT&contractType=PERPETUAL&period=1d&count=30&startTime=2026-08-01&endTime=2026-08-20" \ -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
const res = await fetch("https://api.zapi.ink/v1/finance:binance-futures/basis?pair=BTCUSDT&contractType=PERPETUAL&period=1d&count=30&startTime=2026-08-01&endTime=2026-08-20", { method: "GET", headers: { "x-api-key": "zpi_xxxxxxxxxxxxxxxxxxxxxxxx" }, }); const data = await res.json(); console.log(data);
import requests res = requests.get( "https://api.zapi.ink/v1/finance:binance-futures/basis", params={"pair":"BTCUSDT","contractType":"PERPETUAL","period":"1d","count":"30","startTime":"2026-08-01","endTime":"2026-08-20"}, headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"}, ) print(res.json())
Example response
{ "project": "finance:binance-futures", "data": { "pair": "BTCUSDT", "count": 30, "items": [ { "pair": "BTCUSDT", "time": 1784851200000, "basis": -23.30565217, "timeIso": "2026-07-24T00:00:00.000Z", "basisRate": -0.0004, "indexPrice": 65092.90565217, "contractType": "PERPETUAL", "futuresPrice": 65069.6, "basisRatePercent": -0.04, "annualizedBasisRate": null }, { "pair": "BTCUSDT", "time": 1784937600000, "basis": -25.11326087, "timeIso": "2026-07-25T00:00:00.000Z", "basisRate": -0.0004, "indexPrice": 64141.61326087, "contractType": "PERPETUAL", "futuresPrice": 64116.5, "basisRatePercent": -0.04, "annualizedBasisRate": null }, { "pair": "BTCUSDT", "time": 1785024000000, "basis": -32.31065217, "timeIso": "2026-07-26T00:00:00.000Z", "basisRate": -0.0005, "indexPrice": 64370.31065217, "contractType": "PERPETUAL", "futuresPrice": 64338, "basisRatePercent": -0.05, "annualizedBasisRate": null }, { "pair": "BTCUSDT", "time": 1785110400000, "basis": -22.22543478, "timeIso": "2026-07-27T00:00:00.000Z", "basisRate": -0.0003, "indexPrice": 65397.42543478, "contractType": "PERPETUAL", "futuresPrice": 65375.2, "basisRatePercent": -0.03, "annualizedBasisRate": null }, { "pair": "BTCUSDT", "time": 1785196800000, "basis": -38.985, "timeIso": "2026-07-28T00:00:00.000Z", "basisRate": -0.0006, "indexPrice": 63759.685, "contractType": "PERPETUAL", "futuresPrice": 63720.7, "basisRatePercent": -0.06, "annualizedBasisRate": null }, { "pair": "BTCUSDT", "time": 1785283200000, "basis": -19.45391304, "timeIso": "2026-07-29T00:00:00.000Z", "basisRate": -0.0003, "indexPrice": 63923.05391304, "contractType": "PERPETUAL", "futuresPrice": 63903.6, "basisRatePercent": -0.03, "annualizedBasisRate": null }, { "pair": "BTCUSDT", "time": 1785369600000, "basis": -23.42782609, "timeIso": "2026-07-30T00:00:00.000Z", "basisRate": -0.0004, "indexPrice": 63982.32782609, "contractType": "PERPETUAL", "futuresPrice": 63958.9, "basisRatePercent": -0.04, "annualizedBasisRate": null }, { "pair": "BTCUSDT", "time": 1785456000000, "basis": -31.32608696, "timeIso": "2026-07-31T00:00:00.000Z", "basisRate": -0.0005, "indexPrice": 64781.32608696, "contractType": "PERPETUAL", "futuresPrice": 64750, "basisRatePercent": -0.05, "annualizedBasisRate": null } ], "period": "1d", "exchange": "binance", "contractType": "PERPETUAL" }, "timestamp": "2026-08-20T16:59:35Z" }
Frequently asked questions
How do I call the Binance Futures Basis API?
Send a GET request to https://api.zapi.ink/v1/finance:binance-futures/basis?pair=BTCUSDT with your Zapi key in the x-api-key header. Parameters — required: pair; optional: contractType, period, count, startTime, endTime. The response is JSON in the { project, data, timestamp } envelope.
What does the Binance Futures Basis API return?
The gap between a futures contract and its index — the carry a calendar spread. The example response has the fields pair, count, items, period, exchange, contractType. Each item in items has fields such as pair, time, basis, timeIso, basisRate, indexPrice, contractType, futuresPrice.
Is the Binance Futures Basis API free?
Yes. It is on the Zapi free tier: 600 Zap a month with one API key and no credit card. Each call costs 1 Zap. Paid plans raise the limits.
Can an AI assistant call the Binance Futures Basis API?
Yes. Add the Zapi MCP server (https://mcp.zapi.ink/mcp) to Claude, Cursor or another MCP client and ask in plain words; it calls run_scraper with scraper "binance-futures" and endpoint "basis".
What other Binance Futures API endpoints are there?
It has 11 endpoints. Besides Basis: Book Ticker, Exchange Info, Funding Rate, Global Long Short Ratio, Klines, Open Interest Hist, and 4 more.