Skip to content
InfoHub
Sign in
Recent
LiquidationsFunding RatesDashboardNewsScreener
Pinned
ETF TrackerL/S Ratio
Back to API
v1 reference, kept in sync

API Documentation

Complete reference for the InfoHub Public API. Real-time derivatives data from 33 exchanges, aggregated into 14 REST endpoints.

Base URLhttps://info-hub.io/api/v1
FormatJSON
AuthBearer Token

Authentication

All endpoints except /status require an API key passed as a Bearer token in the Authorization header.

Header format
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
Free Tier
Per minute100
Per day5,000
Pro TierSoon
Per minute500
Per dayUnlimited

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
{
  "success": true,
  "data": [ ... ],
  "meta": { "timestamp": 1709248000, ... }
}
Error
{
  "success": false,
  "error": "Human-readable error message"
}

The meta field is optional and varies by endpoint. It may include counts, timestamps, or filter summaries.

Market Data

Funding Rates

GET/api/v1/funding

Real-time funding rates across 33 exchanges. Rates are expressed as percentages in the exchange's native interval.

ParameterTypeDefaultDescription
symbolsstringallComma-separated symbols (e.g. BTC,ETH,SOL)
exchangesstringallComma-separated exchanges (e.g. binance,bybit)
assetClassstringcryptocrypto, stocks, forex, commodities, or all
Response
{
  "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

GET/api/v1/openinterest

Open interest data across exchanges in USD.

ParameterTypeDefaultDescription
symbolsstringallComma-separated symbols
exchangesstringallComma-separated exchanges
Response
{
  "success": true,
  "data": [
    {
      "symbol": "BTC",
      "exchange": "Binance",
      "openInterest": 4200000000,
      "openInterestUsd": 4200000000,
      "timestamp": 1713181800000
    }
  ],
  "meta": { "timestamp": 1713181800000, "entries": 420, "exchanges": 26 }
}

Tickers

GET/api/v1/tickers

Real-time price and volume data across exchanges.

ParameterTypeDefaultDescription
symbolsstringallComma-separated symbols (e.g. BTC,ETH)
exchangesstringallComma-separated exchanges
Response
{
  "success": true,
  "data": [
    {
      "symbol": "BTC",
      "exchange": "Binance",
      "lastPrice": 84250.50,
      "high24h": 85100.00,
      "low24h": 83200.00,
      "volume24h": 12500000000,
      "priceChange24hPct": 1.25
    }
  ]
}

Spreads

GET/api/v1/spreads

Cross-exchange price spreads ranked by opportunity size.

ParameterTypeDefaultDescription
symbolsstringallComma-separated symbols
minSpreadnumber0Minimum spread % to include
limitnumber50Max results (1 to 200)
Response
{
  "success": true,
  "data": [
    {
      "symbol": "BTC",
      "spreadPct": 0.0312,
      "spreadUsd": 26.30,
      "highExchange": "Bitfinex",
      "highPrice": 84276.30,
      "lowExchange": "Binance",
      "lowPrice": 84250.00,
      "exchangeCount": 18
    }
  ]
}
Trading Intelligence

Arbitrage

GET/api/v1/arbitrage

Funding rate arbitrage opportunities with feasibility grades, PnL projections, and OI data. Short the high-rate exchange, long the low-rate exchange.

ParameterTypeDefaultDescription
minSpreadnumber0Minimum 8h spread % (e.g. 0.05)
minOInumber0Minimum OI in USD on the smaller side
gradestringallFilter by grade: A, B, C, D (comma-separated)
symbolsstringallComma-separated symbols
limitnumber100Max results (1 to 500)
assetClassstringcryptoAsset class filter
Response
{
  "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 }
  }
}
Grade system
A  High OI, realistic spread, stable history
B  Good OI, moderate spread, mostly stable
C  Lower OI or volatile, still actionable
D  Fees exceed spread or very low OI

Long/Short Ratio

GET/api/v1/longshort

Long/short ratio data from Binance and OKX with historical values.

ParameterTypeDefaultDescription
symbolstringBTCSymbol (e.g. BTC, ETH, SOL)
periodstring1hTime period: 5m, 15m, 30m, 1h, 4h, 1d
sourcestringglobalData source: global, topTraders, taker
Response
{
  "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

GET/api/v1/liquidations

Recent liquidation events from the database. Sources: Binance, OKX, HTX, gTrade, Deribit.

ParameterTypeDefaultDescription
symbolstringallFilter by symbol (e.g. BTC)
exchangestringallFilter by exchange
sidestringallFilter by side: long or short
hoursnumber1Lookback window (1 to 24 hours)
limitnumber100Max entries (1 to 500)
Response
{
  "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

GET/api/v1/options

Options market data across Deribit, Binance, OKX, and Bybit. Includes max pain, put/call ratio, open interest by strike, and implied volatility.

ParameterTypeDefaultDescription
currencystringBTCCurrency: BTC, ETH, or SOL
Response
{
  "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 }
    ]
  }
}
Market Context

Top Movers

GET/api/v1/top-movers

Top gaining and losing coins by 24h price change.

ParameterTypeDefaultDescription
limitnumber20Max gainers and losers each (1 to 50)
Response
{
  "success": true,
  "data": {
    "gainers": [
      { "symbol": "PEPE", "price": 0.0000089, "change24h": 24.5 }
    ],
    "losers": [
      { "symbol": "DOGE", "price": 0.162, "change24h": -8.2 }
    ]
  }
}

Global Stats

GET/api/v1/global-stats

Market-wide statistics: altcoin season index, BTC dominance, total market cap, 24h volume.

Response
{
  "success": true,
  "data": {
    "altcoinSeasonIndex": 38,
    "btcDominance": 57.2,
    "ethDominance": 8.1,
    "totalMarketCap": 2850000000000,
    "totalMarketCapChange24h": -1.2,
    "totalVolume24h": 98000000000,
    "totalDerivativesOI": 55000000000,
    "activeCryptocurrencies": 10200
  }
}

Fear & Greed

GET/api/v1/fear-greed

Crypto Fear & Greed Index with optional 30-day history.

ParameterTypeDefaultDescription
historybooleanfalseInclude 30 day historical values
Response
{
  "success": true,
  "data": {
    "value": 72,
    "label": "Greed",
    "timestamp": 1709248000,
    "history": [
      { "value": 68, "label": "Greed", "timestamp": 1709161600 }
    ]
  }
}

Funding History

GET/api/v1/funding/history

Historical funding rate snapshots from the database. 10-minute resolution, up to 14 days of lookback.

ParameterTypeDefaultDescription
symbolsstring(required)Comma-separated symbols (max 20)
daysnumber7Lookback period (1 to 14)
Response
{
  "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 }
}
Reference

Exchanges

GET/api/v1/exchanges

Metadata for all 33 supported exchanges including fees, funding intervals, and trade URL patterns.

Response
{
  "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

GET/api/v1/status

API health check. No authentication required. Use this for uptime monitoring.

Response
{
  "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

StatusCodeDescription
200OKRequest succeeded
400Bad RequestInvalid or missing parameters
401UnauthorizedMissing or invalid API key
429Too Many RequestsRate limit exceeded, check Retry-After header
500Internal ErrorSomething went wrong on our end
502Bad GatewayUpstream exchange returned an error
503UnavailableService temporarily down for maintenance
Error response format
{
  "success": false,
  "error": "Rate limit exceeded. Upgrade to Pro for higher limits."
}