BlackForge API documentation
Updated
What does the BlackForge API return?
BlackForge is a crypto market-data API. Spot requests return measurements of the spot order book and trade tape, computed per pair, in real time, across the major spot exchanges. Futures requests return prices, funding, open interest, taker flow and liquidations for 6,000+ linear contracts on the major futures venues. This is the public reference: the authentication model, the plan ladder, and one page per endpoint with a real captured response.
Authentication
Authenticate with an API key in the x-api-key header, obtained from your dashboard. Autonomous agents can skip the key entirely and pay per call over the x402 rail. The catalog endpoint answers without either, so a client can read the schema before it authenticates.
Set $BF to the API base and put your key in $BLACKFORGE_API_KEY. Every example on these pages uses that convention.
The API sends no CORS headers, so a browser cannot call it cross-origin. Call it from a server, a script, the CLI or an agent, where your key also stays private.
The plan ladder
Every plan reaches the same endpoints; the plan sets which venues, which columns and how far back you can read. Columns outside your plan are omitted from a response and named in the X-BlackForge-Columns-Omitted header, never silently dropped. History windows are entitlements, not retention: the archive is kept forever.
| Plan | Columns | Venues | Granularity and window |
|---|---|---|---|
| Free | 41 | Binance, MEXC, Gate | Daily granularity, 2-week window |
| Pro ($29) | 75 | All | Hourly granularity, 3-month window |
| Max ($99) | 169 | All | 5-minute granularity, 1-year window |
| Ultra ($399) | 169 | All | Minute-level granularity, full archive, larger quota and rate |
| x402 pay-per-call | 169 | All | No key, minute-level granularity, up to 100 rows a call, 90-day window |
Derived from the live plan configuration; see the metric reference for every column.
Sixty-second quickstart
# 1. Read the schema (no key needed)
curl "$BF/v1/catalog"
# 2. Pull the latest window for a pair (key in the header)
curl -H "x-api-key: $BLACKFORGE_API_KEY" \
"$BF/v1/latest?exchange=binance&symbol=BTCUSDT&columns=price,buyTradeVol,sellTradeVol"
# 3. Chart one metric over the last hour
curl -H "x-api-key: $BLACKFORGE_API_KEY" \
"$BF/v1/series?exchange=binance&symbol=BTCUSDT&metric=price&interval=5m&from=2026-08-13T00:00:00Z&to=2026-08-13T01:00:00Z"
# 4. Several metrics for the same pair in one call
curl -H "x-api-key: $BLACKFORGE_API_KEY" \
"$BF/v1/series?exchange=binance&symbol=BTCUSDT&metrics=price,buyTradeVol,sellTradeVol&interval=5m&from=2026-08-13T00:00:00Z&to=2026-08-13T01:00:00Z"
# 5. Funding for one coin on every futures venue
curl -H "x-api-key: $BLACKFORGE_API_KEY" \
"$BF/v1/futures/top?metric=fundingRate&baseAsset=BTC&contractType=perpetual"The series endpoints take metric for one key or metrics for up to 50 comma-separated keys, never both. Several metrics in one call are charged the same rows as separate calls. See several metrics in one call.
Endpoints
One page each, with the parameters, a real example request and a real captured response.
Futures endpoints
The same key and the same row meter reach 6,000+ linear perpetual and dated contracts on the major futures venues: prices, funding, open interest, taker flow and liquidations. Symbols are the venue’s own. The futures data page defines every column and states the limits.
| Plan | Futures venues | Granularity | History | Data |
|---|---|---|---|---|
| Free | Binance, Gate and MEXC | Daily | 2 weeks | Every column except liquidations |
| Pro | Every futures venue | Hourly or daily | 3 months | Every column except liquidations |
| Max | Every futures venue | 5-minute, hourly or daily | 1 year | Every column, plus each liquidation event |
| Ultra | Every futures venue | 1-minute to daily | Full archive | Every column, plus each liquidation event |
| Pay per call | Every futures venue | 1-minute to daily | 90 days | Every column, plus each liquidation event |
Futures history is kept forever, like spot, from 7 November 2026. Futures use the same row quota and rate limit as spot.
Pay-per-call over x402
A metered endpoint called with no key and no payment answers HTTP 402 with a machine-readable challenge: the price per call, the asset, the chain, and the row cap. An agent that understands x402 pays the micropayment and retries, no account required.
A metered endpoint called with no key and no payment answers HTTP 402 with this challenge:
GET /v1/latest with no credentials{
"error": "Payment Required",
"message": "This endpoint is metered for autonomous agents: each call is paid per-request in USDC via the x402 flow, or authenticated with an API key. Obtain an API key from your BlackForge dashboard and send it in the x-api-key header.",
"price": 0.005,
"asset": "USDC",
"network": "eip155:8453",
"recipient": "0x9723b022cebb47bA2af605144EF0B2cD8D85d832",
"rowsPerCall": 100,
"x402Version": 1,
"accepts": [
{
"scheme": "exact",
"network": "base",
"maxAmountRequired": "5000",
"resource": "$BF/v1/latest?exchange=binance&symbol=BTCUSDT",
"description": "BlackForge crypto market data from the major spot exchanges: every column, 1-minute to daily buckets, 90-day lookback. Covers 100 billable rows; finer buckets and premium columns count as more than one row each.",
"mimeType": "application/json",
"payTo": "0x9723b022cebb47bA2af605144EF0B2cD8D85d832",
"maxTimeoutSeconds": 25,
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"extra": {
"name": "USD Coin",
"version": "2"
}
}
]
}Every column, by family · Coverage by venue · How the data is measured · Pricing