Market Data Overview
Public, unauthenticated endpoints for Binance USDⓈ-M Futures market data plus a few helpers maintained by the platform.
Base URL
https://api.pipai.org
Two route families
api.pipai.org exposes market-data endpoints through two distinct route families. Pick the one that fits the call:
/fapi/v1/*— transparent Binance mirror. nginx forwards the request verbatim tofapi.binance.com/fapi/v1/*. Path, query string, headers, signature, and response are passed through unchanged. Use this whenever Binance offers the endpoint directly — it's the lowest-overhead path./<gateway path>— FastAPI gateway. Used for endpoints that aren't a single 1-to-1 Binance call: filtered/sorted helpers (/ticker/24hr/active,/launchfutures,/delist), platform-shaped wrappers (/funding/rates*,/long-short/*), and Binance endpoints that live outside/fapi/v1/*(e.g./futures/data/openInterestHist,/bapi/...).
Endpoints
| Topic | Endpoint(s) | Route family | Page |
|---|---|---|---|
| Klines | GET /fapi/v1/klines | Binance mirror | Klines |
| 24h ticker | GET /fapi/v1/ticker/24hr, GET /ticker/24hr/active | Mirror + gateway helper | Ticker |
| Order book depth | GET /fapi/v1/depth | Binance mirror | Depth |
| Exchange info | GET /fapi/v1/exchangeInfo | Binance mirror | Exchange Info |
| Premium index | GET /fapi/v1/premiumIndex | Binance mirror | Premium Index |
| Funding rates | GET /fapi/v1/fundingRate, GET /funding/rates, GET /funding/rates/{symbol}, GET /funding/rates/{symbol}/history | Mirror + gateway | Funding Rate |
| Open interest | GET /fapi/v1/openInterest | Binance mirror | Open Interest |
| Open interest history | GET /openInterestHist | FastAPI gateway | Open Interest History |
| Long/short ratios | GET /topLongShortPositionRatio, GET /topLongShortAccountRatio, GET /long-short/position-ratio/{symbol}, GET /long-short/account-ratio/{symbol} | FastAPI gateway | Long/Short Ratio |
| Futures launches | GET /launchfutures | FastAPI gateway | Launch Futures |
| Futures delistings | GET /delist | FastAPI gateway | Delist |
| Insurance fund | GET /fapi/v1/insuranceBalance | Binance mirror | Insurance Balance |
| Spot capital flow | GET /spot/capital-flow | FastAPI gateway | Spot Capital Flow |
Conventions
- All endpoints are public. Per-IP rate limit applies (1000/min) on the FastAPI gateway routes; the Binance mirror additionally inherits Binance's per-IP weights.
- Responses on the Binance mirror are byte-identical to Binance's response — string-encoded numbers, Unix-millisecond timestamps, and Binance's own field naming. Field reference: see Binance USDⓈ-M Futures API docs for the corresponding endpoint.
- Query parameter casing varies by endpoint (mostly camelCase; the
/funding/rates/{symbol}/historygateway endpoint uses snake_casestart_time/end_time). Each page calls out its own casing.
What is not offered
- No WebSocket streams. (The backend is REST-only.)
- No public trade-tape endpoint. (
/trades/historyexists but is account-scoped and out of scope here.)