API Documentation
Complete reference for the InfoHub Public API. Real-time derivatives data from 33 exchanges, aggregated into 14 REST endpoints.
https://info-hub.io/api/v1Authentication
All endpoints except /status require an API key passed as a Bearer token in the Authorization header.
Authorization: Bearer ih_your_api_key_here
Keys start with ih_ and are 36 characters long.
Generate up to 5 keys at /developers.
Keys are hashed server side. The full key is shown once at creation. Store it securely.
Rate Limits
Every response includes rate limit headers:
X-RateLimit-Limit: 100 X-RateLimit-Remaining: 97 X-RateLimit-Reset: 1709248060
Exceeding the limit returns 429 with a Retry-After header indicating seconds until the window resets.
Response Format
All endpoints return JSON with a consistent structure:
{
"success": true,
"data": [ ... ],
"meta": { "timestamp": 1709248000, ... }
}{
"success": false,
"error": "Human-readable error message"
}The meta field is optional and varies by endpoint. It may include counts, timestamps, or filter summaries.
Funding Rates
/api/v1/fundingReal-time funding rates across 33 exchanges. Rates are expressed as percentages in the exchange's native interval.
| Parameter | Type | Default | Description |
|---|---|---|---|
symbols | string | all | Comma-separated symbols (e.g. BTC,ETH,SOL) |
exchanges | string | all | Comma-separated exchanges (e.g. binance,bybit) |
assetClass | string | crypto | crypto, stocks, forex, commodities, or all |
{
"success": true,
"data": [
{
"symbol": "BTC",
"exchange": "Binance",
"rate": 0.0100,
"rate8h": 0.0100,
"predictedRate": 0.0085,
"markPrice": 95000.50,
"indexPrice": 94980.25,
"fundingInterval": "8h",
"nextFundingTime": 1709251200000,
"type": "cex",
"assetClass": "crypto"
}
],
"meta": { "timestamp": 1709248000, "exchanges": 24, "pairs": 6466 }
}Open Interest
/api/v1/openinterestOpen interest data across exchanges in USD.
| Parameter | Type | Default | Description |
|---|---|---|---|
symbols | string | all | Comma-separated symbols |
exchanges | string | all | Comma-separated exchanges |
{
"success": true,
"data": [
{
"symbol": "BTC",
"exchange": "Binance",
"openInterest": 4200000000,
"openInterestUsd": 4200000000,
"timestamp": 1713181800000
}
],
"meta": { "timestamp": 1713181800000, "entries": 420, "exchanges": 26 }
}Tickers
/api/v1/tickersReal-time price and volume data across exchanges.
| Parameter | Type | Default | Description |
|---|---|---|---|
symbols | string | all | Comma-separated symbols (e.g. BTC,ETH) |
exchanges | string | all | Comma-separated exchanges |
{
"success": true,
"data": [
{
"symbol": "BTC",
"exchange": "Binance",
"lastPrice": 84250.50,
"high24h": 85100.00,
"low24h": 83200.00,
"volume24h": 12500000000,
"priceChange24hPct": 1.25
}
]
}Spreads
/api/v1/spreadsCross-exchange price spreads ranked by opportunity size.
| Parameter | Type | Default | Description |
|---|---|---|---|
symbols | string | all | Comma-separated symbols |
minSpread | number | 0 | Minimum spread % to include |
limit | number | 50 | Max results (1 to 200) |
{
"success": true,
"data": [
{
"symbol": "BTC",
"spreadPct": 0.0312,
"spreadUsd": 26.30,
"highExchange": "Bitfinex",
"highPrice": 84276.30,
"lowExchange": "Binance",
"lowPrice": 84250.00,
"exchangeCount": 18
}
]
}Arbitrage
/api/v1/arbitrageFunding rate arbitrage opportunities with feasibility grades, PnL projections, and OI data. Short the high-rate exchange, long the low-rate exchange.
| Parameter | Type | Default | Description |
|---|---|---|---|
minSpread | number | 0 | Minimum 8h spread % (e.g. 0.05) |
minOI | number | 0 | Minimum OI in USD on the smaller side |
grade | string | all | Filter by grade: A, B, C, D (comma-separated) |
symbols | string | all | Comma-separated symbols |
limit | number | 100 | Max results (1 to 500) |
assetClass | string | crypto | Asset class filter |
{
"success": true,
"data": [
{
"symbol": "PONKE",
"shortExchange": "Kraken",
"longExchange": "Bitunix",
"shortRate8h": 0.5032,
"longRate8h": 0.0000,
"grossSpread8h": 0.5032,
"netSpread8h": 0.2832,
"annualizedPct": 310.1,
"dailyPnlPer10k": 8.50,
"fees": { "roundTrip": 0.2200 },
"oi": {
"short": 500000,
"long": 120000,
"total": 620000,
"minSide": 120000
},
"grade": "C",
"stability": "volatile",
"exchangeCount": 5,
"allExchanges": [
{ "exchange": "Kraken", "rate8h": 0.5032, "type": "cex" }
]
}
],
"meta": {
"totalPairs": 657,
"filtered": 50,
"grades": { "A": 0, "B": 1, "C": 120, "D": 536 }
}
}Long/Short Ratio
/api/v1/longshortLong/short ratio data from Binance and OKX with historical values.
| Parameter | Type | Default | Description |
|---|---|---|---|
symbol | string | BTC | Symbol (e.g. BTC, ETH, SOL) |
period | string | 1h | Time period: 5m, 15m, 30m, 1h, 4h, 1d |
source | string | global | Data source: global, topTraders, taker |
{
"success": true,
"data": {
"symbol": "BTC",
"period": "1h",
"source": "global",
"longRatio": 52.34,
"shortRatio": 47.66,
"exchange": "binance",
"history": [
{ "longRatio": 52.1, "shortRatio": 47.9, "longShortRatio": 1.088, "timestamp": 1709244000 },
{ "longRatio": 52.34, "shortRatio": 47.66, "longShortRatio": 1.098, "timestamp": 1709247600 }
]
}
}Liquidations
/api/v1/liquidationsRecent liquidation events from the database. Sources: Binance, OKX, HTX, gTrade, Deribit.
| Parameter | Type | Default | Description |
|---|---|---|---|
symbol | string | all | Filter by symbol (e.g. BTC) |
exchange | string | all | Filter by exchange |
side | string | all | Filter by side: long or short |
hours | number | 1 | Lookback window (1 to 24 hours) |
limit | number | 100 | Max entries (1 to 500) |
{
"success": true,
"data": [
{
"symbol": "ETH",
"exchange": "binance",
"side": "long",
"quantity": 12.5,
"price": 3245.80,
"valueUsd": 40572.50,
"timestamp": 1713181800000
}
],
"meta": { "timestamp": 1713181800000, "hours": 1, "entries": 1, "limit": 100 }
}Options
/api/v1/optionsOptions market data across Deribit, Binance, OKX, and Bybit. Includes max pain, put/call ratio, open interest by strike, and implied volatility.
| Parameter | Type | Default | Description |
|---|---|---|---|
currency | string | BTC | Currency: BTC, ETH, or SOL |
{
"success": true,
"data": {
"currency": "BTC",
"underlyingPrice": 84250,
"maxPain": 85000,
"putCallRatio": 0.72,
"totalCallOI": 7200000000,
"totalPutOI": 5300000000,
"totalOI": 12500000000,
"instrumentCount": 4500,
"ivAtm": 48.5,
"exchanges": [
{ "exchange": "Deribit", "callOI": 5100000000, "putOI": 3800000000, "totalOI": 8900000000, "share": 71.2 }
],
"expirations": [
{ "date": "2026-04-25", "callOI": 450000000, "putOI": 320000000, "totalOI": 770000000, "maxPain": 84000 }
]
}
}Top Movers
/api/v1/top-moversTop gaining and losing coins by 24h price change.
| Parameter | Type | Default | Description |
|---|---|---|---|
limit | number | 20 | Max gainers and losers each (1 to 50) |
{
"success": true,
"data": {
"gainers": [
{ "symbol": "PEPE", "price": 0.0000089, "change24h": 24.5 }
],
"losers": [
{ "symbol": "DOGE", "price": 0.162, "change24h": -8.2 }
]
}
}Global Stats
/api/v1/global-statsMarket-wide statistics: altcoin season index, BTC dominance, total market cap, 24h volume.
{
"success": true,
"data": {
"altcoinSeasonIndex": 38,
"btcDominance": 57.2,
"ethDominance": 8.1,
"totalMarketCap": 2850000000000,
"totalMarketCapChange24h": -1.2,
"totalVolume24h": 98000000000,
"totalDerivativesOI": 55000000000,
"activeCryptocurrencies": 10200
}
}Fear & Greed
/api/v1/fear-greedCrypto Fear & Greed Index with optional 30-day history.
| Parameter | Type | Default | Description |
|---|---|---|---|
history | boolean | false | Include 30 day historical values |
{
"success": true,
"data": {
"value": 72,
"label": "Greed",
"timestamp": 1709248000,
"history": [
{ "value": 68, "label": "Greed", "timestamp": 1709161600 }
]
}
}Funding History
/api/v1/funding/historyHistorical funding rate snapshots from the database. 10-minute resolution, up to 14 days of lookback.
| Parameter | Type | Default | Description |
|---|---|---|---|
symbols | string | (required) | Comma-separated symbols (max 20) |
days | number | 7 | Lookback period (1 to 14) |
{
"success": true,
"data": {
"BTC": [
{ "day": "2026-04-13", "rate": 0.0082 },
{ "day": "2026-04-14", "rate": 0.0100 }
],
"ETH": [
{ "day": "2026-04-13", "rate": 0.0045 },
{ "day": "2026-04-14", "rate": 0.0061 }
]
},
"meta": { "timestamp": 1713181800000, "symbols": 2, "days": 7 }
}Exchanges
/api/v1/exchangesMetadata for all 33 supported exchanges including fees, funding intervals, and trade URL patterns.
{
"success": true,
"data": [
{
"name": "Binance",
"type": "cex",
"fees": { "takerPct": 0.05, "makerPct": 0.02, "roundTripPct": 0.10 },
"fundingInterval": "8h",
"tradeUrlPattern": "https://www.binance.com/en/futures/{SYMBOL}USDT"
}
],
"meta": { "total": 33, "cex": 18, "dex": 15, "timestamp": 1713181800000 }
}Status
/api/v1/statusAPI health check. No authentication required. Use this for uptime monitoring.
{
"success": true,
"status": "operational",
"version": "v1",
"endpoints": [
{ "path": "/api/v1/funding", "method": "GET", "description": "Real-time funding rates across 33 exchanges" }
],
"tiers": {
"free": { "rateLimit": "100 req/min", "dailyLimit": "5,000 req/day" },
"pro": { "rateLimit": "500 req/min", "dailyLimit": "unlimited" }
},
"documentation": "https://info-hub.io/developers/docs",
"timestamp": 1713181800000
}Error Codes
| Status | Code | Description |
|---|---|---|
200 | OK | Request succeeded |
400 | Bad Request | Invalid or missing parameters |
401 | Unauthorized | Missing or invalid API key |
429 | Too Many Requests | Rate limit exceeded, check Retry-After header |
500 | Internal Error | Something went wrong on our end |
502 | Bad Gateway | Upstream exchange returned an error |
503 | Unavailable | Service temporarily down for maintenance |
{
"success": false,
"error": "Rate limit exceeded. Upgrade to Pro for higher limits."
}