{"openapi":"3.1.0","info":{"title":"data-api","description":"Market intelligence for funding rates, APR/yield, tokenized RWAs and equities.\n\n**Auth & tiers** — **Free tier:** unauthenticated `/api/v1/*` at 1 req/s per IP, 2500 calls per month; watch `x-tier` / `x-quota-remaining` response headers. **Key tier:** authenticate with the `X-API-Key` header or a bearer token from `POST /auth/token`; each key carries its own requests-per-second cap (20 rps default, admin-tunable 1–1000; admin keys 250 rps), no monthly cap. Limits are enforced durably via ClickHouse. Health, docs and `/auth/token` are always public. Overruns answer `429` with `Retry-After`; exhausted free quota answers `429 quota_exceeded` — or, where x402 payments are enabled, `402` with per-call `accepts[]` quotes so the caller can unlock the request instantly. `/health` (public) reports service status.\n\n**Performance** — responses are served from a single-flight in-process cache with TTL policies (live 30s / hot 2min / daily 10min / static 1h). `ETag` + `If-None-Match` yields `304`; `X-Cache: HIT|MISS|MATCH` shows which path was taken. Series endpoints use TimescaleDB `time_bucket`; board endpoints use `DISTINCT ON` over a recency window matched to composite indexes. Heavy `raw`/`book` jsonb columns are never selected.\n\n**Units** — all APRs/rates are percentages (0.01 = 0.01%). `funding_rate` is % per interval, `funding_rate_apr` annualized; `utilization` is 0–1.\n\n**Disclaimer** — the API is under heavy development; all data is provided \"as is\", without warranty of any kind. Rates, prices and metrics come from third-party venues and may contain outliers, staleness or errors — validate anything anomalous against the source venue before acting, and never treat this API as investment, trading or legal advice. Tensorsoft and the authors accept no responsibility or liability for financial losses. Questions/abuse: support@tensorsoft.tech.","contact":{"name":"Tensorsoft","email":"support@tensorsoft.tech"},"license":{"name":"MIT","identifier":"MIT"},"version":"1.0.0"},"servers":[{"url":"https://api.tensorsoft.tech","description":"Production"},{"url":"http://127.0.0.1:8080","description":"Local development"}],"paths":{"/api/v1/dashboard/overview":{"get":{"tags":["dashboard"],"summary":"One-shot market intelligence overview: funding leaders, carry, LP/credit\nAPRs, RWA breadth, staking, equity coverage — computed in parallel CTEs.","operationId":"overview","responses":{"200":{"description":"Overview","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_Overview"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"description":"Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{},{"bearer_jwt":[]},{"api_key":[]}]}},"/api/v1/lend/history":{"get":{"tags":["lend"],"summary":"APR history for one lending market (`time_bucket` series).","operationId":"lend_history","parameters":[{"name":"platform","in":"query","required":true,"schema":{"type":"string"}},{"name":"market","in":"query","required":true,"schema":{"type":"string"}},{"name":"range","in":"query","required":false,"schema":{"$ref":"#/components/schemas/Range"}},{"name":"bucket","in":"query","required":false,"schema":{"$ref":"#/components/schemas/Bucket"}}],"responses":{"200":{"description":"Series","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_Vec_LendPoint"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"description":"Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{},{"bearer_jwt":[]},{"api_key":[]}]}},"/api/v1/lend/latest":{"get":{"tags":["lend"],"summary":"Latest lending snapshots per (platform, market): supply/borrow APR, utilization, TVL.","operationId":"lend_latest","parameters":[{"name":"window_minutes","in":"query","description":"Recency window in minutes (default 120).","required":false,"schema":{"type":"integer","format":"int32","maximum":1440,"minimum":10}},{"name":"platform","in":"query","required":false,"schema":{"type":"string"}},{"name":"market","in":"query","required":false,"schema":{"type":"string"}},{"name":"chain","in":"query","required":false,"schema":{"type":"string"}},{"name":"kind","in":"query","description":"reserve | isolated_pair | earn_vault | hub-asset | hub-stock.","required":false,"schema":{"type":"string"}},{"name":"min_supply_usd","in":"query","description":"Minimum pool size in USD.","required":false,"schema":{"type":"number","format":"double"}},{"name":"min_apr","in":"query","description":"Minimum total supply APR (%).","required":false,"schema":{"type":"number","format":"double"}},{"name":"sort","in":"query","description":"Sort: supply_apr | borrow_apr | spread | tvl | utilization | ts | platform | market.","required":false,"schema":{"type":"string"}},{"name":"dir","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SortDir"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int64","maximum":1000,"minimum":1}}],"responses":{"200":{"description":"Lending board","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_Vec_LendMarket"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"description":"Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"429":{"description":"Rate limited"}},"security":[{},{"bearer_jwt":[]},{"api_key":[]}]}},"/api/v1/meta/datasets":{"get":{"tags":["meta"],"summary":"Table-level freshness and size of each dataset.","operationId":"datasets","responses":{"200":{"description":"Datasets","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_Datasets"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"description":"Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{},{"bearer_jwt":[]},{"api_key":[]}]}},"/api/v1/meta/platforms":{"get":{"tags":["meta"],"summary":"Every venue / catalog dimension the API knows about.","operationId":"platforms","responses":{"200":{"description":"Platform catalogs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_Platforms"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"description":"Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{},{"bearer_jwt":[]},{"api_key":[]}]}},"/api/v1/perp/carry":{"get":{"tags":["perp"],"summary":"Funding-carry screen: perp APR vs borrow cost per symbol.","operationId":"carry","parameters":[{"name":"window_minutes","in":"query","required":false,"schema":{"type":"integer","format":"int32","maximum":1440,"minimum":5}},{"name":"min_oi_usd","in":"query","required":false,"schema":{"type":"number","format":"double"}},{"name":"min_supply_usd","in":"query","required":false,"schema":{"type":"number","format":"double"}},{"name":"dir","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SortDir"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int64","maximum":1000,"minimum":1}}],"responses":{"200":{"description":"Carry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_Vec_CarryRow"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"description":"Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{},{"bearer_jwt":[]},{"api_key":[]}]}},"/api/v1/perp/funding/history":{"get":{"tags":["perp"],"summary":"Funding history for one market, bucketed.","operationId":"funding_history","parameters":[{"name":"platform","in":"query","required":true,"schema":{"type":"string"}},{"name":"market","in":"query","required":true,"schema":{"type":"string"}},{"name":"range","in":"query","required":false,"schema":{"$ref":"#/components/schemas/Range"}},{"name":"bucket","in":"query","required":false,"schema":{"$ref":"#/components/schemas/Bucket"}}],"responses":{"200":{"description":"Series","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_Vec_FundingPoint"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"description":"Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{},{"bearer_jwt":[]},{"api_key":[]}]}},"/api/v1/perp/funding/latest":{"get":{"tags":["perp"],"summary":"Latest funding snapshot per venue/market (one row per market).","operationId":"funding_latest","parameters":[{"name":"window_minutes","in":"query","description":"Recency window in minutes for \"latest\" snapshots (default from server config).","required":false,"schema":{"type":"integer","format":"int32","maximum":1440,"minimum":5}},{"name":"platform","in":"query","description":"Filter by venue (see `/api/v1/meta`).","required":false,"schema":{"type":"string"}},{"name":"symbol","in":"query","description":"Exact normalized symbol, e.g. `BTC`.","required":false,"schema":{"type":"string"}},{"name":"market","in":"query","description":"Substring match on market / market_raw.","required":false,"schema":{"type":"string"}},{"name":"min_oi_usd","in":"query","description":"Minimum open interest in USD.","required":false,"schema":{"type":"number","format":"double"}},{"name":"min_apr","in":"query","description":"Minimum funding APR (%).","required":false,"schema":{"type":"number","format":"double"}},{"name":"sort","in":"query","description":"Sort column: funding_apr | funding | oi | volume | mark | ts | platform | market.","required":false,"schema":{"type":"string"}},{"name":"dir","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SortDir"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int64","maximum":1000,"minimum":1}}],"responses":{"200":{"description":"Funding board","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_Vec_FundingMarket"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"description":"Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{},{"bearer_jwt":[]},{"api_key":[]}]}},"/api/v1/perp/funding/platforms":{"get":{"tags":["perp"],"summary":"Per-platform open-interest roll-up.","operationId":"funding_platforms","responses":{"200":{"description":"Platforms","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_Vec_PlatformOi"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"description":"Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{},{"bearer_jwt":[]},{"api_key":[]}]}},"/api/v1/perp/funding/spread":{"get":{"tags":["perp"],"summary":"Funding APR for one symbol across all venues, with min/max spread.","operationId":"funding_spread","parameters":[{"name":"symbol","in":"query","description":"Base symbol, e.g. `BTC`.","required":true,"schema":{"type":"string"}},{"name":"window_minutes","in":"query","required":false,"schema":{"type":"integer","format":"int32","maximum":1440,"minimum":5}}],"responses":{"200":{"description":"Spread","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_FundingSpread"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"description":"Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{},{"bearer_jwt":[]},{"api_key":[]}]}},"/api/v1/pools/history":{"get":{"tags":["pools"],"operationId":"history","parameters":[{"name":"chain","in":"query","required":true,"schema":{"type":"string"}},{"name":"platform","in":"query","required":true,"schema":{"type":"string"}},{"name":"pool_address","in":"query","required":true,"schema":{"type":"string"}},{"name":"range","in":"query","required":false,"schema":{"$ref":"#/components/schemas/Range"}},{"name":"bucket","in":"query","required":false,"schema":{"$ref":"#/components/schemas/Bucket"}}],"responses":{"200":{"description":"Series","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_Vec_PoolPoint"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"description":"Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{},{"bearer_jwt":[]},{"api_key":[]}]}},"/api/v1/pools/latest":{"get":{"tags":["pools"],"summary":"Latest LP pools with APR breakdown (fees + rewards).","operationId":"latest","parameters":[{"name":"window_minutes","in":"query","required":false,"schema":{"type":"integer","format":"int32","maximum":1440,"minimum":10}},{"name":"chain","in":"query","required":false,"schema":{"type":"string"}},{"name":"platform","in":"query","required":false,"schema":{"type":"string"}},{"name":"symbol","in":"query","description":"Symbol substring (pool name) or exact token side.","required":false,"schema":{"type":"string"}},{"name":"min_tvl_usd","in":"query","required":false,"schema":{"type":"number","format":"double"}},{"name":"min_apr","in":"query","required":false,"schema":{"type":"number","format":"double"}},{"name":"sort","in":"query","description":"Sort: apr | fee_apr | reward_apr | tvl | volume | symbol.","required":false,"schema":{"type":"string"}},{"name":"dir","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SortDir"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int64","maximum":1000,"minimum":1}}],"responses":{"200":{"description":"Pool board","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_Vec_PoolMarket"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"description":"Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{},{"bearer_jwt":[]},{"api_key":[]}]}},"/api/v1/rwa/assets":{"get":{"tags":["rwa"],"summary":"Tokenized real-world assets (stocks, ETFs, commodities), latest snapshot each.","operationId":"assets","parameters":[{"name":"asset_type","in":"query","description":"`stock` | `etf` | `commodity`.","required":false,"schema":{"type":"string"}},{"name":"search","in":"query","description":"Match on name or symbol.","required":false,"schema":{"type":"string"}},{"name":"min_mcap_usd","in":"query","required":false,"schema":{"type":"number","format":"double"}},{"name":"sort","in":"query","description":"Sort: mcap | volume | price | change_24h | perp_oi | perp_volume | symbol | name.","required":false,"schema":{"type":"string"}},{"name":"dir","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SortDir"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int64","maximum":5000,"minimum":1}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","format":"int64","minimum":0}}],"responses":{"200":{"description":"RWA board","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_Vec_RwaAsset"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"description":"Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{},{"bearer_jwt":[]},{"api_key":[]}]}},"/api/v1/rwa/assets/{external_id}":{"get":{"tags":["rwa"],"summary":"One RWA asset joined with its on-chain deployments and Polymarket markets.","operationId":"asset_detail","parameters":[{"name":"external_id","in":"path","description":"catalog asset id, e.g. gold, nvidia, circle-internet-group","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Asset detail","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_RwaAssetDetail"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"description":"Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"404":{"description":"Unknown asset"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{},{"bearer_jwt":[]},{"api_key":[]}]}},"/api/v1/rwa/contracts":{"get":{"tags":["rwa"],"summary":"Mint catalog: browse every issuer contract deployment.","operationId":"contracts","parameters":[{"name":"issuer","in":"query","description":"`ondo` | `xstocks` | `backpack` | `coinbase` | `robinhood`.","required":false,"schema":{"type":"string"}},{"name":"chain","in":"query","description":"Lowercased chain, e.g. `solana`.","required":false,"schema":{"type":"string"}},{"name":"underlying","in":"query","description":"Underlying ticker, e.g. `SPY`.","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int64","maximum":5000,"minimum":1}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","format":"int64","minimum":0}}],"responses":{"200":{"description":"Contracts","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_Vec_Contract"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"description":"Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{},{"bearer_jwt":[]},{"api_key":[]}]}},"/api/v1/rwa/issuer-tokens":{"get":{"tags":["rwa"],"summary":"On-chain tokenized-asset deployments across issuers and chains.","operationId":"issuer_tokens","parameters":[{"name":"issuer","in":"query","description":"e.g. `backpack`, `xstocks`, `ondo`.","required":false,"schema":{"type":"string"}},{"name":"underlying_symbol","in":"query","description":"Underlying equity symbol, e.g. `TSLA`.","required":false,"schema":{"type":"string"}},{"name":"chain","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int64","maximum":5000,"minimum":1}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","format":"int64","minimum":0}}],"responses":{"200":{"description":"Tokens","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_Vec_RwaToken"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"description":"Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{},{"bearer_jwt":[]},{"api_key":[]}]}},"/api/v1/rwa/lookup":{"get":{"tags":["rwa"],"summary":"Reverse lookup: contract address → underlying(s) + every deployment.","operationId":"lookup","parameters":[{"name":"address","in":"query","description":"Contract address (EVM hex or Solana base58).","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Hit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_CaHit"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"description":"Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"404":{"description":"Unknown address"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{},{"bearer_jwt":[]},{"api_key":[]}]}},"/api/v1/rwa/perps":{"get":{"tags":["rwa"],"summary":"Perp venues funding that trade a given (often tokenized) underlying.","operationId":"perps","parameters":[{"name":"symbol","in":"query","description":"Base symbol, e.g. `BRENTOIL`, `GOLD`, `TSLA`.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Funding rows","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_Vec_FundingSpreadRow"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"description":"Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{},{"bearer_jwt":[]},{"api_key":[]}]}},"/api/v1/rwa/polymarket":{"get":{"tags":["rwa"],"summary":"Prediction markets about real-world assets (Polymarket).","operationId":"polymarket","parameters":[{"name":"ticker","in":"query","description":"Equity ticker the market references, e.g. `TSLA`.","required":false,"schema":{"type":"string"}},{"name":"rwa_external_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"include_closed","in":"query","description":"Include resolved/closed markets.","required":false,"schema":{"type":"boolean"}},{"name":"min_volume_usd","in":"query","required":false,"schema":{"type":"number","format":"double"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int64","maximum":5000,"minimum":1}}],"responses":{"200":{"description":"Markets","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_Vec_RwaPolymarketMarket"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"description":"Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{},{"bearer_jwt":[]},{"api_key":[]}]}},"/api/v1/rwa/screen":{"get":{"tags":["rwa"],"summary":"Screen across all tokenized underlyings (contracts, issuers, chains, OI).","operationId":"screen","parameters":[{"name":"search","in":"query","description":"Underlying substring, e.g. `SP`.","required":false,"schema":{"type":"string"}},{"name":"min_contracts","in":"query","description":"Min deployed contracts per underlying (default 1).","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"has_perps","in":"query","description":"Only underlyings with perp markets.","required":false,"schema":{"type":"boolean"}},{"name":"sort","in":"query","description":"Sort: contracts | mcap | oi | underlying | price.","required":false,"schema":{"type":"string"}},{"name":"dir","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SortDir"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int64","maximum":5000,"minimum":1}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","format":"int64","minimum":0}}],"responses":{"200":{"description":"Screen rows","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_Vec_ScreenRow"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"description":"Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{},{"bearer_jwt":[]},{"api_key":[]}]}},"/api/v1/rwa/underlyings/{underlying}":{"get":{"tags":["rwa"],"summary":"Full executable dossier for one tokenized underlying.","operationId":"dossier_by_underlying","parameters":[{"name":"underlying","in":"path","description":"Ticker, e.g. SPY","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Dossier","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_Dossier"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"description":"Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{},{"bearer_jwt":[]},{"api_key":[]}]}},"/api/v1/rwa/underlyings/{underlying}/deviation":{"get":{"tags":["rwa"],"summary":"Token-price vs equity-price deviation by source (perp marks, Ondo).","operationId":"deviation","parameters":[{"name":"underlying","in":"path","description":"Ticker, e.g. SPY","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Deviations","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_DeviationView"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"description":"Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{},{"bearer_jwt":[]},{"api_key":[]}]}},"/api/v1/rwa/{underlying}":{"get":{"tags":["rwa"],"summary":"Full executable dossier for one tokenized underlying.","operationId":"dossier_by_underlying","parameters":[{"name":"underlying","in":"path","description":"Ticker, e.g. SPY","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Dossier","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_Dossier"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"description":"Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"deprecated":true,"security":[{},{"bearer_jwt":[]},{"api_key":[]}]}},"/api/v1/rwa/{underlying}/deviation":{"get":{"tags":["rwa"],"summary":"Token-price vs equity-price deviation by source (perp marks, Ondo).","operationId":"deviation","parameters":[{"name":"underlying","in":"path","description":"Ticker, e.g. SPY","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Deviations","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_DeviationView"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"description":"Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"deprecated":true,"security":[{},{"bearer_jwt":[]},{"api_key":[]}]}},"/api/v1/staking/products":{"get":{"tags":["staking"],"summary":"Liquid-staking products with APR derived from exchange-rate growth (7d/30d).","operationId":"products","parameters":[{"name":"chain","in":"query","required":false,"schema":{"type":"string"}},{"name":"underlying","in":"query","description":"Underlying token symbol, e.g. `SUI`.","required":false,"schema":{"type":"string"}},{"name":"min_tvl_usd","in":"query","description":"Minimum TVL in USD.","required":false,"schema":{"type":"number","format":"double"}},{"name":"sort","in":"query","description":"Sort: apr (=30d) | apr_7d | apr_30d | tvl | underlying | protocol.","required":false,"schema":{"type":"string"}},{"name":"dir","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SortDir"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int64","maximum":1000,"minimum":1}}],"responses":{"200":{"description":"Staking board","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_Vec_StakingProduct"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"description":"Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{},{"bearer_jwt":[]},{"api_key":[]}]}},"/api/v1/stocks/listings":{"get":{"tags":["stocks"],"summary":"Global equity listing catalog (ISIN, venue, sector, country).","operationId":"listings","parameters":[{"name":"venue","in":"query","description":"`NASDAQ` | `NYSE` | `LSE` | `XETR` | …","required":false,"schema":{"type":"string"}},{"name":"country","in":"query","required":false,"schema":{"type":"string"}},{"name":"sector","in":"query","required":false,"schema":{"type":"string"}},{"name":"search","in":"query","description":"Name/symbol substring.","required":false,"schema":{"type":"string"}},{"name":"sort","in":"query","description":"Sort: mcap | symbol | name | change | volume.","required":false,"schema":{"type":"string"}},{"name":"dir","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SortDir"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int64","maximum":1000,"minimum":1}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","format":"int64","minimum":0}}],"responses":{"200":{"description":"Listings","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_Vec_StockListing"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"description":"Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{},{"bearer_jwt":[]},{"api_key":[]}]}},"/api/v1/stocks/ohlc/{symbol}":{"get":{"tags":["stocks"],"summary":"Daily OHLC bars for a symbol (ascending).","operationId":"ohlc","parameters":[{"name":"symbol","in":"path","description":"Ticker, e.g. AAPL","required":true,"schema":{"type":"string"}},{"name":"from","in":"query","description":"ISO date, e.g. `2026-10-20`. Default: `to` minus 31 days. Max window 31 days.","required":false,"schema":{"type":"string","format":"date"}},{"name":"to","in":"query","description":"ISO date. Default: today.","required":false,"schema":{"type":"string","format":"date"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int64","maximum":5000,"minimum":1}}],"responses":{"200":{"description":"Bars","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_Vec_OhlcBar"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"description":"Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{},{"bearer_jwt":[]},{"api_key":[]}]}},"/api/v1/stocks/profile/{ticker}":{"get":{"tags":["stocks"],"summary":"SEC EDGAR company profile by ticker.","operationId":"profile","parameters":[{"name":"ticker","in":"path","description":"e.g. AAPL","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Profile","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_CompanyProfile"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"description":"Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"404":{"description":"Unknown ticker"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{},{"bearer_jwt":[]},{"api_key":[]}]}},"/api/v1/stocks/quotes":{"get":{"tags":["stocks"],"summary":"Latest equity quotes — intraday where available, else last daily close.","operationId":"quotes","parameters":[{"name":"symbols","in":"query","description":"Comma-separated tickers, max 50, e.g. `AAPL,TSLA,MSFT`.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Quotes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_Vec_StockQuote"}}}},"400":{"description":"Bad symbols parameter"},"401":{"description":"Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{},{"bearer_jwt":[]},{"api_key":[]}]}},"/api/v1/stocks/tokenized/{symbol}":{"get":{"tags":["stocks"],"summary":"Cross-domain: every on-chain trace of a stock — tokenization issuers,\ntokenized-asset venues (Ondo), and perp markets trading it.","operationId":"tokenized","parameters":[{"name":"symbol","in":"path","description":"Equity ticker, e.g. TSLA","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Tokenization map","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_TokenizedStock"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"description":"Unauthorized"},"402":{"$ref":"#/components/responses/PaymentRequired"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"}},"security":[{},{"bearer_jwt":[]},{"api_key":[]}]}},"/auth/keys":{"get":{"tags":["auth"],"summary":"List API keys (admin JWT/API key required).","operationId":"list_keys","responses":{"200":{"description":"Keys","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ApiKeyInfo"}}}}},"403":{"description":"Admin required"}},"security":[{"bearer_jwt":[]}]},"post":{"tags":["auth"],"summary":"Create an API key; the plaintext is shown exactly once (admin only).","operationId":"create_key","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateKeyRequest"}}},"required":true},"responses":{"201":{"description":"Key created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatedApiKey"}}}},"403":{"description":"Admin required"}},"security":[{"bearer_jwt":[]}]}},"/auth/keys/{id}":{"delete":{"tags":["auth"],"summary":"Revoke an API key (admin only).","operationId":"revoke_key","parameters":[{"name":"id","in":"path","description":"Key id","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"Revoked"},"403":{"description":"Admin required"},"404":{"description":"Unknown key"}},"security":[{"bearer_jwt":[]}]}},"/auth/token":{"post":{"tags":["auth"],"summary":"Exchange an API key for a short-lived JWT.","operationId":"token","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenRequest"}}},"required":true},"responses":{"200":{"description":"JWT issued","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"description":"Bad API key"},"429":{"$ref":"#/components/responses/TooManyRequests"}}}},"/health":{"get":{"tags":["meta"],"operationId":"health","responses":{"200":{"description":"Service health","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"ApiKeyInfo":{"type":"object","description":"API key record (the secret itself is only ever returned once, on create).","required":["id","name","key_prefix","rate_limit_rps","admin","created_at","revoked"],"properties":{"admin":{"type":"boolean"},"created_at":{"type":"string","format":"date-time"},"id":{"type":"integer","format":"int64"},"key_prefix":{"type":"string"},"last_used_at":{"type":["string","null"],"format":"date-time"},"name":{"type":"string"},"rate_limit_rps":{"type":"integer","format":"int32"},"revoked":{"type":"boolean"}}},"ApiMeta":{"type":"object","description":"Metadata attached to every response.","required":["cached","generated_at"],"properties":{"cached":{"type":"boolean","description":"Whether the payload was served from the in-process cache."},"count":{"type":["integer","null"],"format":"int64","description":"Number of items returned (for list payloads).","minimum":0},"generated_at":{"type":"string","format":"date-time","description":"Server timestamp of response generation."},"timing_ms":{"type":["integer","null"],"format":"int64","description":"Server-side processing time in milliseconds.","minimum":0}}},"ApiResponse_CaHit":{"type":"object","description":"Uniform response envelope. Every successful API response is wrapped:\n`data` carries the payload, `meta` carries paging / cache info.","required":["data","meta"],"properties":{"data":{"type":"object","description":"Reverse container-address lookup result.","required":["address","underlyings","contracts"],"properties":{"address":{"type":"string"},"contracts":{"type":"array","items":{"$ref":"#/components/schemas/Contract"}},"underlyings":{"type":"array","items":{"type":"string"},"description":"Distinct underlying(s) this address maps to (usually exactly one)."}}},"meta":{"$ref":"#/components/schemas/ApiMeta"}}},"ApiResponse_CompanyProfile":{"type":"object","description":"Uniform response envelope. Every successful API response is wrapped:\n`data` carries the payload, `meta` carries paging / cache info.","required":["data","meta"],"properties":{"data":{"type":"object","description":"Company profile (SEC EDGAR) linked to its tickers.","required":["ts"],"properties":{"cik":{"type":["string","null"]},"entity_type":{"type":["string","null"]},"investor_website":{"type":["string","null"]},"name":{"type":["string","null"]},"sic_description":{"type":["string","null"]},"ticker":{"type":["string","null"]},"ts":{"type":"string","format":"date-time"},"website":{"type":["string","null"]}}},"meta":{"$ref":"#/components/schemas/ApiMeta"}}},"ApiResponse_Datasets":{"type":"object","description":"Uniform response envelope. Every successful API response is wrapped:\n`data` carries the payload, `meta` carries paging / cache info.","required":["data","meta"],"properties":{"data":{"type":"object","required":["datasets"],"properties":{"datasets":{"type":"array","items":{"$ref":"#/components/schemas/DatasetInfo"}}}},"meta":{"$ref":"#/components/schemas/ApiMeta"}}},"ApiResponse_DeviationView":{"type":"object","description":"Uniform response envelope. Every successful API response is wrapped:\n`data` carries the payload, `meta` carries paging / cache info.","required":["data","meta"],"properties":{"data":{"type":"object","description":"`GET /rwa/{underlying}/deviation` payload.","required":["underlying","deviations","freshness"],"properties":{"anchor":{"type":["string","null"]},"deviations":{"type":"array","items":{"$ref":"#/components/schemas/DeviationEntry"}},"equity_px":{"type":["number","null"],"format":"double","description":"Equity price used as the anchor (listing last → close → ondo)."},"freshness":{"$ref":"#/components/schemas/Freshness"},"underlying":{"type":"string"}}},"meta":{"$ref":"#/components/schemas/ApiMeta"}}},"ApiResponse_Dossier":{"type":"object","description":"Uniform response envelope. Every successful API response is wrapped:\n`data` carries the payload, `meta` carries paging / cache info.","required":["data","meta"],"properties":{"data":{"type":"object","description":"Everything an agent needs to act on one tokenized stock.","required":["underlying","contracts","perps","pools","lending","poly","deviations","freshness","warnings"],"properties":{"contracts":{"type":"array","items":{"$ref":"#/components/schemas/Contract"}},"deviations":{"type":"array","items":{"$ref":"#/components/schemas/DeviationEntry"}},"equity":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/EquityRef"}]},"freshness":{"$ref":"#/components/schemas/Freshness"},"lending":{"type":"array","items":{"$ref":"#/components/schemas/LendLeg"},"description":"`lending: []` + warning is meaningful: no tokenized-share lends."},"name":{"type":["string","null"]},"ondo":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/OndoDaily"}]},"perps":{"type":"array","items":{"$ref":"#/components/schemas/BasisRow"}},"perps_summary":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/PerpsSummary"}]},"poly":{"type":"array","items":{"$ref":"#/components/schemas/PolyLeg"}},"pools":{"type":"array","items":{"$ref":"#/components/schemas/PoolLeg"}},"underlying":{"type":"string"},"warnings":{"type":"array","items":{"type":"string"}}}},"meta":{"$ref":"#/components/schemas/ApiMeta"}}},"ApiResponse_FundingSpread":{"type":"object","description":"Uniform response envelope. Every successful API response is wrapped:\n`data` carries the payload, `meta` carries paging / cache info.","required":["data","meta"],"properties":{"data":{"type":"object","description":"One symbol aggregated across venues.","required":["symbol","rows"],"properties":{"best_long_platform":{"type":["string","null"]},"best_short_platform":{"type":["string","null"]},"max_apr":{"type":["number","null"],"format":"double"},"min_apr":{"type":["number","null"],"format":"double"},"rows":{"type":"array","items":{"$ref":"#/components/schemas/FundingSpreadRow"}},"spread_apr":{"type":["number","null"],"format":"double"},"symbol":{"type":"string"}}},"meta":{"$ref":"#/components/schemas/ApiMeta"}}},"ApiResponse_Overview":{"type":"object","description":"Uniform response envelope. Every successful API response is wrapped:\n`data` carries the payload, `meta` carries paging / cache info.","required":["data","meta"],"properties":{"data":{"type":"object","description":"Cross-domain market overview: one call that fans out across every domain\nthe product cares about (funding, carry, RWA, equities).","required":["perp","lend","rwa","stocks","staking"],"properties":{"lend":{"$ref":"#/components/schemas/LendSummary"},"perp":{"$ref":"#/components/schemas/PerpSummary"},"rwa":{"$ref":"#/components/schemas/RwaSummary"},"staking":{"$ref":"#/components/schemas/StakingSummary"},"stocks":{"$ref":"#/components/schemas/StocksSummary"}}},"meta":{"$ref":"#/components/schemas/ApiMeta"}}},"ApiResponse_Platforms":{"type":"object","description":"Uniform response envelope. Every successful API response is wrapped:\n`data` carries the payload, `meta` carries paging / cache info.","required":["data","meta"],"properties":{"data":{"type":"object","description":"Distinct platforms / catalogs available in the data.","required":["perp","lend","dex","staking_protocols","rwa_issuers","stock_venues","sources"],"properties":{"dex":{"type":"array","items":{"type":"string"}},"lend":{"type":"array","items":{"type":"string"}},"perp":{"type":"array","items":{"type":"string"}},"rwa_issuers":{"type":"array","items":{"type":"string"}},"sources":{"type":"array","items":{"type":"string"}},"staking_protocols":{"type":"array","items":{"type":"string"}},"stock_venues":{"type":"array","items":{"type":"string"}}}},"meta":{"$ref":"#/components/schemas/ApiMeta"}}},"ApiResponse_RwaAssetDetail":{"type":"object","description":"Uniform response envelope. Every successful API response is wrapped:\n`data` carries the payload, `meta` carries paging / cache info.","required":["data","meta"],"properties":{"data":{"type":"object","description":"Full RWA asset detail: snapshot + on-chain token deployments + related\nprediction markets + perp funding (if any).","required":["asset","tokens","markets"],"properties":{"asset":{"$ref":"#/components/schemas/RwaAsset"},"markets":{"type":"array","items":{"$ref":"#/components/schemas/RwaPolymarketMarket"},"description":"Linked Polymarket markets betting on this asset."},"tokens":{"type":"array","items":{"$ref":"#/components/schemas/RwaToken"},"description":"Token deployments catalogued by issuers (multi-chain addresses)."}}},"meta":{"$ref":"#/components/schemas/ApiMeta"}}},"ApiResponse_TokenizedStock":{"type":"object","description":"Uniform response envelope. Every successful API response is wrapped:\n`data` carries the payload, `meta` carries paging / cache info.","required":["data","meta"],"properties":{"data":{"type":"object","description":"On-chain tokenization coverage of a stock: which chain tokens track it,\ntheir prices and perp venues trading them.","required":["symbol","tokens","perps","contracts","pools","lending","poly","deviations","freshness","warnings"],"properties":{"contracts":{"type":"array","items":{"$ref":"#/components/schemas/Contract"},"description":"Every issuer deployment with chain/ISIN/flags — the P0 join."},"deviations":{"type":"array","items":{"$ref":"#/components/schemas/DeviationEntry"}},"equity":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/EquityRef"}]},"freshness":{"$ref":"#/components/schemas/Freshness"},"lending":{"type":"array","items":{"$ref":"#/components/schemas/LendLeg"}},"name":{"type":["string","null"],"description":"Asset name / issuer metadata."},"ondo":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/OndoDaily","description":"Daily bars from the tokenized-asset venue (Ondo), if present."}]},"perps":{"type":"array","items":{"$ref":"#/components/schemas/FundingSpreadRow"},"description":"Perp markets trading this symbol (funding + OI)."},"perps_summary":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/PerpsSummary"}]},"poly":{"type":"array","items":{"$ref":"#/components/schemas/PolyLeg"},"description":"Top prediction-market hedges by volume."},"pools":{"type":"array","items":{"$ref":"#/components/schemas/PoolLeg"},"description":"Spot DEX pools where a contract is a leg (latest wave)."},"rwa":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/RwaLite","description":"Latest rwa snapshot price data (if the asset is catalogued)."}]},"symbol":{"type":"string"},"tokens":{"type":"array","items":{"$ref":"#/components/schemas/RwaToken"},"description":"Token deployments across chains."},"warnings":{"type":"array","items":{"type":"string"}}}},"meta":{"$ref":"#/components/schemas/ApiMeta"}}},"ApiResponse_Vec_CarryRow":{"type":"object","description":"Uniform response envelope. Every successful API response is wrapped:\n`data` carries the payload, `meta` carries paging / cache info.","required":["data","meta"],"properties":{"data":{"type":"array","items":{"type":"object","description":"Perp funding vs borrow cost (funding carry).","required":["symbol","perp_platform","perp_market","borrow_platform","borrow_market"],"properties":{"borrow_apr_net":{"type":["number","null"],"format":"double"},"borrow_market":{"type":"string"},"borrow_platform":{"type":"string"},"carry_apr":{"type":["number","null"],"format":"double"},"funding_rate_apr":{"type":["number","null"],"format":"double"},"open_interest_usd":{"type":["number","null"],"format":"double"},"perp_market":{"type":"string"},"perp_platform":{"type":"string"},"supply_apr":{"type":["number","null"],"format":"double"},"symbol":{"type":"string"}}}},"meta":{"$ref":"#/components/schemas/ApiMeta"}}},"ApiResponse_Vec_Contract":{"type":"object","description":"Uniform response envelope. Every successful API response is wrapped:\n`data` carries the payload, `meta` carries paging / cache info.","required":["data","meta"],"properties":{"data":{"type":"array","items":{"type":"object","description":"One tokenized deployment of an underlying (rwa_issuer_tokens + flags).","required":["issuer","symbol","canonical","address_rows","underlying_conflict","fetched_at"],"properties":{"address":{"type":["string","null"]},"address_rows":{"type":"integer","format":"int64","description":"Same address row-count in the catalog (multi-chain copies ≈ 14)."},"canonical":{"type":"boolean","description":"Preferred canonical deployment (Solana or the issuer's own chain)."},"chain":{"type":["string","null"],"description":"Lowercased chain label."},"decimals":{"type":["integer","null"],"format":"int32"},"deposit_enabled":{"type":["boolean","null"]},"fetched_at":{"type":"string","format":"date-time"},"isin":{"type":["string","null"]},"issuer":{"type":"string"},"name":{"type":["string","null"]},"symbol":{"type":"string","description":"Token ticker as deployed (SPYx, SPYon, AAPL.US, …)."},"underlying_conflict":{"type":"boolean","description":"Distinct underlyings sharing this address (>1 ⇒ poisoned mapping)."},"withdraw_enabled":{"type":["boolean","null"]},"wrapper_address":{"type":["string","null"]}}}},"meta":{"$ref":"#/components/schemas/ApiMeta"}}},"ApiResponse_Vec_FundingMarket":{"type":"object","description":"Uniform response envelope. Every successful API response is wrapped:\n`data` carries the payload, `meta` carries paging / cache info.","required":["data","meta"],"properties":{"data":{"type":"array","items":{"type":"object","description":"One venue/market funding snapshot.","required":["platform","market","market_raw","ts"],"properties":{"best_ask":{"type":["number","null"],"format":"double"},"best_bid":{"type":["number","null"],"format":"double"},"funding_interval_hours":{"type":["number","null"],"format":"double"},"funding_rate":{"type":["number","null"],"format":"double"},"funding_rate_1h":{"type":["number","null"],"format":"double"},"funding_rate_apr":{"type":["number","null"],"format":"double"},"index_price":{"type":["number","null"],"format":"double"},"maker_fee":{"type":["number","null"],"format":"double"},"mark_price":{"type":["number","null"],"format":"double"},"market":{"type":"string"},"market_raw":{"type":"string"},"max_leverage":{"type":["number","null"],"format":"double"},"next_funding_at":{"type":["string","null"],"format":"date-time"},"open_interest_base":{"type":["number","null"],"format":"double"},"open_interest_usd":{"type":["number","null"],"format":"double"},"platform":{"type":"string"},"spread_bps":{"type":["number","null"],"format":"double"},"status":{"type":["string","null"]},"taker_fee":{"type":["number","null"],"format":"double"},"ts":{"type":"string","format":"date-time"},"volume_24h_usd":{"type":["number","null"],"format":"double"}}}},"meta":{"$ref":"#/components/schemas/ApiMeta"}}},"ApiResponse_Vec_FundingPoint":{"type":"object","description":"Uniform response envelope. Every successful API response is wrapped:\n`data` carries the payload, `meta` carries paging / cache info.","required":["data","meta"],"properties":{"data":{"type":"array","items":{"type":"object","description":"One bucketed history point.","required":["ts"],"properties":{"funding_rate":{"type":["number","null"],"format":"double"},"funding_rate_apr":{"type":["number","null"],"format":"double"},"mark_price":{"type":["number","null"],"format":"double"},"open_interest_usd":{"type":["number","null"],"format":"double"},"ts":{"type":"string","format":"date-time"},"volume_24h_usd":{"type":["number","null"],"format":"double"}}}},"meta":{"$ref":"#/components/schemas/ApiMeta"}}},"ApiResponse_Vec_FundingSpreadRow":{"type":"object","description":"Uniform response envelope. Every successful API response is wrapped:\n`data` carries the payload, `meta` carries paging / cache info.","required":["data","meta"],"properties":{"data":{"type":"array","items":{"type":"object","description":"One venue row in a cross-venue spread.","required":["platform","market","ts"],"properties":{"funding_rate":{"type":["number","null"],"format":"double"},"funding_rate_apr":{"type":["number","null"],"format":"double"},"mark_price":{"type":["number","null"],"format":"double"},"market":{"type":"string"},"open_interest_usd":{"type":["number","null"],"format":"double"},"platform":{"type":"string"},"ts":{"type":"string","format":"date-time"}}}},"meta":{"$ref":"#/components/schemas/ApiMeta"}}},"ApiResponse_Vec_LendMarket":{"type":"object","description":"Uniform response envelope. Every successful API response is wrapped:\n`data` carries the payload, `meta` carries paging / cache info.","required":["data","meta"],"properties":{"data":{"type":"array","items":{"type":"object","description":"Latest lending market snapshot (one per platform, market).","required":["platform","market","kind","ts"],"properties":{"borrow_apr":{"type":["number","null"],"format":"double"},"borrow_apr_net":{"type":["number","null"],"format":"double","description":"Borrow APR net of incentives, %."},"chain":{"type":["string","null"]},"kind":{"type":"string","description":"Market kind: `reserve` | `isolated_pair` | `earn_vault` | `hub-asset` | `hub-stock`."},"liq_threshold":{"type":["number","null"],"format":"double"},"ltv":{"type":["number","null"],"format":"double"},"market":{"type":"string"},"market_raw":{"type":["string","null"]},"platform":{"type":"string"},"price_usd":{"type":["number","null"],"format":"double"},"supply_apr":{"type":["number","null"],"format":"double","description":"Native supply APR, % (no rewards)."},"supply_apr_total":{"type":["number","null"],"format":"double","description":"Total supply APR including rewards, %."},"supply_reward_apr":{"type":["number","null"],"format":"double","description":"Extra supply APR from token incentives, %."},"total_borrow_usd":{"type":["number","null"],"format":"double"},"total_supply_usd":{"type":["number","null"],"format":"double"},"ts":{"type":"string","format":"date-time"},"utilization":{"type":["number","null"],"format":"double","description":"Utilization 0..1."}}}},"meta":{"$ref":"#/components/schemas/ApiMeta"}}},"ApiResponse_Vec_LendPoint":{"type":"object","description":"Uniform response envelope. Every successful API response is wrapped:\n`data` carries the payload, `meta` carries paging / cache info.","required":["data","meta"],"properties":{"data":{"type":"array","items":{"type":"object","description":"Bucketed lending history point.","required":["ts"],"properties":{"borrow_apr_net":{"type":["number","null"],"format":"double"},"supply_apr":{"type":["number","null"],"format":"double"},"supply_apr_total":{"type":["number","null"],"format":"double"},"total_supply_usd":{"type":["number","null"],"format":"double"},"ts":{"type":"string","format":"date-time"},"utilization":{"type":["number","null"],"format":"double"}}}},"meta":{"$ref":"#/components/schemas/ApiMeta"}}},"ApiResponse_Vec_OhlcBar":{"type":"object","description":"Uniform response envelope. Every successful API response is wrapped:\n`data` carries the payload, `meta` carries paging / cache info.","required":["data","meta"],"properties":{"data":{"type":"array","items":{"type":"object","description":"Daily OHLC bar.","required":["day"],"properties":{"adj_close":{"type":["number","null"],"format":"double"},"close":{"type":["number","null"],"format":"double"},"day":{"type":"string","format":"date"},"high":{"type":["number","null"],"format":"double"},"low":{"type":["number","null"],"format":"double"},"open":{"type":["number","null"],"format":"double"},"volume":{"type":["number","null"],"format":"double"}}}},"meta":{"$ref":"#/components/schemas/ApiMeta"}}},"ApiResponse_Vec_PlatformOi":{"type":"object","description":"Uniform response envelope. Every successful API response is wrapped:\n`data` carries the payload, `meta` carries paging / cache info.","required":["data","meta"],"properties":{"data":{"type":"array","items":{"type":"object","description":"Per-platform open-interest roll-up.","required":["platform","markets","oi_usd","volume_24h_usd","newest_ts"],"properties":{"funding_apr_weighted":{"type":["number","null"],"format":"double"},"markets":{"type":"integer","format":"int64"},"newest_ts":{"type":"string","format":"date-time"},"oi_usd":{"type":"number","format":"double"},"platform":{"type":"string"},"volume_24h_usd":{"type":"number","format":"double"}}}},"meta":{"$ref":"#/components/schemas/ApiMeta"}}},"ApiResponse_Vec_PoolMarket":{"type":"object","description":"Uniform response envelope. Every successful API response is wrapped:\n`data` carries the payload, `meta` carries paging / cache info.","required":["data","meta"],"properties":{"data":{"type":"array","items":{"type":"object","description":"Latest DEX/liquidity pool snapshot with APR breakdown.","required":["chain","platform","pool_address","ts"],"properties":{"apr_total":{"type":["number","null"],"format":"double","description":"fee + reward APR, %."},"chain":{"type":"string"},"fee_apr":{"type":["number","null"],"format":"double","description":"Fee-generated APR, %."},"fee_bps":{"type":["number","null"],"format":"double"},"fees_24h_usd":{"type":["number","null"],"format":"double"},"platform":{"type":"string"},"pool_address":{"type":"string"},"pool_type":{"type":["string","null"]},"price":{"type":["number","null"],"format":"double"},"reward_apr":{"type":["number","null"],"format":"double","description":"Reward APR (incentives), %."},"symbol":{"type":["string","null"]},"token0_symbol":{"type":["string","null"]},"token1_symbol":{"type":["string","null"]},"ts":{"type":"string","format":"date-time"},"tvl_usd":{"type":["number","null"],"format":"double"},"volume_24h_usd":{"type":["number","null"],"format":"double"}}}},"meta":{"$ref":"#/components/schemas/ApiMeta"}}},"ApiResponse_Vec_PoolPoint":{"type":"object","description":"Uniform response envelope. Every successful API response is wrapped:\n`data` carries the payload, `meta` carries paging / cache info.","required":["data","meta"],"properties":{"data":{"type":"array","items":{"type":"object","required":["ts"],"properties":{"apr_total":{"type":["number","null"],"format":"double"},"ts":{"type":"string","format":"date-time"},"tvl_usd":{"type":["number","null"],"format":"double"},"volume_24h_usd":{"type":["number","null"],"format":"double"}}}},"meta":{"$ref":"#/components/schemas/ApiMeta"}}},"ApiResponse_Vec_RwaAsset":{"type":"object","description":"Uniform response envelope. Every successful API response is wrapped:\n`data` carries the payload, `meta` carries paging / cache info.","required":["data","meta"],"properties":{"data":{"type":"array","items":{"type":"object","description":"RWA asset summary (latest snapshot per asset).","required":["external_id","ts"],"properties":{"asset_type":{"type":["string","null"],"description":"`stock` | `etf` | `commodity` | …"},"change_pct_24h":{"type":["number","null"],"format":"double"},"change_pct_30d":{"type":["number","null"],"format":"double"},"change_pct_7d":{"type":["number","null"],"format":"double"},"external_id":{"type":"string","description":"Source-native asset id from the tokenized-assets catalog."},"market_cap_usd":{"type":["number","null"],"format":"double"},"name":{"type":["string","null"]},"perps_oi_usd":{"type":["number","null"],"format":"double"},"perps_volume_24h_usd":{"type":["number","null"],"format":"double","description":"24h perp volume traded on this asset's tokenized markets."},"price_usd":{"type":["number","null"],"format":"double"},"symbol":{"type":["string","null"]},"token_count":{"type":["integer","null"],"format":"int32"},"ts":{"type":"string","format":"date-time"},"volume_24h_usd":{"type":["number","null"],"format":"double"}}}},"meta":{"$ref":"#/components/schemas/ApiMeta"}}},"ApiResponse_Vec_RwaPolymarketMarket":{"type":"object","description":"Uniform response envelope. Every successful API response is wrapped:\n`data` carries the payload, `meta` carries paging / cache info.","required":["data","meta"],"properties":{"data":{"type":"array","items":{"type":"object","description":"Polymarket market related to an RWA asset (latest snapshot per market).","required":["market_id","ts"],"properties":{"closed":{"type":["boolean","null"]},"end_date":{"type":["string","null"],"format":"date-time"},"event_slug":{"type":["string","null"]},"event_title":{"type":["string","null"]},"liquidity_usd":{"type":["number","null"],"format":"double"},"market_id":{"type":"string"},"question":{"type":["string","null"]},"rwa_asset_type":{"type":["string","null"]},"rwa_symbol":{"type":["string","null"]},"ts":{"type":"string","format":"date-time"},"volume_usd":{"type":["number","null"],"format":"double"},"yes_prob":{"type":["number","null"],"format":"double"}}}},"meta":{"$ref":"#/components/schemas/ApiMeta"}}},"ApiResponse_Vec_RwaToken":{"type":"object","description":"Uniform response envelope. Every successful API response is wrapped:\n`data` carries the payload, `meta` carries paging / cache info.","required":["data","meta"],"properties":{"data":{"type":"array","items":{"type":"object","description":"Tokenized representation of a real-world asset on some chain.","required":["issuer","symbol"],"properties":{"address":{"type":["string","null"]},"chain":{"type":["string","null"]},"deposit_enabled":{"type":["boolean","null"]},"isin":{"type":["string","null"]},"issuer":{"type":"string"},"name":{"type":["string","null"]},"symbol":{"type":"string"},"underlying_symbol":{"type":["string","null"]},"withdraw_enabled":{"type":["boolean","null"]}}}},"meta":{"$ref":"#/components/schemas/ApiMeta"}}},"ApiResponse_Vec_ScreenRow":{"type":"object","description":"Uniform response envelope. Every successful API response is wrapped:\n`data` carries the payload, `meta` carries paging / cache info.","required":["data","meta"],"properties":{"data":{"type":"array","items":{"type":"object","description":"Row of the tokenized-underlying screen.","required":["underlying","contracts","issuers","chains","perp_venues","has_ondo","tokens_ts"],"properties":{"chains":{"type":"integer","format":"int64"},"contracts":{"type":"integer","format":"int64"},"has_ondo":{"type":"boolean"},"issuers":{"type":"integer","format":"int64"},"market_cap":{"type":["number","null"],"format":"double"},"name":{"type":["string","null"]},"perp_oi_usd":{"type":["number","null"],"format":"double"},"perp_venues":{"type":"integer","format":"int64"},"price":{"type":["number","null"],"format":"double"},"tokens_ts":{"type":"string","format":"date-time"},"underlying":{"type":"string"},"venue":{"type":["string","null"]}}}},"meta":{"$ref":"#/components/schemas/ApiMeta"}}},"ApiResponse_Vec_StakingProduct":{"type":"object","description":"Uniform response envelope. Every successful API response is wrapped:\n`data` carries the payload, `meta` carries paging / cache info.","required":["data","meta"],"properties":{"data":{"type":"array","items":{"type":"object","description":"Liquid-staking product with APR estimated from the exchange-rate series.","required":["chain","protocol","product","underlying","exchange_rate","ts"],"properties":{"apr_30d":{"type":["number","null"],"format":"double","description":"APR over the last ~30 days, %."},"apr_7d":{"type":["number","null"],"format":"double","description":"APR over the last ~7 days derived from exchange-rate growth, %."},"chain":{"type":"string"},"epoch":{"type":["integer","null"],"format":"int64"},"exchange_rate":{"type":"number","format":"double"},"mint":{"type":["string","null"]},"product":{"type":"string"},"protocol":{"type":"string"},"token_supply":{"type":["number","null"],"format":"double"},"total_underlying":{"type":["number","null"],"format":"double"},"ts":{"type":"string","format":"date-time"},"tvl_usd":{"type":["number","null"],"format":"double"},"underlying":{"type":"string"}}}},"meta":{"$ref":"#/components/schemas/ApiMeta"}}},"ApiResponse_Vec_StockListing":{"type":"object","description":"Uniform response envelope. Every successful API response is wrapped:\n`data` carries the payload, `meta` carries paging / cache info.","required":["data","meta"],"properties":{"data":{"type":"array","items":{"type":"object","description":"Equity listing from the global catalog.","required":["symbol","ts"],"properties":{"change_pct":{"type":["number","null"],"format":"double"},"country":{"type":["string","null"]},"currency":{"type":["string","null"]},"industry":{"type":["string","null"]},"isin":{"type":["string","null"]},"last_price":{"type":["number","null"],"format":"double"},"market_cap":{"type":["number","null"],"format":"double"},"name":{"type":["string","null"]},"sector":{"type":["string","null"]},"symbol":{"type":"string"},"ts":{"type":"string","format":"date-time"},"venue":{"type":["string","null"]}}}},"meta":{"$ref":"#/components/schemas/ApiMeta"}}},"ApiResponse_Vec_StockQuote":{"type":"object","description":"Uniform response envelope. Every successful API response is wrapped:\n`data` carries the payload, `meta` carries paging / cache info.","required":["data","meta"],"properties":{"data":{"type":"array","items":{"type":"object","description":"Latest quote for an equity symbol. Sourced from intraday quotes when\navailable, otherwise derived from the most recent daily OHLC bar.","required":["symbol","source","ts"],"properties":{"change_pct":{"type":["number","null"],"format":"double"},"currency":{"type":["string","null"]},"last":{"type":["number","null"],"format":"double"},"market_status":{"type":["string","null"]},"name":{"type":["string","null"]},"prev_close":{"type":["number","null"],"format":"double"},"source":{"type":"string","description":"`quote` or `daily_close` — provenance of the last price."},"symbol":{"type":"string"},"ts":{"type":"string","format":"date-time"},"venue":{"type":["string","null"]},"volume":{"type":["number","null"],"format":"double"}}}},"meta":{"$ref":"#/components/schemas/ApiMeta"}}},"BasisRow":{"type":"object","description":"A perp market on the underlying, with basis vs the equity price.","required":["platform","market","ts"],"properties":{"basis_bps":{"type":["number","null"],"format":"double","description":"(mark − equity) / equity, basis points."},"funding_rate_apr":{"type":["number","null"],"format":"double"},"mark_price":{"type":["number","null"],"format":"double"},"market":{"type":"string"},"open_interest_usd":{"type":["number","null"],"format":"double"},"platform":{"type":"string"},"ts":{"type":"string","format":"date-time"}}},"Bucket":{"type":"string","description":"Bucketing granularity for time-series endpoints. Raw timestamps are used\nbelow 1m; coarser values aggregate with `time_bucket`.","enum":["raw","m1","m5","m15","h1","h4","d1","w1"]},"CaHit":{"type":"object","description":"Reverse container-address lookup result.","required":["address","underlyings","contracts"],"properties":{"address":{"type":"string"},"contracts":{"type":"array","items":{"$ref":"#/components/schemas/Contract"}},"underlyings":{"type":"array","items":{"type":"string"},"description":"Distinct underlying(s) this address maps to (usually exactly one)."}}},"CarryRow":{"type":"object","description":"Perp funding vs borrow cost (funding carry).","required":["symbol","perp_platform","perp_market","borrow_platform","borrow_market"],"properties":{"borrow_apr_net":{"type":["number","null"],"format":"double"},"borrow_market":{"type":"string"},"borrow_platform":{"type":"string"},"carry_apr":{"type":["number","null"],"format":"double"},"funding_rate_apr":{"type":["number","null"],"format":"double"},"open_interest_usd":{"type":["number","null"],"format":"double"},"perp_market":{"type":"string"},"perp_platform":{"type":"string"},"supply_apr":{"type":["number","null"],"format":"double"},"symbol":{"type":"string"}}},"CompanyProfile":{"type":"object","description":"Company profile (SEC EDGAR) linked to its tickers.","required":["ts"],"properties":{"cik":{"type":["string","null"]},"entity_type":{"type":["string","null"]},"investor_website":{"type":["string","null"]},"name":{"type":["string","null"]},"sic_description":{"type":["string","null"]},"ticker":{"type":["string","null"]},"ts":{"type":"string","format":"date-time"},"website":{"type":["string","null"]}}},"Contract":{"type":"object","description":"One tokenized deployment of an underlying (rwa_issuer_tokens + flags).","required":["issuer","symbol","canonical","address_rows","underlying_conflict","fetched_at"],"properties":{"address":{"type":["string","null"]},"address_rows":{"type":"integer","format":"int64","description":"Same address row-count in the catalog (multi-chain copies ≈ 14)."},"canonical":{"type":"boolean","description":"Preferred canonical deployment (Solana or the issuer's own chain)."},"chain":{"type":["string","null"],"description":"Lowercased chain label."},"decimals":{"type":["integer","null"],"format":"int32"},"deposit_enabled":{"type":["boolean","null"]},"fetched_at":{"type":"string","format":"date-time"},"isin":{"type":["string","null"]},"issuer":{"type":"string"},"name":{"type":["string","null"]},"symbol":{"type":"string","description":"Token ticker as deployed (SPYx, SPYon, AAPL.US, …)."},"underlying_conflict":{"type":"boolean","description":"Distinct underlyings sharing this address (>1 ⇒ poisoned mapping)."},"withdraw_enabled":{"type":["boolean","null"]},"wrapper_address":{"type":["string","null"]}}},"CreateKeyRequest":{"type":"object","description":"Request to create a new API key (admin only).","required":["name"],"properties":{"admin":{"type":"boolean"},"name":{"type":"string"},"rate_limit_rps":{"type":["integer","null"],"format":"int32","description":"Requests per second allowed for this key. Defaults to server config."}}},"CreatedApiKey":{"allOf":[{"$ref":"#/components/schemas/ApiKeyInfo"},{"type":"object","required":["api_key"],"properties":{"api_key":{"type":"string"}}}],"description":"Create response includes the plaintext key exactly once."},"DatasetInfo":{"type":"object","description":"Freshness / size of the underlying datasets — transparency for consumers.","required":["name","table","approx_rows"],"properties":{"approx_rows":{"type":"integer","format":"int64"},"name":{"type":"string"},"newest":{"type":["string","null"],"format":"date-time"},"table":{"type":"string"}}},"Datasets":{"type":"object","required":["datasets"],"properties":{"datasets":{"type":"array","items":{"$ref":"#/components/schemas/DatasetInfo"}}}},"DeviationEntry":{"type":"object","description":"Price reference from one source vs the equity price.","required":["source"],"properties":{"basis_bps":{"type":["number","null"],"format":"double"},"price":{"type":["number","null"],"format":"double"},"source":{"type":"string","description":"`perp:<platform>` | `ondo` | `daily_close`."},"ts":{"type":["string","null"],"format":"date-time"}}},"DeviationView":{"type":"object","description":"`GET /rwa/{underlying}/deviation` payload.","required":["underlying","deviations","freshness"],"properties":{"anchor":{"type":["string","null"]},"deviations":{"type":"array","items":{"$ref":"#/components/schemas/DeviationEntry"}},"equity_px":{"type":["number","null"],"format":"double","description":"Equity price used as the anchor (listing last → close → ondo)."},"freshness":{"$ref":"#/components/schemas/Freshness"},"underlying":{"type":"string"}}},"Dossier":{"type":"object","description":"Everything an agent needs to act on one tokenized stock.","required":["underlying","contracts","perps","pools","lending","poly","deviations","freshness","warnings"],"properties":{"contracts":{"type":"array","items":{"$ref":"#/components/schemas/Contract"}},"deviations":{"type":"array","items":{"$ref":"#/components/schemas/DeviationEntry"}},"equity":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/EquityRef"}]},"freshness":{"$ref":"#/components/schemas/Freshness"},"lending":{"type":"array","items":{"$ref":"#/components/schemas/LendLeg"},"description":"`lending: []` + warning is meaningful: no tokenized-share lends."},"name":{"type":["string","null"]},"ondo":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/OndoDaily"}]},"perps":{"type":"array","items":{"$ref":"#/components/schemas/BasisRow"}},"perps_summary":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/PerpsSummary"}]},"poly":{"type":"array","items":{"$ref":"#/components/schemas/PolyLeg"}},"pools":{"type":"array","items":{"$ref":"#/components/schemas/PoolLeg"}},"underlying":{"type":"string"},"warnings":{"type":"array","items":{"type":"string"}}}},"EquityRef":{"type":"object","description":"The real-world leg: exchange listing + last daily close.","properties":{"close":{"type":["number","null"],"format":"double"},"currency":{"type":["string","null"]},"day":{"type":["string","null"],"format":"date"},"fetched_at":{"type":["string","null"],"format":"date-time"},"last_price":{"type":["number","null"],"format":"double"},"market_cap":{"type":["number","null"],"format":"double"},"name":{"type":["string","null"]},"source":{"type":["string","null"],"description":"Which dataset produced this reference: `stock_listings` | `rwa_panel`."},"venue":{"type":["string","null"]}}},"Freshness":{"type":"object","description":"Newest timestamp per joined leg — agents gate on this.","properties":{"contracts":{"type":["string","null"],"format":"date-time"},"equity":{"type":["string","null"],"format":"date-time"},"lending":{"type":["string","null"],"format":"date-time"},"ondo":{"type":["string","null"],"format":"date-time"},"perps":{"type":["string","null"],"format":"date-time"},"poly":{"type":["string","null"],"format":"date-time"},"pools":{"type":["string","null"],"format":"date-time"}}},"FundingMarket":{"type":"object","description":"One venue/market funding snapshot.","required":["platform","market","market_raw","ts"],"properties":{"best_ask":{"type":["number","null"],"format":"double"},"best_bid":{"type":["number","null"],"format":"double"},"funding_interval_hours":{"type":["number","null"],"format":"double"},"funding_rate":{"type":["number","null"],"format":"double"},"funding_rate_1h":{"type":["number","null"],"format":"double"},"funding_rate_apr":{"type":["number","null"],"format":"double"},"index_price":{"type":["number","null"],"format":"double"},"maker_fee":{"type":["number","null"],"format":"double"},"mark_price":{"type":["number","null"],"format":"double"},"market":{"type":"string"},"market_raw":{"type":"string"},"max_leverage":{"type":["number","null"],"format":"double"},"next_funding_at":{"type":["string","null"],"format":"date-time"},"open_interest_base":{"type":["number","null"],"format":"double"},"open_interest_usd":{"type":["number","null"],"format":"double"},"platform":{"type":"string"},"spread_bps":{"type":["number","null"],"format":"double"},"status":{"type":["string","null"]},"taker_fee":{"type":["number","null"],"format":"double"},"ts":{"type":"string","format":"date-time"},"volume_24h_usd":{"type":["number","null"],"format":"double"}}},"FundingPoint":{"type":"object","description":"One bucketed history point.","required":["ts"],"properties":{"funding_rate":{"type":["number","null"],"format":"double"},"funding_rate_apr":{"type":["number","null"],"format":"double"},"mark_price":{"type":["number","null"],"format":"double"},"open_interest_usd":{"type":["number","null"],"format":"double"},"ts":{"type":"string","format":"date-time"},"volume_24h_usd":{"type":["number","null"],"format":"double"}}},"FundingSpread":{"type":"object","description":"One symbol aggregated across venues.","required":["symbol","rows"],"properties":{"best_long_platform":{"type":["string","null"]},"best_short_platform":{"type":["string","null"]},"max_apr":{"type":["number","null"],"format":"double"},"min_apr":{"type":["number","null"],"format":"double"},"rows":{"type":"array","items":{"$ref":"#/components/schemas/FundingSpreadRow"}},"spread_apr":{"type":["number","null"],"format":"double"},"symbol":{"type":"string"}}},"FundingSpreadRow":{"type":"object","description":"One venue row in a cross-venue spread.","required":["platform","market","ts"],"properties":{"funding_rate":{"type":["number","null"],"format":"double"},"funding_rate_apr":{"type":["number","null"],"format":"double"},"mark_price":{"type":["number","null"],"format":"double"},"market":{"type":"string"},"open_interest_usd":{"type":["number","null"],"format":"double"},"platform":{"type":"string"},"ts":{"type":"string","format":"date-time"}}},"LabelValue":{"type":"object","description":"A labelled aggregate row (e.g. totals grouped by platform / category).","required":["label","value"],"properties":{"count":{"type":"integer","format":"int64"},"label":{"type":"string"},"value":{"type":"number","format":"double"}}},"LendLeg":{"type":"object","description":"Lending market listing a tokenized share of the underlying.","required":["platform","market","ts"],"properties":{"borrow_apr":{"type":["number","null"],"format":"double"},"chain":{"type":["string","null"]},"market":{"type":"string"},"platform":{"type":"string"},"supply_apr_total":{"type":["number","null"],"format":"double"},"total_supply_usd":{"type":["number","null"],"format":"double"},"ts":{"type":"string","format":"date-time"},"utilization":{"type":["number","null"],"format":"double"}}},"LendMarket":{"type":"object","description":"Latest lending market snapshot (one per platform, market).","required":["platform","market","kind","ts"],"properties":{"borrow_apr":{"type":["number","null"],"format":"double"},"borrow_apr_net":{"type":["number","null"],"format":"double","description":"Borrow APR net of incentives, %."},"chain":{"type":["string","null"]},"kind":{"type":"string","description":"Market kind: `reserve` | `isolated_pair` | `earn_vault` | `hub-asset` | `hub-stock`."},"liq_threshold":{"type":["number","null"],"format":"double"},"ltv":{"type":["number","null"],"format":"double"},"market":{"type":"string"},"market_raw":{"type":["string","null"]},"platform":{"type":"string"},"price_usd":{"type":["number","null"],"format":"double"},"supply_apr":{"type":["number","null"],"format":"double","description":"Native supply APR, % (no rewards)."},"supply_apr_total":{"type":["number","null"],"format":"double","description":"Total supply APR including rewards, %."},"supply_reward_apr":{"type":["number","null"],"format":"double","description":"Extra supply APR from token incentives, %."},"total_borrow_usd":{"type":["number","null"],"format":"double"},"total_supply_usd":{"type":["number","null"],"format":"double"},"ts":{"type":"string","format":"date-time"},"utilization":{"type":["number","null"],"format":"double","description":"Utilization 0..1."}}},"LendPoint":{"type":"object","description":"Bucketed lending history point.","required":["ts"],"properties":{"borrow_apr_net":{"type":["number","null"],"format":"double"},"supply_apr":{"type":["number","null"],"format":"double"},"supply_apr_total":{"type":["number","null"],"format":"double"},"total_supply_usd":{"type":["number","null"],"format":"double"},"ts":{"type":"string","format":"date-time"},"utilization":{"type":["number","null"],"format":"double"}}},"LendSummary":{"type":"object","required":["markets","platforms","total_supply_usd","top_supply_apr","top_borrow_apr"],"properties":{"markets":{"type":"integer","format":"int64"},"newest_ts":{"type":["string","null"],"format":"date-time"},"platforms":{"type":"integer","format":"int64"},"top_borrow_apr":{"type":"array","items":{"$ref":"#/components/schemas/LendMarket"}},"top_supply_apr":{"type":"array","items":{"$ref":"#/components/schemas/LendMarket"}},"total_supply_usd":{"type":"number","format":"double"}}},"OhlcBar":{"type":"object","description":"Daily OHLC bar.","required":["day"],"properties":{"adj_close":{"type":["number","null"],"format":"double"},"close":{"type":["number","null"],"format":"double"},"day":{"type":"string","format":"date"},"high":{"type":["number","null"],"format":"double"},"low":{"type":["number","null"],"format":"double"},"open":{"type":["number","null"],"format":"double"},"volume":{"type":["number","null"],"format":"double"}}},"OndoDaily":{"type":"object","required":["day"],"properties":{"asset_name":{"type":["string","null"]},"day":{"type":"string","format":"date"},"is_offhours_tradable":{"type":["boolean","null"]},"price":{"type":["number","null"],"format":"double"},"price_change_pct_24h":{"type":["number","null"],"format":"double"},"symbol":{"type":["string","null"]},"trading_status":{"type":["string","null"]}}},"Overview":{"type":"object","description":"Cross-domain market overview: one call that fans out across every domain\nthe product cares about (funding, carry, RWA, equities).","required":["perp","lend","rwa","stocks","staking"],"properties":{"lend":{"$ref":"#/components/schemas/LendSummary"},"perp":{"$ref":"#/components/schemas/PerpSummary"},"rwa":{"$ref":"#/components/schemas/RwaSummary"},"staking":{"$ref":"#/components/schemas/StakingSummary"},"stocks":{"$ref":"#/components/schemas/StocksSummary"}}},"PerpSummary":{"type":"object","required":["total_oi_usd","markets","platforms","funding","top_funding","bottom_funding"],"properties":{"avg_funding_apr":{"type":["number","null"],"format":"double"},"bottom_funding":{"type":"array","items":{"$ref":"#/components/schemas/FundingMarket"}},"funding":{"type":"array","items":{"$ref":"#/components/schemas/LabelValue"}},"markets":{"type":"integer","format":"int64"},"newest_ts":{"type":["string","null"],"format":"date-time"},"platforms":{"type":"integer","format":"int64"},"top_funding":{"type":"array","items":{"$ref":"#/components/schemas/FundingMarket"}},"total_oi_usd":{"type":"number","format":"double"}}},"PerpsSummary":{"type":"object","description":"Aggregate of the perp leg.","required":["venues","markets","total_oi_usd"],"properties":{"best_long_apr":{"type":["number","null"],"format":"double","description":"Long-side carry: best (most positive) funding APR %."},"best_short_apr":{"type":["number","null"],"format":"double","description":"Short-side carry: best (most negative → positive yield) APR %."},"markets":{"type":"integer","format":"int64"},"total_oi_usd":{"type":"number","format":"double"},"venues":{"type":"integer","format":"int64"}}},"PlatformOi":{"type":"object","description":"Per-platform open-interest roll-up.","required":["platform","markets","oi_usd","volume_24h_usd","newest_ts"],"properties":{"funding_apr_weighted":{"type":["number","null"],"format":"double"},"markets":{"type":"integer","format":"int64"},"newest_ts":{"type":"string","format":"date-time"},"oi_usd":{"type":"number","format":"double"},"platform":{"type":"string"},"volume_24h_usd":{"type":"number","format":"double"}}},"Platforms":{"type":"object","description":"Distinct platforms / catalogs available in the data.","required":["perp","lend","dex","staking_protocols","rwa_issuers","stock_venues","sources"],"properties":{"dex":{"type":"array","items":{"type":"string"}},"lend":{"type":"array","items":{"type":"string"}},"perp":{"type":"array","items":{"type":"string"}},"rwa_issuers":{"type":"array","items":{"type":"string"}},"sources":{"type":"array","items":{"type":"string"}},"staking_protocols":{"type":"array","items":{"type":"string"}},"stock_venues":{"type":"array","items":{"type":"string"}}}},"PolyLeg":{"type":"object","description":"Top prediction-market hedge (Polymarket).","required":["ts"],"properties":{"end_date":{"type":["string","null"],"format":"date-time"},"market_slug":{"type":["string","null"]},"question":{"type":["string","null"]},"ts":{"type":"string","format":"date-time"},"volume_usd":{"type":["number","null"],"format":"double"},"yes_prob":{"type":["number","null"],"format":"double"}}},"PoolLeg":{"type":"object","description":"DEX pool where a contract address is one of the legs.","required":["platform","pool_address","ts"],"properties":{"apr_total":{"type":["number","null"],"format":"double"},"chain":{"type":["string","null"]},"fee_apr":{"type":["number","null"],"format":"double"},"fees_24h_usd":{"type":["number","null"],"format":"double"},"platform":{"type":"string"},"pool_address":{"type":"string"},"symbol":{"type":["string","null"]},"ts":{"type":"string","format":"date-time"},"tvl_usd":{"type":["number","null"],"format":"double"},"volume_24h_usd":{"type":["number","null"],"format":"double"}}},"PoolMarket":{"type":"object","description":"Latest DEX/liquidity pool snapshot with APR breakdown.","required":["chain","platform","pool_address","ts"],"properties":{"apr_total":{"type":["number","null"],"format":"double","description":"fee + reward APR, %."},"chain":{"type":"string"},"fee_apr":{"type":["number","null"],"format":"double","description":"Fee-generated APR, %."},"fee_bps":{"type":["number","null"],"format":"double"},"fees_24h_usd":{"type":["number","null"],"format":"double"},"platform":{"type":"string"},"pool_address":{"type":"string"},"pool_type":{"type":["string","null"]},"price":{"type":["number","null"],"format":"double"},"reward_apr":{"type":["number","null"],"format":"double","description":"Reward APR (incentives), %."},"symbol":{"type":["string","null"]},"token0_symbol":{"type":["string","null"]},"token1_symbol":{"type":["string","null"]},"ts":{"type":"string","format":"date-time"},"tvl_usd":{"type":["number","null"],"format":"double"},"volume_24h_usd":{"type":["number","null"],"format":"double"}}},"PoolPoint":{"type":"object","required":["ts"],"properties":{"apr_total":{"type":["number","null"],"format":"double"},"ts":{"type":"string","format":"date-time"},"tvl_usd":{"type":["number","null"],"format":"double"},"volume_24h_usd":{"type":["number","null"],"format":"double"}}},"Range":{"type":"string","description":"Named time range shorthand (max window: `d30` — one month).","enum":["m15","h1","h6","h24","d7","d30"]},"RwaAsset":{"type":"object","description":"RWA asset summary (latest snapshot per asset).","required":["external_id","ts"],"properties":{"asset_type":{"type":["string","null"],"description":"`stock` | `etf` | `commodity` | …"},"change_pct_24h":{"type":["number","null"],"format":"double"},"change_pct_30d":{"type":["number","null"],"format":"double"},"change_pct_7d":{"type":["number","null"],"format":"double"},"external_id":{"type":"string","description":"Source-native asset id from the tokenized-assets catalog."},"market_cap_usd":{"type":["number","null"],"format":"double"},"name":{"type":["string","null"]},"perps_oi_usd":{"type":["number","null"],"format":"double"},"perps_volume_24h_usd":{"type":["number","null"],"format":"double","description":"24h perp volume traded on this asset's tokenized markets."},"price_usd":{"type":["number","null"],"format":"double"},"symbol":{"type":["string","null"]},"token_count":{"type":["integer","null"],"format":"int32"},"ts":{"type":"string","format":"date-time"},"volume_24h_usd":{"type":["number","null"],"format":"double"}}},"RwaAssetDetail":{"type":"object","description":"Full RWA asset detail: snapshot + on-chain token deployments + related\nprediction markets + perp funding (if any).","required":["asset","tokens","markets"],"properties":{"asset":{"$ref":"#/components/schemas/RwaAsset"},"markets":{"type":"array","items":{"$ref":"#/components/schemas/RwaPolymarketMarket"},"description":"Linked Polymarket markets betting on this asset."},"tokens":{"type":"array","items":{"$ref":"#/components/schemas/RwaToken"},"description":"Token deployments catalogued by issuers (multi-chain addresses)."}}},"RwaLite":{"type":"object","required":["external_id","ts"],"properties":{"external_id":{"type":"string"},"market_cap_usd":{"type":["number","null"],"format":"double"},"price_usd":{"type":["number","null"],"format":"double"},"ts":{"type":"string","format":"date-time"},"volume_24h_usd":{"type":["number","null"],"format":"double"}}},"RwaPolymarketMarket":{"type":"object","description":"Polymarket market related to an RWA asset (latest snapshot per market).","required":["market_id","ts"],"properties":{"closed":{"type":["boolean","null"]},"end_date":{"type":["string","null"],"format":"date-time"},"event_slug":{"type":["string","null"]},"event_title":{"type":["string","null"]},"liquidity_usd":{"type":["number","null"],"format":"double"},"market_id":{"type":"string"},"question":{"type":["string","null"]},"rwa_asset_type":{"type":["string","null"]},"rwa_symbol":{"type":["string","null"]},"ts":{"type":"string","format":"date-time"},"volume_usd":{"type":["number","null"],"format":"double"},"yes_prob":{"type":["number","null"],"format":"double"}}},"RwaSummary":{"type":"object","required":["assets","total_market_cap_usd","by_type"],"properties":{"assets":{"type":"integer","format":"int64"},"by_type":{"type":"array","items":{"$ref":"#/components/schemas/LabelValue"}},"newest_ts":{"type":["string","null"],"format":"date-time"},"total_market_cap_usd":{"type":"number","format":"double"}}},"RwaToken":{"type":"object","description":"Tokenized representation of a real-world asset on some chain.","required":["issuer","symbol"],"properties":{"address":{"type":["string","null"]},"chain":{"type":["string","null"]},"deposit_enabled":{"type":["boolean","null"]},"isin":{"type":["string","null"]},"issuer":{"type":"string"},"name":{"type":["string","null"]},"symbol":{"type":"string"},"underlying_symbol":{"type":["string","null"]},"withdraw_enabled":{"type":["boolean","null"]}}},"ScreenRow":{"type":"object","description":"Row of the tokenized-underlying screen.","required":["underlying","contracts","issuers","chains","perp_venues","has_ondo","tokens_ts"],"properties":{"chains":{"type":"integer","format":"int64"},"contracts":{"type":"integer","format":"int64"},"has_ondo":{"type":"boolean"},"issuers":{"type":"integer","format":"int64"},"market_cap":{"type":["number","null"],"format":"double"},"name":{"type":["string","null"]},"perp_oi_usd":{"type":["number","null"],"format":"double"},"perp_venues":{"type":"integer","format":"int64"},"price":{"type":["number","null"],"format":"double"},"tokens_ts":{"type":"string","format":"date-time"},"underlying":{"type":"string"},"venue":{"type":["string","null"]}}},"SortDir":{"type":"string","description":"Sort direction used by ranking endpoints.","enum":["desc","asc"]},"StakingProduct":{"type":"object","description":"Liquid-staking product with APR estimated from the exchange-rate series.","required":["chain","protocol","product","underlying","exchange_rate","ts"],"properties":{"apr_30d":{"type":["number","null"],"format":"double","description":"APR over the last ~30 days, %."},"apr_7d":{"type":["number","null"],"format":"double","description":"APR over the last ~7 days derived from exchange-rate growth, %."},"chain":{"type":"string"},"epoch":{"type":["integer","null"],"format":"int64"},"exchange_rate":{"type":"number","format":"double"},"mint":{"type":["string","null"]},"product":{"type":"string"},"protocol":{"type":"string"},"token_supply":{"type":["number","null"],"format":"double"},"total_underlying":{"type":["number","null"],"format":"double"},"ts":{"type":"string","format":"date-time"},"tvl_usd":{"type":["number","null"],"format":"double"},"underlying":{"type":"string"}}},"StakingSummary":{"type":"object","required":["products","chains","top_apr_7d"],"properties":{"chains":{"type":"integer","format":"int64"},"newest_ts":{"type":["string","null"],"format":"date-time"},"products":{"type":"integer","format":"int64"},"top_apr_7d":{"type":"array","items":{"$ref":"#/components/schemas/StakingProduct"}}}},"StockListing":{"type":"object","description":"Equity listing from the global catalog.","required":["symbol","ts"],"properties":{"change_pct":{"type":["number","null"],"format":"double"},"country":{"type":["string","null"]},"currency":{"type":["string","null"]},"industry":{"type":["string","null"]},"isin":{"type":["string","null"]},"last_price":{"type":["number","null"],"format":"double"},"market_cap":{"type":["number","null"],"format":"double"},"name":{"type":["string","null"]},"sector":{"type":["string","null"]},"symbol":{"type":"string"},"ts":{"type":"string","format":"date-time"},"venue":{"type":["string","null"]}}},"StockQuote":{"type":"object","description":"Latest quote for an equity symbol. Sourced from intraday quotes when\navailable, otherwise derived from the most recent daily OHLC bar.","required":["symbol","source","ts"],"properties":{"change_pct":{"type":["number","null"],"format":"double"},"currency":{"type":["string","null"]},"last":{"type":["number","null"],"format":"double"},"market_status":{"type":["string","null"]},"name":{"type":["string","null"]},"prev_close":{"type":["number","null"],"format":"double"},"source":{"type":"string","description":"`quote` or `daily_close` — provenance of the last price."},"symbol":{"type":"string"},"ts":{"type":"string","format":"date-time"},"venue":{"type":["string","null"]},"volume":{"type":["number","null"],"format":"double"}}},"StocksSummary":{"type":"object","required":["listed_companies","venues","sectors"],"properties":{"listed_companies":{"type":"integer","format":"int64"},"newest_ts":{"type":["string","null"],"format":"date-time"},"sectors":{"type":"array","items":{"$ref":"#/components/schemas/LabelValue"}},"venues":{"type":"integer","format":"int64"}}},"TokenRequest":{"type":"object","description":"Exchange an API key for a short-lived JWT.","required":["api_key"],"properties":{"api_key":{"type":"string","description":"API key (`dak_…`). Also accepted via the `X-API-Key` header directly."},"ttl_seconds":{"type":["integer","null"],"format":"int64","description":"Optional requested lifetime in seconds (clamped to server maximum)."}}},"TokenResponse":{"type":"object","required":["access_token","token_type","expires_in"],"properties":{"access_token":{"type":"string"},"expires_in":{"type":"integer","format":"int64","description":"Seconds until expiry."},"token_type":{"type":"string"}}},"TokenizedStock":{"type":"object","description":"On-chain tokenization coverage of a stock: which chain tokens track it,\ntheir prices and perp venues trading them.","required":["symbol","tokens","perps","contracts","pools","lending","poly","deviations","freshness","warnings"],"properties":{"contracts":{"type":"array","items":{"$ref":"#/components/schemas/Contract"},"description":"Every issuer deployment with chain/ISIN/flags — the P0 join."},"deviations":{"type":"array","items":{"$ref":"#/components/schemas/DeviationEntry"}},"equity":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/EquityRef"}]},"freshness":{"$ref":"#/components/schemas/Freshness"},"lending":{"type":"array","items":{"$ref":"#/components/schemas/LendLeg"}},"name":{"type":["string","null"],"description":"Asset name / issuer metadata."},"ondo":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/OndoDaily","description":"Daily bars from the tokenized-asset venue (Ondo), if present."}]},"perps":{"type":"array","items":{"$ref":"#/components/schemas/FundingSpreadRow"},"description":"Perp markets trading this symbol (funding + OI)."},"perps_summary":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/PerpsSummary"}]},"poly":{"type":"array","items":{"$ref":"#/components/schemas/PolyLeg"},"description":"Top prediction-market hedges by volume."},"pools":{"type":"array","items":{"$ref":"#/components/schemas/PoolLeg"},"description":"Spot DEX pools where a contract is a leg (latest wave)."},"rwa":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/RwaLite","description":"Latest rwa snapshot price data (if the asset is catalogued)."}]},"symbol":{"type":"string"},"tokens":{"type":"array","items":{"$ref":"#/components/schemas/RwaToken"},"description":"Token deployments across chains."},"warnings":{"type":"array","items":{"type":"string"}}}}},"responses":{"BadRequest":{"description":"Invalid or out-of-range parameters (`400` JSON error body)"},"NotFound":{"description":"Unknown symbol/id for this path (`404` JSON error body)"},"PaymentRequired":{"description":"Payment required — x402 challenge with `accepts[]` (only when payments are enabled)"},"TooManyRequests":{"description":"Rate limit or monthly quota exceeded; `Retry-After` header (seconds) set"}},"securitySchemes":{"api_key":{"type":"apiKey","in":"header","name":"X-API-Key"},"bearer_jwt":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT from POST /auth/token"}}},"tags":[{"name":"perp","description":"Perpetual funding rates, open interest, carry"},{"name":"lend","description":"Credit markets: supply/borrow APR, utilization"},{"name":"staking","description":"Liquid staking APRs"},{"name":"pools","description":"LP pools: fee + reward APR"},{"name":"rwa","description":"Tokenized stocks, ETFs, commodities + prediction markets"},{"name":"stocks","description":"Equities: quotes, OHLC, listings, tokenization map"},{"name":"dashboard","description":"Cross-domain overview"},{"name":"meta","description":"Self-description: platforms, dataset freshness"},{"name":"auth","description":"API keys and tokens"}]}