# Sharpe API: Full Reference > Crypto derivatives and market data API. This document describes every endpoint, parameter, type, enum value, and response schema. > Updated: 2026-11-11 ## Base URL - API: `https://www.sharpe.ai/api/v1/` The API is paid-only after a one-time trial of 7 days and 250 requests per account. There is no free API tier and no keyless API: the `/api/*` routes outside `/api/v1` serve Sharpe's own web pages and answer 401 to any other caller. ## Authentication All `/v1/` endpoints require an API key (on a paid plan, or in its account's one-time trial) except `/v1/health` and `/v1/meta/coverage`. A key works while its account has an active plan (see Rate Limits below). A key without one answers 401 `expired_api_key`: "This API key has no active plan. Subscribe or renew at https://www.sharpe.ai/dashboard/billing." The same key works again once the plan is active. A key in its trial works for 7 days and 250 requests from its first request; a key issued before 2026-11-11 gets the same trial with its first request after that day. A key whose trial is over answers 401 `expired_api_key`: "This account's trial has ended. Choose a plan at https://www.sharpe.ai/pricing and this key works again." Each account has one API key; the REST API and the MCP server both use it and share the plan's monthly quota. Method 1, Bearer token (recommended): Header: `Authorization: Bearer sk_live_...` Method 2, API key header: Header: `X-API-Key: sk_live_...` Query-string API keys are rejected by default because URLs are commonly stored in logs, browser history, analytics tools, and referrer headers. If both supported methods are present, they are checked in order: Bearer token > X-API-Key header. The first one found is used. Key format: `sk_live_` prefix + 48 hex characters = 56 characters total. Choose a plan at https://www.sharpe.ai/dashboard/billing, then create the key at https://www.sharpe.ai/dashboard/api-keys (creating a key without an active plan answers 402). See the [authentication docs](https://www.sharpe.ai/docs/authentication). ## Response Envelope Units: every rate, return, share and change a v1 answer serves is a fraction (0.054 is 5.4%), never a percent; amounts are in whole units (USD). Percent appears only as text, in the markdown reports. Every successful response uses this envelope: ``` { "data": , // Shape varies by endpoint "meta": { "request_id": string, // e.g. "req_a1b2c3d4e5f6g7h8i9j0" "timestamp": string, // ISO 8601, e.g. "2026-03-27T07:45:00Z" "elapsed_ms": integer, // Server-side processing time in milliseconds // The freshness envelope (below), on every endpoint except /v1/funding/rates, /v1/funding/coins, // /v1/futures/*, /v1/rwa-perps/rates, /v1/market/derivatives-overview, /v1/arbitrage/spot-perp, // /v1/arbitrage/cross-exchange, /v1/rug-check/trending and the /v1/meta, /v1/usage and /v1/health system // routes: "dataset_id": string, // The dataset read, e.g. "narratives"; /v1/meta/coverage lists each product's "as_of": string | null, // When the data was current (the dataset's own time, not the response time) "stale_after": string | null, // as_of + freshness_sla_seconds: past it the data is stale, however long a copy was cached "freshness_sla_seconds": integer, // The writer's cadence plus one skipped run "freshness_status": "fresh" | "stale" | "unknown", // Judged at generated_at; unknown when as_of is null "runtime_status": "ok" | "degraded", // degraded: this read was incomplete (a failed leg, a row budget, a fallback) "served_from": "snapshot" | "table" | "matview" | "live" | "last-good", "generated_at": string, // When this answer was built "source": [string], // Upstream source ids behind the rows, e.g. ["binance", "bybit"] "coverage": { "expected": integer, "used": integer, "dropped": { "": integer }, "missing": [string] }, // Optional: data completeness "warnings": [string], // What the read could not do "truncated": boolean // A row budget cut the answer short } } ``` Read freshness from the envelope, never from the response time: act on `freshness_status` and `runtime_status`, and re-judge a cached copy against `stale_after`. `runtime_status: "degraded"` answers are never cached; a `stale` answer is cached for 30 seconds. The same values travel as headers on every v1 response of these endpoints: `X-Data-As-Of`, `X-Data-Stale-After`, `X-Data-Stale` (`true` unless fresh), `X-Data-Status` (`fresh` | `stale` | `degraded` | `fallback`), `X-Freshness-Sla-Seconds`, `X-Data-Source` (comma-separated source ids) and `X-Data-Coverage` (`used/expected`); `X-Data-Fallback` names a fallback answer and `X-Data-Partial` the reads that were cut short. Paginated endpoints add a `pagination` field: ``` { "data": [], "pagination": { "cursor": string | null, // Pass as ?cursor= to get next page. null = no more pages. "has_more": boolean, "total": integer | null // Total record count when available }, "meta": { "request_id": string, "timestamp": string, "elapsed_ms": integer } } ``` ## Error Format All errors follow RFC 9457 (Problem Details for HTTP APIs). The response body is a flat JSON object (not nested inside an `error` wrapper): ``` { "type": string, // URI identifying the error, e.g. "https://www.sharpe.ai/errors/invalid_parameter" "title": string, // Short human-readable summary, e.g. "Invalid Parameter" "status": integer, // HTTP status code, e.g. 400 "detail": string, // Human-readable explanation specific to this request "request_id": string, // Unique request ID for support, e.g. "req_abc123def456ghij" "doc_url": string, // Link to relevant docs page, e.g. "https://www.sharpe.ai/docs/errors#error-codes" "suggested_action": string // Actionable guidance for resolving the error, e.g. "Check the parameter value against the endpoint documentation." } ``` ### Error Codes | type slug | status | meaning | |--------------------------|--------|-------------------------------------------------| | invalid_api_key | 401 | Key is malformed or revoked | | expired_api_key | 401 | Key has expired | | insufficient_scope | 403 | Key lacks required scope for this endpoint | | monthly_quota_exceeded | 429 | Monthly request quota exhausted (retryable) | | invalid_parameter | 400 | Query parameter has invalid value | | missing_parameter | 400 | Required query parameter is missing | | rate_limit_exceeded | 429 | Per-minute rate limit exceeded | | resource_not_found | 404 | Endpoint or resource does not exist | | internal_error | 500 | Unexpected server error | | upstream_error | 502 | Dependency failed (endpoints not yet on the freshness envelope) | | service_unavailable | 503 | A data source or the data store is unavailable; honour `Retry-After` | On every endpoint that carries the freshness envelope, an upstream source that is down with nothing stored to serve answers 503 `service_unavailable` with `Retry-After: 60` (the detail names the source), and a data-store failure answers 503 with `Retry-After: 30`; 502 is not used there. ### Retry Guidance - 4xx (except 429): Do not retry. Fix the request. - 429 rate_limit_exceeded: Wait for the `Retry-After` seconds, or until the Unix timestamp in `X-RateLimit-Reset`, then retry. - 429 monthly_quota_exceeded: The monthly quota is exhausted, not the per-minute window. `Retry-After` holds the seconds until the quota resets (`X-Quota-Reset`), which can be days. Queue the work instead of spinning on retries. - 5xx: Exponential backoff. Wait 1s, 2s, 4s, 8s, 16s (max 30s, max 5 retries). Unknown `/v1/` paths: an authenticated request to a path with no route returns 404 `resource_not_found`, so a wrong path is distinguishable from a wrong key. Without a credential the same path returns 401, so route existence is never disclosed anonymously. ## Rate Limits Limits are per API key, enforced as requests per minute (RPM) and requests per month, and they come from the key's plan. Every plan is paid; there is no free tier. The one-time trial allows 250 requests in 7 days at 10 a minute. Pricing: https://www.sharpe.ai/pricing | Plan | RPM | Monthly limit | Price | Use | |------------|--------|---------------|----------------------------|---------------------------------------| | Hobbyist | 30 | 50,000 | $29/month or $290/year | Personal projects | | Pro | 120 | 300,000 | $79/month or $790/year | Personal trading and research | | Commercial | 500 | 1,000,000 | $149/month or $1,490/year | Inside your own product, no reselling | | Enterprise | Custom | Custom | By contact, team@sharpe.ai | Custom | A year costs ten months. The monthly quota resets on the 1st of each month (UTC). REST calls and MCP tool calls share it. Plans are paid in USDC, or in any token swapped at checkout, through MoonPay Commerce at https://www.sharpe.ai/dashboard/billing. There is no card payment and nothing is charged automatically: a renewal reminder is sent on each of the 5 days before the paid period ends, the key keeps working for 3 days after it, then it answers 401 `expired_api_key` until the plan is renewed. An upgrade starts a new paid period. ### Rate Limit Headers (included in every response) | Header | Type | Description | |----------------------|---------|------------------------------------------------| | X-RateLimit-Limit | integer | Max requests per minute for your tier | | X-RateLimit-Remaining| integer | Requests remaining in current 1-minute window | | X-RateLimit-Reset | integer | Unix timestamp (seconds) when window resets | | X-Request-Id | string | Unique request identifier for support reference | --- ## v1 Endpoint Inventory Canonical machine-readable contract: [OpenAPI spec](https://www.sharpe.ai/openapi.json). Current v1 endpoint inventory: | Method | Path | Auth | Summary | |--------|------|------|---------| | GET | `/v1/arbitrage/borrow-rates` | API key | Margin borrow rates | | GET | `/v1/arbitrage/cex-spot-transfer` | API key | CEX spot-transfer arbitrage scanner | | GET | `/v1/arbitrage/cross-exchange` | API key | Cross-exchange arbitrage | | GET | `/v1/arbitrage/dated-futures-basis` | API key | Dated futures basis scanner | | GET | `/v1/arbitrage/fixed-floating-funding` | API key | Fixed vs floating funding (Pendle Boros) | | GET | `/v1/arbitrage/funding-spread-history` | API key | Funding spread history and carry backtest | | GET | `/v1/arbitrage/futures-calendar-spread` | API key | Futures calendar spread scanner | | GET | `/v1/arbitrage/perp-dated-carry` | API key | Perp versus dated futures carry scanner | | GET | `/v1/arbitrage/spot-perp` | API key | Spot-perp arbitrage | | GET | `/v1/briefing` | API key | Market briefing | | GET | `/v1/coins/{coin}/analysis` | API key | Coin analysis | | GET | `/v1/correlation/matrix` | API key | Correlation matrix | | GET | `/v1/ecosystems/data` | API key | Ecosystems data | | GET | `/v1/funding/coins` | API key | Available funding coins | | GET | `/v1/funding/rates` | API key | Funding rates | | GET | `/v1/funding/settlement` | API key | Funding fee settlement | | GET | `/v1/futures/coins` | API key | Available futures coins | | GET | `/v1/futures/data` | API key | Futures chart data | | GET | `/v1/gem-finder/data` | API key | Gem finder | | GET | `/v1/global/overview` | API key | Global market overview | | GET | `/v1/health` | Public | Health check | | GET | `/v1/heatmap/data` | API key | Market heatmap | | GET | `/v1/insider-selling/data` | API key | Insider selling pressure | | GET | `/v1/listings/data` | API key | New listings hub data | | GET | `/v1/listings/events` | API key | Canonical listing events | | GET | `/v1/listings/exchanges` | API key | New listings exchange registry | | GET | `/v1/listings/recent` | API key | Recent new listings | | GET | `/v1/market-cap/search` | API key | Market cap search | | GET | `/v1/market/derivatives-overview` | API key | Market-wide derivatives overview | | GET | `/v1/memecoins/data` | API key | Memecoins data | | GET | `/v1/memecoins/launches` | API key | Memecoin launches | | GET | `/v1/meta/coverage` | Public | API data coverage | | GET | `/v1/mindshare/data` | API key | Mindshare data | | GET | `/v1/narratives/data` | API key | Narratives data | | GET | `/v1/news/feed` | API key | News feed | | GET | `/v1/opportunities` | API key | Arbitrage opportunities | | GET | `/v1/price-prediction/data` | API key | Price prediction | | GET | `/v1/pump-dump/data` | API key | Pump and dump detection | | GET | `/v1/rug-check/security` | API key | Rug Check token security | | GET | `/v1/rug-check/trending` | API key | Rug Check trending tokens | | GET | `/v1/rwa-perps/rates` | API key | RWA perp funding rates | | GET | `/v1/stablecoins/data` | API key | Stablecoins data | | GET | `/v1/tracker/market-overview` | API key | Market overview | | GET | `/v1/usage` | API key | API usage and quota | | GET | `/v1/web-traffic/data` | API key | Web traffic data | ### GET /v1/health Health check. Returns service status and database connectivity. Authentication: None required. Parameters: None. Response (200): ``` { "status": "healthy" | "degraded", "version": "v1", "checks": { "database": boolean, "news": { "status": "fresh" | "stale" | "unknown", "latest_published_at": string | null, "age_seconds": integer | null, "freshness_sla_seconds": integer, "future_tolerance_seconds": integer, "unknown_reason": string | null } }, "datasets": { // null when the database was unreachable "items": [ { "dataset_id": string, "store": string, "scope": string, "as_of": string | null, "stale_after": string | null, "freshness_sla_seconds": integer, "freshness_status": "fresh" | "stale" | "unknown", "unknown_reason": "missing" | "undated" | "query_error" | null } ], "warnings": [string] } | null, "request_id": string, "timestamp": string // ISO 8601 } ``` `datasets` is the freshness of each snapshot and cached dataset, read from the snapshot index and the cache rows. A stale dataset does not make the service degraded. Response (503): Same schema with `status: "degraded"`. --- ### GET /v1/usage API usage and quota information for the authenticated key. Authentication: Required. Parameters: None. Response (200): ``` { "data": { "plan": { "tier": "hobbyist" | "pro" | "commercial" | "analyst" | "enterprise", // analyst: a legacy grant, no longer sold "rpm": integer, // Requests per minute limit "monthly_limit": integer // Monthly request quota }, "rate_limit": { "requests_per_minute": integer }, "quota": { "used": integer, // Requests used this billing period "limit": integer, // Total monthly quota "remaining": integer, // Requests remaining "resets_at": string // ISO 8601 timestamp of next reset }, "last_24h": { "total_requests": integer, "by_endpoint": { "": { "count": integer, "avg_response_ms": integer, "errors": integer } } } }, "meta": { "request_id": string, "timestamp": string, "elapsed_ms": integer } } ``` Errors: 401 Unauthorized, 429 Rate Limited, 500 Internal Error, 503 Service Unavailable (Retry-After). --- ### GET /v1/funding/rates Perpetual funding rates across 35 exchanges. The book is not crypto-only: tokenized equity, commodity, index and FX perps trade on the same venues and are returned by default. Use `asset_class` to narrow. Authentication: Required. Parameters: | Name | In | Type | Required | Default | Description | |-------------|-------|---------|----------|-----------|-------------| | type | query | string | no | "current" | Type of data. Enum: `current`, `accumulated`, `history`. | | coin | query | string | depends | -- | The coin: a ticker (BTC), a lot or venue spelling (1000PEPE, kPEPE) or a full name (bitcoin). Names an asset: every contract of it is returned, whatever its base_coin spelling (PEPE includes the 1000PEPE and KPEPE lot contracts). One coin per request. Optional filter for current/accumulated; required when type=history. | | days | query | integer | no | 30 | Days of history (type=history only). Min: 1, Max: 1095. | | exchange | query | string | no | -- | One venue: slug, display name or ccxt id. Unrecognized value returns 400. Applies to current and accumulated. | | asset_class | query | string | no | -- | Underlying category filter. Enum: `crypto`, `equity`, `commodity`, `fx`, `index`. Unfiltered by default. Applies to current and accumulated. | | margin | query | string | no | -- | Collateral convention filter. Enum: `linear`, `inverse`. Unfiltered by default. Applies to current and accumulated. | | limit | query | integer | no | -- | Max records per page. Min: 1, Max: 5000. | | cursor | query | string | no | -- | Opaque pagination cursor from previous response. | | sort | query | string | no | -- | type=current: order rows by `open_interest` before the page. Enum: `open_interest`, `-open_interest` (descending). Unknown open interest last either way. | | extremes | query | integer | no | -- | type=current: answer with the N highest and N lowest rows by `rate_8h` (object, no rows). Min: 1, Max: 100. | | min_oi_usd | query | number | no | -- | type=current, with `extremes` only: open-interest floor in USD; unknown open interest fails a floor above 0. | | stats | query | string | no | -- | type=current: `1` answers with the whole book's funding (`market`, object, no rows). Takes no coin, exchange, margin or asset_class. | | summary | query | string | no | -- | type=current, with `coin`: `1` answers with the coin's funding across venues (`summary`, object, no rows). | `extremes`, `stats` and `summary` return `data` as an object of the aggregates asked for instead of rows; they cannot be combined with `limit`, `cursor` or `sort` (400). Behavior by type: - `current`: Returns the latest funding-rate snapshot, optionally filtered by `coin`, `exchange`, `asset_class` and `margin`. - `accumulated`: Returns accumulated funding and settlement counts over 1d, 7d, 30d, 90d, and 1y windows, optionally filtered by `coin`, `asset_class` and `margin`. - `history`: Returns time-series funding rate history for a single coin. Requires `coin` param. Response (200): Success envelope or paginated envelope. Data shape for type=current (each item): ``` { "exchange": string, // Venue display name, exact case, e.g. "Binance", "Gate.io", "WhiteBIT", "edgeX" "symbol": string, // e.g. "BTCUSDT" "base_coin": string, // e.g. "BTC" "rate": number, // Fraction charged once per interval_hours, e.g. 0.0001 = 0.01% "predicted_rate": number|null, // Venue-published next rate when available "interval_hours": integer, // Per-contract funding interval: 1, 2, 4, 8 or 24. Never assume 8. "next_funding_time": string|null, // ISO 8601, null on venues that do not publish it "updated_at": string, // ISO 8601 "margin_type": string, // "linear" or "inverse" "asset_class": string, // "crypto", "equity", "commodity", "fx" or "index" "open_interest": number|null, // One-sided USD open interest (each contract counted once) of this contract, matched on (exchange, symbol); null when no OI row matched (a minority of rows, mostly on venues without OI capture); never 0 "market_cap_rank": integer|null, // Market-cap rank of the base coin; null when unranked "age_seconds": number|null, // Row age at response time; null when updated_at was unparseable "data_source": string, // "supabase" or "live" "freshness_sla_seconds": integer, // Stale threshold for this payload (600 for current rates) "is_stale": boolean, // true when age_seconds exceeds the SLA or is null "asset_id": string|null, // Instrument master asset: CoinGecko id ("pepe") or ":" ("equity:bb"); same on every contract of the asset; null = contract unknown to the master "asset_symbol": string|null, // The asset ticker ("PEPE" on the 1000PEPE and KPEPE contracts too) "lot_multiplier": number|null, // Asset units per quoted unit: 1000 for 1000PEPEUSDT, 1 for PEPE_USDT; from the venue, never parsed from the symbol "instrument_status": string|null, // The venue's own status: "trading", "halted", "delisted", "settling" or "pre_launch" "is_live": boolean|null, // true: trading and the venue list read within 30 min; false: read, not trading; null: unknown "rate_8h": number|null, // rate * 8 / interval_hours: comparable across intervals; null without a usable interval "apr": number|null // rate * 8760 / interval_hours, a fraction (0.1 = 10%), signed like rate } ``` Aggregates (type=current with `summary=1`, `extremes=N` or `stats=1`): `data` is an object with the keys asked for. ``` { "summary": [ // summary=1 (needs coin): one entry per instrument and asset class, as the funding grid groups (coin=PEPE: one PEPE entry over the PEPE, 1000PEPE and KPEPE contracts) { "base_coin": string, "asset_class": string, "funding_avg_8h": number|null, // across venues, one primary contract each, fresh rates; OI-weighted when two or more venues report and a majority carry OI, else the median "funding_median_8h": number|null, "funding_method": "oi_weighted"|"median_fallback"|null, "funding_venues_used": integer, "funding_venues_stale": integer, // left out: stale while another venue was fresh "funding_all_stale": boolean // no venue fresh: the figures are over the stale rates } ], "extremes": { // extremes=N [&min_oi_usd=X]: fresh rows with a usable interval that clear the floor "highest": [ {...current row} ], // N highest rate_8h, highest first "lowest": [ {...current row} ], // N lowest rate_8h, lowest first "omitted": { "stale": integer, "no_interval": integer, "below_floor": integer } }, "market": { // stats=1: the whole book, one primary contract per (venue, asset), fresh rates, every asset class "funding_apr_mean": number|null, // mean 8h rate * 1095 (the /v1/market/derivatives-overview avg_funding_rate computation, as an APR) "funding_apr_oi_weighted": number|null, // open-interest weighted; null when no contract carries open interest "positive": integer, // fresh rates above 0 (longs pay) "negative": integer // fresh rates below 0 (shorts pay) } } ``` Freshness: every type=current scope is answered from the book the funding job writes every 5 minutes; `meta.as_of` is the newest write among live contracts in the scope (a scope matching no contract is dated by the book; one of only halted or delisted markets is undated, with a warning) and `X-Data-Stale` judges it against the 10-minute SLA. A failed database read is answered from the last written book at any age (`X-Data-Fallback: snapshot`, never cached); with nothing to serve the endpoint returns 503 (`service_unavailable`, `Retry-After: 30`). type=accumulated is dated by the view's refresh (every 30 minutes, stale after 1 hour: `X-Freshness-Sla-Seconds: 3600`). type=history is dated by the funding job's last completed run; `X-Coverage-Start` and `X-Coverage-Complete` describe the rows returned. Accumulated rows carry the same five identity fields (null when no live contract matches). `coin` names an asset, not a base_coin string (since 2026-09-27): `coin=PEPE` returns every PEPE contract, the 1000PEPE and KPEPE lot spellings included, where a base_coin match returned only the PEPE-spelled ones. The identity fields are null for a contract the instrument master does not know yet. `rate` is a fraction of notional, so lot contracts compare without rescaling. Each accumulated row also carries `coverage`: per window (1d, 7d, 30d, 90d, 1y) `coverage_ratio` (share of the span the contract was expected to settle in that its settlements cover), `complete` (ratio ≥ 0.9), `listed_within_window` and `halted_within_window`. The expected span starts at the contract's first settlement and ends at its halt: the time the instrument master recorded its status leaving trading, else its last settlement plus one interval once its current row stopped updating; with no known halt it runs to now. Compare `acc_*` across contracts only on complete windows where `listed_within_window` and `halted_within_window` are both false: those windows sum fewer hours than the window. `rate` is a fraction, not a percent, and it is charged once per `interval_hours`. Annualize with `rate * (24 / interval_hours) * 365` (current rows carry it as `apr`). A fixed 8-hour assumption misprices every 1h, 2h, 4h and 24h contract. Errors: 400, 401, 403, 429, 500, 503. --- ### GET /v1/funding/settlement How many dollars actually changed hands at funding settlement, and which side paid it. `fee_usd = open_interest_usd * rate`, priced at the one-sided open interest (each contract counted once: the side that pays) recorded at or before each settlement, never re-priced at today's OI. Authentication: Required. Parameters: | Name | In | Type | Required | Default | Description | |----------|-------|---------|----------|-----------|-------------| | window | query | string | no | "current" | Settlement window. Enum: `current`, `1d`, `3d`, `7d`. `current` is the next 24 hours at current rates (each contract's forward rate x 24 / its own `interval_hours`), priced live and labelled `estimated`. | | class | query | string | no | "all" | Asset-class scope. Enum: `all`, `crypto`, `equity`, `commodity`, `fx`, `index`, `rwa`: one `asset_class` each, as on the funding board, and `rwa` is every non-crypto class at once (equity, commodity, fx, index). Settlement takes `class`, not `asset_class`. | | coin | query | string | no | -- | Comma-separated base coin tickers, e.g. BTC,ETH. Unfiltered by default. | | exchange | query | string | no | -- | Filter to coins settling on one venue. Slug, display name, or ccxt id. Unrecognized value returns 400. | | limit | query | integer | no | 100 | Max rows returned. Min: 1, Max: 1000. | | offset | query | integer | no | 0 | Zero-based row offset for pagination. | | sort | query | string | no | -- | Sort field for the selected window, optionally prefixed with "-" for descending. Enum: `base_coin`, `net`, `long_paid`, `short_paid`, `open_interest_usd` (each also accepted with a leading "-"). | | expand | query | string | no | -- | Set to `venues` to include each row's per-venue breakdown. Omitted by default. | Response (200): Success envelope. `data` is an object (not a bare array) so that `totals` travels with every response: ``` { "data": { "rows": [ { ...SettlementRow } ], "totals": { "current": {...}, "1d": {...}, "3d": {...}, "7d": {...} }, "settlementMeta": { "class": string, "coins": integer, "updated_at": string, "oi_excluded_venues": [ { "exchange": string, "reason": string } ], "total": integer, "limit": integer, "offset": integer }, "pagination": { "cursor": string|null, "has_more": boolean, "total": integer } | null }, "meta": { "request_id": string, "timestamp": string, "elapsed_ms": integer, ...the freshness envelope } } ``` `settlementMeta.updated_at` (and `meta.as_of`) is when the settlement windows were last refreshed (every 15 minutes; stale after 30 minutes), not the request time. A failed read returns 503 (`service_unavailable`, `Retry-After: 30`). Each window value: ``` { "net": number|null, // long_paid - short_paid "long_paid": number|null, // >= 0 "short_paid": number|null, // >= 0 "estimated": boolean, // current window only "rate_source": "predicted"|"current"|"mixed"|null, // current window only; "mixed" when a row's contracts used both "coverage_ratio": number, // realised windows only, 0-1 "partial": boolean, // realised windows only, true below the 0.9 coverage threshold "complete": boolean, // realised windows with coverage_ratio: coverage_ratio >= 0.9 (= !partial) "listed_within_window": null, // realised windows with coverage_ratio: always null here (no listing time in the settlement data) "halted_within_window": boolean // realised windows with coverage_ratio: a contract stopped settling inside the window; its coverage ends at its last settlement + one interval } ``` `net` is never returned without both legs: a $0 net can conceal $50M flowing each way. Null means an unpriced/absent contract, never a zero flow. `totals` is scoped to the selected `class` only: the five classes' totals (crypto, equity, commodity, fx, index), and `crypto` + `rwa`, each reconcile to the `all` totals, in every window, for `net`, `long_paid` and `short_paid`. Venue coverage: 24 of the 35 venues in Sharpe's funding book run an open-interest fetcher (Nado, LBank, Bitunix, edgeX, Phemex, Lighter Robinhood, Arcus, Ondo Perps, Antarctic, Polymarket Perps and Kalshi have none: their contracts carry null open interest), and all store one-sided USD open interest: venues that publish both sides (Bybit, Gate.io, Bitget, Pacifica, Backpack, ApeX, Extended) are read through their own one-sided field or halved, and `tradeXYZ`, `Lighter`, `Variational` and `Aster`, withheld until 2026-09-27, contribute again (their figures were one side all along; the sources they were checked against publish two). `MEXC` is the exception: its open interest moves 7.00x the position change its own trade feed reports, so its dollars appear only in the per-venue breakdown (`venues[].excluded_from_totals`) and are left out of every coin row, `open_interest_usd` and `totals`; `settlementMeta.oi_excluded_venues` names it with the reason. Errors: 400, 401, 403, 429, 500, 503. --- ### GET /v1/funding/coins Coin index for the funding book: every distinct base coin in the current funding-rate snapshot with a display name and a same-origin logo path, ordered by symbol. Use it to build coin pickers without downloading the full funding book. Authentication: Required. Parameters: None. Response (200): ``` { "data": { "coins": [ { "symbol": string, // e.g. "BTC" "name": string|null, // e.g. "Bitcoin"; null when no metadata exists "logo_url": string|null // same-origin proxy path; null when no logo exists } ] }, "meta": { "request_id": string, "timestamp": string, "elapsed_ms": integer } } ``` Errors: 401, 429, 500, 503. --- ### GET /v1/global/overview Whole-market derivatives board. Returns market-wide metrics (total open interest -- one-sided USD notional, each contract counted once, summed over every venue except metrics.openInterestExcludedVenues -- with its crypto-versus-RWA split, 24h liquidations on Binance, Bybit and Deribit only (a lower bound, not the market total), average Wilder RSI(14) across the top 100 crypto perps by market cap, the Altcoin Season Index, and open interest by asset class) plus a ranked per-asset row table for the requested tab. Liquidations are crypto-only: no RWA perp venue publishes a liquidation feed. Market cap is absent on the preipo and index tabs. Authentication: Required. Parameters: | Name | In | Type | Required | Default | Description | | ------ | ----- | ------- | -------- | --------- | ----------- | | tab | query | string | No | crypto | Universe to return rows for: crypto, equity, preipo, etf, index, commodity, fx. | | limit | query | integer | No | -- | Maximum rows per page (1-1000). Enables cursor pagination. | | cursor | query | string | No | -- | Opaque pagination cursor from a previous response. | ### GET /v1/rwa-perps/rates Funding and carry for real-world-asset perpetuals (RWA perps: stocks, pre-IPO, ETFs, indices, commodities, FX) across 13 venues: CEXs, perp DEXs and Hyperliquid HIP-3 builder markets. Authentication: Required. Parameters: | Name | In | Type | Required | Default | Description | |--------|-------|---------|----------|-----------|-------------| | type | query | string | no | "current" | Type of data. Enum: `current`, `history`, `stats`. | | symbol | query | string | depends | -- | Underlying ticker (e.g. TSLA, NVDA, XAU, US500), case-insensitive. Required when type=history. GOOG and GOOGL are distinct share classes. An unlisted symbol returns an empty list. | | venue | query | string | no | -- | Filter to one venue, case-insensitive (Binance, Bybit, OKX, Bitget, Gate, Kraken, Aster, Lighter, Extended, GRVT, ApeX, Pacifica, or the Hyperliquid HIP-3 builder venue: Hyperliquid). Registry-driven, not a fixed enum; an unknown venue is a 400 that names the valid ones. | | days | query | integer | no | 7 | Days of history (type=history only). Min: 1, Max: 90. | | limit | query | integer | no | -- | Max records per page. Min: 1, Max: 5000. | | cursor | query | string | no | -- | Opaque pagination cursor from previous response. | | format | query | enum(json, csv) | no | "json" | Response format. When set to "csv", the response Content-Type is text/csv instead of JSON (current and history rows; stats stays JSON). | Behavior by type: - `current`: Latest funding/rollover snapshot per venue market. `funding_apr` annualizes each venue's own settlement interval; borrow-based stock markets report both-sides rollover in `borrow_apr_annual`, excluded from funding spreads. - `history`: Stored session-tagged settlement time-series for one symbol, for Hyperliquid (the trade.xyz HIP-3 dex) and Kraken only, stored from 2026-07-28. No other venue's settlement history is served (the terminal symbol page fetches other venues' history live for display only). Requires `symbol`. - `stats`: Best carry, top cross-venue funding spread, weekend premium (7d), and tracked open interest over canonical markets (one per symbol and venue). Best carry and top spread consider only markets with at least $1M open interest that are neither price-suspect nor stale; total open interest sums every canonical market that is neither price-suspect nor stale. Freshness: current rows refresh every 30 minutes (:09 and :39 UTC). `current` and `stats` responses carry X-Data-As-Of, X-Freshness-Sla-Seconds (3600), X-Data-Stale (true only when the whole snapshot is past 1 hour) and, when individual venues lag, X-Data-Lagging-Venues. `history` responses carry no freshness headers. Response (200): Success envelope or paginated envelope. Data shape for type=current (each item): ``` { "venue": string, // Registry-driven venue name "market": string, // venue-native id, e.g. "xyz:TSLA", "PF_TSLAXUSD" "symbol": string, // e.g. "TSLA" "asset_class": string|null, // "equity" | "preipo" | "etf" | "index" | "commodity" | "fx" "mechanism": string, // "standard" | "builder_set" | "funding_plus_borrow" "funding_rate": number|null, // fraction per interval; null when venue has no periodic funding "interval_hours": number, // native market settlement interval "funding_apr": number|null, // annualized funding fraction (rate x 8760 / interval_hours) "borrow_apr_annual": number|null, // Borrow-based venue rollover, both-sides cost "mark_price": number|null, "oracle_price": number|null, "open_interest_usd": number|null, "next_funding_time": string|null, // ISO 8601 "price_deviation": number|null, // fraction off the cross-venue median mark (0.01 = 1%) "is_price_suspect": boolean|null, // true when the mark is more than 2% (0.02) off that median "last_nonzero_funding_apr": number|null, // the most recent non-zero funding_apr seen "last_nonzero_funding_at": string|null, // ISO 8601, the sync that last saw it "updated_at": string, // ISO 8601 "is_stale": boolean, // true after 1 hour without a sync "funding_status": string // "live" | "zero" (a real 0 on a market that has funded, home market open) | "paused" (0 while the home market is closed) | "zero_by_design" (the market has never printed non-zero funding) | "none" (rollover venue); only live and zero enter stats spreads } ``` Data shape for type=history (each item): ``` { "venue": string, "market": string, "symbol": string, "rate": number, // settled funding fraction for the interval "interval_hours": number, "session_phase": string, // "market" | "after_hours" | "weekend" | "holiday", on the underlying's home exchange (NYSE, KRX, HKEX, TSE, SSE/SZSE, or CME 23/5 for commodities and FX) "settled_at": string // ISO 8601 } ``` Data shape for type=stats (a single object): ``` { "bestCarry": { "symbol": string, "venue": string, "fundingApr": number, "mechanism": string, "windowHours": integer, "settlements": integer } | null, // trailing-24h REALISED funding (settled rates summed x 8760/24), Hyperliquid and Kraken markets with >= $1M OI and 90% of settlements stored; never one print "topSpread": { "symbol": string, "spreadApr": number, "maxVenue": string, "minVenue": string, "maxApr": number, "minApr": number } | null, // this period annualised; legs are funding_status live or zero only "weekendPremiumApr": number|null, // mean weekend minus mean weekday annualized funding, trailing 7d (Hyperliquid + Kraken settlements) "totalOpenInterestUsd": number|null, "venues": integer, "symbols": integer, "markets": integer, "asOf": string|null, // ISO 8601, newest row "stale": boolean, // the whole snapshot is past 1 hour "laggingVenues": [{ "venue": string, "asOf": string|null }] // venues behind the threshold, oldest first } ``` Errors: 400, 401, 403, 429, 500, 502, 503. --- ### GET /v1/futures/data Futures chart time-series data. Authentication: Required. Parameters: | Name | In | Type | Required | Default | Description | |-----------|-------|---------|----------|---------|-------------| | chart | query | string | yes | -- | Chart identifier. See chart list below. | | coin | query | string | no | "BTC" | Base coin ticker. Open-interest charts include every contract of its asset (PEPE: the 1000PEPE and KPEPE contracts). | | timeframe | query | string | no | "3M" | Lookback window. Enum: `1W`, `2W`, `1M`, `3M`, `6M`, `1Y`, `3Y`. | | exchanges | query | string | no | -- | Comma-separated exchange names (e.g. "Binance,Bybit,OKX"). | | limit | query | integer | no | -- | Max data points per page. Min: 1, Max: 10000. | | cursor | query | string | no | -- | Opaque pagination cursor. | Available chart values: - perp-dislocation: Perp premium, funding APR, and open-interest dislocation - funding-cost -- OI-weighted funding cost across venues - crowding-risk -- Funding/OI/long-share/price crowding score with complete-input coverage - flow-confirmation -- Taker-flow CVD, price, and open-interest confirmation - carry-curve -- Perp funding plus dated-futures basis curve - perpetual-price -- OHLCV candlestick data - funding-rate -- Historical funding rate time-series - oi-snapshot -- Open interest snapshot across exchanges - oi-change -- Open interest change over time - oi-daily-change -- Daily OI delta - oi-stacked -- Stacked OI by exchange - oi-volume -- OI vs volume comparison - volume-snapshot -- Current 24h volume snapshot by exchange - volume-history -- Historical dollar volume by exchange - liquidations -- Long and short liquidation events - annualized-basis -- Rolling 3-month dated-futures annualized basis - term-structure -- Futures term structure: each venue's latest dated contracts at least 14 days to expiry - long-short-ratio -- Global long/short ratio - top-trader-ls -- Top trader long/short ratio - cvd -- Cumulative volume delta - returns-session -- Returns by trading session (Asia, Europe, US) - returns-heatmap -- Returns heatmap by hour and day - returns-hour -- Hourly returns distribution - returns-day -- Daily returns distribution Supported exchanges: Binance, Bybit, OKX, Deribit, Hyperliquid (defaults), Bitget, Gate.io, KuCoin, MEXC, HTX (optional; the `exchanges` filter accepts them on funding-rate, funding-cost, crowding-risk, perpetual-price, volume-snapshot, volume-history and the returns charts only). Response (200): Success envelope. Data shape varies by chart type. Open interest is one-sided USD notional per venue (each contract counted once). A venue's row is the sum of the coin's contracts on it, lot contracts included. The open-interest charts (oi-stacked, oi-change, oi-daily-change, oi-snapshot) also carry `openInterestExcludedVenues` (`[{ "exchange": string, "reason": string }]`): venues shown per venue whose rows must not be summed into a total (MEXC today). `chart=oi-snapshot` also carries `summary`: `oi_total_usd` (the coin's one-sided open interest across venues, each venue's latest reading within 6 hours, excluded venues left out; null with `oi_null_reason` when no venue has one), `oi_venue_count`, `oi_as_of` (the oldest reading inside the total) and `oi_excluded_venues` (`[{ "exchange": string, "reason": string }]`, venues with a reading that are left out). Errors: 400, 401, 403, 429, 500, 503 (the store could not be read; retry). --- ### GET /v1/futures/coins List of coins with available futures data. Authentication: Required. Parameters: None. Response (200): ``` { "data": { "coins": [ { "baseCoin": string, // e.g. "BTC" "displayName": string, // e.g. "BTC" "hasOI": boolean, // Open interest data available "hasFunding": boolean, "hasLiquidations": boolean, "hasLongShort": boolean, // Long/short ratio data available "hasCVD": boolean, "hasBasis": boolean, // Dated-futures basis available "venueCount": integer, "venues": [string], "marketCapRank": integer|null } ] }, "meta": { "request_id": string, "timestamp": string, "elapsed_ms": integer } } ``` Errors: 401, 429, 500. --- ### GET /v1/heatmap/data Market heatmap: coins (a Top N universe, or one narrative's or ecosystem's members) or one tile per narrative or ecosystem. Authentication: Required. Parameters: | Name | In | Type | Required | Default | Description | |----------|-------|--------|----------|-----------|-------------| | mode | query | string | no | "coins" | Grouping mode. Enum: `coins`, `narratives`, `ecosystems`. The aggregate modes return one tile per category. | | category | query | string | no | "top50" | Coins-mode universe, one of 39 ids: `top10`, `top20`, `top30`, `top50`, 15 narratives, 20 ecosystems (e.g. layer-1, defi, solana-ecosystem). The legacy `top-100` is an alias of `top50`; aliases and /heatmap/ page slugs resolve to their category. Ignored in the aggregate modes. | | ex | query | string | no | | Comma-separated CoinGecko coin ids to leave out (e.g. bitcoin,ethereum). Coins mode drops them after the Top N cut without refilling; the aggregate modes rebuild every tile without them, and a tile left empty is counted in `omitted`. | Only eligible coins count: a 24h price change, market cap at least $1M, plausible 24h spot volume (at most 50x market cap) at least $100K, CoinGecko data under 48 hours old, and not a stablecoin, wrapped, bridged or staked copy, LP token, tokenized metal, fund, stock, ETF or pre-IPO token. An ecosystem's coins are the coins whose home chain it is. Response (200): Success envelope. `data` = `{ dots, updated_at, coverage, as_of, eligible, excluded, omitted }`. Each dot: `id` (CoinGecko id for a coin), `name`, `symbol`, `kind` (coin|category), `marketCap`, `price`, `logoUrl`, `returns` (price return as a fraction for 1h, 4h, 24h, 7d, 30d, 1y; `3y` is always null), `x` (RVOL), `avgFundingApr` (annualized funding as a fraction, with `fundingMethod` and `fundingVenuesUsed` on coins), `rsi` (Wilder RSI(14) on 1h, 4h, 1d candles), `openInterest` (USD, MEXC excluded), `oiChange24h` (OI value change in USD, as a fraction), `volume24h`. Tiles add `median` (the median member) and `constituents` (members with a value per metric, weight coverage, largest member). A tile is the basket of every eligible member: cap-weighted price change, OI-weighted funding, summed OI and volume ratios, median-member RSI; each is null when the members with a value carry under 50% of the tile's weight (RSI and `median`: under 5 members). `as_of` dates funding and the candle metrics (1h/4h price, RSI). New fields are rounded (returns and funding 4 dp, RVOL 2 dp, RSI 1 dp, shares 3 dp); older fields keep full precision. The cache is rebuilt every three hours and is stale after six. The /heatmap treemap and the Market Scatter page (/scatter) both draw this answer; the scatter has no endpoint or MCP tool of its own. Errors: 400, 401, 403, 429, 500, 503. --- ### GET /v1/correlation/matrix NxN price correlation matrix for crypto and TradFi assets. Authentication: Required. Parameters: | Name | In | Type | Required | Default | Description | |--------|-------|--------|----------|---------|-------------| | period | query | string | no | "30d" | Lookback period. Enum: `30d`, `90d`, `1y`, `3y`. | | ids | query | string | no | default set | Comma-separated asset IDs. Crypto: CoinGecko IDs (bitcoin, ethereum, solana). TradFi: short IDs (sp500, gold, nvda). Max 10. Default: bitcoin,ethereum,solana,sp500,gold. Ids no source recognises are listed in `unresolved` (partial success); a selection with none recognised returns 404 resource_not_found. | Response (200): Success envelope containing: ``` { "data": { "assets": [string], // Ordered list of asset IDs "matrix": [[number|null]], // NxN Pearson coefficients (-1 to 1); null on thin overlap, and on the diagonal for an asset with no observations "dataPoints": integer // Number of data points used }, "meta": { ... } } ``` Errors: 400, 401, 403, 404, 429, 500, 503. --- ### GET /v1/tracker/market-overview Broad market overview with global metrics. Authentication: Required. Parameters: None. Response (200): Success envelope containing BTC/ETH price and 24h return (`return_24h`), total market cap and volume, BTC dominance as `btc_market_share`, the total market cap's 24h return (`market_cap_return_24h`), and Fear & Greed. Returns and shares are fractions (0.573 = 57.3%). Auxiliary source fields may be null when unavailable. Errors: 401, 403, 429, 500, 503. --- ### GET /v1/market-cap/search Search crypto and supported TradFi assets by name or ticker. Authentication: Required. Parameters: | Name | In | Type | Required | Default | Description | |------|-------|--------|----------|---------|-------------| | q | query | string | yes | -- | Search query. Min length: 2, Max length: 100. | Response (200): Success envelope containing up to 20 matching assets with asset class, market cap, nullable price and `dayReturn` (a fraction: crypto over 24 hours, TradFi over the last session), plus nullable crypto FDV and estimated ATH fields. When CoinGecko fails and no TradFi asset matches, the answer is 503 `service_unavailable` with `Retry-After: 60` ("CoinGecko is unavailable."); an answer missing its TradFi or CoinGecko half is `runtime_status: "degraded"` and never replayed from the keyed cache. Errors: 400, 401, 403, 429, 500, 503. --- ### GET /v1/gem-finder/data Market-ranked token screening data. Authentication: Required. Parameters: | Name | In | Type | Required | Default | Description | |--------|-------|---------|----------|---------|-------------| | limit | query | integer | no | -- | Max tokens to return. Min: 1, Max: 1000. Omit for the complete cached payload. | | cursor | query | string | no | -- | Opaque, snapshot-bound pagination cursor. It expires when the cache refreshes. | Response (200): Success envelope containing market cap, nullable FDV and FDV/MCap ratio, volume, nullable price and market-cap changes, circulating supply, ATH and ATL history, the preferred chain plus every supported chain the asset is deployed on, observed exchange availability, quote freshness, and enrichment coverage. Assets whose upstream quote is more than 24 hours old are excluded as no-longer-trading. Ambiguous same-ticker assets do not receive symbol-only exchange attribution. No wallet signal or proprietary token score is returned. Errors: 400, 401, 403, 429, 500, 503. --- ### GET /v1/news/feed Aggregated crypto news from 50+ sources. Authentication: Required. Parameters: | Name | In | Type | Required | Default | Description | |----------|-------|---------|----------|---------|-------------| | limit | query | integer | no | 200 | Max articles. Min: 1, Max: 500. | | offset | query | integer | no | 0 | Articles to skip for pagination. Min: 0. | | category | query | string | no | -- | Filter by news category. | | coin | query | string | no | -- | Filter by coin ticker. | | since | query | string | no | -- | ISO 8601 timestamp. Only return articles published after this time. | Response (200): Success envelope containing array of news articles. Errors: 400, 401, 403, 429, 500, 503. --- ### GET /v1/price-prediction/data Deterministic directional scores with derivatives and momentum sub-signal breakdowns. Optional 7D/30D values are volatility-scaled heuristic scenarios, not calibrated targets or probabilities. Authentication: Required. Parameters: | Name | In | Type | Required | Default | Description | |------|-------|--------|----------|---------|-------------| | coin | query | string | no | -- | Ticker, canonical coin slug, or CoinGecko ID (e.g. `BTC` or `bitcoin`). Omit for all coins. | Response (200): Success envelope containing directional scores and available sub-signal breakdowns across funding, OI, perp basis, CVD, long/short positioning, liquidations, RSI, EMA, positioning pressure, momentum exhaustion, and squeeze risk. An unknown coin, or a curated coin with no publishable score, returns 404 `resource_not_found` whose detail lists valid slugs. A live score that cannot be computed returns 503 `service_unavailable` with `Retry-After: 60`. Errors: 400, 401, 403, 404, 429, 500, 503. --- ### GET /v1/arbitrage/spot-perp Spot-perpetual funding rate arbitrage opportunities, from the board the arbitrage-boards cron composes every 5 minutes (stale after 10 minutes). `netApr` is the funding APR less round-trip taker fees, the adverse entry basis and, on a sell-spot row, the coin's public borrow rate (Binance, OKX, Bybit, Gate.io; `borrowApr`); a sell-spot row without a public borrow rate is `indicative` with `indicativeReason: borrow_unpriced` and ranks after executable rows. A row is `executable` only with top-of-book depth reported on both legs covering $10,000; spot prices are last trades with no book, so a row that passes every other check is `indicative` with `indicativeReason: no_spot_depth`, and those rows rank first among the indicative ones. `X-Data-Venues` lists the venues a filter may offer, leaving out venues that are not live or whose funding rows are all stale (`X-Data-Missing` names them). Authentication: Required. Parameters: | Name | In | Type | Required | Default | Description | |-----------|-------|--------|----------|---------|-------------| | exchange | query | string | no | "all" | Filter by exchange name, or "all" for all exchanges. | | direction | query | string | no | "all" | Filter by perpetual-leg direction: `short` for positive funding capture or `long` for negative funding capture. Enum: `all`, `long`, `short`. | | minOiUsd | query | number | no | 0 | Minimum perp-leg open interest in USD (`perpOpenInterestUsd`); unknown open interest fails a positive floor. | | limit | query | integer | no | -- | Rows per page (1-1000), in board order. Omitted with no `cursor`: every row (about 3,000). | | cursor | query | string | no | -- | Opaque cursor from the previous page's `pagination.cursor` (100 rows a page when `limit` is omitted). | Response (200): Success envelope (paginated, with `pagination`, when `limit` or `cursor` is given) of spot-perp funding-capture rows with verified spot or margin availability, diagnostic basis, gross APR (`|fundingRate| × 8760 / intervalHours`, the market's own interval) and net APR: `netApr = apr − (2 spot + 2 perp taker fills at the venue's fee + the adverse entry basis at the quoted sides) × 365 / 30 − borrowApr` (the borrow cost only on a sell-spot row whose venue publishes it, Bybit; elsewhere `requiresBorrow: true`, `borrowCostIncluded: false`). A favourable entry basis is never credited. `executable` rows (both legs priced, one instrument within 5% of the perp's index/mark price per asset unit, both quotes at most 10 minutes old at request time) rank first by `netApr`, then `indicative` rows by `netApr` where present, else `apr`; `indicativeReason` says why (`unpriced`, `identity_mismatch`, `not_live`, `contract_type`, `margin_type`, `price_gap` for 5-20% apart or more, `stale_quote`). `netApr` is null on `unpriced` rows and past a 20% gap. Each row also carries `perpSymbol`, `perpLotMultiplier`, `perpOpenInterestUsd`, `fundingIsStale`, `pairStatus` (`eligible`, `unpriced`, or the failed check), `entryBasisRate`, `roundTripFeeRate`, `breakEvenDays`, `requiresBorrow`, `borrowCostIncluded`, `borrowApr`, `apr7d` (`cumRate7d × 365 / 7`, signed for the row's direction), `carrySignFlip7d`, `fundingAsOf`, `pricesAsOf`, `spotPriceAsOf`, `perpPriceAsOf`. The board is composed every 5 minutes by a scheduled job and is stale after 10 minutes; with no board to serve the endpoint answers 503 (`service_unavailable`, `Retry-After: 30`). Headers: `X-Data-Missing` (each configured venue that is not a quoted member, `Venue:reason` with `not_live`, `stale` or `no_ticker`) and `X-Data-Venues` (the venues a filter may offer). Errors: 400, 401, 403, 429, 500, 503. --- ### GET /v1/arbitrage/cross-exchange Cross-exchange funding differentials across every funding venue (30+; a venue the instrument master marks not live is skipped) and asset class — crypto plus RWA perps (equity, commodity, FX, index; pairs never cross classes). Legs pair within one instrument-master asset (BONK, 1000BONK and KBONK are one; prices compared per asset unit); one row per asset: its executable pair with the highest `netApr`, else its best `no_depth` pair, else its largest gross differential. `netFundingRate` is the per-period differential at `intervalHours` (the faster leg's cadence; each leg's own interval is `longIntervalHours` / `shortIntervalHours`). Spread comes from real books where both legs expose one (`spreadSource` "book") and reference prices otherwise ("reference"). `netApr = apr − (2 taker fills on each venue + max(spreadRate, 0)) × 365 / 30`, only on book-priced rows; a favourable spread is never credited. A row is `executable` when its spread is book-priced, its legs are within 5% of each other, both quotes are at most 10 minutes old at request time and both venues report top-of-book depth covering $10,000; otherwise `indicative` with `indicativeReason` (`no_depth` when a venue reports no size, `oi_below_notional` when a leg reports open interest under $10,000, `unpriced`, `reference_only`, `price_gap`, `thin_book`, `stale_quote`, `identity_mismatch`, `not_live`, `contract_type`, `margin_type`). Executable rows rank first by `netApr`, then `no_depth` rows, then the other indicative rows, by `netApr` where present, else gross `apr`. Unknown spread, open interest or volume are null, never zero. edgeX, ApeX and GRVT publish no bulk ticker, so their legs are unpriced. Authentication: Required. Parameters: | Name | In | Type | Required | Default | Description | |-----------|-------|--------|----------|---------|-------------| | exchanges | query | string | no | -- | Comma-separated list of venues to compare; omit for every venue. | | assetClass | query | string | no | all | "all", "crypto", or "rwa" (equity/commodity/FX/index perps). | | minOiUsd | query | number | no | 0 | Minimum smaller-leg open interest in USD; unknown OI fails a positive floor. | | minVolUsd | query | number | no | 0 | Minimum smaller-leg 24h volume in USD; unknown volume fails a positive floor. | | limit | query | integer | no | -- | At most this many rows, the first in board order. Min: 1. Omit (with `cursor`) for every row; a limited v1 answer carries `pagination`. | | cursor | query | string | no | -- | Opaque cursor from the previous page's `pagination.cursor` (100 rows a page when `limit` is omitted). | Response (200): Success envelope (paginated when `limit` or `cursor` is given) with `apr` (gross), `netApr` (book-priced rows only), `roundTripFeeRate`, `breakEvenDays`, `executionStatus` + `indicativeReason`, `netFundingRate` + `intervalHours`, `longIntervalHours` / `shortIntervalHours`, `longSymbol` / `shortSymbol`, `spreadRate` + `spreadSource`, `executableDepthUsd`, per-leg open interest (the venue ticker's, else the stored figure at most ~10 minutes old) and 24h volume (nullable), the next settlement timestamp, `pairStatus` (`eligible`, `unpriced`, or the failed check), `fundingAsOf` (the older leg's funding write), `pricesAsOf` (the older leg's quote) and `longPricesAsOf` / `shortPricesAsOf`. The board's inputs are composed every 5 minutes by a scheduled job and are stale after 10 minutes; each pair is re-priced at read on its legs' own quote times. With no board to serve the endpoint answers 503 (`service_unavailable`, `Retry-After: 30`). Headers: `X-Data-Missing` (`Venue:reason`, reason `not_live`, `stale` or `no_ticker`) and `X-Data-Venues`. Errors: 400, 401, 403, 429, 500, 503. --- ### GET /v1/narratives/data Analytics for 30 crypto narratives. Authentication: Required. Parameters: | Name | In | Type | Required | Default | Description | |-------------|-------|--------|----------|---------|-------------| | narrative | query | string | no | -- | Narrative slug for detail view. Omit for full list. | | correlation | query | string | no | -- | Set to "true" to include correlation data for the narrative's tokens. | | timeframe | query | string | no | -- | Timeframe for correlation data. | | sort | query | string | no | -- | List only. `-return24h` or `return24h`: order `narratives` by 24h return, highest or lowest first; a narrative without a 24h return is last either way. | | top | query | integer | no | -- | List only. Adds `top`: the N narratives (1-50) with the highest 24h return, highest first. A narrative without a 24h return is never ranked. | | bottom | query | integer | no | -- | List only. Adds `bottom`: the N narratives (1-50) with the lowest 24h return, lowest first. | Available narrative slugs: layer-1, layer-2, defi, defai, ai-agents, depin, desci, gaming, dex-tokens, cex-tokens, lending, memes, nfts, oracles, privacy, rwa, stablecoins, restaking, liquid-staking, modular, socialfi, intent, prediction-markets, perps, bridges, account-abstraction, tap-to-earn, telegram-apps, zk, yield-farming. Response (200): Success envelope containing narrative-level market cap, volume, performance, social metrics, and optionally correlation data. With `top` / `bottom`, the list also carries `top` / `bottom` arrays of the same rows. Errors: 400, 401, 403, 429, 500, 503. --- ### GET /v1/ecosystems/data Analytics for 25 blockchain ecosystems including TVL. Authentication: Required. Parameters: | Name | In | Type | Required | Default | Description | |---------------|-------|--------|----------|---------|-------------| | ecosystem | query | string | no | -- | Ecosystem slug for detail view. Omit for full list. | | correlation | query | string | no | -- | Set to "true" to include correlation data. | | timeframe | query | string | no | -- | Timeframe for correlation data. | | excludeNative | query | string | no | -- | Set to "true" to exclude the native token from aggregated metrics. | Available ecosystem slugs: ethereum, solana, bnb-chain, arbitrum, base, bitcoin, avalanche, optimism, cosmos, polkadot, sui, aptos, ton, tron, cardano, sonic, hyperliquid, berachain, sei, zksync, starknet, scroll, movement, blast, linea. Response (200): Success envelope containing ecosystem-level market cap, volume, TVL (from DeFi Llama), performance, and optionally correlation data. Errors: 400, 401, 403, 429, 500, 503. --- ### GET /v1/memecoins/data Memecoin narrative data across grouped aggregate, theme, chain, and launchpad categories. Authentication: Required. Parameters: | Name | In | Type | Required | Default | Description | |------------|-------|--------|----------|---------|-------------| | narrative | query | string | no | -- | Memecoin narrative slug. Omit for all narratives. | | historical | query | string | no | -- | Include historical data. Enum: `24h`, `7d`, `30d`, `1y`. | | coinHistory | query | string | no | -- | Include per-coin price history. Enum: `24h`, `7d`, `1m`, `1y`. | Available narrative slugs include dog-coins, cat-coins, frog-coins, ai-memes, trump-coins, celebrity-coins, solana-memes, base-memes, bnb-memes, bitcoin-memes, pump-fun-memes, ton-memes, tron-memes, sui-memes, desci-memes, commodities-memes, and sun-pump-memes. Response (200): Success envelope containing narrative-level market cap, market share, volume, freshness, coverage limits, calculation method, momentum kind, performance, and top tokens per narrative. Errors: 400, 401, 403, 429, 500, 503. --- ### GET /v1/memecoins/launches Recently launched tokens from recognized memecoin launchpads, screened by age, liquidity, volume, and transaction count. Generic new DEX pairs are excluded. Authentication: Required. Parameters: | Name | In | Type | Required | Default | Description | |------|----|------|----------|---------|-------------| | chains | query | string | no | solana,base,bsc,ethereum | Comma-separated chain ids. | | days | query | number | no | 7 | Launch lookback window from 1 to 30 days. | | limit | query | number | no | 80 | Maximum launch rows from 1 to 200. | | profile | query | string | no | balanced | Screening profile: `discovery`, `balanced`, or `strict`. | Response (200): Success envelope containing screened launch rows plus `coverage.status`, `successfulChains`, `failedChains`, and `classificationMethod=recognized_meme_launchpad`. Errors: 400, 401, 403, 429, 500, 503. --- ### GET /v1/market/derivatives-overview Market-wide derivatives snapshot aggregating OI and 8-hour-equivalent funding rates across all tracked exchanges and coins. Funding is averaged over each (venue, asset) primary contract with a fresh rate, weighted by that contract's own open interest; the endpoint fails closed if either source dataset is unavailable. Authentication: Required. Parameters: None. Response (200): ``` { "data": { "total_oi_usd": integer, // /v1/global/overview's metrics.openInterestUsd: one-sided USD, crypto assets from $100K plus RWA perps, oi_excluded_venues left out "avg_funding_rate": number, // Simple average of the 8h-equivalent rate over each (venue, asset) primary contract "oi_weighted_funding_rate": number, // The same, each rate weighted by its own contract's open interest "top_coins_oi": [ // Top 20 coins by open interest { "coin": string, // The asset's symbol: every contract counts once, lot spellings included (PEPE sums 1000PEPEUSDT and kPEPE); two assets sharing a ticker are two entries (CAT the stock, CAT the coin); the stored base coin while the instrument master is unavailable "open_interest_usd": integer, // Total OI in USD "exchange_count": integer // Number of exchanges with OI data for this coin } ], "exchange_count": integer, // Total unique exchanges in the dataset "coin_count": integer, // Total unique coins with OI data "oi_excluded_venues": [ // Left out of every OI total and weight, with why (MEXC today) { "exchange": string, "reason": string } ], "updated_at": string // ISO 8601 timestamp }, "meta": { "request_id": string, "timestamp": string, "elapsed_ms": integer } } ``` Errors: 401, 429, 502, 500. --- ### GET /v1/meta/coverage Metadata about available data products, exchanges, coins, chart types, timeframes, and update frequencies. Authentication: None required (public endpoint). Parameters: None. Response (200): ``` { "data": { "products": { "": { "name": string, "status": "production" | "shared" | "planned", "ui_routes": [string], "public_api_routes": [string], // always [] since 2026-11-11: no keyless route is open to outside callers "v1_api_routes": [string], "docs_routes": [string], "openapi_paths": [string], "mcp_tools": [string], "data_sources": [string], "freshness_sla": string, "datasets": [ { "id": string, "cadence_seconds": integer, "freshness_sla_seconds": integer } ], // cadence 0 = fetched per request "tests": [string], "notes": string // Optional } } }, "meta": { "request_id": string, "timestamp": string, "elapsed_ms": integer } } ``` Product slugs match the typed IDs in `src/lib/api/product-surface-registry.ts`, one entry per product; `product_count` gives the number. Cache: 1 hour. Errors: 500. --- ### GET /v1/arbitrage/cex-spot-transfer Returns live CEX spot-transfer routes (KuCoin, Bitget, HTX; a venue is counted `not_live` and skipped while its spot tickers show no live market) after exact network matching (ambiguous network names are refused), token-contract matching, withdrawal/deposit status and minimums, withdrawal fees, per-venue taker fees (`buyTakerFee`, `sellTakerFee`), depth and slippage. `netReturn = [VWAP_sell(q − withdrawFee) × (1 − sellTakerFee) − N × (1 + buyTakerFee)] / N`, a fraction of the notional, per trip. Routes netting above zero with fresh books (60 s) and networks (10 minutes) are `executable` and rank first; up to 50 near misses follow as `indicative` (`indicativeReason`: `below_fees`, `stale_quote`, `stale_network`). `transferConfirmations` is the sell venue's deposit confirmations (`transferEta` its deprecated label); `meta.transferScan` counts coins scanned, venues answering, routes evaluated and profitable, and the best net (`bestNetReturn`). Same-ticker contract mismatches fail closed. Authentication: Required. Parameters: | Name | In | Type | Required | Default | Description | |------|----|------|----------|---------|-------------| | coin | query | string | no | -- | Optional base coin ticker, for example BTC, ETH, or SOL. | | exchanges | query | string | no | -- | Comma-separated exchange filter, for example Binance,Bybit,OKX. | | minNet | query | number | no | -- | Minimum `netReturn` per trip, as a fraction (0.001 = 0.1%). | | minDepthUsd | query | number | no | -- | Minimum executable depth in USD when available. | | notional | query | number | no | 10000 | Position notional in USD. | | limit | query | integer | no | 100 | Maximum number of rows returned. | | cursor | query | string | no | -- | Opaque cursor from the previous page. | | format | query | enum(json, csv) | no | "json" | Response format. When set to "csv", the response Content-Type is text/csv instead of JSON. | Response statuses: 200, 400, 401, 403, 429, 500, 503. --- ### GET /v1/arbitrage/dated-futures-basis Returns cash-and-carry rows priced at spot ask and dated-futures bid across Binance, OKX and Bybit (Deribit has no spot leg, so it appears only in calendar spreads): `basis = futureBid / spotAsk − 1`, `netApr = (basis − fees) × 365 / days`, `fees` = 2 spot + 2 futures taker fills at the venue's standard fee (all fractions), `days` recomputed from the expiry on every request. Rows at least 3 days from expiry rank first (`nearExpiry` rows last); within them executable rows, then `snapshot_quote` rows (executable on a live read: quotes older than 10 minutes), then the rest, each by `netApr`. `indicativeReason` names the first failed check (`stale_snapshot`, `no_depth`, `depth_below_notional`, `oi_below_notional`, `no_volume`, `backwardation_needs_borrow`, `snapshot_quote`). Reference-only rows are omitted. The per-coin `aggregate` covers only contracts at least three days from expiry. Binance COIN-M and Bybit inverse delivery contracts are included (`marginType: inverse`). Priced from the 5-minute dated-quotes snapshot (dataset `arbitrage_dated_quotes`, written by the arbitrage-boards cron with top-20 book walks; Binance USDT-M and COIN-M, OKX, Bybit linear and inverse, Deribit) for every venue whose quotes there are at most 10 minutes old, so rows can be executable all hour: the answer is then dated by that snapshot (stale after 10 minutes, cached up to 100 s / 200 s). Other venues come from the hourly term-structure snapshots, stale after 2 hours; when the stored term structure is past that, empty, or reference-only, the scanner reads the venues live (`meta.source: "live"`) and merges per venue (a failing venue keeps its stored rows). A failed data-store read returns 503 (`service_unavailable`, `Retry-After: 30`). Authentication: Required. Parameters: | Name | In | Type | Required | Default | Description | |------|----|------|----------|---------|-------------| | coin | query | string | no | -- | Optional base coin ticker, for example BTC, ETH, or SOL. | | exchanges | query | string | no | -- | Comma-separated exchange filter, for example Binance,Bybit,OKX. | | minNet | query | number | no | -- | Minimum fee-adjusted net basis APR (`netApr`), as a fraction (0.05 = 5%). | | minOiUsd | query | number | no | -- | Minimum open interest in USD. | | minVolumeUsd | query | number | no | -- | Minimum 24h futures or spot volume in USD. | | minDepthUsd | query | number | no | -- | Minimum executable depth in USD when available. | | marginType | query | enum(linear, inverse, both) | no | -- | Futures margin filter. | | notional | query | number | no | 10000 | Position notional in USD. A row is `executable` only when its snapshot is fresh and its top-of-book depth and any reported open interest are at least this notional. | | limit | query | integer | no | 100 | Maximum number of rows returned. | | cursor | query | string | no | -- | Opaque cursor from the previous page. | | format | query | enum(json, csv) | no | "json" | Response format. When set to "csv", the response Content-Type is text/csv instead of JSON. | Response statuses: 200, 400, 401, 403, 429, 500, 503. --- ### GET /v1/arbitrage/futures-calendar-spread Returns near-versus-far dated futures spreads (adjacent pairs plus monthly/quarterly pairs at least 7 days apart) using buy asks and sell bids, with direction and curve from mark (else mid) prices (`referenceForwardYield`, `priceReference`), never the last trade. `netRollApy = (sellBid / buyAsk − 1 − fees) × 365 / gapDays`, `fees` = 4 futures + 2 spot taker fills (fractions). Pairs with a near leg under 3 days or legs under 7 days apart are `belowTenorFloor` and rank last; within the rest executable pairs that clear their fees rank first, then such `snapshot_quote` pairs, then everything else. Post-fee losing spreads remain negative. Priced from the 5-minute dated-quotes snapshot (dataset `arbitrage_dated_quotes`, written by the arbitrage-boards cron with top-20 book walks; Binance USDT-M and COIN-M, OKX, Bybit linear and inverse, Deribit) for every venue whose quotes there are at most 10 minutes old, so rows can be executable all hour: the answer is then dated by that snapshot (stale after 10 minutes, cached up to 100 s / 200 s). Other venues come from the hourly term-structure snapshots, stale after 2 hours; when the stored term structure is past that, empty, or reference-only, the scanner reads the venues live (`meta.source: "live"`) and merges per venue. A failed data-store read returns 503 (`service_unavailable`, `Retry-After: 30`). Authentication: Required. Parameters: | Name | In | Type | Required | Default | Description | |------|----|------|----------|---------|-------------| | coin | query | string | no | -- | Optional base coin ticker, for example BTC, ETH, or SOL. | | exchanges | query | string | no | -- | Comma-separated exchange filter, for example Binance,Bybit,OKX. | | minNet | query | number | no | -- | Minimum signed post-fee net roll APY (`netRollApy`), as a fraction (0.05 = 5%). | | minOiUsd | query | number | no | -- | Minimum open interest in USD. | | minVolumeUsd | query | number | no | -- | Minimum 24h futures or spot volume in USD. | | minDepthUsd | query | number | no | -- | Minimum executable depth in USD when available. | | marginType | query | enum(linear, inverse, both) | no | -- | Futures margin filter. | | notional | query | number | no | 10000 | Position notional in USD. A row is `executable` only when its snapshot is fresh and its top-of-book depth and any reported open interest are at least this notional. | | limit | query | integer | no | 100 | Maximum number of rows returned. | | cursor | query | string | no | -- | Opaque cursor from the previous page. | | format | query | enum(json, csv) | no | "json" | Response format. When set to "csv", the response Content-Type is text/csv instead of JSON. | Response statuses: 200, 400, 401, 403, 429, 500, 503. --- ### GET /v1/arbitrage/perp-dated-carry Returns perp funding versus dated-futures carry rows, every rate a fraction. `datedBasis` is the dated contract's basis against the PERP (not spot) at the chosen trade's executable sides; `expectedFundingToExpiry` projects the 7-day realised funding average over the settlements left (`fundingSettlementsToExpiry` × `fundingIntervalHours`; the current print under 3 days, `fundingProjection`). `carryEdge = expectedFundingToExpiry − datedBasis`; `netCarryApr` is the chosen trade's edge less 2 perp + 2 dated taker fills (`fees`), × 365 / days. `direction` names the trade; most rows pair two venues (`crossVenue`: separate accounts and collateral, not priced). Rows at least 3 days from expiry rank first; within them executable rows, then `snapshot_quote` rows, then the rest; a perp without its own book is `no_perp_book`. One SLA per answer: 600 s when the dated leg is priced from the 5-minute dated-quotes snapshot (dataset `arbitrage_dated_quotes`, quotes at most 10 minutes old, cached up to 100 s / 200 s), else 7,200 s (the hourly term structure); `as_of` the oldest input. When the stored term structure is past its one-hour pairing window, empty, or reference-only, the scanner reads the venues live (`meta.source: "live"`) and merges per venue. A failed data-store read returns 503 (`service_unavailable`, `Retry-After: 30`). Authentication: Required. Parameters: | Name | In | Type | Required | Default | Description | |------|----|------|----------|---------|-------------| | coin | query | string | no | -- | Optional base coin ticker, for example BTC, ETH, or SOL. | | exchanges | query | string | no | -- | Comma-separated exchange filter, for example Binance,Bybit,OKX. | | minNet | query | number | no | -- | Minimum `netCarryApr` (the fee-adjusted annualized net carry, not the edge to expiry), as a fraction (0.05 = 5%). | | minOiUsd | query | number | no | -- | Minimum open interest in USD. | | minVolumeUsd | query | number | no | -- | Minimum 24h futures or spot volume in USD. | | minDepthUsd | query | number | no | -- | Minimum executable depth in USD when available. | | marginType | query | enum(linear, inverse, both) | no | -- | Futures margin filter. | | notional | query | number | no | 10000 | Position notional in USD. A row is `executable` only when its snapshot is fresh and its top-of-book depth and any reported open interest are at least this notional. | | limit | query | integer | no | 100 | Maximum number of rows returned. | | cursor | query | string | no | -- | Opaque cursor from the previous page. | | format | query | enum(json, csv) | no | "json" | Response format. When set to "csv", the response Content-Type is text/csv instead of JSON. | Response statuses: 200, 400, 401, 403, 429, 500, 503. --- ### GET /v1/arbitrage/funding-spread-history Returns a pair's historical funding spread and carry backtest from stored settlements (no exchange is called). `mode=spot-perp` takes one venue's perp (`venue`, optional `contract`) and `direction` (`short` = buy spot, short perp; `long` = sell spot, long perp, borrow interest not included); `mode=cross-exchange` takes `longVenue` and `shortVenue` (optional `longContract` / `shortContract`). Without a contract a leg uses the venue's contract for the coin with the largest current open interest (`contractSource: "resolved"`). The legs are aligned by settlement time with each settlement's gap-derived interval (never an assumed 8h): `series[].spreadApr = Σ ± rate × 8760 / h` (+ short leg, − long leg), null where a leg has no covering settlement; `cashflow` and `cumulativeCarry` are fractions of one leg's notional. `backtests` covers 1/7/14/30/60 days where shorter than `days`, then `days` (1-90), each ending at `windowEnd` (the legs' latest common settlement): `fundingCollected` (settlements in the window), `fees` (entry + exit taker fills at each venue's standard rate), `netReturn`, `grossApr` / `netApr` (× 365 / `coveredDays`), `negativeCarryDays` of `daysObserved` (24-hour periods back from the end), `maxDrawdown` of cumulative funding, `breakEvenDays`, `coverageRatio` and `complete`. Dated by the funding cron's last run, stale after 10 minutes. 400 for an unknown venue, a missing leg or a contract of another coin; 404 for a leg with no settlements in the window. Authentication: Required. Parameters: | Name | In | Type | Required | Default | Description | |------|----|------|----------|---------|-------------| | mode | query | enum(spot-perp, cross-exchange) | no | "spot-perp" | Which pair the legs form. | | coin | query | string | yes | -- | Base coin, for example BTC. | | venue | query | string | no | -- | Spot-perp venue: Binance, OKX, Bybit, Bitget, Gate.io, KuCoin, MEXC, BingX or HTX. | | contract | query | string | no | -- | Spot-perp perp contract symbol, for example BTCUSDT. | | direction | query | enum(short, long) | no | "short" | Spot-perp position on the perp. | | longVenue | query | string | no | -- | Cross-exchange long perp venue. | | longContract | query | string | no | -- | Cross-exchange long perp contract symbol. | | shortVenue | query | string | no | -- | Cross-exchange short perp venue. | | shortContract | query | string | no | -- | Cross-exchange short perp contract symbol. | | days | query | integer | no | 30 | Backtest window in days, 1-90. | Response statuses: 200, 400, 401, 403, 404, 429, 500, 503. --- ### GET /v1/arbitrage/borrow-rates Returns the spot-margin borrow rate of every coin the venues price without an account: Binance (VIP 0 cross-margin daily rate), OKX (basic daily rate), Bybit (No VIP hourly rate) and Gate.io (unified-account hourly rate, the 100 enabled currencies with the most USDT spot volume). Rates are fractions: `hourlyRate` per hour, `annualRate = hourlyRate × 8,760` (simple). One row per coin with every venue's quote, cheapest first; a venue that does not price a coin is absent, never 0. `venues` reports each venue's status (`ok` ≤ 5 minutes, `stale` = last good answer ≤ 15 minutes old, `failed`, `unsupported`) with its fetch time. KuCoin, Bitget, MEXC, BingX and HTX publish no keyless borrow rate. Read per request, each venue cached 5 minutes; dataset `margin_borrow_rates`, stale after 600 s. The spot-perp board subtracts these rates from reverse-carry rows (sell spot, long perp). Authentication: Required. Parameters: | Name | In | Type | Required | Default | Description | |------|----|------|----------|---------|-------------| | coin | query | string | no | -- | Borrowed asset, case-insensitive (BTC, USDT, PEPE). | | exchanges | query | string | no | -- | Comma-separated venues, case-insensitive: Binance, OKX, Bybit, Gate.io (KuCoin, Bitget, MEXC, BingX and HTX are accepted and reported unsupported). Default: all. | Response statuses: 200, 400, 401, 403, 429, 500, 503. --- ### GET /v1/arbitrage/fixed-floating-funding Returns every live Pendle Boros funding-rate market (one per venue perp and maturity: Binance, OKX, Bybit, Gate, KuCoin, Hyperliquid incl. the xyz builder dex, Lighter) with its implied (fixed) APR, the floating APR Boros reports, and Sharpe's own realised 7-day and 30-day funding for the same venue contract, annualised (acc × 365 / days). `spread7dApr` and `spread30dApr` are implied − realised: positive means locking the fixed rate beats what the floating leg has paid (the lock-fixed-carry signal); the spreads are gross of Boros and venue fees. A market whose venue contract is not in the funding store keeps its Boros figures and serves realised null with a reason (`venue_not_covered`, `contract_not_in_store`, `store_unavailable`, `accumulated_stale`, `listed_within_window`, `history_stale`), never 0. Rows also carry the executable edge (`edge7dApr`, `edge30dApr`: bestBidApr − realised to receive fixed, realised − bestAskApr to pay fixed, the larger; `edge30dSide` names the side), Boros's `takerFeeApr` and `settleFeeApr`, and `netEdge30dApr` (the 30-day edge net of both fees). Ranked with markets under 3 days to maturity last, then by `netEdge30dApr`, then the 7-day edge: the spread is a valuation at the mark, the edge is what a fill earns. Boros is read per request with a 60 s memo (dataset `boros_markets`, stale after 300 s) and composed with `funding_accumulated`; one SLA per answer, `as_of` the oldest input. Authentication: Required. Parameters: | Name | In | Type | Required | Default | Description | |------|----|------|----------|---------|-------------| | coin | query | string | no | -- | Underlying asset, case-insensitive (BTC, ETH, HYPE, BRENTOIL). | | venue | query | string | no | -- | Filter to one venue, case-insensitive: Boros's name (Binance, OKX, Hyperliquid, Gate, Kucoin, Lighter, Bybit) or our funding store's (Gate.io, KuCoin, tradeXYZ). | Response statuses: 200, 400, 401, 403, 429, 500, 503. --- ### GET /v1/insider-selling/data Composite score (0-10) flagging coins with persistent negative funding rates across 35 perpetual futures exchanges. Higher scores indicate stronger evidence of systematic short positioning. Updates every 30 minutes. Authentication: Required. Parameters: | Name | In | Type | Required | Default | Description | |------|----|------|----------|---------|-------------| | limit | query | integer | no | 100 | Maximum number of coins to return. | | min_score | query | number | no | 0 | Filter to coins scoring at or above this value. | | coin | query | string | no | -- | One coin by its CoinGecko id (e.g. pepe): its row exactly as the scorer wrote it, whatever its score. A coin that stopped qualifying answers `score: null` with its sub-scores and phase cleared; an id with no row answers an empty list. `limit`, `min_score` and `phase` do not apply. | | format | query | enum(json, csv) | no | "json" | Response format. When set to "csv", the response Content-Type is text/csv instead of JSON. | Response statuses: 200, 400, 401, 403, 429, 500, 503. --- ### GET /v1/listings/data Returns aggregated weekly and monthly compatibility listing counts plus the last-90-day recent listings for the New Listings product. Optionally filter by narrative slug or exchange. The new canonical event feed is available at `/v1/listings/events`; enabled listing connectors refresh hourly. Authentication: Required. Parameters: | Name | In | Type | Required | Default | Description | |------|----|------|----------|---------|-------------| | narrative | query | string | no | -- | Filter to a single narrative slug (e.g. `ai-agents`, `memes`, `layer-1`). | | exchange | query | enum(binance, okx, bybit, gateio, mexc) | no | -- | Filter to a single exchange. | Response statuses: 200, 400, 401, 403, 429, 500, 503. --- ### GET /v1/listings/events Returns canonical listing lifecycle events across CEXs and Perp DEXs, including Spot listings, Perp listings, delistings, suspensions, resumptions, scheduled trading starts, source URLs, and source confidence. Authentication: Required. Parameters: | Name | In | Type | Required | Default | Description | |------|----|------|----------|---------|-------------| | exchange | query | enum(binance, okx, bybit, gateio, mexc, bitget, kucoin, bingx, bitmart, deepcoin, coinbase, kraken, crypto_com, upbit, bithumb, htx, bitfinex, bitstamp, gemini, bitmex, deribit, phemex, lbank, bitrue, coinex, backpack, hashkey, whitebit, toobit, hyperliquid, aster, dydx, aevo) | no | -- | Filter to a single exchange or perp DEX. | | venue_type | query | enum(cex, perp_dex, dex) | no | -- | Filter by venue type. | | market_type | query | enum(spot, perp, futures, options, margin) | no | -- | Filter by market type. | | event_type | query | enum(listing, delisting, suspension, resumption, prelaunch) | no | -- | Filter by listing lifecycle event type. | | asset_class | query | enum(token, spot_pair, perp_contract, futures_contract, options_contract) | no | -- | Filter by listed instrument class. | | status | query | enum(announced, scheduled, live, completed, cancelled, needs_review) | no | -- | Filter by event status. | | narrative | query | string | no | -- | Filter by Sharpe narrative slug. | | confidence | query | enum(authoritative, high, medium, low, proxy, manual) | no | -- | Filter by source confidence. | | from | query | string | no | -- | ISO date or datetime lower bound. | | to | query | string | no | -- | ISO date or datetime upper bound. | | days | query | integer | no | 90 | Lookback window in days. | | limit | query | integer | no | 200 | Max rows returned. | | cursor | query | string | no | -- | Cursor returned by previous page. | Response statuses: 200, 400, 401, 403, 429, 500, 503. --- ### GET /v1/listings/exchanges Returns the typed listing connector registry, including supported market types, source URLs, parser confidence, connector status, and market coverage for each exchange. Authentication: Required. Parameters: | Name | In | Type | Required | Default | Description | |------|----|------|----------|---------|-------------| | venue_type | query | enum(cex, perp_dex, dex) | no | -- | Filter exchange coverage by venue type. | | market_type | query | enum(spot, perp, futures, options, margin) | no | -- | Filter exchange coverage by supported market type. | | enabled | query | enum(true, false) | no | -- | Filter to enabled or disabled connectors. | Response statuses: 200, 400, 401, 403, 429, 500, 503. --- ### GET /v1/listings/recent Returns a flat list of recent listings (token, exchange, narrative, listing date). Defaults remain backward-compatible with the legacy spot feed; event-specific filters switch to the canonical event feed while preserving the recent-feed row shape. Authentication: Required. Parameters: | Name | In | Type | Required | Default | Description | |------|----|------|----------|---------|-------------| | narrative | query | string | no | -- | Filter to a single narrative slug. | | exchange | query | enum(binance, okx, bybit, gateio, mexc, bitget, kucoin, bingx, bitmart, deepcoin, coinbase, kraken, crypto_com, upbit, bithumb, htx, bitfinex, bitstamp, gemini, bitmex, deribit, phemex, lbank, bitrue, coinex, backpack, hashkey, whitebit, toobit, hyperliquid, aster, dydx, aevo) | no | -- | Filter to a single exchange. | | venue_type | query | enum(cex, perp_dex, dex) | no | -- | Optional event-feed venue type filter. | | market_type | query | enum(spot, perp, futures, options, margin) | no | -- | Optional event-feed market type filter. | | event_type | query | enum(listing, delisting, suspension, resumption, prelaunch) | no | -- | Optional event-feed lifecycle event filter. | | asset_class | query | enum(token, spot_pair, perp_contract, futures_contract, options_contract) | no | -- | Optional listed instrument class filter. | | status | query | enum(announced, scheduled, live, completed, cancelled, needs_review) | no | -- | Optional event status filter. | | confidence | query | enum(authoritative, high, medium, low, proxy, manual) | no | -- | Optional source confidence filter. | | from | query | string | no | -- | ISO date or datetime lower bound. | | to | query | string | no | -- | ISO date or datetime upper bound. | | days | query | integer | no | 90 | How many days back to include. Default 90. | | limit | query | integer | no | 200 | Max rows returned. | | cursor | query | string | no | -- | Cursor returned by previous page. | Response statuses: 200, 400, 401, 403, 429, 500, 503. --- ### GET /v1/mindshare/data Returns narrative mindshare rankings, token rows, rolling windows, or historical snapshots. Authentication: Required. Parameters: | Name | In | Type | Required | Default | Description | |------|----|------|----------|---------|-------------| | tokens | query | enum(true, false) | no | -- | Set to true for token rows. | | narrative | query | string | no | -- | Optional narrative slug. | | historical | query | enum(true, false) | no | -- | Set to true for historical snapshots. | | timeframe | query | enum(1W, 1M, 3M, 6M, 1Y, 3Y) | no | -- | Historical timeframe. | | window | query | enum(now, 24h, 7d, 30d) | no | -- | Rolling snapshot window. | Response statuses: 200, 400, 401, 403, 429, 500, 503. --- ### GET /v1/pump-dump/data Composite score (0-10) flagging coins where price is rising while funding is negative, a divergence pattern consistent with pump-and-dump activity. Gated on negative 72h average funding AND positive 7d price change. Updates every 30 minutes. Authentication: Required. Parameters: | Name | In | Type | Required | Default | Description | |------|----|------|----------|---------|-------------| | limit | query | integer | no | 100 | Maximum number of coins to return. | | min_score | query | number | no | 0 | Filter to coins scoring at or above this value. | | phase | query | enum(setup, markup, distribution, dump, dumping) | no | -- | Filter to one manipulation phase label. | | coin | query | string | no | -- | One coin by its CoinGecko id (e.g. pepe): its row exactly as the scorer wrote it, whatever its score. A coin that stopped qualifying answers `score: null` with its sub-scores and phase cleared; an id with no row answers an empty list. `limit`, `min_score` and `phase` do not apply. | | format | query | enum(json, csv) | no | "json" | Response format. When set to "csv", the response Content-Type is text/csv instead of JSON. | Response statuses: 200, 400, 401, 403, 429, 500, 503. --- ### GET /v1/rug-check/security Returns token contract security and liquidity risk signals, and the Rug Check score computed from them with the token's market and holder data: the same score and check rows the /rug-check page shows. Authentication: Required. Parameters: | Name | In | Type | Required | Default | Description | |------|----|------|----------|---------|-------------| | address | query | string | yes | -- | Token contract address. | | chainId | query | integer | yes | -- | EVM chain ID (1 Ethereum, 56 BNB Smart Chain, 8453 Base, 42161 Arbitrum, ...), or 1399811149 for Solana and 728126428 for Tron. | Response (200): Success envelope; `data` holds the GoPlus security fields and: - `score`: `{ value, verdict, verdict_label, verdict_note, data_completeness, engine_version, insights }`. `value` is 0-100, higher is safer; `verdict` is `safe` (80 or more), `caution` (50), `risky` (20) or `danger`; `verdict_note` is "Trusted issuer, centralised controls" for a GoPlus trust-listed token whose issuer can still mint, freeze, pause or upgrade it, else null; `data_completeness` is `full`, `partial` (a pillar had no data and scores a neutral 50) or `none` (no provider answered: `value`, `verdict` and `verdict_label` are null, never a default 50); `engine_version` numbers the scoring rules; `insights` are the verdict's reasons (at most 6). - `checks`: `[{ "pillar": "contract" | "health", "label", "value", "status", "tooltip" }]`, the rows of the page's Contract Security and Token Health tables. The score weighs contract 0.40, holders 0.35 and market health 0.25, then caps it on hard signals (a honeypot or sell block sets 5). Market figures are the token's DexScreener pairs on the chain (liquidity and volume summed, age from the oldest pair); holder figures are GeckoTerminal's. An input that could not be read is unknown, never 0. A `stale: true` answer is scored from the last good GoPlus record. When GoPlus is unavailable (throttled, slow or down), the answer is the token's last good record, flagged `stale: true` with `dataAsOf` (when it was fetched; at most 7 days old). Without one, on Ethereum, BNB Smart Chain and Base the answer is a partial record from Honeypot.is, flagged `partial: true`: `isHoneypot` from its buy/sell simulation, every other security field null (unknown); its score treats the contract checks as unknown, except that a detected honeypot scores 5 (Danger). Otherwise the answer is 503 `service_unavailable` with `Retry-After`. GoPlus throttling is never answered 429, which is your own rate limit. An address GoPlus holds nothing for is 404. Response statuses: 200, 400, 401, 403, 404, 429, 500, 503. --- ### GET /v1/rug-check/trending Returns trending tokens suitable for rug-check review. Authentication: Required. Parameters: | Name | In | Type | Required | Default | Description | |------|----|------|----------|---------|-------------| | limit | query | integer | no | 50 | Maximum tokens to return. | The list is rebuilt every 15 minutes from GeckoTerminal by a scheduled job and is stale after 30 minutes; with no list to serve the endpoint answers 503 (`service_unavailable`, `Retry-After: 30`). Response statuses: 200, 400, 401, 403, 429, 500, 503. --- ### GET /v1/stablecoins/data Returns hourly stablecoin overview, detail, or yield data with nominal supply at peg, marked value, nullable peg metrics, chain supply/TVL ratios, velocity coverage, freshness, and APY risk flags. NAV-accrual assets are not scored against a fixed $1 peg, and ambiguous same-symbol yield pools are omitted. Authentication: Required. Parameters: | Name | In | Type | Required | Default | Description | |------|----|------|----------|---------|-------------| | type | query | enum(overview, detail, yields) | no | "overview" | Payload type. | | slug | query | string | no | -- | Stablecoin slug. Required when type=detail. | Response statuses: 200, 400, 401, 403, 404, 429, 500, 503. --- ### GET /v1/web-traffic/data Returns attention rankings, social snapshots, or market-level signals for coins, narratives, and exchanges. Exchange rankings carry CoinGecko trust score, trust rank, and 24h BTC volume; coin and narrative rankings carry watchlist and sentiment readings. Authentication: Required. Parameters: | Name | In | Type | Required | Default | Description | |------|----|------|----------|---------|-------------| | type | query | enum(exchange, coin, narrative) | no | -- | Entity type. | | mode | query | enum(rankings, snapshots, market) | no | -- | Payload mode. | | tf | query | enum(7d, 30d, 90d, 1y, 3y, all) | no | -- | Lookback window. | | entities | query | string | no | -- | Comma-separated entity IDs for snapshots. | | sub | query | enum(trending, categories, global) | no | -- | Market sub-mode when mode=market. | Response statuses: 200, 400, 401, 403, 429, 500, 503. --- ### GET /v1/briefing The market briefing, rendered as markdown on the server: market stats, the top 5 and bottom 3 narratives by 24h change, the funding book's highest and lowest markets by 8h-equivalent rate among fresh markets with at least $1M of open interest (as APR), and the next 24 hours of whole-market funding (estimated). It is the text the MCP tool `market_briefing` prints. Authentication: Required. Parameters: None. Response (200): Success envelope whose `data` is `{ report: "briefing", report_md, inputs[] }`. `report_md` ends with the freshness of every answer the report read (`**Data freshness:**`) and, when a read failed, a `**Data gaps:**` line naming it; `inputs` lists each read (label, endpoint, query, dataset_id, as_of, freshness_status, runtime_status, error). `meta` carries the most cautious freshness of the inputs, and `runtime_status: "degraded"` when a read failed. Only when every read fails is the answer 503. Errors: 400, 401, 403, 429, 500, 503. --- ### GET /v1/coins/{coin}/analysis One coin's analysis, rendered as markdown on the server: its price-prediction score and signals (matched by ticker in the prediction coverage list), its current funding on its 10 largest markets by open interest with the average and median across venues, the asset's open-interest total from the global board, and its estimated funding dollars over the next 24 hours. It is the text the MCP tool `analyze_coin` prints. Authentication: Required. Parameters: | Name | In | Type | Required | Default | Description | |------|------|--------|----------|---------|-------------| | coin | path | string | yes | -- | Coin ticker, any case (BTC, eth, 1000PEPE); 1 to 64 characters. | Response (200): Success envelope whose `data` is `{ report: "coin-analysis", coin, report_md, inputs[] }`, with the same freshness and data-gap rules as /v1/briefing. Errors: 400, 401, 403, 429, 500, 503. --- ### GET /v1/opportunities The funding-arbitrage opportunities, rendered as markdown on the server: the top 10 spot-perp basis trades (perp legs with at least $1M of open interest) and the top 10 cross-exchange funding pairs (both legs with at least $1M of open interest and 24h volume) in each board's order, and the funding book's market stats. It is the text the MCP tool `find_opportunities` prints. Authentication: Required. Parameters: None. Response (200): Success envelope whose `data` is `{ report: "opportunities", report_md, inputs[] }`, with the same freshness and data-gap rules as /v1/briefing. Errors: 400, 401, 403, 429, 500, 503. --- ## Versioning URL-path versioning: `/v1/`. Current and only production version is v1. Backward-compatible changes (shipped without version bump): - Adding new endpoints - Adding new optional query parameters - Adding new fields to response objects - Adding new error codes or enum values - Improving error messages Breaking changes (shipped on the day the changelog entry names, with a migration note; the old shape is not served beside the new one): - Removing or renaming endpoints or response fields - Changing a field's type or unit (a field never keeps its name when its unit changes) - Making optional parameters required - Changing auth requirements or envelope structure Percent fields became fractions on 2026-11-14: every v1 field once served in percent (5.4 for 5.4%) is a fraction (0.054) under a new name, and `minApr` (percentage points) is `minNet` (a fraction). The old-to-new table: https://www.sharpe.ai/docs/versioning#fractions. Query-string API keys are rejected by default; use `Authorization: Bearer` or `X-API-Key` headers. ## Per-route markdown Sharpe serves markdown representations for AI agents at `/api/markdown`. No auth required. - Preferred: `GET /api/markdown?path=` - Legacy alias (still accepted): `GET /api/markdown?for=` The endpoint returns `text/markdown; charset=utf-8` with an `x-markdown-tokens` hint header. `` is an absolute site path (URL-encoded). Page-specific markdown exists for the homepage, `/products`, each `/products/` page, `/new-listings` and its exchange and narrative pages, and `/pricing`; `/docs` paths return this full reference, and any other path falls back to the site-level `llms.txt` summary. Sending `Accept: text/markdown` to those pages or to `/docs` negotiates the same markdown; every other page answers with HTML. ## Links - Documentation: https://www.sharpe.ai/docs - Quickstart: https://www.sharpe.ai/docs/quickstart - Authentication: https://www.sharpe.ai/docs/authentication - Rate Limits: https://www.sharpe.ai/docs/rate-limits - Error Reference: https://www.sharpe.ai/docs/errors - Pricing: https://www.sharpe.ai/pricing - OpenAPI Spec (JSON): https://www.sharpe.ai/openapi.json - Changelog: https://www.sharpe.ai/docs/changelog - Versioning: https://www.sharpe.ai/docs/versioning - Authentication: https://www.sharpe.ai/docs/authentication - Support: team@sharpe.ai