Skip to main content

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 to fapi.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

TopicEndpoint(s)Route familyPage
KlinesGET /fapi/v1/klinesBinance mirrorKlines
24h tickerGET /fapi/v1/ticker/24hr, GET /ticker/24hr/activeMirror + gateway helperTicker
Order book depthGET /fapi/v1/depthBinance mirrorDepth
Exchange infoGET /fapi/v1/exchangeInfoBinance mirrorExchange Info
Premium indexGET /fapi/v1/premiumIndexBinance mirrorPremium Index
Funding ratesGET /fapi/v1/fundingRate, GET /funding/rates, GET /funding/rates/{symbol}, GET /funding/rates/{symbol}/historyMirror + gatewayFunding Rate
Open interestGET /fapi/v1/openInterestBinance mirrorOpen Interest
Open interest historyGET /openInterestHistFastAPI gatewayOpen Interest History
Long/short ratiosGET /topLongShortPositionRatio, GET /topLongShortAccountRatio, GET /long-short/position-ratio/{symbol}, GET /long-short/account-ratio/{symbol}FastAPI gatewayLong/Short Ratio
Futures launchesGET /launchfuturesFastAPI gatewayLaunch Futures
Futures delistingsGET /delistFastAPI gatewayDelist
Insurance fundGET /fapi/v1/insuranceBalanceBinance mirrorInsurance Balance
Spot capital flowGET /spot/capital-flowFastAPI gatewaySpot 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}/history gateway endpoint uses snake_case start_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/history exists but is account-scoped and out of scope here.)