{"openapi":"3.1.0","info":{"title":"Tribulnation Terminal API","version":"0.5.5","description":"Read-only access to a Terminal user’s portfolio (`/me`, scope `me:read`, every plan) and to market data (`/v1`, `/v2`, `/live`, scope `market:read`, Ultra), with one API key: `Authorization: Bearer tn_key_…`, made on https://app.tribulnation.com/integrations.\n\nEvery route is `GET` (or `HEAD`) except the OAuth endpoints. Errors are `{ \"error\": { \"code\", \"message\", \"details\"? } }`.\n\nGuide: https://api.tribulnation.com/docs · for agents: https://api.tribulnation.com/llms.txt."},"servers":[{"url":"https://api.tribulnation.com"}],"paths":{"/v1/assets":{"get":{"operationId":"get_assets","summary":"Assets ranked by market cap, with their price, the prices 24h and 7d ago and an optional sparkline, paged, filterable by category or search.","tags":["assets"],"parameters":[{"name":"page","in":"query","required":false,"description":"1-based page number, instead of `cursor`; `meta.page.number` and `meta.page.total` say where you are.","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1}},{"name":"limit","in":"query","required":false,"description":"Rows per page, 1 to 1000.","schema":{"type":"integer","minimum":1,"maximum":1000,"default":100}},{"name":"cursor","in":"query","required":false,"description":"Opaque: the previous page's `meta.page.next_cursor`, bound to the same query.","schema":{"type":"string"}},{"name":"currency","in":"query","required":false,"description":"Currency of the money figures: `usd` (default) or `eur`.","schema":{"type":"string","enum":["usd","eur"],"default":"usd"}},{"name":"categories","in":"query","required":false,"description":"Category tags (an open vocabulary: an unknown one matches nothing). Comma-separated, at most 7.","schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":false},{"name":"search","in":"query","required":false,"description":"Free text matched against asset names and symbols; a comma is just a character.","schema":{"type":"string"}},{"name":"sparkline","in":"query","required":false,"schema":{"type":"string","enum":["1"]}}],"security":[{"userKey":["market:read"]}],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RankedAssetEnvelope"},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/v1/assets?limit=3 (recorded 2026-11-17)","value":{"data":[{"id":"apple","symbol":"AAPL","name":"Apple","category":"stock","icon_url":"https://catalogue.tribulnation.com/icons/asset/apple.svg","price":"350.54","market_cap":"5094111182848","observed_at":"2026-11-17T20:30:20.804Z","price_24h_ago":"352.035","price_7d_ago":"348.510009765625","peg_currency":null},{"id":"microsoft","symbol":"MSFT","name":"Microsoft","category":"stock","icon_url":"https://catalogue.tribulnation.com/icons/asset/microsoft.svg","price":"505.315","market_cap":"3752567504896","observed_at":"2026-11-17T20:30:20.804Z","price_24h_ago":"517.795","price_7d_ago":"533.1599731445312","peg_currency":null},{"id":"nvidia","symbol":"NVDA","name":"NVIDIA","category":"stock","icon_url":"https://catalogue.tribulnation.com/icons/asset/nvidia.svg","price":"153.42","market_cap":"3704632639488","observed_at":"2026-11-17T20:30:20.804Z","price_24h_ago":"155.62","price_7d_ago":"168.88999938964844","peg_currency":null}],"meta":{"as_of":"2026-11-17T20:30:20.804Z","currency":"usd","page":{"limit":3,"has_more":true,"next_cursor":"eyJwYWdlIjoiMiJ9","number":1,"total":2359}}}}}}}},"304":{"description":"Not modified: `If-None-Match` matched the `ETag` (the dataset’s `as_of`)."},"default":{"$ref":"#/components/responses/Error"}}}},"/v1/assets/{id}":{"get":{"operationId":"get_assets_detail","summary":"One asset: its price, price history, markets, funding, earn products and listings.","tags":["assets"],"parameters":[{"name":"id","in":"path","required":true,"description":"The asset's catalogue id.","schema":{"type":"string","maxLength":128},"example":"bitcoin"},{"name":"currency","in":"query","required":false,"description":"Currency of the money figures: `usd` (default) or `eur`.","schema":{"type":"string","enum":["usd","eur"],"default":"usd"}}],"security":[{"userKey":["market:read"]}],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetAggregateEnvelope"},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/v1/assets/bitcoin?currency=usd (recorded 2026-11-17)","value":{"data":{"asset":{"id":"bitcoin","symbol":"BTC","name":"Bitcoin","category":"crypto","icon_url":"https://catalogue.tribulnation.com/icons/asset/bitcoin.svg","about_en":"Bitcoin is the original decentralized cryptocurrency, secured by proof-of-work and operated without a central issuer or administrator. BTC is widely used as a store of value, reserve asset, and peer-to-peer settlement network, and it remains a widely used benchmark asset in the broader crypto market. Its monetary policy and security model define much of the industry's baseline.","about_ca":"Bitcoin és la criptomoneda descentralitzada original, assegurada per prova de treball (proof-of-work) i operada sense un emissor ni administrador central. BTC s…","about_es":"Bitcoin es la criptomoneda descentralizada original, asegurada por prueba de trabajo (proof-of-work) y operada sin un emisor ni administrador central. BTC se ut…","urls":{"Website":"https://www.bitcoin.org"},"tags":["Popular"],"external":{"coingecko":"bitcoin","coinmarketcap":"1"}},"price":{"asset_id":"bitcoin","price":"63944.79435895965","market_cap":"1285903361845","observed_at":"2026-11-17T20:30:20.804Z","price_24h_ago":"65124.584382579116"},"price_history":[{"asset_id":"bitcoin","time":"2025-11-16T00:00:00.000Z","price":"94188.27668924726","market_cap":"1906286799108.28","source":"coingecko_export","fetched_at":"2026-08-06T15:52:48.248Z"},{"asset_id":"bitcoin","time":"2025-11-17T00:00:00.000Z","price":"92100.36452360668","market_cap":"1879821625636.488","source":"coingecko_export","fetched_at":"2026-08-06T15:52:48.248Z"},{"asset_id":"bitcoin","time":"2025-11-18T00:00:00.000Z","price":"92903.18008511196","market_cap":"1836812997467.337","source":"coingecko_export","fetched_at":"2026-08-06T15:52:48.248Z"}],"tickers":[{"asset_id":"bitcoin","venue_id":"aevo","segment":"perp","kind":"perp","market":"BTC-PERP","quote_asset_id":"usd-coin","settlement_asset_id":"usd-coin","observed_at":"2026-11-17T21:23:08.745Z","last":null,"bid":"64089.5","ask":"64094.6","bid_qty":"0.022","ask_qty":"0.016","base_volume_24h":"39.4","delayed":{"observed_at":"2026-11-17T21:02:57.820Z","last":null,"bid":"63950.2","ask":"63960.8","bid_qty":"0.016","ask_qty":"0.022","base_volume_24h":"38.967"},"segment_name":null,"market_url":null,"venue_name":"Aevo","venue_icon_url":"https://catalogue.tribulnation.com/icons/asset/aevo-exchange.svg","venue_kind":"dex","quote_asset_symbol":"USDC","quote_asset_name":"USD Coin","quote_asset_icon_url":"https://catalogue.tribulnation.com/icons/asset/usd-coin.svg"},{"asset_id":"bitcoin","venue_id":"apex","segment":"perp","kind":"perp","market":"BTCUSDT","quote_asset_id":"tether","settlement_asset_id":"tether","observed_at":"2026-11-17T21:24:00.889Z","last":"64230.4","bid":null,"ask":null,"bid_qty":null,"ask_qty":null,"base_volume_24h":"5718.078","delayed":{"observed_at":"2026-11-17T21:03:54.749Z","last":"63983.9","bid":null,"ask":null,"bid_qty":null,"ask_qty":null,"base_volume_24h":"5613.642"},"segment_name":null,"market_url":null,"venue_name":"ApeX Omni","venue_icon_url":"https://catalogue.tribulnation.com/icons/asset/apex-token.svg","venue_kind":"dex","quote_asset_symbol":"USDT","quote_asset_name":"Tether USD","quote_asset_icon_url":"https://catalogue.tribulnation.com/icons/asset/tether.svg"},{"asset_id":"bitcoin","venue_id":"aster","segment":"perp","kind":"perp","market":"BTCU","quote_asset_id":"united-stables","settlement_asset_id":"united-stables","observed_at":"2026-11-17T21:21:06.039Z","last":"64136.1","bid":"64136","ask":"64136.1","bid_qty":"1.662","ask_qty":"0.001","base_volume_24h":"27.732","delayed":{"observed_at":"2026-11-17T21:05:12.615Z","last":"64038.4","bid":"64065.6","ask":"64066.5","bid_qty":"0.169","ask_qty":"0.144","base_volume_24h":"26.884"},"segment_name":"Linear Perpetuals","market_url":null,"venue_name":"Aster","venue_icon_url":"https://catalogue.tribulnation.com/icons/asset/aster.svg","venue_kind":"dex","quote_asset_symbol":"U","quote_asset_name":"United Stables","quote_asset_icon_url":"https://catalogue.tribulnation.com/icons/asset/united-stables.svg"}],"perps":[{"asset_id":"bitcoin","venue_id":"aevo","market":"BTC-PERP","quote_asset_id":"usd-coin","settlement_asset_id":"usd-coin","observed_at":"2026-11-17T21:22:05.351Z","index_price":"64128.611923","mark_price":"64099.109244","funding_rate":0.000004,"funding_interval_s":3600,"open_interest":"28.722998","delayed":{"observed_at":"2026-11-17T21:02:04.215Z","index_price":"63975.794786","mark_price":"63954.364292","funding_rate":0.000004,"funding_interval_s":3600,"open_interest":"28.682998","next_funding_at":"2026-11-17T22:00:00.000Z"},"segment_name":null,"market_url":null,"venue_name":"Aevo","venue_icon_url":"https://catalogue.tribulnation.com/icons/asset/aevo-exchange.svg","venue_kind":"dex","quote_asset_symbol":"USDC","quote_asset_name":"USD Coin","quote_asset_icon_url":"https://catalogue.tribulnation.com/icons/asset/usd-coin.svg","next_funding_at":"2026-11-17T22:00:00.000Z"},{"asset_id":"bitcoin","venue_id":"apex","market":"BTCUSDT","quote_asset_id":"tether","settlement_asset_id":"tether","observed_at":"2026-11-17T21:24:00.604Z","index_price":"64235.7","mark_price":"64238.31","funding_rate":0.00000968,"funding_interval_s":3600,"open_interest":"1607.084","delayed":{"observed_at":"2026-11-17T21:03:54.760Z","index_price":"64013.66","mark_price":"63993.88","funding_rate":0.0000125,"funding_interval_s":3600,"open_interest":"1606.498","next_funding_at":"2026-11-17T22:00:00.000Z"},"segment_name":null,"market_url":null,"venue_name":"ApeX Omni","venue_icon_url":"https://catalogue.tribulnation.com/icons/asset/apex-token.svg","venue_kind":"dex","quote_asset_symbol":"USDT","quote_asset_name":"Tether USD","quote_asset_icon_url":"https://catalogue.tribulnation.com/icons/asset/tether.svg","next_funding_at":"2026-11-17T22:00:00.000Z"},{"asset_id":"bitcoin","venue_id":"aster","market":"BTCU","quote_asset_id":"united-stables","settlement_asset_id":"united-stables","observed_at":"2026-11-17T21:20:58.901Z","index_price":"64248.67849373","mark_price":"64204.68082263","funding_rate":0.00001811,"funding_interval_s":28800,"open_interest":null,"delayed":{"observed_at":"2026-11-17T21:05:10.803Z","index_price":"64080.25659665","mark_price":"64053.90917291","funding_rate":0.00001334,"funding_interval_s":28800,"open_interest":null,"next_funding_at":"2026-11-18T00:00:00.000Z"},"segment_name":null,"market_url":null,"venue_name":"Aster","venue_icon_url":"https://catalogue.tribulnation.com/icons/asset/aster.svg","venue_kind":"dex","quote_asset_symbol":"U","quote_asset_name":"United Stables","quote_asset_icon_url":"https://catalogue.tribulnation.com/icons/asset/united-stables.svg","next_funding_at":"2026-11-18T00:00:00.000Z"}],"funding":[{"asset_id":"bitcoin","venue_id":"aevo","market":"BTC-PERP","quote_asset_id":"usd-coin","settlement_asset_id":"usd-coin","time":"2026-11-17T21:00:00.000Z","rate":0.000004,"premium":null},{"asset_id":"bitcoin","venue_id":"apex","market":"BTCUSDT","quote_asset_id":"tether","settlement_asset_id":"tether","time":"2026-11-17T21:00:00.000Z","rate":0.0000125,"premium":null},{"asset_id":"bitcoin","venue_id":"aster","market":"BTCU","quote_asset_id":"united-stables","settlement_asset_id":"united-stables","time":"2026-11-17T16:00:00.000Z","rate":0.00003275,"premium":null}],"earn":[{"venue_id":"backpack","instrument":"backpack:lend:BTC","asset_id":"bitcoin","asset_symbol":"BTC","asset_name":"Bitcoin","asset_icon_url":"https://catalogue.tribulnation.com/icons/asset/bitcoin.svg","venue_name":"Backpack Exchange","venue_icon_url":"https://catalogue.tribulnation.com/icons/asset/backpack.svg","url":"https://backpack.exchange/lend","apr":0.00000948197580332474,"tags":["flexible"],"observed_at":"2026-11-17T21:11:00.711Z","min_qty":null,"max_qty":null,"lock_s":null,"earnings_1k_30d":"0.000779340476985595","earnings_30d":"0.000779340476985595","price":"63944.79435895965","unavailable_in":["us"]},{"venue_id":"binance","instrument":"BabyBTC-7d","asset_id":"bitcoin","asset_symbol":"BTC","asset_name":"Bitcoin","asset_icon_url":"https://catalogue.tribulnation.com/icons/asset/bitcoin.svg","venue_name":"Binance","venue_icon_url":"https://catalogue.tribulnation.com/icons/platform/binance.svg","url":"https://www.binance.com/earn","apr":0.002,"tags":["staking","fixed"],"observed_at":"2026-11-17T21:21:05.176Z","min_qty":"0.01","max_qty":"200","lock_s":604800,"earnings_1k_30d":"0.0383561643835616","earnings_30d":"0.0383561643835616","price":"63944.79435895965","unavailable_in":["us"]},{"venue_id":"binance","instrument":"BabyBTC-90d","asset_id":"bitcoin","asset_symbol":"BTC","asset_name":"Bitcoin","asset_icon_url":"https://catalogue.tribulnation.com/icons/asset/bitcoin.svg","venue_name":"Binance","venue_icon_url":"https://catalogue.tribulnation.com/icons/platform/binance.svg","url":"https://www.binance.com/earn","apr":0.0024,"tags":["staking","fixed"],"observed_at":"2026-11-17T21:21:05.176Z","min_qty":"0.01","max_qty":"400","lock_s":7776000,"earnings_1k_30d":"0.197260273972603","earnings_30d":"0.197260273972603","price":"63944.79435895965","unavailable_in":["us"]}],"instruments":[{"venue_id":"aevo","kind":"perp","segment":"perp","market":"BTC-PERP","url":"https://app.aevo.xyz/perpetual/btc"},{"venue_id":"apex","kind":"perp","segment":"perp","market":"BTCUSDT","url":"https://omni.apex.exchange/trade/BTCUSDT"},{"venue_id":"aster","kind":"perp","segment":"perp","market":"BTCU","url":"https://www.asterdex.com/en/trade/pro/futures/BTCU"}],"listings":[{"venue_id":"aevo","kind":"perp","segment":"perp","market":"BTC-PERP","base_asset_id":"bitcoin","quote_asset_id":"usd-coin","settlement_asset_id":"usd-coin","quote_side":false,"url":"https://app.aevo.xyz/perpetual/btc","base_asset_symbol":"BTC","base_asset_icon_url":"https://catalogue.tribulnation.com/icons/asset/bitcoin.svg","segment_name":null,"market_url":null,"venue_name":"Aevo","venue_icon_url":"https://catalogue.tribulnation.com/icons/asset/aevo-exchange.svg","venue_kind":"dex","quote_asset_symbol":"USDC","quote_asset_name":"USD Coin","quote_asset_icon_url":"https://catalogue.tribulnation.com/icons/asset/usd-coin.svg"},{"venue_id":"apex","kind":"perp","segment":"perp","market":"BTCUSDT","base_asset_id":"bitcoin","quote_asset_id":"tether","settlement_asset_id":"tether","quote_side":false,"url":"https://omni.apex.exchange/trade/BTCUSDT","base_asset_symbol":"BTC","base_asset_icon_url":"https://catalogue.tribulnation.com/icons/asset/bitcoin.svg","segment_name":null,"market_url":null,"venue_name":"ApeX Omni","venue_icon_url":"https://catalogue.tribulnation.com/icons/asset/apex-token.svg","venue_kind":"dex","quote_asset_symbol":"USDT","quote_asset_name":"Tether USD","quote_asset_icon_url":"https://catalogue.tribulnation.com/icons/asset/tether.svg"},{"venue_id":"aster","kind":"perp","segment":"perp","market":"BTCU","base_asset_id":"bitcoin","quote_asset_id":"united-stables","settlement_asset_id":"united-stables","quote_side":false,"url":"https://www.asterdex.com/en/trade/pro/futures/BTCU","base_asset_symbol":"BTC","base_asset_icon_url":"https://catalogue.tribulnation.com/icons/asset/bitcoin.svg","segment_name":"Linear Perpetuals","market_url":null,"venue_name":"Aster","venue_icon_url":"https://catalogue.tribulnation.com/icons/asset/aster.svg","venue_kind":"dex","quote_asset_symbol":"U","quote_asset_name":"United Stables","quote_asset_icon_url":"https://catalogue.tribulnation.com/icons/asset/united-stables.svg"}]},"meta":{"as_of":"2026-11-17T21:24:03.732Z","currency":"usd"}}}}}}},"304":{"description":"Not modified: `If-None-Match` matched the `ETag` (the dataset’s `as_of`)."},"default":{"$ref":"#/components/responses/Error"}}}},"/v1/assets/{id}/summary":{"get":{"operationId":"get_assets_detail_summary","summary":"One asset: its profile and latest price only.","tags":["assets"],"parameters":[{"name":"id","in":"path","required":true,"description":"The asset's catalogue id.","schema":{"type":"string","maxLength":128},"example":"bitcoin"},{"name":"currency","in":"query","required":false,"description":"Currency of the money figures: `usd` (default) or `eur`.","schema":{"type":"string","enum":["usd","eur"],"default":"usd"}}],"security":[{"userKey":["market:read"]}],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSummaryEnvelope"},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/v1/assets/bitcoin/summary (recorded 2026-11-17)","value":{"data":{"asset":{"id":"bitcoin","symbol":"BTC","name":"Bitcoin","category":"crypto","icon_url":"https://catalogue.tribulnation.com/icons/asset/bitcoin.svg","about_en":"Bitcoin is the original decentralized cryptocurrency, secured by proof-of-work and operated without a central issuer or administrator. BTC is widely used as a store of value, reserve asset, and peer-to-peer settlement network, and it remains a widely used benchmark asset in the broader crypto market. Its monetary policy and security model define much of the industry's baseline.","about_ca":"Bitcoin és la criptomoneda descentralitzada original, assegurada per prova de treball (proof-of-work) i operada sense un emissor ni administrador central. BTC s…","about_es":"Bitcoin es la criptomoneda descentralizada original, asegurada por prueba de trabajo (proof-of-work) y operada sin un emisor ni administrador central. BTC se ut…","urls":{"Website":"https://www.bitcoin.org"},"tags":["Popular"],"external":{"coingecko":"bitcoin","coinmarketcap":"1"}},"price":{"asset_id":"bitcoin","price":"63944.79435895965","market_cap":"1285903361845","observed_at":"2026-11-17T20:30:20.804Z","price_24h_ago":"65124.584382579116"}},"meta":{"as_of":"2026-11-17T20:30:20.804Z","currency":"usd"}}}}}}},"304":{"description":"Not modified: `If-None-Match` matched the `ETag` (the dataset’s `as_of`)."},"default":{"$ref":"#/components/responses/Error"}}}},"/v1/assets/{id}/instruments":{"get":{"operationId":"get_assets_detail_instruments","summary":"One asset's trading pages on each venue.","tags":["assets"],"parameters":[{"name":"id","in":"path","required":true,"description":"The asset's catalogue id.","schema":{"type":"string","maxLength":128},"example":"bitcoin"}],"security":[{"userKey":["market:read"]}],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetInstrumentEnvelope"},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/v1/assets/bitcoin/instruments (recorded 2026-11-17)","value":{"data":[{"venue_id":"aevo","kind":"perp","segment":"perp","market":"BTC-PERP","url":"https://app.aevo.xyz/perpetual/btc"},{"venue_id":"apex","kind":"perp","segment":"perp","market":"BTCUSDT","url":"https://omni.apex.exchange/trade/BTCUSDT"},{"venue_id":"aster","kind":"perp","segment":"perp","market":"BTCU","url":"https://www.asterdex.com/en/trade/pro/futures/BTCU"}],"meta":{"as_of":"2026-11-17T21:24:25.967Z"}}}}}}},"304":{"description":"Not modified: `If-None-Match` matched the `ETag` (the dataset’s `as_of`)."},"default":{"$ref":"#/components/responses/Error"}}}},"/v1/search":{"get":{"operationId":"get_search","summary":"Assets, platforms and networks whose name, symbol or id matches the text, best match first.","tags":["search"],"parameters":[{"name":"search","in":"query","required":true,"description":"Free text matched against asset names and symbols; a comma is just a character.","schema":{"type":"string"}}],"security":[{"userKey":["market:read"]}],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResultEnvelope"},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/v1/search?search=bitcoin (recorded 2026-11-17)","value":{"data":[{"kind":"asset","id":"bitcoin","symbol":"BTC","name":"Bitcoin","category":"crypto","icon_url":"https://catalogue.tribulnation.com/icons/asset/bitcoin.svg"},{"kind":"network","id":"bitcoin","name":"Bitcoin","icon_url":"https://catalogue.tribulnation.com/icons/asset/bitcoin.svg"},{"kind":"asset","id":"bitcoin-cash","symbol":"BCH","name":"Bitcoin Cash","category":"crypto","icon_url":"https://catalogue.tribulnation.com/icons/asset/bitcoin-cash.svg"}],"meta":{"as_of":"2026-11-17T20:31:36.030Z"}}}}}}},"304":{"description":"Not modified: `If-None-Match` matched the `ETag` (the dataset’s `as_of`)."},"default":{"$ref":"#/components/responses/Error"}}}},"/v1/venues":{"get":{"operationId":"get_platforms","summary":"The venue catalogue: exchanges, chains and DEXs.","tags":["venues"],"parameters":[{"name":"kinds","in":"query","required":false,"description":"Platform kinds, comma-separated (`cex`, `dex`, `blockchain`); none: every kind.","schema":{"type":"array","items":{"type":"string","enum":["cex","dex","blockchain"]}},"style":"form","explode":false},{"name":"search","in":"query","required":false,"description":"Free text matched against asset names and symbols; a comma is just a character.","schema":{"type":"string"}}],"security":[{"userKey":["market:read"]}],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformListEnvelope"},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/v1/venues (recorded 2026-11-17)","value":{"data":[{"id":"1inch","name":"1inch","kind":"dex","about_en":"1inch is a DEX aggregator that scans liquidity across many decentralized exchanges to route swaps through the most efficient path, giving users better rates than trading on a single DEX directly.","about_ca":"1inch es un agregador DEX que analitza la liquiditat en molts exchanges descentralitzats per encaminar swaps a traves de la ruta mes eficient, oferint als usuaris millors tarifes que operar directament en un unic DEX.","about_es":"1inch es un agregador DEX que analiza la liquidez en muchos exchanges descentralizados para enrutar swaps a traves de la ruta mas eficiente, ofreciendo a los usuarios mejores tasas que operar directamente en un unico DEX.","urls":{"Website":"https://1inch.io/"},"category":null,"namespace":null,"chain_id":null,"snapshot_supported":false,"icon_url":"https://catalogue.tribulnation.com/icons/asset/1inch.svg","native_asset_id":null,"native_asset_name":null,"native_asset_symbol":null,"native_asset_icon_url":null},{"id":"ab","name":"AB","kind":"blockchain","about_en":"AB is a blockchain network for transferring digital assets and connecting on-chain applications. It is the network associated with the AB token and the former Newton project.","about_ca":null,"about_es":null,"urls":{"Website":"https://www.ab.org/"},"category":"evm","namespace":"eip155","chain_id":"36888","snapshot_supported":false,"icon_url":"https://catalogue.tribulnation.com/icons/platform/ab.svg","native_asset_id":"newton-project","native_asset_name":"AB","native_asset_symbol":"AB","native_asset_icon_url":"https://catalogue.tribulnation.com/icons/asset/newton-project.svg"},{"id":"acala","name":"Acala","kind":"blockchain","about_en":"Acala is a Polkadot parachain focused on decentralized finance, including liquid staking and exchange services. Its applications use Polkadot's shared security.","about_ca":null,"about_es":null,"urls":{"Website":"https://acala.network/"},"category":"substrate","namespace":"polkadot","chain_id":"fc41b9bd8ef8fe53d58c7ea67c794c7e","snapshot_supported":false,"icon_url":"https://catalogue.tribulnation.com/icons/asset/acala.svg","native_asset_id":"acala","native_asset_name":"Acala","native_asset_symbol":"ACA","native_asset_icon_url":"https://catalogue.tribulnation.com/icons/asset/acala.svg"}],"meta":{"as_of":"2026-11-17T12:43:28.933Z"}}}}}}},"304":{"description":"Not modified: `If-None-Match` matched the `ETag` (the dataset’s `as_of`)."},"default":{"$ref":"#/components/responses/Error"}}}},"/v1/venues/{id}":{"get":{"operationId":"get_platforms_detail","summary":"One venue (exchange, chain or DEX) by id: its name, kind, description, links and, for a chain, its native asset.","tags":["venues"],"parameters":[{"name":"id","in":"path","required":true,"description":"The venue's id.","schema":{"type":"string","maxLength":128},"example":"binance"}],"security":[{"userKey":["market:read"]}],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformEnvelope"},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/v1/venues/binance (recorded 2026-11-17)","value":{"data":{"id":"binance","name":"Binance","kind":"cex","about_en":"Binance is the world's largest cryptocurrency exchange by trading volume, founded in 2017 by Changpeng Zhao, with over 300 million registered users globally. It…","about_ca":"Binance és l'exchange de criptomonedes més gran del món per volum de trading (trading), fundat el 2017 per Changpeng Zhao, amb més de 300 milions d'usuaris regi…","about_es":"Binance es el exchange de criptomonedas más grande del mundo por volumen de trading (trading), fundado en 2017 por Changpeng Zhao, con más de 300 millones de us…","urls":{"Website":"https://www.binance.com/","Referral":"https://www.binance.com/register?ref=1168644907"},"category":null,"namespace":null,"chain_id":null,"snapshot_supported":false,"icon_url":"https://catalogue.tribulnation.com/icons/platform/binance.svg","native_asset_id":null,"native_asset_name":null,"native_asset_symbol":null,"native_asset_icon_url":null},"meta":{"as_of":"2026-11-17T12:43:28.933Z"}}}}}}},"304":{"description":"Not modified: `If-None-Match` matched the `ETag` (the dataset’s `as_of`)."},"default":{"$ref":"#/components/responses/Error"}}}},"/v1/networks":{"get":{"operationId":"get_networks","summary":"The blockchain slice of the venue catalogue.","tags":["networks"],"parameters":[{"name":"search","in":"query","required":false,"description":"Free text matched against asset names and symbols; a comma is just a character.","schema":{"type":"string"}}],"security":[{"userKey":["market:read"]}],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformListEnvelope"},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/v1/networks (recorded 2026-11-17)","value":{"data":[{"id":"ab","name":"AB","kind":"blockchain","about_en":"AB is a blockchain network for transferring digital assets and connecting on-chain applications. It is the network associated with the AB token and the former Newton project.","about_ca":null,"about_es":null,"urls":{"Website":"https://www.ab.org/"},"category":"evm","namespace":"eip155","chain_id":"36888","snapshot_supported":false,"icon_url":"https://catalogue.tribulnation.com/icons/platform/ab.svg","native_asset_id":"newton-project","native_asset_name":"AB","native_asset_symbol":"AB","native_asset_icon_url":"https://catalogue.tribulnation.com/icons/asset/newton-project.svg"},{"id":"acala","name":"Acala","kind":"blockchain","about_en":"Acala is a Polkadot parachain focused on decentralized finance, including liquid staking and exchange services. Its applications use Polkadot's shared security.","about_ca":null,"about_es":null,"urls":{"Website":"https://acala.network/"},"category":"substrate","namespace":"polkadot","chain_id":"fc41b9bd8ef8fe53d58c7ea67c794c7e","snapshot_supported":false,"icon_url":"https://catalogue.tribulnation.com/icons/asset/acala.svg","native_asset_id":"acala","native_asset_name":"Acala","native_asset_symbol":"ACA","native_asset_icon_url":"https://catalogue.tribulnation.com/icons/asset/acala.svg"},{"id":"adi","name":"ADI Network","kind":"blockchain","about_en":"ADI Chain is a blockchain infrastructure project focused on digital payments and real-world asset applications. The ADI Foundation supports the network and its institutional adoption.","about_ca":null,"about_es":null,"urls":{"Website":"https://www.adi.foundation/"},"category":"evm","namespace":"eip155","chain_id":"36900","snapshot_supported":false,"icon_url":"https://catalogue.tribulnation.com/icons/asset/adi-token.svg","native_asset_id":"adi-token","native_asset_name":"Adi Token","native_asset_symbol":"ADI","native_asset_icon_url":"https://catalogue.tribulnation.com/icons/asset/adi-token.svg"}],"meta":{"as_of":"2026-11-17T12:43:28.933Z"}}}}}}},"304":{"description":"Not modified: `If-None-Match` matched the `ETag` (the dataset’s `as_of`)."},"default":{"$ref":"#/components/responses/Error"}}}},"/v1/networks/{id}":{"get":{"operationId":"get_networks_detail","summary":"One network by id.","tags":["networks"],"parameters":[{"name":"id","in":"path","required":true,"description":"The network's id.","schema":{"type":"string","maxLength":128},"example":"ethereum"}],"security":[{"userKey":["market:read"]}],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformEnvelope"},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/v1/networks/ethereum (recorded 2026-11-17)","value":{"data":{"id":"ethereum","name":"Ethereum","kind":"blockchain","about_en":"Ethereum is the leading programmable blockchain, launched in 2015, and the foundation for most of the decentralized finance, NFT, and Web3 ecosystem. It transit…","about_ca":"Ethereum és la principal blockchain programable, llançada el 2015, i el fonament de la major part de l'ecosistema de finances descentralitzades, NFTs i Web3. El…","about_es":"Ethereum es la principal blockchain programable, lanzada en 2015, y el fundamento de la mayor parte del ecosistema de finanzas descentralizadas, NFTs y Web3. En…","urls":{"Website":"https://www.ethereum.org/"},"category":"evm","namespace":"eip155","chain_id":"1","snapshot_supported":false,"icon_url":"https://catalogue.tribulnation.com/icons/asset/ethereum.svg","native_asset_id":"ethereum","native_asset_name":"Ethereum","native_asset_symbol":"ETH","native_asset_icon_url":"https://catalogue.tribulnation.com/icons/asset/ethereum.svg"},"meta":{"as_of":"2026-11-17T12:43:28.933Z"}}}}}}},"304":{"description":"Not modified: `If-None-Match` matched the `ETag` (the dataset’s `as_of`)."},"default":{"$ref":"#/components/responses/Error"}}}},"/v1/candles":{"get":{"operationId":"get_candles","summary":"One asset’s OHLC candles aggregated across venues, by hour, 4 hours or day.","tags":["candles"],"parameters":[{"name":"asset","in":"query","required":true,"description":"The catalogue asset id.","schema":{"type":"string"}},{"name":"interval","in":"query","required":false,"description":"Candle width; each candle is labelled by its start.","schema":{"type":"string","enum":["1h","4h","1d"],"default":"1d"}},{"name":"from","in":"query","required":true,"description":"Start of the window, inclusive: a date (`YYYY-MM-DD`, its 00:00Z) or an ISO-8601 instant with a zone (`Z` or `±HH:MM`).","schema":{"type":"string","format":"date-time"}},{"name":"to","in":"query","required":false,"description":"End of the window, exclusive: a date or an ISO-8601 instant with a zone. Defaults to now.","schema":{"type":"string","format":"date-time"}},{"name":"limit","in":"query","required":false,"description":"Rows per page, 1 to 10000; `meta.page.next_cursor` reads on.","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1000}},{"name":"currency","in":"query","required":false,"description":"Currency of the money figures: `usd` (default) or `eur`.","schema":{"type":"string","enum":["usd","eur"],"default":"usd"}},{"name":"cursor","in":"query","required":false,"description":"Opaque: the previous page's `meta.page.next_cursor`, bound to the same query.","schema":{"type":"string"}}],"security":[{"userKey":["market:read"]}],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CandlePointEnvelope"},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/v1/candles?asset=bitcoin&interval=1d&from=2026-11-10&to=2026-11-17&limit=3 (recorded 2026-11-17)","value":{"data":[{"asset_id":"bitcoin","time":"2026-11-10T00:00:00.000Z","interval":"1d","source":"venues","open":"75261.452885242054541615","high":"76569.420783645655877342","low":"71845.386533665835411471","close":"73698.399441956625938442","turnover":"1902160123.433038202633763341","built_at":"2026-11-16T19:30:10.791Z","period":{"hours":null,"closed":true}},{"asset_id":"bitcoin","time":"2026-11-11T00:00:00.000Z","interval":"1d","source":"venues","open":"73703.706161363856079544","high":"77756.784610099622122982","low":"71651.376146788990825688","close":"73927.822600206621882017","turnover":"1292927024.794119131088183627","built_at":"2026-11-16T19:31:56.357Z","period":{"hours":null,"closed":true}},{"asset_id":"bitcoin","time":"2026-11-12T00:00:00.000Z","interval":"1d","source":"venues","open":"73926.765313183342211744","high":"78609.27152317880794702","low":"70488.466757123473541384","close":"71373.393748039132086365","turnover":"1546061623.047567040416908654","built_at":"2026-11-16T19:35:15.514Z","period":{"hours":null,"closed":true}}],"meta":{"as_of":"2026-11-12T00:00:00.000Z","currency":"usd","interval":"1d","range":{"from":"2026-11-10T00:00:00.000Z","to":"2026-11-17T00:00:00.000Z"},"page":{"limit":3,"has_more":true,"next_cursor":"eyJhc3NldF9pZCI6ImJpdGNvaW4iLCJ0aW1lIjoiMjAyNi0xMS0xMlQwMDowMDowMC4wMDBaIiwiaW50ZXJ2YWwiOiIxZCJ9"}}}}}}}},"304":{"description":"Not modified: `If-None-Match` matched the `ETag` (the dataset’s `as_of`)."},"default":{"$ref":"#/components/responses/Error"}}}},"/v1/prices/latest":{"get":{"operationId":"get_prices_latest","summary":"The latest reference price of each asset asked for.","tags":["prices"],"parameters":[{"name":"assets","in":"query","required":true,"description":"Catalogue asset ids. Comma-separated, at most 1000.","schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":false},{"name":"currency","in":"query","required":false,"description":"Currency of the money figures: `usd` (default) or `eur`.","schema":{"type":"string","enum":["usd","eur"],"default":"usd"}}],"security":[{"userKey":["market:read"]}],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LatestPriceEnvelope"},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/v1/prices/latest?assets=bitcoin,ethereum (recorded 2026-11-17)","value":{"data":[{"asset_id":"bitcoin","price":"63944.79435895965","market_cap":"1285903361845","observed_at":"2026-11-17T20:30:20.804Z","price_24h_ago":"65124.584382579116"},{"asset_id":"ethereum","price":"1798.2402973472815","market_cap":"219745474650","observed_at":"2026-11-17T20:30:20.804Z","price_24h_ago":"1820.9377276671955"}],"meta":{"as_of":"2026-11-17T20:30:20.804Z","currency":"usd"}}}}}}},"304":{"description":"Not modified: `If-None-Match` matched the `ETag` (the dataset’s `as_of`)."},"default":{"$ref":"#/components/responses/Error"}}}},"/v1/prices/historical":{"get":{"operationId":"get_prices_historical","summary":"Daily reference prices of each asset asked for over a window, each day labelled by its start.","tags":["prices"],"parameters":[{"name":"assets","in":"query","required":true,"description":"Catalogue asset ids. Comma-separated, at most 1000.","schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":false},{"name":"from","in":"query","required":true,"description":"Start of the window, inclusive: a date (`YYYY-MM-DD`, its 00:00Z) or an ISO-8601 instant with a zone (`Z` or `±HH:MM`).","schema":{"type":"string","format":"date-time"}},{"name":"to","in":"query","required":false,"description":"End of the window, exclusive: a date or an ISO-8601 instant with a zone. Defaults to now.","schema":{"type":"string","format":"date-time"}},{"name":"limit","in":"query","required":false,"description":"Rows per page, 1 to 10000; `meta.page.next_cursor` reads on.","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1000}},{"name":"currency","in":"query","required":false,"description":"Currency of the money figures: `usd` (default) or `eur`.","schema":{"type":"string","enum":["usd","eur"],"default":"usd"}},{"name":"cursor","in":"query","required":false,"description":"Opaque: the previous page's `meta.page.next_cursor`, bound to the same query.","schema":{"type":"string"}}],"security":[{"userKey":["market:read"]}],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PricePointEnvelope"},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/v1/prices/historical?assets=bitcoin&from=2026-11-14&to=2026-11-17&limit=3 (recorded 2026-11-17)","value":{"data":[{"asset_id":"bitcoin","time":"2026-11-14T00:00:00.000Z","price":"64128.051104094855","market_cap":"1289719957066.902729137925","source":"coinmarketcap_public","fetched_at":"2026-11-16T02:00:23.668Z"}],"meta":{"as_of":"2026-11-14T00:00:00.000Z","currency":"usd","range":{"from":"2026-11-14T00:00:00.000Z","to":"2026-11-17T00:00:00.000Z"},"page":{"limit":3,"has_more":false,"next_cursor":null}}}}}}}},"304":{"description":"Not modified: `If-None-Match` matched the `ETag` (the dataset’s `as_of`)."},"default":{"$ref":"#/components/responses/Error"}}}},"/v1/market/tickers/latest":{"get":{"operationId":"get_market_tickers_latest","summary":"Latest spot and perp tickers per venue market.","tags":["market"],"parameters":[{"name":"kinds","in":"query","required":false,"description":"Only these instrument kinds: `spot`, `perp`, comma-separated.","schema":{"type":"string","enum":["spot","perp","spot,perp"]}},{"name":"assets","in":"query","required":false,"description":"Catalogue asset ids. Comma-separated, at most 100.","schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":false},{"name":"venues","in":"query","required":false,"description":"Venue ids. Comma-separated, at most 100.","schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":false},{"name":"page","in":"query","required":false,"description":"1-based page number, instead of `cursor`; `meta.page.number` and `meta.page.total` say where you are.","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1}},{"name":"limit","in":"query","required":false,"description":"Rows per page, 1 to 1000.","schema":{"type":"integer","minimum":1,"maximum":1000,"default":100}},{"name":"cursor","in":"query","required":false,"description":"Opaque: the previous page's `meta.page.next_cursor`, bound to the same query.","schema":{"type":"string"}}],"security":[{"userKey":["market:read"]}],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LatestRowEnvelope"},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/v1/market/tickers/latest?assets=bitcoin&limit=3 (recorded 2026-11-17)","value":{"data":[{"asset_id":"bitcoin","venue_id":"aevo","segment":"perp","kind":"perp","market":"BTC-PERP","quote_asset_id":"usd-coin","settlement_asset_id":"usd-coin","observed_at":"2026-11-17T21:23:08.745Z","last":null,"bid":"64089.5","ask":"64094.6","bid_qty":"0.022","ask_qty":"0.016","base_volume_24h":"39.4","delayed":{"observed_at":"2026-11-17T21:02:57.820Z","last":null,"bid":"63950.2","ask":"63960.8","bid_qty":"0.016","ask_qty":"0.022","base_volume_24h":"38.967"}},{"asset_id":"bitcoin","venue_id":"apex","segment":"perp","kind":"perp","market":"BTCUSDT","quote_asset_id":"tether","settlement_asset_id":"tether","observed_at":"2026-11-17T21:14:05.474Z","last":"64084.7","bid":null,"ask":null,"bid_qty":null,"ask_qty":null,"base_volume_24h":"5685.297","delayed":{"observed_at":"2026-11-17T21:03:54.749Z","last":"63983.9","bid":null,"ask":null,"bid_qty":null,"ask_qty":null,"base_volume_24h":"5613.642"}},{"asset_id":"bitcoin","venue_id":"aster","segment":"perp","kind":"perp","market":"BTCU","quote_asset_id":"united-stables","settlement_asset_id":"united-stables","observed_at":"2026-11-17T21:21:06.039Z","last":"64136.1","bid":"64136","ask":"64136.1","bid_qty":"1.662","ask_qty":"0.001","base_volume_24h":"27.732","delayed":{"observed_at":"2026-11-17T21:05:12.615Z","last":"64038.4","bid":"64065.6","ask":"64066.5","bid_qty":"0.169","ask_qty":"0.144","base_volume_24h":"26.884"}}],"meta":{"as_of":"2026-11-17T21:23:08.745Z","coverage":{"observed":50413,"returned":3,"untranslated":15593,"venues":["aevo","apex","aster"]},"page":{"limit":3,"has_more":true,"next_cursor":"eyJwYWdlIjoiMiJ9","number":1,"total":264}}}}}}}},"304":{"description":"Not modified: `If-None-Match` matched the `ETag` (the dataset’s `as_of`)."},"default":{"$ref":"#/components/responses/Error"}}}},"/v1/market/perps/stats/latest":{"get":{"operationId":"get_market_perps_stats_latest","summary":"Latest perp statistics (open interest, volume) per venue market.","tags":["market"],"parameters":[{"name":"assets","in":"query","required":false,"description":"Catalogue asset ids. Comma-separated, at most 100.","schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":false},{"name":"venues","in":"query","required":false,"description":"Venue ids. Comma-separated, at most 100.","schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":false},{"name":"page","in":"query","required":false,"description":"1-based page number, instead of `cursor`; `meta.page.number` and `meta.page.total` say where you are.","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1}},{"name":"limit","in":"query","required":false,"description":"Rows per page, 1 to 1000.","schema":{"type":"integer","minimum":1,"maximum":1000,"default":100}},{"name":"cursor","in":"query","required":false,"description":"Opaque: the previous page's `meta.page.next_cursor`, bound to the same query.","schema":{"type":"string"}}],"security":[{"userKey":["market:read"]}],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LatestRowEnvelope"},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/v1/market/perps/stats/latest?assets=bitcoin&limit=3 (recorded 2026-11-17)","value":{"data":[{"asset_id":"bitcoin","venue_id":"aevo","market":"BTC-PERP","quote_asset_id":"usd-coin","settlement_asset_id":"usd-coin","observed_at":"2026-11-17T21:22:05.351Z","index_price":"64128.611923","mark_price":"64099.109244","funding_rate":0.000004,"funding_interval_s":3600,"open_interest":"28.722998","delayed":{"observed_at":"2026-11-17T21:02:04.215Z","index_price":"63975.794786","mark_price":"63954.364292","funding_rate":0.000004,"funding_interval_s":3600,"open_interest":"28.682998","next_funding_at":"2026-11-17T22:00:00.000Z"},"next_funding_at":"2026-11-17T22:00:00.000Z"},{"asset_id":"bitcoin","venue_id":"apex","market":"BTCUSDT","quote_asset_id":"tether","settlement_asset_id":"tether","observed_at":"2026-11-17T21:14:05.462Z","index_price":"64110.24","mark_price":"64086","funding_rate":0.0000125,"funding_interval_s":3600,"open_interest":"1604.786","delayed":{"observed_at":"2026-11-17T21:03:54.760Z","index_price":"64013.66","mark_price":"63993.88","funding_rate":0.0000125,"funding_interval_s":3600,"open_interest":"1606.498","next_funding_at":"2026-11-17T22:00:00.000Z"},"next_funding_at":"2026-11-17T22:00:00.000Z"},{"asset_id":"bitcoin","venue_id":"aster","market":"BTCU","quote_asset_id":"united-stables","settlement_asset_id":"united-stables","observed_at":"2026-11-17T21:20:58.901Z","index_price":"64248.67849373","mark_price":"64204.68082263","funding_rate":0.00001811,"funding_interval_s":28800,"open_interest":null,"delayed":{"observed_at":"2026-11-17T21:05:10.803Z","index_price":"64080.25659665","mark_price":"64053.90917291","funding_rate":0.00001334,"funding_interval_s":28800,"open_interest":null,"next_funding_at":"2026-11-18T00:00:00.000Z"},"next_funding_at":"2026-11-18T00:00:00.000Z"}],"meta":{"as_of":"2026-11-17T21:22:05.351Z","coverage":{"observed":16788,"returned":3,"untranslated":0,"venues":["aevo","apex","aster"]},"page":{"limit":3,"has_more":true,"next_cursor":"eyJwYWdlIjoiMiJ9","number":1,"total":78}}}}}}}},"304":{"description":"Not modified: `If-None-Match` matched the `ETag` (the dataset’s `as_of`)."},"default":{"$ref":"#/components/responses/Error"}}}},"/v1/market/perps/funding/latest":{"get":{"operationId":"get_market_perps_funding_latest","summary":"Latest funding rate per perp market.","tags":["market"],"parameters":[{"name":"assets","in":"query","required":false,"description":"Catalogue asset ids. Comma-separated, at most 100.","schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":false},{"name":"venues","in":"query","required":false,"description":"Venue ids. Comma-separated, at most 100.","schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":false},{"name":"page","in":"query","required":false,"description":"1-based page number, instead of `cursor`; `meta.page.number` and `meta.page.total` say where you are.","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1}},{"name":"limit","in":"query","required":false,"description":"Rows per page, 1 to 1000.","schema":{"type":"integer","minimum":1,"maximum":1000,"default":100}},{"name":"cursor","in":"query","required":false,"description":"Opaque: the previous page's `meta.page.next_cursor`, bound to the same query.","schema":{"type":"string"}}],"security":[{"userKey":["market:read"]}],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LatestRowEnvelope"},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/v1/market/perps/funding/latest?assets=bitcoin&limit=3 (recorded 2026-11-17)","value":{"data":[{"asset_id":"bitcoin","venue_id":"aevo","market":"BTC-PERP","quote_asset_id":"usd-coin","settlement_asset_id":"usd-coin","time":"2026-11-17T21:00:00.000Z","rate":0.000004,"premium":null},{"asset_id":"bitcoin","venue_id":"apex","market":"BTCUSDT","quote_asset_id":"tether","settlement_asset_id":"tether","time":"2026-11-17T21:00:00.000Z","rate":0.0000125,"premium":null},{"asset_id":"bitcoin","venue_id":"aster","market":"BTCU","quote_asset_id":"united-stables","settlement_asset_id":"united-stables","time":"2026-11-17T16:00:00.000Z","rate":0.00003275,"premium":null}],"meta":{"as_of":"2026-11-17T21:00:00.000Z","coverage":{"observed":5230,"returned":3,"untranslated":0,"venues":["aevo","apex","aster"]},"page":{"limit":3,"has_more":true,"next_cursor":"eyJwYWdlIjoiMiJ9","number":1,"total":73}}}}}}}},"304":{"description":"Not modified: `If-None-Match` matched the `ETag` (the dataset’s `as_of`)."},"default":{"$ref":"#/components/responses/Error"}}}},"/v1/market/perps/funding/historical":{"get":{"operationId":"get_market_perps_funding_historical","summary":"Funding rate history per perp market, by cursor.","tags":["market"],"parameters":[{"name":"assets","in":"query","required":false,"description":"Catalogue asset ids. Comma-separated, at most 100.","schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":false},{"name":"venues","in":"query","required":false,"description":"Venue ids. Comma-separated, at most 100.","schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":false},{"name":"markets","in":"query","required":false,"description":"Venues' own market symbols (`USDJPYUSDT`), with `venues`: only these markets. Comma-separated, at most 100.","schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":false},{"name":"from","in":"query","required":true,"description":"Start of the window, inclusive: a date (`YYYY-MM-DD`, its 00:00Z) or an ISO-8601 instant with a zone (`Z` or `±HH:MM`).","schema":{"type":"string","format":"date-time"}},{"name":"to","in":"query","required":false,"description":"End of the window, exclusive: a date or an ISO-8601 instant with a zone. Defaults to now.","schema":{"type":"string","format":"date-time"}},{"name":"interval","in":"query","required":false,"description":"`1h`: each settlement; `1d`: summed per UTC day, labelled by its start.","schema":{"type":"string","enum":["1h","1d"],"default":"1h"}},{"name":"limit","in":"query","required":false,"description":"Rows per page, 1 to 10000; `meta.page.next_cursor` reads on.","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1000}},{"name":"cursor","in":"query","required":false,"description":"Opaque: the previous page's `meta.page.next_cursor`, bound to the same query.","schema":{"type":"string"}}],"security":[{"userKey":["market:read"]}],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FundingPointEnvelope"},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/v1/market/perps/funding/historical?assets=bitcoin&from=2026-11-16T21:00:00Z&to=2026-11-17T21:00:00Z&limit=3 (recorded 2026-11-17)","value":{"data":[{"asset_id":"bitcoin","venue_id":"aevo","market":"BTC-PERP","time":"2026-11-16T21:00:00.000Z","rate":0.000007,"premium":null},{"asset_id":"bitcoin","venue_id":"aevo","market":"BTC-PERP","time":"2026-11-16T22:00:00.000Z","rate":0.000005,"premium":null},{"asset_id":"bitcoin","venue_id":"aevo","market":"BTC-PERP","time":"2026-11-16T23:00:00.000Z","rate":0.000002,"premium":null}],"meta":{"as_of":"2026-11-16T23:00:00.000Z","coverage":{"observed":5230,"returned":3,"untranslated":0,"venues":["aevo","apex","aster"]},"interval":"1h","range":{"from":"2026-11-16T21:00:00.000Z","to":"2026-11-17T21:00:00.000Z"},"page":{"limit":3,"has_more":true,"next_cursor":"eyJhc3NldF9pZCI6ImJpdGNvaW4iLCJ2ZW51ZV9pZCI6ImFldm8iLCJtYXJrZXQiOiJCVEMtUEVSUCIsInRpbWUiOiIyMDI2LTExLTE2VDIzOjAwOjAwKzAwOjAwIiwiaW50ZXJ2YWwiOiIxaCJ9"}}}}}}}},"304":{"description":"Not modified: `If-None-Match` matched the `ETag` (the dataset’s `as_of`)."},"default":{"$ref":"#/components/responses/Error"}}}},"/v1/earn/latest":{"get":{"operationId":"get_earn_latest","summary":"Earn products (staking, savings, lending) across venues.","tags":["earn"],"parameters":[{"name":"assets","in":"query","required":false,"description":"Catalogue asset ids. Comma-separated, at most 1000.","schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":false},{"name":"venues","in":"query","required":false,"description":"Venue ids. Comma-separated, at most 1000.","schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":false},{"name":"types","in":"query","required":false,"description":"Product type tags, any of them (an open vocabulary). Comma-separated, at most 1000.","schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":false},{"name":"region","in":"query","required":false,"description":"Leave out the products not offered in this region (EU/EEA or US).","schema":{"type":"string","enum":["eu","us"]}},{"name":"page","in":"query","required":false,"description":"1-based page number, instead of `cursor`; `meta.page.number` and `meta.page.total` say where you are.","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1}},{"name":"limit","in":"query","required":false,"description":"Rows per page, 1 to 1000.","schema":{"type":"integer","minimum":1,"maximum":1000,"default":100}},{"name":"cursor","in":"query","required":false,"description":"Opaque: the previous page's `meta.page.next_cursor`, bound to the same query.","schema":{"type":"string"}},{"name":"currency","in":"query","required":false,"description":"Currency of the money figures: `usd` (default) or `eur`.","schema":{"type":"string","enum":["usd","eur"],"default":"usd"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","enum":["apr","earnings"],"default":"apr"}},{"name":"stake","in":"query","required":false,"description":"Stake in USD the earnings estimate is for.","schema":{"type":"number","minimum":1,"maximum":100000000,"default":1000}}],"security":[{"userKey":["market:read"]}],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EarnInstrumentEnvelope"},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/v1/earn/latest?assets=ethereum&limit=3 (recorded 2026-11-17)","value":{"data":[{"venue_id":"mexc","instrument":"mexc:ETH:86400.0:fixed,new-users:0.03:0.1","asset_id":"ethereum","asset_symbol":"ETH","asset_name":"Ethereum","asset_icon_url":"https://catalogue.tribulnation.com/icons/asset/ethereum.svg","venue_name":"MEXC","venue_icon_url":"https://catalogue.tribulnation.com/icons/platform/mexc.svg","url":"https://www.mexc.com/earn","apr":2,"tags":["fixed","new-users"],"observed_at":"2026-11-17T20:51:00.828Z","min_qty":"0.03","max_qty":"0.1","lock_s":86400,"earnings_1k_30d":"0.985337149231387","earnings_30d":"0.985337149231387","price":"1798.2402973472815","unavailable_in":["us"]},{"venue_id":"bitunix","instrument":"bitunix:ETH-fix-new-5-20251013-0002","asset_id":"ethereum","asset_symbol":"ETH","asset_name":"Ethereum","asset_icon_url":"https://catalogue.tribulnation.com/icons/asset/ethereum.svg","venue_name":"Bitunix","venue_icon_url":"https://catalogue.tribulnation.com/icons/platform/bitunix.svg","url":"https://www.bitunix.com/earn/financial-management","apr":1,"tags":["fixed","new-users"],"observed_at":"2026-11-17T20:51:00.707Z","min_qty":"0.002","max_qty":"0.05","lock_s":432000,"earnings_1k_30d":"1.23167143653923","earnings_30d":"1.23167143653923","price":"1798.2402973472815","unavailable_in":["us"]},{"venue_id":"mexc","instrument":"1970344866554990592:tier=0.0-0.05","asset_id":"ethereum","asset_symbol":"ETH","asset_name":"Ethereum","asset_icon_url":"https://catalogue.tribulnation.com/icons/asset/ethereum.svg","venue_name":"MEXC","venue_icon_url":"https://catalogue.tribulnation.com/icons/platform/mexc.svg","url":"https://www.mexc.com/earn","apr":0.07,"tags":["flexible"],"observed_at":"2026-11-17T20:51:00.828Z","min_qty":"0.00042","max_qty":"0.05","lock_s":null,"earnings_1k_30d":"0.517302003346478","earnings_30d":"0.517302003346478","price":"1798.2402973472815","unavailable_in":["us"]}],"meta":{"as_of":"2026-11-17T20:51:00.828Z","collected_at":"2026-11-17T21:21:05.176Z","page":{"limit":3,"has_more":true,"next_cursor":"eyJwYWdlIjoiMiJ9","number":1,"total":63},"currency":"usd","stake":"1000"}}}}}}},"304":{"description":"Not modified: `If-None-Match` matched the `ETag` (the dataset’s `as_of`)."},"default":{"$ref":"#/components/responses/Error"}}}},"/v1/earn/facets":{"get":{"operationId":"get_earn_facets","summary":"The venues, assets and tags earn products can be filtered by.","tags":["earn"],"parameters":[],"security":[{"userKey":["market:read"]}],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/EarnFacets"},"meta":{"type":"object","properties":{"as_of":{"type":["string","null"]},"collected_at":{"type":["string","null"]}},"required":["as_of","collected_at"]}},"required":["data","meta"]},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/v1/earn/facets (recorded 2026-11-17)","value":{"data":{"venues":[{"id":"backpack","name":"Backpack Exchange","icon_url":"https://catalogue.tribulnation.com/icons/asset/backpack.svg"},{"id":"binance","name":"Binance","icon_url":"https://catalogue.tribulnation.com/icons/platform/binance.svg"},{"id":"bit2me","name":"Bit2Me","icon_url":"https://catalogue.tribulnation.com/icons/asset/bit2me.svg"}],"assets":[{"id":"0x","symbol":"ZRX","name":"0x","icon_url":"https://catalogue.tribulnation.com/icons/asset/0x.svg"},{"id":"1inch","symbol":"1INCH","name":"1inch","icon_url":"https://catalogue.tribulnation.com/icons/asset/1inch.svg"},{"id":"375ai","symbol":"EAT","name":"375ai","icon_url":"https://catalogue.tribulnation.com/icons/asset/375ai.svg"}],"tags":["fixed","flexible","new-users","staking"]},"meta":{"as_of":"2026-11-17T21:21:05.176Z","collected_at":"2026-11-17T21:21:05.176Z"}}}}}}},"304":{"description":"Not modified: `If-None-Match` matched the `ETag` (the dataset’s `as_of`)."},"default":{"$ref":"#/components/responses/Error"}}}},"/v1/earn/historical":{"get":{"operationId":"get_earn_historical","summary":"Each earn product of the assets asked for, day by day: its rate and tier ladder.","tags":["earn"],"parameters":[{"name":"assets","in":"query","required":true,"description":"Catalogue asset ids. Comma-separated, at most 1000.","schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":false},{"name":"from","in":"query","required":true,"description":"Start of the window, inclusive: a date (`YYYY-MM-DD`, its 00:00Z) or an ISO-8601 instant with a zone (`Z` or `±HH:MM`).","schema":{"type":"string","format":"date-time"}},{"name":"to","in":"query","required":false,"description":"End of the window, exclusive: a date or an ISO-8601 instant with a zone. Defaults to now.","schema":{"type":"string","format":"date-time"}},{"name":"venues","in":"query","required":false,"description":"Only these venues. Comma-separated, at most 1000.","schema":{"type":"array","items":{"type":"string"}},"style":"form","explode":false},{"name":"limit","in":"query","required":false,"description":"Rows per page, 1 to 10000; `meta.page.next_cursor` reads on.","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1000}},{"name":"cursor","in":"query","required":false,"description":"Opaque: the previous page's `meta.page.next_cursor`, bound to the same query.","schema":{"type":"string"}}],"security":[{"userKey":["market:read"]}],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EarnHistoryPointEnvelope"}}}},"304":{"description":"Not modified: `If-None-Match` matched the `ETag` (the dataset’s `as_of`)."},"default":{"$ref":"#/components/responses/Error"}}}},"/v2/series":{"get":{"operationId":"v2_series","summary":"The series available to the caller.","tags":["v2 series"],"description":"Lists only what the caller’s grants admit. Takes no parameters: any parameter is `400 bad_request` naming it, as on every `/v2` route.","parameters":[],"security":[{"userKey":["market:read"]}],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/V2SeriesEntry"}},"meta":{"$ref":"#/components/schemas/V2Meta"}},"required":["data","meta"]},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/v2/series (recorded 2026-11-17)","value":{"data":[{"id":"asset.price.candles.1h","status":"served","public":"not_assessed","contract":"/v2/series/asset.price.candles.1h"},{"id":"asset.price.candles.4h","status":"served","public":"not_assessed","contract":"/v2/series/asset.price.candles.4h"},{"id":"asset.price.candles.1d","status":"served","public":"not_assessed","contract":"/v2/series/asset.price.candles.1d"}],"meta":{"as_of":null,"publication":null,"catalogue":null}}}}}}},"304":{"description":"Not modified: `If-None-Match` matched the publication’s `ETag`."},"default":{"$ref":"#/components/responses/V2Error"}}}},"/v2/series/corrections":{"get":{"operationId":"v2_series_corrections","summary":"The series corrections feed (not published yet: always 503).","tags":["v2 series"],"description":"Reserved and matched before `/v2/series/{id}`. Until the corrections log ships the feed is unavailable, never empty: an empty feed would claim nothing was ever corrected.","parameters":[],"security":[{"userKey":["market:read"]}],"responses":{"503":{"description":"`unavailable`, reason `not_served`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorBody"}}}}}}},"/v2/series/asset.price.candles.1h":{"get":{"tags":["series asset.price.candles.1h"],"security":[{"userKey":["market:read"]}],"operationId":"v2_asset.price.candles.1h_contract","summary":"The `asset.price.candles.1h` contract: what each field means, coverage, gaps, precision, retention.","description":"Only closed intervals are served: an interval appears once it has ended and been built. Retention is the current UTC date and the 89 before it.","parameters":[],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/V2SeriesContract"},"meta":{"$ref":"#/components/schemas/V2Meta"}},"required":["data","meta"]},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/v2/series/asset.price.candles.1h (recorded 2026-11-17)","value":{"data":{"id":"asset.price.candles.1h","status":"served","specification":"data/index.html#series-asset.price.candles.1h","contract":{"id":{"text":"`asset.price.candles.1h`, `asset.price.candles.4h` and\n`asset.price.candles.1d`: three series with one method at three intervals.","value":"asset.price.candles.1h"},"keyed_by":{"text":"catalogue asset.","subject":"asset","key":["asset"],"instance":[{"name":"asset","type":"string","unit":null,"nullable":false,"description":"Catalogue asset ID."}]},"shape":{"text":"candle: `open`, `high`, `low`, `close` in USD, and\nincluded turnover in USD. The 4h and daily candles also count the hours\nthat contributed.","type":"candle","fields":[{"name":"asset","type":"string","unit":null,"nullable":false,"description":"Catalogue asset ID."},{"name":"time","type":"timestamp","unit":"UTC","nullable":false,"description":"Start of the interval."},{"name":"open","type":"decimal","unit":"USD","nullable":false,"description":"Turnover-weighted mean open across included markets."}]},"semantics":{"text":"a volume-weighted USD index of the asset's spot market\ncandles across venues ([ADR 0001](https://github.com/tribulnation/terminal/blob/29a6887/docs/adr/0001-ven…","time":"interval_start"},"kind":{"text":"derived.","value":"derived"},"resolution_and_lag":{"text":"1h, 4h and 1d. An hour is served after the next\nhourly collection and build, today up to about an hour later…","interval":"1h"},"coverage":{"text":"from the earliest spot candle of any mapped market\n(archives reach Binance 2017-08 and Kraken 2013-01).","start_origin":"derived"},"gaps":{"text":"an hour with no eligible market is absent. The method carries a\nquote asset's USD close for up to 72 hours when its own is missing. A day\nneeds at least two venues and USD 100,000 of included turnover; days below\nthat are absent."},"precision":{"text":"float.","value":"float"},"retention":{"text":"1h and 4h for the current UTC date and the 89 before it;\n1d forever.","days":90},"corrections":{"text":"a remap or newly mapped market, late or recollected\ncandles, and fixes to the method's implementation."},"built_from":{"text":"candles (spot), and\nreference prices as a quote\nfallback.","datasets":["candles","reference_prices"]},"public":{"text":"not yet assessed.","value":"not_assessed"}},"serving":{"filters":[{"name":"assets","field":"asset","list":true}],"order":{"data":["time","asset"],"latest":["asset"],"instances":["asset"]},"routes":{"contract":"/v2/series/asset.price.candles.1h","instances":"/v2/series/asset.price.candles.1h/instances","data":"/v2/series/asset.price.candles.1h/data","latest":"/v2/series/asset.price.candles.1h/latest"},"notes":["Only closed intervals are served: an interval appears once it has ended and been built.","Retention is the current UTC date and the 89 before it."]}},"meta":{"as_of":null,"publication":null,"catalogue":null}}}}}}},"304":{"description":"Not modified: `If-None-Match` matched the publication’s `ETag`."},"default":{"$ref":"#/components/responses/V2Error"}}}},"/v2/series/asset.price.candles.1h/instances":{"get":{"tags":["series asset.price.candles.1h"],"security":[{"userKey":["market:read"]}],"operationId":"v2_asset.price.candles.1h_instances","summary":"`asset.price.candles.1h` instances with served records and their coverage, in key order (asset).","description":"Only closed intervals are served: an interval appears once it has ended and been built. Retention is the current UTC date and the 89 before it.","parameters":[{"name":"assets","in":"query","required":false,"description":"Instances whose `asset` is one of these (comma-separated).","schema":{"type":"array","items":{"type":"string","maxLength":128},"maxItems":100},"style":"form","explode":false},{"name":"limit","in":"query","required":false,"description":"Records per page, 1 to 10000.","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1000}},{"name":"cursor","in":"query","required":false,"description":"Opaque: the previous page's `meta.cursor.next`, bound to the same filters and range.","schema":{"type":"string"}}],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/V2RecordsEnvelope"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AssetPriceCandles1hInstance"}}}}]}}}},"304":{"description":"Not modified: `If-None-Match` matched the publication’s `ETag`."},"default":{"$ref":"#/components/responses/V2Error"}}}},"/v2/series/asset.price.candles.1h/data":{"get":{"tags":["series asset.price.candles.1h"],"security":[{"userKey":["market:read"]}],"operationId":"v2_asset.price.candles.1h_data","summary":"`asset.price.candles.1h` records with `from <= time < to`, in (time, asset) order.","description":"Only closed intervals are served: an interval appears once it has ended and been built. Retention is the current UTC date and the 89 before it.","parameters":[{"name":"assets","in":"query","required":false,"description":"Instances whose `asset` is one of these (comma-separated).","schema":{"type":"array","items":{"type":"string","maxLength":128},"maxItems":100},"style":"form","explode":false},{"name":"from","in":"query","required":true,"description":"Inclusive start: a date (its 00:00Z) or an RFC 3339 instant with a zone (`Z` or `±HH:MM`).","schema":{"type":"string","format":"date-time"}},{"name":"to","in":"query","required":false,"description":"Exclusive end, a date or an RFC 3339 instant; after `from`. Defaults to now.","schema":{"type":"string","format":"date-time"}},{"name":"limit","in":"query","required":false,"description":"Records per page, 1 to 10000.","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1000}},{"name":"cursor","in":"query","required":false,"description":"Opaque: the previous page's `meta.cursor.next`, bound to the same filters and range.","schema":{"type":"string"}}],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/V2RecordsEnvelope"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AssetPriceCandles1hRecord"}}}}]}}}},"304":{"description":"Not modified: `If-None-Match` matched the publication’s `ETag`."},"default":{"$ref":"#/components/responses/V2Error"}}}},"/v2/series/asset.price.candles.1h/latest":{"get":{"tags":["series asset.price.candles.1h"],"security":[{"userKey":["market:read"]}],"operationId":"v2_asset.price.candles.1h_latest","summary":"Each matching `asset.price.candles.1h` instance's most recent record.","description":"Only closed intervals are served: an interval appears once it has ended and been built. Retention is the current UTC date and the 89 before it.","parameters":[{"name":"assets","in":"query","required":false,"description":"Instances whose `asset` is one of these (comma-separated).","schema":{"type":"array","items":{"type":"string","maxLength":128},"maxItems":100},"style":"form","explode":false},{"name":"limit","in":"query","required":false,"description":"Records per page, 1 to 10000.","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1000}},{"name":"cursor","in":"query","required":false,"description":"Opaque: the previous page's `meta.cursor.next`, bound to the same filters and range.","schema":{"type":"string"}}],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/V2RecordsEnvelope"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AssetPriceCandles1hRecord"}}}}]}}}},"304":{"description":"Not modified: `If-None-Match` matched the publication’s `ETag`."},"default":{"$ref":"#/components/responses/V2Error"}}}},"/v2/series/asset.price.candles.4h":{"get":{"tags":["series asset.price.candles.4h"],"security":[{"userKey":["market:read"]}],"operationId":"v2_asset.price.candles.4h_contract","summary":"The `asset.price.candles.4h` contract: what each field means, coverage, gaps, precision, retention.","description":"Only closed intervals are served: an interval appears once it has ended and been built. Retention is the current UTC date and the 89 before it.","parameters":[],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/V2SeriesContract"},"meta":{"$ref":"#/components/schemas/V2Meta"}},"required":["data","meta"]},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/v2/series/asset.price.candles.4h (recorded 2026-11-17)","value":{"data":{"id":"asset.price.candles.4h","status":"served","specification":"data/index.html#series-asset.price.candles.4h","contract":{"id":{"text":"`asset.price.candles.1h`, `asset.price.candles.4h` and\n`asset.price.candles.1d`: three series with one method at three intervals.","value":"asset.price.candles.4h"},"keyed_by":{"text":"catalogue asset.","subject":"asset","key":["asset"],"instance":[{"name":"asset","type":"string","unit":null,"nullable":false,"description":"Catalogue asset ID."}]},"shape":{"text":"candle: `open`, `high`, `low`, `close` in USD, and\nincluded turnover in USD. The 4h and daily candles also count the hours\nthat contributed.","type":"candle","fields":[{"name":"asset","type":"string","unit":null,"nullable":false,"description":"Catalogue asset ID."},{"name":"time","type":"timestamp","unit":"UTC","nullable":false,"description":"Start of the interval."},{"name":"open","type":"decimal","unit":"USD","nullable":false,"description":"Turnover-weighted mean open across included markets."}]},"semantics":{"text":"a volume-weighted USD index of the asset's spot market\ncandles across venues ([ADR 0001](https://github.com/tribulnation/terminal/blob/29a6887/docs/adr/0001-ven…","time":"interval_start"},"kind":{"text":"derived.","value":"derived"},"resolution_and_lag":{"text":"1h, 4h and 1d. An hour is served after the next\nhourly collection and build, today up to about an hour later…","interval":"4h"},"coverage":{"text":"from the earliest spot candle of any mapped market\n(archives reach Binance 2017-08 and Kraken 2013-01).","start_origin":"derived"},"gaps":{"text":"an hour with no eligible market is absent. The method carries a\nquote asset's USD close for up to 72 hours when its own is missing. A day\nneeds at least two venues and USD 100,000 of included turnover; days below\nthat are absent."},"precision":{"text":"float.","value":"float"},"retention":{"text":"1h and 4h for the current UTC date and the 89 before it;\n1d forever.","days":90},"corrections":{"text":"a remap or newly mapped market, late or recollected\ncandles, and fixes to the method's implementation."},"built_from":{"text":"candles (spot), and\nreference prices as a quote\nfallback.","datasets":["candles","reference_prices"]},"public":{"text":"not yet assessed.","value":"not_assessed"}},"serving":{"filters":[{"name":"assets","field":"asset","list":true}],"order":{"data":["time","asset"],"latest":["asset"],"instances":["asset"]},"routes":{"contract":"/v2/series/asset.price.candles.4h","instances":"/v2/series/asset.price.candles.4h/instances","data":"/v2/series/asset.price.candles.4h/data","latest":"/v2/series/asset.price.candles.4h/latest"},"notes":["Only closed intervals are served: an interval appears once it has ended and been built.","Retention is the current UTC date and the 89 before it."]}},"meta":{"as_of":null,"publication":null,"catalogue":null}}}}}}},"304":{"description":"Not modified: `If-None-Match` matched the publication’s `ETag`."},"default":{"$ref":"#/components/responses/V2Error"}}}},"/v2/series/asset.price.candles.4h/instances":{"get":{"tags":["series asset.price.candles.4h"],"security":[{"userKey":["market:read"]}],"operationId":"v2_asset.price.candles.4h_instances","summary":"`asset.price.candles.4h` instances with served records and their coverage, in key order (asset).","description":"Only closed intervals are served: an interval appears once it has ended and been built. Retention is the current UTC date and the 89 before it.","parameters":[{"name":"assets","in":"query","required":false,"description":"Instances whose `asset` is one of these (comma-separated).","schema":{"type":"array","items":{"type":"string","maxLength":128},"maxItems":100},"style":"form","explode":false},{"name":"limit","in":"query","required":false,"description":"Records per page, 1 to 10000.","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1000}},{"name":"cursor","in":"query","required":false,"description":"Opaque: the previous page's `meta.cursor.next`, bound to the same filters and range.","schema":{"type":"string"}}],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/V2RecordsEnvelope"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AssetPriceCandles4hInstance"}}}}]}}}},"304":{"description":"Not modified: `If-None-Match` matched the publication’s `ETag`."},"default":{"$ref":"#/components/responses/V2Error"}}}},"/v2/series/asset.price.candles.4h/data":{"get":{"tags":["series asset.price.candles.4h"],"security":[{"userKey":["market:read"]}],"operationId":"v2_asset.price.candles.4h_data","summary":"`asset.price.candles.4h` records with `from <= time < to`, in (time, asset) order.","description":"Only closed intervals are served: an interval appears once it has ended and been built. Retention is the current UTC date and the 89 before it.","parameters":[{"name":"assets","in":"query","required":false,"description":"Instances whose `asset` is one of these (comma-separated).","schema":{"type":"array","items":{"type":"string","maxLength":128},"maxItems":100},"style":"form","explode":false},{"name":"from","in":"query","required":true,"description":"Inclusive start: a date (its 00:00Z) or an RFC 3339 instant with a zone (`Z` or `±HH:MM`).","schema":{"type":"string","format":"date-time"}},{"name":"to","in":"query","required":false,"description":"Exclusive end, a date or an RFC 3339 instant; after `from`. Defaults to now.","schema":{"type":"string","format":"date-time"}},{"name":"limit","in":"query","required":false,"description":"Records per page, 1 to 10000.","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1000}},{"name":"cursor","in":"query","required":false,"description":"Opaque: the previous page's `meta.cursor.next`, bound to the same filters and range.","schema":{"type":"string"}}],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/V2RecordsEnvelope"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AssetPriceCandles4hRecord"}}}}]}}}},"304":{"description":"Not modified: `If-None-Match` matched the publication’s `ETag`."},"default":{"$ref":"#/components/responses/V2Error"}}}},"/v2/series/asset.price.candles.4h/latest":{"get":{"tags":["series asset.price.candles.4h"],"security":[{"userKey":["market:read"]}],"operationId":"v2_asset.price.candles.4h_latest","summary":"Each matching `asset.price.candles.4h` instance's most recent record.","description":"Only closed intervals are served: an interval appears once it has ended and been built. Retention is the current UTC date and the 89 before it.","parameters":[{"name":"assets","in":"query","required":false,"description":"Instances whose `asset` is one of these (comma-separated).","schema":{"type":"array","items":{"type":"string","maxLength":128},"maxItems":100},"style":"form","explode":false},{"name":"limit","in":"query","required":false,"description":"Records per page, 1 to 10000.","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1000}},{"name":"cursor","in":"query","required":false,"description":"Opaque: the previous page's `meta.cursor.next`, bound to the same filters and range.","schema":{"type":"string"}}],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/V2RecordsEnvelope"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AssetPriceCandles4hRecord"}}}}]}}}},"304":{"description":"Not modified: `If-None-Match` matched the publication’s `ETag`."},"default":{"$ref":"#/components/responses/V2Error"}}}},"/v2/series/asset.price.candles.1d":{"get":{"tags":["series asset.price.candles.1d"],"security":[{"userKey":["market:read"]}],"operationId":"v2_asset.price.candles.1d_contract","summary":"The `asset.price.candles.1d` contract: what each field means, coverage, gaps, precision, retention.","description":"Only closed intervals are served: an interval appears once it has ended and been built. Days with fewer than two venues or under USD 100,000 of included turnover are absent.","parameters":[],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/V2SeriesContract"},"meta":{"$ref":"#/components/schemas/V2Meta"}},"required":["data","meta"]},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/v2/series/asset.price.candles.1d (recorded 2026-11-17)","value":{"data":{"id":"asset.price.candles.1d","status":"served","specification":"data/index.html#series-asset.price.candles.1d","contract":{"id":{"text":"`asset.price.candles.1h`, `asset.price.candles.4h` and\n`asset.price.candles.1d`: three series with one method at three intervals.","value":"asset.price.candles.1d"},"keyed_by":{"text":"catalogue asset.","subject":"asset","key":["asset"],"instance":[{"name":"asset","type":"string","unit":null,"nullable":false,"description":"Catalogue asset ID."}]},"shape":{"text":"candle: `open`, `high`, `low`, `close` in USD, and\nincluded turnover in USD. The 4h and daily candles also count the hours\nthat contributed.","type":"candle","fields":[{"name":"asset","type":"string","unit":null,"nullable":false,"description":"Catalogue asset ID."},{"name":"time","type":"timestamp","unit":"UTC","nullable":false,"description":"Start of the interval."},{"name":"open","type":"decimal","unit":"USD","nullable":false,"description":"Turnover-weighted mean open across included markets."}]},"semantics":{"text":"a volume-weighted USD index of the asset's spot market\ncandles across venues ([ADR 0001](https://github.com/tribulnation/terminal/blob/29a6887/docs/adr/0001-ven…","time":"interval_start"},"kind":{"text":"derived.","value":"derived"},"resolution_and_lag":{"text":"1h, 4h and 1d. An hour is served after the next\nhourly collection and build, today up to about an hour later…","interval":"1d"},"coverage":{"text":"from the earliest spot candle of any mapped market\n(archives reach Binance 2017-08 and Kraken 2013-01).","start_origin":"derived"},"gaps":{"text":"an hour with no eligible market is absent. The method carries a\nquote asset's USD close for up to 72 hours when its own is missing. A day\nneeds at least two venues and USD 100,000 of included turnover; days below\nthat are absent."},"precision":{"text":"float.","value":"float"},"retention":{"text":"1h and 4h for the current UTC date and the 89 before it;\n1d forever.","days":null},"corrections":{"text":"a remap or newly mapped market, late or recollected\ncandles, and fixes to the method's implementation."},"built_from":{"text":"candles (spot), and\nreference prices as a quote\nfallback.","datasets":["candles","reference_prices"]},"public":{"text":"not yet assessed.","value":"not_assessed"}},"serving":{"filters":[{"name":"assets","field":"asset","list":true}],"order":{"data":["time","asset"],"latest":["asset"],"instances":["asset"]},"routes":{"contract":"/v2/series/asset.price.candles.1d","instances":"/v2/series/asset.price.candles.1d/instances","data":"/v2/series/asset.price.candles.1d/data","latest":"/v2/series/asset.price.candles.1d/latest"},"notes":["Only closed intervals are served: an interval appears once it has ended and been built.","Days with fewer than two venues or under USD 100,000 of included turnover are absent."]}},"meta":{"as_of":null,"publication":null,"catalogue":null}}}}}}},"304":{"description":"Not modified: `If-None-Match` matched the publication’s `ETag`."},"default":{"$ref":"#/components/responses/V2Error"}}}},"/v2/series/asset.price.candles.1d/instances":{"get":{"tags":["series asset.price.candles.1d"],"security":[{"userKey":["market:read"]}],"operationId":"v2_asset.price.candles.1d_instances","summary":"`asset.price.candles.1d` instances with served records and their coverage, in key order (asset).","description":"Only closed intervals are served: an interval appears once it has ended and been built. Days with fewer than two venues or under USD 100,000 of included turnover are absent.","parameters":[{"name":"assets","in":"query","required":false,"description":"Instances whose `asset` is one of these (comma-separated).","schema":{"type":"array","items":{"type":"string","maxLength":128},"maxItems":100},"style":"form","explode":false},{"name":"limit","in":"query","required":false,"description":"Records per page, 1 to 10000.","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1000}},{"name":"cursor","in":"query","required":false,"description":"Opaque: the previous page's `meta.cursor.next`, bound to the same filters and range.","schema":{"type":"string"}}],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/V2RecordsEnvelope"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AssetPriceCandles1dInstance"}}}}]}}}},"304":{"description":"Not modified: `If-None-Match` matched the publication’s `ETag`."},"default":{"$ref":"#/components/responses/V2Error"}}}},"/v2/series/asset.price.candles.1d/data":{"get":{"tags":["series asset.price.candles.1d"],"security":[{"userKey":["market:read"]}],"operationId":"v2_asset.price.candles.1d_data","summary":"`asset.price.candles.1d` records with `from <= time < to`, in (time, asset) order.","description":"Only closed intervals are served: an interval appears once it has ended and been built. Days with fewer than two venues or under USD 100,000 of included turnover are absent.","parameters":[{"name":"assets","in":"query","required":false,"description":"Instances whose `asset` is one of these (comma-separated).","schema":{"type":"array","items":{"type":"string","maxLength":128},"maxItems":100},"style":"form","explode":false},{"name":"from","in":"query","required":true,"description":"Inclusive start: a date (its 00:00Z) or an RFC 3339 instant with a zone (`Z` or `±HH:MM`).","schema":{"type":"string","format":"date-time"}},{"name":"to","in":"query","required":false,"description":"Exclusive end, a date or an RFC 3339 instant; after `from`. Defaults to now.","schema":{"type":"string","format":"date-time"}},{"name":"limit","in":"query","required":false,"description":"Records per page, 1 to 10000.","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1000}},{"name":"cursor","in":"query","required":false,"description":"Opaque: the previous page's `meta.cursor.next`, bound to the same filters and range.","schema":{"type":"string"}}],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/V2RecordsEnvelope"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AssetPriceCandles1dRecord"}}}}]}}}},"304":{"description":"Not modified: `If-None-Match` matched the publication’s `ETag`."},"default":{"$ref":"#/components/responses/V2Error"}}}},"/v2/series/asset.price.candles.1d/latest":{"get":{"tags":["series asset.price.candles.1d"],"security":[{"userKey":["market:read"]}],"operationId":"v2_asset.price.candles.1d_latest","summary":"Each matching `asset.price.candles.1d` instance's most recent record.","description":"Only closed intervals are served: an interval appears once it has ended and been built. Days with fewer than two venues or under USD 100,000 of included turnover are absent.","parameters":[{"name":"assets","in":"query","required":false,"description":"Instances whose `asset` is one of these (comma-separated).","schema":{"type":"array","items":{"type":"string","maxLength":128},"maxItems":100},"style":"form","explode":false},{"name":"limit","in":"query","required":false,"description":"Records per page, 1 to 10000.","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1000}},{"name":"cursor","in":"query","required":false,"description":"Opaque: the previous page's `meta.cursor.next`, bound to the same filters and range.","schema":{"type":"string"}}],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/V2RecordsEnvelope"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AssetPriceCandles1dRecord"}}}}]}}}},"304":{"description":"Not modified: `If-None-Match` matched the publication’s `ETag`."},"default":{"$ref":"#/components/responses/V2Error"}}}},"/v2/series/asset.price.reference.1d":{"get":{"tags":["series asset.price.reference.1d"],"security":[{"userKey":["market:read"]}],"operationId":"v2_asset.price.reference.1d_contract","summary":"The `asset.price.reference.1d` contract: what each field means, coverage, gaps, precision, retention.","description":"`time` labels the date; it is not an observation instant.","parameters":[],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/V2SeriesContract"},"meta":{"$ref":"#/components/schemas/V2Meta"}},"required":["data","meta"]},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/v2/series/asset.price.reference.1d (recorded 2026-11-17)","value":{"data":{"id":"asset.price.reference.1d","status":"served","specification":"data/index.html#series-asset.price.reference.1d","contract":{"id":{"text":"`asset.price.reference.1d`.","value":"asset.price.reference.1d"},"keyed_by":{"text":"catalogue asset.","subject":"asset","key":["asset"],"instance":[{"name":"asset","type":"string","unit":null,"nullable":false,"description":"Catalogue asset ID."}]},"shape":{"text":"point: `price` and `market_cap`, both in USD, per date.","type":"point","fields":[{"name":"asset","type":"string","unit":null,"nullable":false,"description":"Catalogue asset ID."},{"name":"time","type":"timestamp","unit":"UTC","nullable":false,"description":"00:00 UTC of the date the value is for; which instant of the day it stands for is the source’s convention."},{"name":"price","type":"decimal","unit":"USD","nullable":true,"description":"Reference price."}]},"semantics":{"text":"the daily price and market cap that a reference source\npublishes for the asset. When several sources cover the same asset and\ndate, the first in this order wins…","time":"date"},"kind":{"text":"source history.","value":"source_history"},"resolution_and_lag":{"text":"daily; served after the 02:00 UTC collection.","interval":"1d"},"coverage":{"text":"each source's full history for the asset.","start_origin":"source_history"},"gaps":{"text":"a date no source reports is absent."},"precision":{"text":"float.","value":"float"},"retention":{"text":"forever.","days":null},"corrections":{"text":"a source revising a past date, a change of external ID\nor of the asset it belongs to, and\na higher-precedence source starting to cover a date."},"built_from":{"text":"reference prices.","datasets":["reference_prices"]},"public":{"text":"not yet assessed; aggregator terms need review…","value":"not_assessed"}},"serving":{"filters":[{"name":"assets","field":"asset","list":true}],"order":{"data":["time","asset"],"latest":["asset"],"instances":["asset"]},"routes":{"contract":"/v2/series/asset.price.reference.1d","instances":"/v2/series/asset.price.reference.1d/instances","data":"/v2/series/asset.price.reference.1d/data","latest":"/v2/series/asset.price.reference.1d/latest"},"notes":["`time` labels the date; it is not an observation instant."]}},"meta":{"as_of":null,"publication":null,"catalogue":null}}}}}}},"304":{"description":"Not modified: `If-None-Match` matched the publication’s `ETag`."},"default":{"$ref":"#/components/responses/V2Error"}}}},"/v2/series/asset.price.reference.1d/instances":{"get":{"tags":["series asset.price.reference.1d"],"security":[{"userKey":["market:read"]}],"operationId":"v2_asset.price.reference.1d_instances","summary":"`asset.price.reference.1d` instances with served records and their coverage, in key order (asset).","description":"`time` labels the date; it is not an observation instant.","parameters":[{"name":"assets","in":"query","required":false,"description":"Instances whose `asset` is one of these (comma-separated).","schema":{"type":"array","items":{"type":"string","maxLength":128},"maxItems":100},"style":"form","explode":false},{"name":"limit","in":"query","required":false,"description":"Records per page, 1 to 10000.","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1000}},{"name":"cursor","in":"query","required":false,"description":"Opaque: the previous page's `meta.cursor.next`, bound to the same filters and range.","schema":{"type":"string"}}],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/V2RecordsEnvelope"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AssetPriceReference1dInstance"}}}}]}}}},"304":{"description":"Not modified: `If-None-Match` matched the publication’s `ETag`."},"default":{"$ref":"#/components/responses/V2Error"}}}},"/v2/series/asset.price.reference.1d/data":{"get":{"tags":["series asset.price.reference.1d"],"security":[{"userKey":["market:read"]}],"operationId":"v2_asset.price.reference.1d_data","summary":"`asset.price.reference.1d` records with `from <= time < to`, in (time, asset) order.","description":"`time` labels the date; it is not an observation instant.","parameters":[{"name":"assets","in":"query","required":false,"description":"Instances whose `asset` is one of these (comma-separated).","schema":{"type":"array","items":{"type":"string","maxLength":128},"maxItems":100},"style":"form","explode":false},{"name":"from","in":"query","required":true,"description":"Inclusive start: a date (its 00:00Z) or an RFC 3339 instant with a zone (`Z` or `±HH:MM`).","schema":{"type":"string","format":"date-time"}},{"name":"to","in":"query","required":false,"description":"Exclusive end, a date or an RFC 3339 instant; after `from`. Defaults to now.","schema":{"type":"string","format":"date-time"}},{"name":"limit","in":"query","required":false,"description":"Records per page, 1 to 10000.","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1000}},{"name":"cursor","in":"query","required":false,"description":"Opaque: the previous page's `meta.cursor.next`, bound to the same filters and range.","schema":{"type":"string"}}],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/V2RecordsEnvelope"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AssetPriceReference1dRecord"}}}}]}}}},"304":{"description":"Not modified: `If-None-Match` matched the publication’s `ETag`."},"default":{"$ref":"#/components/responses/V2Error"}}}},"/v2/series/asset.price.reference.1d/latest":{"get":{"tags":["series asset.price.reference.1d"],"security":[{"userKey":["market:read"]}],"operationId":"v2_asset.price.reference.1d_latest","summary":"Each matching `asset.price.reference.1d` instance's most recent record.","description":"`time` labels the date; it is not an observation instant.","parameters":[{"name":"assets","in":"query","required":false,"description":"Instances whose `asset` is one of these (comma-separated).","schema":{"type":"array","items":{"type":"string","maxLength":128},"maxItems":100},"style":"form","explode":false},{"name":"limit","in":"query","required":false,"description":"Records per page, 1 to 10000.","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1000}},{"name":"cursor","in":"query","required":false,"description":"Opaque: the previous page's `meta.cursor.next`, bound to the same filters and range.","schema":{"type":"string"}}],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/V2RecordsEnvelope"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AssetPriceReference1dRecord"}}}}]}}}},"304":{"description":"Not modified: `If-None-Match` matched the publication’s `ETag`."},"default":{"$ref":"#/components/responses/V2Error"}}}},"/v2/series/market.price.candles.5m":{"get":{"tags":["series market.price.candles.5m"],"security":[{"userKey":["market:read"]}],"operationId":"v2_market.price.candles.5m_contract","summary":"The `market.price.candles.5m` contract: what each field means, coverage, gaps, precision, retention.","description":"Not served yet: venue candles are collected at 1h, not 5m.","parameters":[],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/V2SeriesContract"},"meta":{"$ref":"#/components/schemas/V2Meta"}},"required":["data","meta"]},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/v2/series/market.price.candles.5m (recorded 2026-11-17)","value":{"data":{"id":"market.price.candles.5m","status":"not_served","specification":"data/index.html#series-market.price.candles.5m","contract":{"id":{"text":"`market.price.candles.5m`.","value":"market.price.candles.5m"},"keyed_by":{"text":"venue market, spot or perpetual.","subject":"venue_market","key":["venue","exchange","kind","market"],"instance":[{"name":"venue","type":"string","unit":null,"nullable":false,"description":"Venue ID."},{"name":"exchange","type":"string","unit":null,"nullable":true,"description":"The venue's product family; null where the catalogue has none."},{"name":"kind","type":"string","unit":null,"nullable":false,"description":"`spot` or `perpetual`."}]},"shape":{"text":"candle: `open`, `high`, `low`, `close` in the market's quote\ncurrency; `volume` (base) and `quote_volume` where the venue reports them;\n`trades` where reported.","type":"candle","fields":[{"name":"venue","type":"string","unit":null,"nullable":false,"description":"Venue ID."},{"name":"exchange","type":"string","unit":null,"nullable":true,"description":"The venue's product family; null where the catalogue has none."},{"name":"kind","type":"string","unit":null,"nullable":false,"description":"`spot` or `perpetual`."}]},"semantics":{"text":"the venue's own trade candles for the market, as the venue\nreports them. `time` is the interval start (UTC). No conversion and no\naggregation: one market, one venue, its own quote.","time":"interval_start"},"kind":{"text":"source history.","value":"source_history"},"resolution_and_lag":{"text":"5m; served within about an hour.","interval":"5m"},"coverage":{"text":"as far back as the venue's candle history or archive\nreaches for the market.","start_origin":"source_history"},"gaps":{"text":"an interval the venue reports no candle for (no trades, or a\nvenue outage) is absent."},"precision":{"text":"float.","value":"float"},"retention":{"text":"forever.","days":null},"corrections":{"text":"a remap and recollection."},"built_from":{"text":"candles.","datasets":["candles"]},"public":{"text":"not yet assessed.","value":"not_assessed"}},"serving":{"filters":[{"name":"assets","field":"asset","list":true},{"name":"venues","field":"venue","list":true},{"name":"exchange","field":"exchange","list":false}],"order":{"data":["time","venue","exchange","kind","market"],"latest":["venue","exchange","kind","market"],"instances":["venue","exchange","kind","market"]},"routes":{"contract":"/v2/series/market.price.candles.5m","instances":"/v2/series/market.price.candles.5m/instances","data":"/v2/series/market.price.candles.5m/data","latest":"/v2/series/market.price.candles.5m/latest"},"notes":["Not served yet: venue candles are collected at 1h, not 5m."]}},"meta":{"as_of":null,"publication":null,"catalogue":null}}}}}}},"304":{"description":"Not modified: `If-None-Match` matched the publication’s `ETag`."},"default":{"$ref":"#/components/responses/V2Error"}}}},"/v2/series/market.price.candles.5m/instances":{"get":{"tags":["series market.price.candles.5m"],"security":[{"userKey":["market:read"]}],"operationId":"v2_market.price.candles.5m_instances","summary":"`market.price.candles.5m` instances with served records and their coverage, in key order (venue, exchange, kind, market).","description":"Not served yet: venue candles are collected at 1h, not 5m.","parameters":[{"name":"assets","in":"query","required":false,"description":"Instances whose `asset` is one of these (comma-separated).","schema":{"type":"array","items":{"type":"string","maxLength":128},"maxItems":100},"style":"form","explode":false},{"name":"venues","in":"query","required":false,"description":"Instances whose `venue` is one of these (comma-separated).","schema":{"type":"array","items":{"type":"string","maxLength":128},"maxItems":100},"style":"form","explode":false},{"name":"exchange","in":"query","required":false,"description":"Instances whose `exchange` is this.","schema":{"type":"string","maxLength":128}},{"name":"kind","in":"query","required":false,"description":"Instances whose `kind` is this.","schema":{"type":"string","maxLength":128}},{"name":"market","in":"query","required":false,"description":"Instances whose `market` is this.","schema":{"type":"string","maxLength":128}},{"name":"limit","in":"query","required":false,"description":"Records per page, 1 to 10000.","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1000}},{"name":"cursor","in":"query","required":false,"description":"Opaque: the previous page's `meta.cursor.next`, bound to the same filters and range.","schema":{"type":"string"}}],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/V2RecordsEnvelope"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/MarketPriceCandles5mInstance"}}}}]}}}},"304":{"description":"Not modified: `If-None-Match` matched the publication’s `ETag`."},"default":{"$ref":"#/components/responses/V2Error"}}}},"/v2/series/market.price.candles.5m/data":{"get":{"tags":["series market.price.candles.5m"],"security":[{"userKey":["market:read"]}],"operationId":"v2_market.price.candles.5m_data","summary":"`market.price.candles.5m` records with `from <= time < to`, in (time, venue, exchange, kind, market) order.","description":"Not served yet: venue candles are collected at 1h, not 5m.","parameters":[{"name":"assets","in":"query","required":false,"description":"Instances whose `asset` is one of these (comma-separated).","schema":{"type":"array","items":{"type":"string","maxLength":128},"maxItems":100},"style":"form","explode":false},{"name":"venues","in":"query","required":false,"description":"Instances whose `venue` is one of these (comma-separated).","schema":{"type":"array","items":{"type":"string","maxLength":128},"maxItems":100},"style":"form","explode":false},{"name":"exchange","in":"query","required":false,"description":"Instances whose `exchange` is this.","schema":{"type":"string","maxLength":128}},{"name":"kind","in":"query","required":false,"description":"Instances whose `kind` is this.","schema":{"type":"string","maxLength":128}},{"name":"market","in":"query","required":false,"description":"Instances whose `market` is this.","schema":{"type":"string","maxLength":128}},{"name":"from","in":"query","required":true,"description":"Inclusive start: a date (its 00:00Z) or an RFC 3339 instant with a zone (`Z` or `±HH:MM`).","schema":{"type":"string","format":"date-time"}},{"name":"to","in":"query","required":false,"description":"Exclusive end, a date or an RFC 3339 instant; after `from`. Defaults to now.","schema":{"type":"string","format":"date-time"}},{"name":"limit","in":"query","required":false,"description":"Records per page, 1 to 10000.","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1000}},{"name":"cursor","in":"query","required":false,"description":"Opaque: the previous page's `meta.cursor.next`, bound to the same filters and range.","schema":{"type":"string"}}],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/V2RecordsEnvelope"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/MarketPriceCandles5mRecord"}}}}]}}}},"304":{"description":"Not modified: `If-None-Match` matched the publication’s `ETag`."},"default":{"$ref":"#/components/responses/V2Error"}}}},"/v2/series/market.price.candles.5m/latest":{"get":{"tags":["series market.price.candles.5m"],"security":[{"userKey":["market:read"]}],"operationId":"v2_market.price.candles.5m_latest","summary":"Each matching `market.price.candles.5m` instance's most recent record.","description":"Not served yet: venue candles are collected at 1h, not 5m.","parameters":[{"name":"assets","in":"query","required":false,"description":"Instances whose `asset` is one of these (comma-separated).","schema":{"type":"array","items":{"type":"string","maxLength":128},"maxItems":100},"style":"form","explode":false},{"name":"venues","in":"query","required":false,"description":"Instances whose `venue` is one of these (comma-separated).","schema":{"type":"array","items":{"type":"string","maxLength":128},"maxItems":100},"style":"form","explode":false},{"name":"exchange","in":"query","required":false,"description":"Instances whose `exchange` is this.","schema":{"type":"string","maxLength":128}},{"name":"kind","in":"query","required":false,"description":"Instances whose `kind` is this.","schema":{"type":"string","maxLength":128}},{"name":"market","in":"query","required":false,"description":"Instances whose `market` is this.","schema":{"type":"string","maxLength":128}},{"name":"limit","in":"query","required":false,"description":"Records per page, 1 to 10000.","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1000}},{"name":"cursor","in":"query","required":false,"description":"Opaque: the previous page's `meta.cursor.next`, bound to the same filters and range.","schema":{"type":"string"}}],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/V2RecordsEnvelope"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/MarketPriceCandles5mRecord"}}}}]}}}},"304":{"description":"Not modified: `If-None-Match` matched the publication’s `ETag`."},"default":{"$ref":"#/components/responses/V2Error"}}}},"/v2/series/perp.funding.settlements":{"get":{"tags":["series perp.funding.settlements"],"security":[{"userKey":["market:read"]}],"operationId":"v2_perp.funding.settlements_contract","summary":"The `perp.funding.settlements` contract: what each field means, coverage, gaps, precision, retention.","description":"The SDK does not report settlement intervals (sdk#137); `interval` is derived from settlement times. Settlements the venue reported without a rate are absent.","parameters":[],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/V2SeriesContract"},"meta":{"$ref":"#/components/schemas/V2Meta"}},"required":["data","meta"]},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/v2/series/perp.funding.settlements (recorded 2026-11-17)","value":{"data":{"id":"perp.funding.settlements","status":"served","specification":"data/index.html#series-perp.funding.settlements","contract":{"id":{"text":"`perp.funding.settlements`.","value":"perp.funding.settlements"},"keyed_by":{"text":"venue market (perpetual).","subject":"venue_market","key":["venue","exchange","kind","market"],"instance":[{"name":"venue","type":"string","unit":null,"nullable":false,"description":"Venue ID."},{"name":"exchange","type":"string","unit":null,"nullable":true,"description":"The venue's product family; null where the catalogue has none."},{"name":"kind","type":"string","unit":null,"nullable":false,"description":"`spot` or `perpetual`."}]},"shape":{"text":"event: `rate` (fraction of position value per settlement\nperiod, as the venue reports it), `premium` where the venue reports it,\n`interval_s` (the settlement period, in seconds) and `apr` (simple annual\nrate, not compounded).","type":"event","fields":[{"name":"venue","type":"string","unit":null,"nullable":false,"description":"Venue ID."},{"name":"exchange","type":"string","unit":null,"nullable":true,"description":"The venue's product family; null where the catalogue has none."},{"name":"kind","type":"string","unit":null,"nullable":false,"description":"`spot` or `perpetual`."}]},"semantics":{"text":"the funding rate the venue applied at each settlement, as\nthe venue reports it. `time` is the settlement time. Settlement intervals\ndiffer by venue and market (…","time":"settlement"},"kind":{"text":"source history.","value":"source_history"},"resolution_and_lag":{"text":"every settlement; served after the next hourly\ncollection, within about an hour.","interval":null},"coverage":{"text":"as far back as the venue's history reaches.","start_origin":"source_history"},"gaps":{"text":"a settlement the venue does not report is absent."},"precision":{"text":"float.","value":"float"},"retention":{"text":"forever.","days":null},"corrections":{"text":"a remap,\nrecollection, and an `interval` filled in once an earlier settlement is\ncollected."},"built_from":{"text":"funding.","datasets":["funding_rates"]},"public":{"text":"not yet assessed.","value":"not_assessed"}},"serving":{"filters":[{"name":"assets","field":"asset","list":true},{"name":"venues","field":"venue","list":true},{"name":"exchange","field":"exchange","list":false}],"order":{"data":["time","venue","exchange","kind","market"],"latest":["venue","exchange","kind","market"],"instances":["venue","exchange","kind","market"]},"routes":{"contract":"/v2/series/perp.funding.settlements","instances":"/v2/series/perp.funding.settlements/instances","data":"/v2/series/perp.funding.settlements/data","latest":"/v2/series/perp.funding.settlements/latest"},"notes":["The SDK does not report settlement intervals (sdk#137); `interval` is derived from settlement times.","Settlements the venue reported without a rate are absent."]}},"meta":{"as_of":null,"publication":null,"catalogue":null}}}}}}},"304":{"description":"Not modified: `If-None-Match` matched the publication’s `ETag`."},"default":{"$ref":"#/components/responses/V2Error"}}}},"/v2/series/perp.funding.settlements/instances":{"get":{"tags":["series perp.funding.settlements"],"security":[{"userKey":["market:read"]}],"operationId":"v2_perp.funding.settlements_instances","summary":"`perp.funding.settlements` instances with served records and their coverage, in key order (venue, exchange, kind, market).","description":"The SDK does not report settlement intervals (sdk#137); `interval` is derived from settlement times. Settlements the venue reported without a rate are absent.","parameters":[{"name":"assets","in":"query","required":false,"description":"Instances whose `asset` is one of these (comma-separated).","schema":{"type":"array","items":{"type":"string","maxLength":128},"maxItems":100},"style":"form","explode":false},{"name":"venues","in":"query","required":false,"description":"Instances whose `venue` is one of these (comma-separated).","schema":{"type":"array","items":{"type":"string","maxLength":128},"maxItems":100},"style":"form","explode":false},{"name":"exchange","in":"query","required":false,"description":"Instances whose `exchange` is this.","schema":{"type":"string","maxLength":128}},{"name":"kind","in":"query","required":false,"description":"Instances whose `kind` is this.","schema":{"type":"string","maxLength":128}},{"name":"market","in":"query","required":false,"description":"Instances whose `market` is this.","schema":{"type":"string","maxLength":128}},{"name":"limit","in":"query","required":false,"description":"Records per page, 1 to 10000.","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1000}},{"name":"cursor","in":"query","required":false,"description":"Opaque: the previous page's `meta.cursor.next`, bound to the same filters and range.","schema":{"type":"string"}}],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/V2RecordsEnvelope"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PerpFundingSettlementsInstance"}}}}]}}}},"304":{"description":"Not modified: `If-None-Match` matched the publication’s `ETag`."},"default":{"$ref":"#/components/responses/V2Error"}}}},"/v2/series/perp.funding.settlements/data":{"get":{"tags":["series perp.funding.settlements"],"security":[{"userKey":["market:read"]}],"operationId":"v2_perp.funding.settlements_data","summary":"`perp.funding.settlements` records with `from <= time < to`, in (time, venue, exchange, kind, market) order.","description":"The SDK does not report settlement intervals (sdk#137); `interval` is derived from settlement times. Settlements the venue reported without a rate are absent.","parameters":[{"name":"assets","in":"query","required":false,"description":"Instances whose `asset` is one of these (comma-separated).","schema":{"type":"array","items":{"type":"string","maxLength":128},"maxItems":100},"style":"form","explode":false},{"name":"venues","in":"query","required":false,"description":"Instances whose `venue` is one of these (comma-separated).","schema":{"type":"array","items":{"type":"string","maxLength":128},"maxItems":100},"style":"form","explode":false},{"name":"exchange","in":"query","required":false,"description":"Instances whose `exchange` is this.","schema":{"type":"string","maxLength":128}},{"name":"kind","in":"query","required":false,"description":"Instances whose `kind` is this.","schema":{"type":"string","maxLength":128}},{"name":"market","in":"query","required":false,"description":"Instances whose `market` is this.","schema":{"type":"string","maxLength":128}},{"name":"from","in":"query","required":true,"description":"Inclusive start: a date (its 00:00Z) or an RFC 3339 instant with a zone (`Z` or `±HH:MM`).","schema":{"type":"string","format":"date-time"}},{"name":"to","in":"query","required":false,"description":"Exclusive end, a date or an RFC 3339 instant; after `from`. Defaults to now.","schema":{"type":"string","format":"date-time"}},{"name":"limit","in":"query","required":false,"description":"Records per page, 1 to 10000.","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1000}},{"name":"cursor","in":"query","required":false,"description":"Opaque: the previous page's `meta.cursor.next`, bound to the same filters and range.","schema":{"type":"string"}}],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/V2RecordsEnvelope"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PerpFundingSettlementsRecord"}}}}]}}}},"304":{"description":"Not modified: `If-None-Match` matched the publication’s `ETag`."},"default":{"$ref":"#/components/responses/V2Error"}}}},"/v2/series/perp.funding.settlements/latest":{"get":{"tags":["series perp.funding.settlements"],"security":[{"userKey":["market:read"]}],"operationId":"v2_perp.funding.settlements_latest","summary":"Each matching `perp.funding.settlements` instance's most recent record.","description":"The SDK does not report settlement intervals (sdk#137); `interval` is derived from settlement times. Settlements the venue reported without a rate are absent.","parameters":[{"name":"assets","in":"query","required":false,"description":"Instances whose `asset` is one of these (comma-separated).","schema":{"type":"array","items":{"type":"string","maxLength":128},"maxItems":100},"style":"form","explode":false},{"name":"venues","in":"query","required":false,"description":"Instances whose `venue` is one of these (comma-separated).","schema":{"type":"array","items":{"type":"string","maxLength":128},"maxItems":100},"style":"form","explode":false},{"name":"exchange","in":"query","required":false,"description":"Instances whose `exchange` is this.","schema":{"type":"string","maxLength":128}},{"name":"kind","in":"query","required":false,"description":"Instances whose `kind` is this.","schema":{"type":"string","maxLength":128}},{"name":"market","in":"query","required":false,"description":"Instances whose `market` is this.","schema":{"type":"string","maxLength":128}},{"name":"limit","in":"query","required":false,"description":"Records per page, 1 to 10000.","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1000}},{"name":"cursor","in":"query","required":false,"description":"Opaque: the previous page's `meta.cursor.next`, bound to the same filters and range.","schema":{"type":"string"}}],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/V2RecordsEnvelope"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PerpFundingSettlementsRecord"}}}}]}}}},"304":{"description":"Not modified: `If-None-Match` matched the publication’s `ETag`."},"default":{"$ref":"#/components/responses/V2Error"}}}},"/v2/series/perp.index.candles.5m":{"get":{"tags":["series perp.index.candles.5m"],"security":[{"userKey":["market:read"]}],"operationId":"v2_perp.index.candles.5m_contract","summary":"The `perp.index.candles.5m` contract: what each field means, coverage, gaps, precision, retention.","description":"Not built yet.","parameters":[],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/V2SeriesContract"},"meta":{"$ref":"#/components/schemas/V2Meta"}},"required":["data","meta"]},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/v2/series/perp.index.candles.5m (recorded 2026-11-17)","value":{"data":{"id":"perp.index.candles.5m","status":"not_served","specification":"data/index.html#series-perp.index.candles.5m","contract":{"id":{"text":"`perp.index.candles.5m`, `perp.mark.candles.5m` and\n`perp.open_interest.candles.5m`.","value":"perp.index.candles.5m"},"keyed_by":{"text":"venue market (perpetual).","subject":"venue_market","key":["venue","exchange","kind","market"],"instance":[{"name":"venue","type":"string","unit":null,"nullable":false,"description":"Venue ID."},{"name":"exchange","type":"string","unit":null,"nullable":true,"description":"The venue's product family; null where the catalogue has none."},{"name":"kind","type":"string","unit":null,"nullable":false,"description":"`spot` or `perpetual`."}]},"shape":{"text":"candle: `open`, `high`, `low`, `close`. Index price is in the\nmarket's quote currency; mark price as the venue quotes it (per contract);\nopen interest in base units.","type":"candle","fields":[{"name":"venue","type":"string","unit":null,"nullable":false,"description":"Venue ID."},{"name":"exchange","type":"string","unit":null,"nullable":true,"description":"The venue's product family; null where the catalogue has none."},{"name":"kind","type":"string","unit":null,"nullable":false,"description":"`spot` or `perpetual`."}]},"semantics":{"text":"the venue's own index price, mark price and open interest\nover each 5-minute interval (UTC; `time` is the interval start), from the\nvenue's own candles for that measure or its published archive. The\nsource per venue and measure is the `source` column of the raw\n`perp_candles` dataset. An\ninstance's source can only change by becoming a new series.","time":"interval_start"},"kind":{"text":"source history (venue).","value":"source_history_or_live_feed"},"resolution_and_lag":{"text":"5m; served within about an hour.","interval":"5m"},"coverage":{"text":"backfilled as far as the venue or its archive keeps them.","start_origin":"per_instance"},"gaps":{"text":"an interval with no venue candle is absent."},"precision":{"text":"float.","value":"float"},"retention":{"text":"forever.","days":null},"corrections":{"text":"a remap and recollection."},"built_from":{"text":"perpetual candles.","datasets":["perp_candles"]},"public":{"text":"not yet assessed.","value":"not_assessed"}},"serving":{"filters":[{"name":"assets","field":"asset","list":true},{"name":"venues","field":"venue","list":true},{"name":"exchange","field":"exchange","list":false}],"order":{"data":["time","venue","exchange","kind","market"],"latest":["venue","exchange","kind","market"],"instances":["venue","exchange","kind","market"]},"routes":{"contract":"/v2/series/perp.index.candles.5m","instances":"/v2/series/perp.index.candles.5m/instances","data":"/v2/series/perp.index.candles.5m/data","latest":"/v2/series/perp.index.candles.5m/latest"},"notes":["Not built yet…"]}},"meta":{"as_of":null,"publication":null,"catalogue":null}}}}}}},"304":{"description":"Not modified: `If-None-Match` matched the publication’s `ETag`."},"default":{"$ref":"#/components/responses/V2Error"}}}},"/v2/series/perp.index.candles.5m/instances":{"get":{"tags":["series perp.index.candles.5m"],"security":[{"userKey":["market:read"]}],"operationId":"v2_perp.index.candles.5m_instances","summary":"`perp.index.candles.5m` instances with served records and their coverage, in key order (venue, exchange, kind, market).","description":"Not built yet.","parameters":[{"name":"assets","in":"query","required":false,"description":"Instances whose `asset` is one of these (comma-separated).","schema":{"type":"array","items":{"type":"string","maxLength":128},"maxItems":100},"style":"form","explode":false},{"name":"venues","in":"query","required":false,"description":"Instances whose `venue` is one of these (comma-separated).","schema":{"type":"array","items":{"type":"string","maxLength":128},"maxItems":100},"style":"form","explode":false},{"name":"exchange","in":"query","required":false,"description":"Instances whose `exchange` is this.","schema":{"type":"string","maxLength":128}},{"name":"kind","in":"query","required":false,"description":"Instances whose `kind` is this.","schema":{"type":"string","maxLength":128}},{"name":"market","in":"query","required":false,"description":"Instances whose `market` is this.","schema":{"type":"string","maxLength":128}},{"name":"limit","in":"query","required":false,"description":"Records per page, 1 to 10000.","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1000}},{"name":"cursor","in":"query","required":false,"description":"Opaque: the previous page's `meta.cursor.next`, bound to the same filters and range.","schema":{"type":"string"}}],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/V2RecordsEnvelope"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PerpIndexCandles5mInstance"}}}}]}}}},"304":{"description":"Not modified: `If-None-Match` matched the publication’s `ETag`."},"default":{"$ref":"#/components/responses/V2Error"}}}},"/v2/series/perp.index.candles.5m/data":{"get":{"tags":["series perp.index.candles.5m"],"security":[{"userKey":["market:read"]}],"operationId":"v2_perp.index.candles.5m_data","summary":"`perp.index.candles.5m` records with `from <= time < to`, in (time, venue, exchange, kind, market) order.","description":"Not built yet.","parameters":[{"name":"assets","in":"query","required":false,"description":"Instances whose `asset` is one of these (comma-separated).","schema":{"type":"array","items":{"type":"string","maxLength":128},"maxItems":100},"style":"form","explode":false},{"name":"venues","in":"query","required":false,"description":"Instances whose `venue` is one of these (comma-separated).","schema":{"type":"array","items":{"type":"string","maxLength":128},"maxItems":100},"style":"form","explode":false},{"name":"exchange","in":"query","required":false,"description":"Instances whose `exchange` is this.","schema":{"type":"string","maxLength":128}},{"name":"kind","in":"query","required":false,"description":"Instances whose `kind` is this.","schema":{"type":"string","maxLength":128}},{"name":"market","in":"query","required":false,"description":"Instances whose `market` is this.","schema":{"type":"string","maxLength":128}},{"name":"from","in":"query","required":true,"description":"Inclusive start: a date (its 00:00Z) or an RFC 3339 instant with a zone (`Z` or `±HH:MM`).","schema":{"type":"string","format":"date-time"}},{"name":"to","in":"query","required":false,"description":"Exclusive end, a date or an RFC 3339 instant; after `from`. Defaults to now.","schema":{"type":"string","format":"date-time"}},{"name":"limit","in":"query","required":false,"description":"Records per page, 1 to 10000.","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1000}},{"name":"cursor","in":"query","required":false,"description":"Opaque: the previous page's `meta.cursor.next`, bound to the same filters and range.","schema":{"type":"string"}}],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/V2RecordsEnvelope"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PerpIndexCandles5mRecord"}}}}]}}}},"304":{"description":"Not modified: `If-None-Match` matched the publication’s `ETag`."},"default":{"$ref":"#/components/responses/V2Error"}}}},"/v2/series/perp.index.candles.5m/latest":{"get":{"tags":["series perp.index.candles.5m"],"security":[{"userKey":["market:read"]}],"operationId":"v2_perp.index.candles.5m_latest","summary":"Each matching `perp.index.candles.5m` instance's most recent record.","description":"Not built yet.","parameters":[{"name":"assets","in":"query","required":false,"description":"Instances whose `asset` is one of these (comma-separated).","schema":{"type":"array","items":{"type":"string","maxLength":128},"maxItems":100},"style":"form","explode":false},{"name":"venues","in":"query","required":false,"description":"Instances whose `venue` is one of these (comma-separated).","schema":{"type":"array","items":{"type":"string","maxLength":128},"maxItems":100},"style":"form","explode":false},{"name":"exchange","in":"query","required":false,"description":"Instances whose `exchange` is this.","schema":{"type":"string","maxLength":128}},{"name":"kind","in":"query","required":false,"description":"Instances whose `kind` is this.","schema":{"type":"string","maxLength":128}},{"name":"market","in":"query","required":false,"description":"Instances whose `market` is this.","schema":{"type":"string","maxLength":128}},{"name":"limit","in":"query","required":false,"description":"Records per page, 1 to 10000.","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1000}},{"name":"cursor","in":"query","required":false,"description":"Opaque: the previous page's `meta.cursor.next`, bound to the same filters and range.","schema":{"type":"string"}}],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/V2RecordsEnvelope"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PerpIndexCandles5mRecord"}}}}]}}}},"304":{"description":"Not modified: `If-None-Match` matched the publication’s `ETag`."},"default":{"$ref":"#/components/responses/V2Error"}}}},"/v2/series/perp.mark.candles.5m":{"get":{"tags":["series perp.mark.candles.5m"],"security":[{"userKey":["market:read"]}],"operationId":"v2_perp.mark.candles.5m_contract","summary":"The `perp.mark.candles.5m` contract: what each field means, coverage, gaps, precision, retention.","description":"Not built yet.","parameters":[],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/V2SeriesContract"},"meta":{"$ref":"#/components/schemas/V2Meta"}},"required":["data","meta"]},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/v2/series/perp.mark.candles.5m (recorded 2026-11-17)","value":{"data":{"id":"perp.mark.candles.5m","status":"not_served","specification":"data/index.html#series-perp.mark.candles.5m","contract":{"id":{"text":"`perp.index.candles.5m`, `perp.mark.candles.5m` and\n`perp.open_interest.candles.5m`.","value":"perp.mark.candles.5m"},"keyed_by":{"text":"venue market (perpetual).","subject":"venue_market","key":["venue","exchange","kind","market"],"instance":[{"name":"venue","type":"string","unit":null,"nullable":false,"description":"Venue ID."},{"name":"exchange","type":"string","unit":null,"nullable":true,"description":"The venue's product family; null where the catalogue has none."},{"name":"kind","type":"string","unit":null,"nullable":false,"description":"`spot` or `perpetual`."}]},"shape":{"text":"candle: `open`, `high`, `low`, `close`. Index price is in the\nmarket's quote currency; mark price as the venue quotes it (per contract);\nopen interest in base units.","type":"candle","fields":[{"name":"venue","type":"string","unit":null,"nullable":false,"description":"Venue ID."},{"name":"exchange","type":"string","unit":null,"nullable":true,"description":"The venue's product family; null where the catalogue has none."},{"name":"kind","type":"string","unit":null,"nullable":false,"description":"`spot` or `perpetual`."}]},"semantics":{"text":"the venue's own index price, mark price and open interest\nover each 5-minute interval (UTC; `time` is the interval start), from the\nvenue's own candles for that measure or its published archive. The\nsource per venue and measure is the `source` column of the raw\n`perp_candles` dataset. An\ninstance's source can only change by becoming a new series.","time":"interval_start"},"kind":{"text":"source history (venue).","value":"source_history_or_live_feed"},"resolution_and_lag":{"text":"5m; served within about an hour.","interval":"5m"},"coverage":{"text":"backfilled as far as the venue or its archive keeps them.","start_origin":"per_instance"},"gaps":{"text":"an interval with no venue candle is absent."},"precision":{"text":"float.","value":"float"},"retention":{"text":"forever.","days":null},"corrections":{"text":"a remap and recollection."},"built_from":{"text":"perpetual candles.","datasets":["perp_candles"]},"public":{"text":"not yet assessed.","value":"not_assessed"}},"serving":{"filters":[{"name":"assets","field":"asset","list":true},{"name":"venues","field":"venue","list":true},{"name":"exchange","field":"exchange","list":false}],"order":{"data":["time","venue","exchange","kind","market"],"latest":["venue","exchange","kind","market"],"instances":["venue","exchange","kind","market"]},"routes":{"contract":"/v2/series/perp.mark.candles.5m","instances":"/v2/series/perp.mark.candles.5m/instances","data":"/v2/series/perp.mark.candles.5m/data","latest":"/v2/series/perp.mark.candles.5m/latest"},"notes":["Not built yet…"]}},"meta":{"as_of":null,"publication":null,"catalogue":null}}}}}}},"304":{"description":"Not modified: `If-None-Match` matched the publication’s `ETag`."},"default":{"$ref":"#/components/responses/V2Error"}}}},"/v2/series/perp.mark.candles.5m/instances":{"get":{"tags":["series perp.mark.candles.5m"],"security":[{"userKey":["market:read"]}],"operationId":"v2_perp.mark.candles.5m_instances","summary":"`perp.mark.candles.5m` instances with served records and their coverage, in key order (venue, exchange, kind, market).","description":"Not built yet.","parameters":[{"name":"assets","in":"query","required":false,"description":"Instances whose `asset` is one of these (comma-separated).","schema":{"type":"array","items":{"type":"string","maxLength":128},"maxItems":100},"style":"form","explode":false},{"name":"venues","in":"query","required":false,"description":"Instances whose `venue` is one of these (comma-separated).","schema":{"type":"array","items":{"type":"string","maxLength":128},"maxItems":100},"style":"form","explode":false},{"name":"exchange","in":"query","required":false,"description":"Instances whose `exchange` is this.","schema":{"type":"string","maxLength":128}},{"name":"kind","in":"query","required":false,"description":"Instances whose `kind` is this.","schema":{"type":"string","maxLength":128}},{"name":"market","in":"query","required":false,"description":"Instances whose `market` is this.","schema":{"type":"string","maxLength":128}},{"name":"limit","in":"query","required":false,"description":"Records per page, 1 to 10000.","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1000}},{"name":"cursor","in":"query","required":false,"description":"Opaque: the previous page's `meta.cursor.next`, bound to the same filters and range.","schema":{"type":"string"}}],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/V2RecordsEnvelope"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PerpMarkCandles5mInstance"}}}}]}}}},"304":{"description":"Not modified: `If-None-Match` matched the publication’s `ETag`."},"default":{"$ref":"#/components/responses/V2Error"}}}},"/v2/series/perp.mark.candles.5m/data":{"get":{"tags":["series perp.mark.candles.5m"],"security":[{"userKey":["market:read"]}],"operationId":"v2_perp.mark.candles.5m_data","summary":"`perp.mark.candles.5m` records with `from <= time < to`, in (time, venue, exchange, kind, market) order.","description":"Not built yet.","parameters":[{"name":"assets","in":"query","required":false,"description":"Instances whose `asset` is one of these (comma-separated).","schema":{"type":"array","items":{"type":"string","maxLength":128},"maxItems":100},"style":"form","explode":false},{"name":"venues","in":"query","required":false,"description":"Instances whose `venue` is one of these (comma-separated).","schema":{"type":"array","items":{"type":"string","maxLength":128},"maxItems":100},"style":"form","explode":false},{"name":"exchange","in":"query","required":false,"description":"Instances whose `exchange` is this.","schema":{"type":"string","maxLength":128}},{"name":"kind","in":"query","required":false,"description":"Instances whose `kind` is this.","schema":{"type":"string","maxLength":128}},{"name":"market","in":"query","required":false,"description":"Instances whose `market` is this.","schema":{"type":"string","maxLength":128}},{"name":"from","in":"query","required":true,"description":"Inclusive start: a date (its 00:00Z) or an RFC 3339 instant with a zone (`Z` or `±HH:MM`).","schema":{"type":"string","format":"date-time"}},{"name":"to","in":"query","required":false,"description":"Exclusive end, a date or an RFC 3339 instant; after `from`. Defaults to now.","schema":{"type":"string","format":"date-time"}},{"name":"limit","in":"query","required":false,"description":"Records per page, 1 to 10000.","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1000}},{"name":"cursor","in":"query","required":false,"description":"Opaque: the previous page's `meta.cursor.next`, bound to the same filters and range.","schema":{"type":"string"}}],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/V2RecordsEnvelope"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PerpMarkCandles5mRecord"}}}}]}}}},"304":{"description":"Not modified: `If-None-Match` matched the publication’s `ETag`."},"default":{"$ref":"#/components/responses/V2Error"}}}},"/v2/series/perp.mark.candles.5m/latest":{"get":{"tags":["series perp.mark.candles.5m"],"security":[{"userKey":["market:read"]}],"operationId":"v2_perp.mark.candles.5m_latest","summary":"Each matching `perp.mark.candles.5m` instance's most recent record.","description":"Not built yet.","parameters":[{"name":"assets","in":"query","required":false,"description":"Instances whose `asset` is one of these (comma-separated).","schema":{"type":"array","items":{"type":"string","maxLength":128},"maxItems":100},"style":"form","explode":false},{"name":"venues","in":"query","required":false,"description":"Instances whose `venue` is one of these (comma-separated).","schema":{"type":"array","items":{"type":"string","maxLength":128},"maxItems":100},"style":"form","explode":false},{"name":"exchange","in":"query","required":false,"description":"Instances whose `exchange` is this.","schema":{"type":"string","maxLength":128}},{"name":"kind","in":"query","required":false,"description":"Instances whose `kind` is this.","schema":{"type":"string","maxLength":128}},{"name":"market","in":"query","required":false,"description":"Instances whose `market` is this.","schema":{"type":"string","maxLength":128}},{"name":"limit","in":"query","required":false,"description":"Records per page, 1 to 10000.","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1000}},{"name":"cursor","in":"query","required":false,"description":"Opaque: the previous page's `meta.cursor.next`, bound to the same filters and range.","schema":{"type":"string"}}],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/V2RecordsEnvelope"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PerpMarkCandles5mRecord"}}}}]}}}},"304":{"description":"Not modified: `If-None-Match` matched the publication’s `ETag`."},"default":{"$ref":"#/components/responses/V2Error"}}}},"/v2/series/perp.open_interest.candles.5m":{"get":{"tags":["series perp.open_interest.candles.5m"],"security":[{"userKey":["market:read"]}],"operationId":"v2_perp.open_interest.candles.5m_contract","summary":"The `perp.open_interest.candles.5m` contract: what each field means, coverage, gaps, precision, retention.","description":"Not built yet.","parameters":[],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/V2SeriesContract"},"meta":{"$ref":"#/components/schemas/V2Meta"}},"required":["data","meta"]},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/v2/series/perp.open_interest.candles.5m (recorded 2026-11-17)","value":{"data":{"id":"perp.open_interest.candles.5m","status":"not_served","specification":"data/index.html#series-perp.open_interest.candles.5m","contract":{"id":{"text":"`perp.index.candles.5m`, `perp.mark.candles.5m` and\n`perp.open_interest.candles.5m`.","value":"perp.open_interest.candles.5m"},"keyed_by":{"text":"venue market (perpetual).","subject":"venue_market","key":["venue","exchange","kind","market"],"instance":[{"name":"venue","type":"string","unit":null,"nullable":false,"description":"Venue ID."},{"name":"exchange","type":"string","unit":null,"nullable":true,"description":"The venue's product family; null where the catalogue has none."},{"name":"kind","type":"string","unit":null,"nullable":false,"description":"`spot` or `perpetual`."}]},"shape":{"text":"candle: `open`, `high`, `low`, `close`. Index price is in the\nmarket's quote currency; mark price as the venue quotes it (per contract);\nopen interest in base units.","type":"candle","fields":[{"name":"venue","type":"string","unit":null,"nullable":false,"description":"Venue ID."},{"name":"exchange","type":"string","unit":null,"nullable":true,"description":"The venue's product family; null where the catalogue has none."},{"name":"kind","type":"string","unit":null,"nullable":false,"description":"`spot` or `perpetual`."}]},"semantics":{"text":"the venue's own index price, mark price and open interest\nover each 5-minute interval (UTC; `time` is the interval start), from the\nvenue's own candles for that measure or its published archive. The\nsource per venue and measure is the `source` column of the raw\n`perp_candles` dataset. An\ninstance's source can only change by becoming a new series.","time":"interval_start"},"kind":{"text":"source history (venue).","value":"source_history_or_live_feed"},"resolution_and_lag":{"text":"5m; served within about an hour.","interval":"5m"},"coverage":{"text":"backfilled as far as the venue or its archive keeps them.","start_origin":"per_instance"},"gaps":{"text":"an interval with no venue candle is absent."},"precision":{"text":"float.","value":"float"},"retention":{"text":"forever.","days":null},"corrections":{"text":"a remap and recollection."},"built_from":{"text":"perpetual candles.","datasets":["perp_candles"]},"public":{"text":"not yet assessed.","value":"not_assessed"}},"serving":{"filters":[{"name":"assets","field":"asset","list":true},{"name":"venues","field":"venue","list":true},{"name":"exchange","field":"exchange","list":false}],"order":{"data":["time","venue","exchange","kind","market"],"latest":["venue","exchange","kind","market"],"instances":["venue","exchange","kind","market"]},"routes":{"contract":"/v2/series/perp.open_interest.candles.5m","instances":"/v2/series/perp.open_interest.candles.5m/instances","data":"/v2/series/perp.open_interest.candles.5m/data","latest":"/v2/series/perp.open_interest.candles.5m/latest"},"notes":["Not built yet…"]}},"meta":{"as_of":null,"publication":null,"catalogue":null}}}}}}},"304":{"description":"Not modified: `If-None-Match` matched the publication’s `ETag`."},"default":{"$ref":"#/components/responses/V2Error"}}}},"/v2/series/perp.open_interest.candles.5m/instances":{"get":{"tags":["series perp.open_interest.candles.5m"],"security":[{"userKey":["market:read"]}],"operationId":"v2_perp.open_interest.candles.5m_instances","summary":"`perp.open_interest.candles.5m` instances with served records and their coverage, in key order (venue, exchange, kind, market).","description":"Not built yet.","parameters":[{"name":"assets","in":"query","required":false,"description":"Instances whose `asset` is one of these (comma-separated).","schema":{"type":"array","items":{"type":"string","maxLength":128},"maxItems":100},"style":"form","explode":false},{"name":"venues","in":"query","required":false,"description":"Instances whose `venue` is one of these (comma-separated).","schema":{"type":"array","items":{"type":"string","maxLength":128},"maxItems":100},"style":"form","explode":false},{"name":"exchange","in":"query","required":false,"description":"Instances whose `exchange` is this.","schema":{"type":"string","maxLength":128}},{"name":"kind","in":"query","required":false,"description":"Instances whose `kind` is this.","schema":{"type":"string","maxLength":128}},{"name":"market","in":"query","required":false,"description":"Instances whose `market` is this.","schema":{"type":"string","maxLength":128}},{"name":"limit","in":"query","required":false,"description":"Records per page, 1 to 10000.","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1000}},{"name":"cursor","in":"query","required":false,"description":"Opaque: the previous page's `meta.cursor.next`, bound to the same filters and range.","schema":{"type":"string"}}],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/V2RecordsEnvelope"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PerpOpenInterestCandles5mInstance"}}}}]}}}},"304":{"description":"Not modified: `If-None-Match` matched the publication’s `ETag`."},"default":{"$ref":"#/components/responses/V2Error"}}}},"/v2/series/perp.open_interest.candles.5m/data":{"get":{"tags":["series perp.open_interest.candles.5m"],"security":[{"userKey":["market:read"]}],"operationId":"v2_perp.open_interest.candles.5m_data","summary":"`perp.open_interest.candles.5m` records with `from <= time < to`, in (time, venue, exchange, kind, market) order.","description":"Not built yet.","parameters":[{"name":"assets","in":"query","required":false,"description":"Instances whose `asset` is one of these (comma-separated).","schema":{"type":"array","items":{"type":"string","maxLength":128},"maxItems":100},"style":"form","explode":false},{"name":"venues","in":"query","required":false,"description":"Instances whose `venue` is one of these (comma-separated).","schema":{"type":"array","items":{"type":"string","maxLength":128},"maxItems":100},"style":"form","explode":false},{"name":"exchange","in":"query","required":false,"description":"Instances whose `exchange` is this.","schema":{"type":"string","maxLength":128}},{"name":"kind","in":"query","required":false,"description":"Instances whose `kind` is this.","schema":{"type":"string","maxLength":128}},{"name":"market","in":"query","required":false,"description":"Instances whose `market` is this.","schema":{"type":"string","maxLength":128}},{"name":"from","in":"query","required":true,"description":"Inclusive start: a date (its 00:00Z) or an RFC 3339 instant with a zone (`Z` or `±HH:MM`).","schema":{"type":"string","format":"date-time"}},{"name":"to","in":"query","required":false,"description":"Exclusive end, a date or an RFC 3339 instant; after `from`. Defaults to now.","schema":{"type":"string","format":"date-time"}},{"name":"limit","in":"query","required":false,"description":"Records per page, 1 to 10000.","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1000}},{"name":"cursor","in":"query","required":false,"description":"Opaque: the previous page's `meta.cursor.next`, bound to the same filters and range.","schema":{"type":"string"}}],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/V2RecordsEnvelope"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PerpOpenInterestCandles5mRecord"}}}}]}}}},"304":{"description":"Not modified: `If-None-Match` matched the publication’s `ETag`."},"default":{"$ref":"#/components/responses/V2Error"}}}},"/v2/series/perp.open_interest.candles.5m/latest":{"get":{"tags":["series perp.open_interest.candles.5m"],"security":[{"userKey":["market:read"]}],"operationId":"v2_perp.open_interest.candles.5m_latest","summary":"Each matching `perp.open_interest.candles.5m` instance's most recent record.","description":"Not built yet.","parameters":[{"name":"assets","in":"query","required":false,"description":"Instances whose `asset` is one of these (comma-separated).","schema":{"type":"array","items":{"type":"string","maxLength":128},"maxItems":100},"style":"form","explode":false},{"name":"venues","in":"query","required":false,"description":"Instances whose `venue` is one of these (comma-separated).","schema":{"type":"array","items":{"type":"string","maxLength":128},"maxItems":100},"style":"form","explode":false},{"name":"exchange","in":"query","required":false,"description":"Instances whose `exchange` is this.","schema":{"type":"string","maxLength":128}},{"name":"kind","in":"query","required":false,"description":"Instances whose `kind` is this.","schema":{"type":"string","maxLength":128}},{"name":"market","in":"query","required":false,"description":"Instances whose `market` is this.","schema":{"type":"string","maxLength":128}},{"name":"limit","in":"query","required":false,"description":"Records per page, 1 to 10000.","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1000}},{"name":"cursor","in":"query","required":false,"description":"Opaque: the previous page's `meta.cursor.next`, bound to the same filters and range.","schema":{"type":"string"}}],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/V2RecordsEnvelope"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PerpOpenInterestCandles5mRecord"}}}}]}}}},"304":{"description":"Not modified: `If-None-Match` matched the publication’s `ETag`."},"default":{"$ref":"#/components/responses/V2Error"}}}},"/v2/snapshots":{"get":{"operationId":"v2_snapshots","summary":"The snapshots available to the caller.","tags":["v2 snapshots"],"description":"Lists only what the caller’s grants admit. Takes no parameters: any parameter is `400 bad_request` naming it, as on every `/v2` route.","parameters":[],"security":[{"userKey":["market:read"]}],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/V2SnapshotEntry"}},"meta":{"$ref":"#/components/schemas/V2Meta"}},"required":["data","meta"]},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/v2/snapshots (recorded 2026-11-17)","value":{"data":[{"id":"market.ticker","status":"served","public":"not_assessed","contract":"/v2/snapshots/market.ticker"},{"id":"perp.funding.next","status":"served","public":"not_assessed","contract":"/v2/snapshots/perp.funding.next"},{"id":"asset.price.reference","status":"served","public":"not_assessed","contract":"/v2/snapshots/asset.price.reference"}],"meta":{"as_of":null,"publication":null,"catalogue":null}}}}}}},"304":{"description":"Not modified: `If-None-Match` matched the publication’s `ETag`."},"default":{"$ref":"#/components/responses/V2Error"}}}},"/v2/snapshots/market.ticker":{"get":{"tags":["snapshot market.ticker"],"security":[{"userKey":["market:read"]}],"operationId":"v2_market.ticker_contract","summary":"The `market.ticker` contract.","description":"A venue market that the latest successful collection no longer lists is removed.","parameters":[],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/V2SnapshotContract"},"meta":{"$ref":"#/components/schemas/V2Meta"}},"required":["data","meta"]},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/v2/snapshots/market.ticker (recorded 2026-11-17)","value":{"data":{"id":"market.ticker","status":"served","specification":"data/index.html#snapshot-market.ticker","contract":{"id":{"text":"`market.ticker`","value":"market.ticker"},"keyed_by":{"text":"venue market, spot or perpetual.","key":["venue","exchange","kind","market"],"descriptors":[{"name":"asset","type":"string","unit":null,"nullable":false,"description":"Base asset, catalogue ID."},{"name":"quote","type":"string","unit":null,"nullable":true,"description":"Quote asset, catalogue ID; null while unmapped."},{"name":"settlement","type":"string","unit":null,"nullable":true,"description":"Settlement asset, catalogue ID; null while unmapped."}]},"fields":{"text":"`last` (last trade price), `bid` and `ask` (best prices), `bid_size`\nand `ask_size` (base units at the best prices), `volume_24h` (base\nunits), all in the market's quote where they are prices.","fields":[{"name":"venue","type":"string","unit":null,"nullable":false,"description":"Venue ID."},{"name":"exchange","type":"string","unit":null,"nullable":true,"description":"The venue's product family."},{"name":"kind","type":"string","unit":null,"nullable":false,"description":"`spot` or `perpetual`."}]},"updated":{"text":"every 5 minutes."},"built_from":{"text":"tickers."},"public":{"text":"not yet assessed.","value":"not_assessed"}},"serving":{"filters":[{"name":"assets","field":"asset","list":true},{"name":"venues","field":"venue","list":true},{"name":"exchange","field":"exchange","list":false}],"order":{"data":["venue","exchange","kind","market"]},"routes":{"contract":"/v2/snapshots/market.ticker","data":"/v2/snapshots/market.ticker/data"},"notes":["A venue market that the latest successful collection no longer lists is removed."]}},"meta":{"as_of":null,"publication":null,"catalogue":null}}}}}}},"304":{"description":"Not modified: `If-None-Match` matched the publication’s `ETag`."},"default":{"$ref":"#/components/responses/V2Error"}}}},"/v2/snapshots/market.ticker/data":{"get":{"tags":["snapshot market.ticker"],"security":[{"userKey":["market:read"]}],"operationId":"v2_market.ticker_data","summary":"The current `market.ticker` records, in key order (venue, exchange, kind, market).","description":"A venue market that the latest successful collection no longer lists is removed.","parameters":[{"name":"assets","in":"query","required":false,"description":"Instances whose `asset` is one of these (comma-separated).","schema":{"type":"array","items":{"type":"string","maxLength":128},"maxItems":100},"style":"form","explode":false},{"name":"venues","in":"query","required":false,"description":"Instances whose `venue` is one of these (comma-separated).","schema":{"type":"array","items":{"type":"string","maxLength":128},"maxItems":100},"style":"form","explode":false},{"name":"exchange","in":"query","required":false,"description":"Instances whose `exchange` is this.","schema":{"type":"string","maxLength":128}},{"name":"kind","in":"query","required":false,"description":"Instances whose `kind` is this.","schema":{"type":"string","maxLength":128}},{"name":"market","in":"query","required":false,"description":"Instances whose `market` is this.","schema":{"type":"string","maxLength":128}},{"name":"limit","in":"query","required":false,"description":"Records per page, 1 to 10000.","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1000}},{"name":"cursor","in":"query","required":false,"description":"Opaque: the previous page's `meta.cursor.next`, bound to the same filters and range.","schema":{"type":"string"}}],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/V2RecordsEnvelope"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/MarketTickerSnapshot"}}}}]},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/v2/snapshots/market.ticker/data?assets=bitcoin&limit=3 (recorded 2026-11-17)","value":{"data":[{"venue":"aster","exchange":"perp","kind":"perpetual","market":"BTCU","last":"80567.7","bid":"80524.3","ask":"80625.6","bid_size":"0.083","ask_size":"0.459","volume_24h":"46.386","observed_at":"2026-10-29T18:45:00.135Z"},{"venue":"aster","exchange":"perp","kind":"perpetual","market":"BTCUSD1","last":"80647","bid":"80662.1","ask":"80672.4","bid_size":"0.108","ask_size":"0.412","volume_24h":"36.078","observed_at":"2026-10-29T18:45:00.135Z"},{"venue":"aster","exchange":"perp","kind":"perpetual","market":"BTCUSDC","last":"81428.3","bid":"80592.3","ask":"80605.2","bid_size":"0.434","ask_size":"0.758","volume_24h":"0.641","observed_at":"2026-10-29T18:45:00.135Z"}],"meta":{"as_of":"2026-10-29T18:45:00.135Z","publication":{"id":"20261029T221144Z-9ab943acb7","published_at":"2026-10-29T22:11:44.627Z"},"catalogue":{"applied_at":"2026-10-29T22:04:39.051Z","release":null},"page":{"limit":3,"has_more":true,"next_cursor":"eyJ2IjoxLCJiIjoicjVsYXM3bGg5eSIsInAiOiIyMDI2MTAyOVQyMjExNDRaLTlhYjk0M2FjYjciLCJ0IjpudWxsLCJrIjpbImFzdGVyIiwicGVycCIsInBlcnBldHVhbCIsIkJUQ1VTREMiXX0"}}}}}}}},"304":{"description":"Not modified: `If-None-Match` matched the publication’s `ETag`."},"default":{"$ref":"#/components/responses/V2Error"}}}},"/v2/snapshots/perp.funding.next":{"get":{"tags":["snapshot perp.funding.next"],"security":[{"userKey":["market:read"]}],"operationId":"v2_perp.funding.next_contract","summary":"The `perp.funding.next` contract.","description":"From the perpetual-stats sample every 5 minutes; `next_funding_at` and `interval_s` are as the venue reports them. Index, mark and open interest are not part of this snapshot: they become the perpetual candle series.","parameters":[],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/V2SnapshotContract"},"meta":{"$ref":"#/components/schemas/V2Meta"}},"required":["data","meta"]},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/v2/snapshots/perp.funding.next (recorded 2026-11-17)","value":{"data":{"id":"perp.funding.next","status":"served","specification":"data/index.html#snapshot-perp.funding.next","contract":{"id":{"text":"`perp.funding.next`","value":"perp.funding.next"},"keyed_by":{"text":"venue market (perpetual).","key":["venue","exchange","kind","market"],"descriptors":[{"name":"asset","type":"string","unit":null,"nullable":false,"description":"Base asset, catalogue ID."},{"name":"quote","type":"string","unit":null,"nullable":true,"description":"Quote asset, catalogue ID; null while unmapped."},{"name":"settlement","type":"string","unit":null,"nullable":true,"description":"Settlement asset, catalogue ID; null while unmapped."}]},"fields":{"text":"`rate` (the rate the venue publishes for the next settlement,\nper settlement period; on most venues an estimate that moves until\nsettlement), `interval_s`, `apr` (`rate × 365 days /\ninterval_s`, not compounded), `next_funding_at`.","fields":[{"name":"venue","type":"string","unit":null,"nullable":false,"description":"Venue ID."},{"name":"exchange","type":"string","unit":null,"nullable":true,"description":"The venue's product family."},{"name":"kind","type":"string","unit":null,"nullable":false,"description":"`spot` or `perpetual`."}]},"updated":{"text":"every 5 minutes."},"built_from":{"text":"perpetual stats."},"public":{"text":"not yet assessed.","value":"not_assessed"}},"serving":{"filters":[{"name":"assets","field":"asset","list":true},{"name":"venues","field":"venue","list":true},{"name":"exchange","field":"exchange","list":false}],"order":{"data":["venue","exchange","kind","market"]},"routes":{"contract":"/v2/snapshots/perp.funding.next","data":"/v2/snapshots/perp.funding.next/data"},"notes":["From the perpetual-stats sample every 5 minutes; `next_funding_at` and `interval_s` are as the venue reports them.","Index, mark and open interest are not part of this snapshot: they become the perpetual candle series…"]}},"meta":{"as_of":null,"publication":null,"catalogue":null}}}}}}},"304":{"description":"Not modified: `If-None-Match` matched the publication’s `ETag`."},"default":{"$ref":"#/components/responses/V2Error"}}}},"/v2/snapshots/perp.funding.next/data":{"get":{"tags":["snapshot perp.funding.next"],"security":[{"userKey":["market:read"]}],"operationId":"v2_perp.funding.next_data","summary":"The current `perp.funding.next` records, in key order (venue, exchange, kind, market).","description":"From the perpetual-stats sample every 5 minutes; `next_funding_at` and `interval_s` are as the venue reports them. Index, mark and open interest are not part of this snapshot: they become the perpetual candle series.","parameters":[{"name":"assets","in":"query","required":false,"description":"Instances whose `asset` is one of these (comma-separated).","schema":{"type":"array","items":{"type":"string","maxLength":128},"maxItems":100},"style":"form","explode":false},{"name":"venues","in":"query","required":false,"description":"Instances whose `venue` is one of these (comma-separated).","schema":{"type":"array","items":{"type":"string","maxLength":128},"maxItems":100},"style":"form","explode":false},{"name":"exchange","in":"query","required":false,"description":"Instances whose `exchange` is this.","schema":{"type":"string","maxLength":128}},{"name":"kind","in":"query","required":false,"description":"Instances whose `kind` is this.","schema":{"type":"string","maxLength":128}},{"name":"market","in":"query","required":false,"description":"Instances whose `market` is this.","schema":{"type":"string","maxLength":128}},{"name":"limit","in":"query","required":false,"description":"Records per page, 1 to 10000.","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1000}},{"name":"cursor","in":"query","required":false,"description":"Opaque: the previous page's `meta.cursor.next`, bound to the same filters and range.","schema":{"type":"string"}}],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/V2RecordsEnvelope"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PerpFundingNextSnapshot"}}}}]},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/v2/snapshots/perp.funding.next/data?assets=bitcoin&limit=3 (recorded 2026-11-17)","value":{"data":[{"venue":"aster","exchange":"perp","kind":"perpetual","market":"BTCU","rate":0.0001,"interval_s":28800,"apr":0.10950000000000001,"next_funding_at":"2026-10-30T00:00:00.000Z","observed_at":"2026-10-29T18:15:00.141Z"},{"venue":"aster","exchange":"perp","kind":"perpetual","market":"BTCUSD1","rate":0.0001,"interval_s":28800,"apr":0.10950000000000001,"next_funding_at":"2026-10-30T00:00:00.000Z","observed_at":"2026-10-29T18:15:00.141Z"},{"venue":"aster","exchange":"perp","kind":"perpetual","market":"BTCUSDC","rate":0.0001,"interval_s":28800,"apr":0.10950000000000001,"next_funding_at":"2026-10-30T00:00:00.000Z","observed_at":"2026-10-29T18:15:00.141Z"}],"meta":{"as_of":"2026-10-29T18:15:00.141Z","publication":{"id":"20261029T221145Z-37426a9553","published_at":"2026-10-29T22:11:45.512Z"},"catalogue":{"applied_at":"2026-10-29T22:04:39.051Z","release":null},"page":{"limit":3,"has_more":true,"next_cursor":"eyJ2IjoxLCJiIjoiMWM2OTZoMHp1azciLCJwIjoiMjAyNjEwMjlUMjIxMTQ1Wi0zNzQyNmE5NTUzIiwidCI6bnVsbCwiayI6WyJhc3RlciIsInBlcnAiLCJwZXJwZXR1YWwiLCJCVENVU0RDIl19"}}}}}}}},"304":{"description":"Not modified: `If-None-Match` matched the publication’s `ETag`."},"default":{"$ref":"#/components/responses/V2Error"}}}},"/v2/snapshots/asset.price.reference":{"get":{"tags":["snapshot asset.price.reference"],"security":[{"userKey":["market:read"]}],"operationId":"v2_asset.price.reference_contract","summary":"The `asset.price.reference` contract.","description":"Venues first: an asset with an eligible daily candle and an hourly candle closed in the last 3 hours takes that close; otherwise the aggregators’ own latest price. No pegged fallback is substituted. Latest prices have no removal sweep: an asset the aggregators stop reporting keeps its last record, visibly stale.","parameters":[],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/V2SnapshotContract"},"meta":{"$ref":"#/components/schemas/V2Meta"}},"required":["data","meta"]},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/v2/snapshots/asset.price.reference (recorded 2026-11-17)","value":{"data":{"id":"asset.price.reference","status":"served","specification":"data/index.html#snapshot-asset.price.reference","contract":{"id":{"text":"`asset.price.reference`","value":"asset.price.reference"},"keyed_by":{"text":"catalogue asset.","key":["asset"],"descriptors":[]},"fields":{"text":"`price` and `market_cap` in USD, and `price_24h_ago`: the\nlatest reference price from the aggregators, the intraday counterpart of\nthe daily series\n`asset.price.reference.1d`.","fields":[{"name":"asset","type":"string","unit":null,"nullable":false,"description":"Catalogue asset ID."},{"name":"price","type":"decimal","unit":"USD","nullable":true,"description":"Latest reference price: our latest hourly asset candle close where the asset has a venue price, else the aggregators’ latest."},{"name":"market_cap","type":"decimal","unit":"USD","nullable":true,"description":"Latest market capitalization, from the aggregators."}]},"updated":{"text":"every 2 hours."},"built_from":{"text":"latest prices."},"public":{"text":"not yet assessed.","value":"not_assessed"}},"serving":{"filters":[{"name":"assets","field":"asset","list":true}],"order":{"data":["asset"]},"routes":{"contract":"/v2/snapshots/asset.price.reference","data":"/v2/snapshots/asset.price.reference/data"},"notes":["Venues first: an asset with an eligible daily candle and an hourly candle closed in the last 3 hours takes that close; otherwise the aggregators’ own latest price. No pegged fallback is substituted.","Latest prices have no removal sweep: an asset the aggregators stop reporting keeps its last record, visibly stale."]}},"meta":{"as_of":null,"publication":null,"catalogue":null}}}}}}},"304":{"description":"Not modified: `If-None-Match` matched the publication’s `ETag`."},"default":{"$ref":"#/components/responses/V2Error"}}}},"/v2/snapshots/asset.price.reference/data":{"get":{"tags":["snapshot asset.price.reference"],"security":[{"userKey":["market:read"]}],"operationId":"v2_asset.price.reference_data","summary":"The current `asset.price.reference` records, in key order (asset).","description":"Venues first: an asset with an eligible daily candle and an hourly candle closed in the last 3 hours takes that close; otherwise the aggregators’ own latest price. No pegged fallback is substituted. Latest prices have no removal sweep: an asset the aggregators stop reporting keeps its last record, visibly stale.","parameters":[{"name":"assets","in":"query","required":false,"description":"Instances whose `asset` is one of these (comma-separated).","schema":{"type":"array","items":{"type":"string","maxLength":128},"maxItems":100},"style":"form","explode":false},{"name":"limit","in":"query","required":false,"description":"Records per page, 1 to 10000.","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1000}},{"name":"cursor","in":"query","required":false,"description":"Opaque: the previous page's `meta.cursor.next`, bound to the same filters and range.","schema":{"type":"string"}}],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/V2RecordsEnvelope"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AssetPriceReferenceSnapshot"}}}}]},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/v2/snapshots/asset.price.reference/data?assets=bitcoin&limit=3 (recorded 2026-11-17)","value":{"data":[{"asset":"bitcoin","price":"81415.2578430944","market_cap":"1637058978011","price_24h_ago":"80451.7374053683","source":"coingecko","observed_at":"2026-10-29T16:30:00.703Z"}],"meta":{"as_of":"2026-10-29T16:30:00.703Z","publication":{"id":"20261029T221145Z-fdb234934f","published_at":"2026-10-29T22:11:45.952Z"},"catalogue":{"applied_at":"2026-10-29T22:04:39.051Z","release":null},"page":{"limit":3,"has_more":false,"next_cursor":null}}}}}}}},"304":{"description":"Not modified: `If-None-Match` matched the publication’s `ETag`."},"default":{"$ref":"#/components/responses/V2Error"}}}},"/v2/snapshots/venue.earn":{"get":{"tags":["snapshot venue.earn"],"security":[{"userKey":["market:read"]}],"operationId":"v2_venue.earn_contract","summary":"The `venue.earn` contract.","description":"Public: `not_assessed`.","parameters":[],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/V2SnapshotContract"},"meta":{"$ref":"#/components/schemas/V2Meta"}},"required":["data","meta"]},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/v2/snapshots/venue.earn (recorded 2026-11-17)","value":{"data":{"id":"venue.earn","status":"served","specification":"data/index.html#snapshot-venue.earn","contract":{"id":{"text":"`venue.earn`","value":"venue.earn"},"keyed_by":{"text":"venue earn product.","key":["venue","product"],"descriptors":[{"name":"asset","type":"string","unit":null,"nullable":false,"description":"Deposited asset, catalogue ID."}]},"fields":{"text":"deposited asset and paid asset (catalogue IDs), `apr` (annual\nrate as the venue states it), `kinds` (the list of kinds the\nvenue tags the product with: flexible, fixed and others; empty when\nuntagged), minimum and maximum amount, lock duration, product page.","fields":[{"name":"venue","type":"string","unit":null,"nullable":false,"description":"Venue ID."},{"name":"product","type":"string","unit":null,"nullable":false,"description":"The venue's product ID."},{"name":"asset","type":"string","unit":null,"nullable":false,"description":"Deposited asset, catalogue ID."}]},"updated":{"text":"hourly."},"built_from":{"text":"earn products."},"public":{"text":"not yet assessed.","value":"not_assessed"}},"serving":{"filters":[{"name":"assets","field":"asset","list":true},{"name":"venue","field":"venue","list":false},{"name":"venues","field":"venue","list":true}],"order":{"data":["venue","product"]},"routes":{"contract":"/v2/snapshots/venue.earn","data":"/v2/snapshots/venue.earn/data"},"notes":[]}},"meta":{"as_of":null,"publication":null,"catalogue":null}}}}}}},"304":{"description":"Not modified: `If-None-Match` matched the publication’s `ETag`."},"default":{"$ref":"#/components/responses/V2Error"}}}},"/v2/snapshots/venue.earn/data":{"get":{"tags":["snapshot venue.earn"],"security":[{"userKey":["market:read"]}],"operationId":"v2_venue.earn_data","summary":"The current `venue.earn` records, in key order (venue, product).","description":"Public: `not_assessed`.","parameters":[{"name":"assets","in":"query","required":false,"description":"Instances whose `asset` is one of these (comma-separated).","schema":{"type":"array","items":{"type":"string","maxLength":128},"maxItems":100},"style":"form","explode":false},{"name":"venue","in":"query","required":false,"description":"Instances whose `venue` is this.","schema":{"type":"string","maxLength":128}},{"name":"venues","in":"query","required":false,"description":"Instances whose `venue` is one of these (comma-separated).","schema":{"type":"array","items":{"type":"string","maxLength":128},"maxItems":100},"style":"form","explode":false},{"name":"product","in":"query","required":false,"description":"Instances whose `product` is this.","schema":{"type":"string","maxLength":128}},{"name":"limit","in":"query","required":false,"description":"Records per page, 1 to 10000.","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1000}},{"name":"cursor","in":"query","required":false,"description":"Opaque: the previous page's `meta.cursor.next`, bound to the same filters and range.","schema":{"type":"string"}}],"responses":{"200":{"description":"The envelope: `data` and `meta`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/V2RecordsEnvelope"},{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/VenueEarnSnapshot"}}}}]},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/v2/snapshots/venue.earn/data?assets=bitcoin&limit=3 (recorded 2026-11-17)","value":{"data":[{"venue":"binance","product":"BTC001","asset":"bitcoin","paid_asset":null,"apr":0.00017451,"kinds":["flexible"],"min_amount":"0.0015","max_amount":null,"lock_seconds":null,"url":"https://www.binance.com/earn","observed_at":"2026-11-02T11:37:25.567Z"},{"venue":"bit2me","product":"bit2me:BTC:None:flexible:None:None","asset":"bitcoin","paid_asset":null,"apr":0.000099999917563314,"kinds":["flexible"],"min_amount":null,"max_amount":null,"lock_seconds":null,"url":"https://bit2me.com/suite/earn","observed_at":"2026-11-02T11:00:18.851Z"},{"venue":"bit2me","product":"bit2me:BTC:None:flexible:None:None:reward=B2M","asset":"bitcoin","paid_asset":"bit2me","apr":0.0001,"kinds":["flexible"],"min_amount":null,"max_amount":null,"lock_seconds":null,"url":"https://bit2me.com/suite/earn","observed_at":"2026-11-02T11:00:18.851Z"}],"meta":{"as_of":"2026-11-02T11:37:25.567Z","publication":{"id":"20261102T114004Z-ba8e89dce1","published_at":"2026-11-02T11:40:04.504Z"},"catalogue":{"applied_at":"2026-11-02T11:17:28.004Z","release":null},"page":{"limit":3,"has_more":true,"next_cursor":"eyJ2IjoxLCJiIjoiMXM4d3k0NzV0cnMiLCJwIjoiMjAyNjExMDJUMTE0MDA0Wi1iYThlODlkY2UxIiwidCI6bnVsbCwiayI6WyJiaXQybWUiLCJiaXQybWU6QlRDOk5vbmU6ZmxleGlibGU6Tm9uZTpOb25lOnJld2FyZD1CMk0iXX0"}}}}}}}},"304":{"description":"Not modified: `If-None-Match` matched the publication’s `ETag`."},"default":{"$ref":"#/components/responses/V2Error"}}}},"/me":{"get":{"operationId":"get_me","summary":"The key itself: its scopes, its source and expiry, and the owner’s plan now.","description":"The key itself: its scopes, its source and expiry, and the owner’s plan now.","tags":["me"],"parameters":[],"security":[{"userKey":[]}],"x-scope":"any","responses":{"200":{"description":"`{data, meta}`: the answer in the API’s names, every time an instant.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/KeyIntrospection"},"meta":{"type":"object","properties":{"as_of":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the data is current as of: its build or update time, else the answer’s."}},"required":["as_of"]}},"required":["data","meta"]},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/me (recorded 2026-11-17)","value":{"data":{"key":{"id":"438b13ce-e623-444a-8063-2690230e726f","prefix":"pnY7XvN2","label":"docs recorder…","scopes":["me:read","market:read"],"source":"manual","created_at":"2026-11-17T16:45:21.092Z","expires_at":"2026-12-17T16:45:21.092Z"},"plan":"ultra","owner":"<scrubbed>","internal":false},"meta":{"as_of":"2026-11-17T21:29:53.160Z"}}}}}}},"default":{"$ref":"#/components/responses/Error"}}}},"/me/accounts":{"get":{"operationId":"get_me_accounts","summary":"Your connected accounts and venues: names, labels and statuses, and the account each connection reads (its wallet address, account index or uid, or sub-account name);","description":"Your connected accounts and venues: names, labels and statuses, and the account each connection reads (its wallet address, account index or uid, or sub-account name); never key material.","tags":["me"],"parameters":[],"security":[{"userKey":["me:read"]}],"x-scope":"me:read","responses":{"200":{"description":"`{data, meta}`: the answer in the API’s names, every time an instant.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"properties":{"accounts":{"items":{"$ref":"#/components/schemas/AccountInfo"},"type":"array","title":"Accounts","description":"The user's accounts the collector has adopted, in configured order."},"venues":{"items":{"$ref":"#/components/schemas/VenueEntry"},"type":"array","title":"Venues","description":"Every enabled venue, in configured order, with or without accounts."},"warnings":{"items":{"$ref":"#/components/schemas/KeyWarning"},"type":"array","title":"Warnings","description":"The user's connections that need attention (expiring keys first)."},"default_profile":{"type":"string","title":"Default Profile","description":"The id of the profile the user opens by default."}},"required":["accounts","venues","warnings","default_profile"],"type":"object","title":"Meta"},"meta":{"type":"object","properties":{"as_of":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the data is current as of: its build or update time, else the answer’s."}},"required":["as_of"]}},"required":["data","meta"]},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/me/accounts (recorded 2026-11-17)","value":{"data":{"accounts":[],"venues":[{"id":"dydx","name":"dYdX","icon_url":"https://catalogue.tribulnation.com/icons/asset/dydx.svg","stage":"stable","venue_type":"dex","kinds":["perp"],"capabilities":["candles","candles_mid","depth","equity_history","funding_rates","stream","trades"],"docs":["https://docs.dydx.xyz/indexer-client/http"],"credentials":{"fields":[{"key":"address","label":"dYdX address","secret":false,"required":true,"help":"Your dYdX Chain address (dydx1...), shown in the dYdX app's account menu. Not the Ethereum address you connected with.","address":true,"multiline":false}],"not_collected":["mnemonic","private_key (signs trades)","full_node_grpc / full_node_rpc (operator infrastructure)"],"steps":["No key needed. Open dydx.trade, connect your wallet, open the account menu and copy your dYdX address (starts with dydx1).","Isolated-market positions live in child subaccounts (128, 256, ...) of parent 0 and are read with it."],"permissions_to_reject":["anything but a dydx1 bech32 address with a valid checksum","an address without subaccounts (never funded)","a mnemonic or private key: never collected, they sign trades"],"expiry":null,"docs":["https://docs.dydx.xyz/indexer-client/http"],"permissions_verifiable":true,"permissions_warning":null,"refused":null},"subaccounts":"included","paid":false,"wallet":false,"accounts":[],"status":"needs_key","review":{"last_report":null,"status":null,"findings":0,"failures_7d":0}},{"id":"hyperliquid","name":"Hyperliquid","icon_url":"https://catalogue.tribulnation.com/icons/asset/hyperliquid.svg","stage":"stable","venue_type":"dex","kinds":["perp","spot"],"capabilities":["cached_snapshot","candles","depth","equity_history","funding_rates","stream","trades"],"docs":["https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint","https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/rate-limits-and-user-limits"],"credentials":{"fields":[{"key":"address","label":"Account address","secret":false,"required":true,"help":"The 0x address of your Hyperliquid account (master or subaccount), as shown in the app's account menu. Not an API (agent) wallet address.","address":true,"multiline":false}],"not_collected":["private_key (signs trades)"],"steps":["No key needed. Open app.hyperliquid.xyz, connect your wallet and copy your account address (top-right account menu).","For a subaccount, copy the subaccount's address from Portfolio > Sub-Accounts.","Do not paste an API wallet (agent) address: it holds no balances and is rejected."],"permissions_to_reject":["an API (agent) wallet address: it signs trades for an account and holds no positions (`userRole` agent)","a vault address (`userRole` vault)","an address unknown to Hyperliquid (`userRole` missing)","a private key: never collected, it signs trades"],"expiry":null,"docs":["https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint"],"permissions_verifiable":true,"permissions_warning":null,"refused":null},"subaccounts":"separate","paid":false,"wallet":false,"accounts":[],"status":"needs_key","review":{"last_report":null,"status":null,"findings":0,"failures_7d":0}},{"id":"aster","name":"Aster","icon_url":"https://catalogue.tribulnation.com/icons/asset/aster.svg","stage":"stable","venue_type":"dex","kinds":["perp","spot"],"capabilities":["candles","depth","funding_rates","stream","tickers","trades"],"docs":["https://asterdex.github.io/aster-api-website/asterCode/endpoints/"],"credentials":{"fields":[{"key":"user","label":"Main wallet address","secret":false,"required":true,"help":"The EVM address (0x...) of the wallet you log in to Aster with.","address":true,"multiline":false},{"key":"signer","label":"API wallet private key","secret":true,"required":true,"help":"Private key (0x...) of a READ-ONLY API wallet (agent) authorized under Aster > API Management. Never your main wallet's key.","address":false,"multiline":false}],"not_collected":["the main wallet private key"],"steps":["Go to asterdex.com, connect the main wallet, open the account menu > API Management (API wallets, Pro API / V3).","Authorize a new API wallet (agent).","API restrictions: select only Read; turn off futures trading, spot trading and withdrawals.","Validity: set the maximum (365 days per a third-party guide); the tracker warns before it expires.","IP restrictions: leave empty.","Sign the approval with the main wallet, copy the API wallet private key (shown once) and paste it with the main wallet address.","Do not use V1 HMAC API keys: the SDK signs with V3 agents."],"permissions_to_reject":["canSpotTrade","canPerpTrade","canWithdraw"],"expiry":"Every agent carries an expiry timestamp (at most 365 days per a third-party guide).","docs":["https://asterdex.github.io/aster-api-website/asterCode/endpoints/","https://koinly.io/integrations/aster/"],"permissions_verifiable":true,"permissions_warning":null,"refused":null},"subaccounts":null,"paid":false,"wallet":false,"accounts":[],"status":"needs_key","review":{"last_report":null,"status":null,"findings":0,"failures_7d":0}}],"warnings":[],"default_profile":"all"},"meta":{"as_of":"2026-11-17T21:29:53.406Z"}}}}}}},"default":{"$ref":"#/components/responses/Error"}}}},"/me/profiles":{"get":{"operationId":"get_me_profiles","summary":"Your portfolio profiles.","description":"Your portfolio profiles.","tags":["me"],"parameters":[],"security":[{"userKey":["me:read"]}],"x-scope":"me:read","responses":{"200":{"description":"`{data, meta}`: the answer in the API’s names, every time an instant.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"items":{"$ref":"#/components/schemas/ProfileInfo"},"type":"array","title":"Response List Profiles Api Profiles Get"},"meta":{"type":"object","properties":{"as_of":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the data is current as of: its build or update time, else the answer’s."}},"required":["as_of"]}},"required":["data","meta"]},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/me/profiles (recorded 2026-11-17)","value":{"data":[{"id":"all","name":"All accounts","description":"Every account with credentials","include":[],"exclude":[],"builtin":true,"default":true,"created_at":null,"updated_at":null,"base_currency":null,"value_collateral":false},{"id":"evm","name":"EVM wallet","description":"Every EVM wallet exchange","include":["evm-9b1c90f93a:*"],"exclude":[],"builtin":false,"default":false,"created_at":null,"updated_at":null,"base_currency":null,"value_collateral":false},{"id":"perps","name":"Perpetuals","description":"Perpetual exchanges only (no spot holdings)","include":["kind:perp"],"exclude":[],"builtin":false,"default":false,"created_at":null,"updated_at":null,"base_currency":null,"value_collateral":false}],"meta":{"as_of":"2026-11-17T21:29:53.547Z"}}}}}}},"default":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"post_me_profiles","summary":"Create a portfolio profile (needs `me:profiles`).","description":"Create a portfolio profile (needs `me:profiles`). Body: `name` (required), `description`, `include` and `exclude` (rules, as on the Portfolio page), `base_currency` (a three-letter code, or null for your Settings currency), `value_collateral`. Its id is made from the name. Answers `201` with the profile.","tags":["me"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"The profile’s name (not empty)."},"description":{"type":"string","description":"What the profile is for."},"include":{"type":"array","items":{"type":"string"},"description":"What it counts, as the Portfolio page’s rules: `<account>:*` (every market of an account), `<account>:<exchange>[:<market>]`, `asset:<id>`, `kind:perp` or `kind:spot` (empty: every account)."},"exclude":{"type":"array","items":{"type":"string"},"description":"What it leaves out, the same rules."},"base_currency":{"type":["string","null"],"description":"The currency its figures are shown in, a three-letter code (`eur`); null: the reader’s Settings currency."},"value_collateral":{"type":["boolean","null"],"description":"Whether perp accounts’ collateral coins are valued as their rates move; null or false: off."}},"additionalProperties":false,"required":["name"]}}}},"security":[{"userKey":["me:profiles"]}],"x-scope":"me:profiles","responses":{"201":{"description":"`{data, meta}`: the profile, as a row of `GET /me/profiles`.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ProfileInfo"},"meta":{"type":"object","properties":{"as_of":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the data is current as of: its build or update time, else the answer’s."}},"required":["as_of"]}},"required":["data","meta"]}}}},"default":{"$ref":"#/components/responses/Error"}}}},"/me/portfolio":{"get":{"operationId":"get_me_portfolio","summary":"Your portfolio over a window: value, P&L and exposure history, with every position, for a profile (the default one unless `profile` is given).","description":"Your portfolio over a window: value, P&L and exposure history, with every position, for a profile (the default one unless `profile` is given). When the tracker is slow, the last answer, flagged by `X-Portfolio-Last-Answer`.","tags":["me"],"parameters":[{"name":"from","in":"query","required":false,"description":"Window start, inclusive: a date (`2026-11-10`, its 00:00 UTC) or an instant with a zone (default: 24 hours before `to`).","schema":{"type":"string","format":"date-time"}},{"name":"to","in":"query","required":false,"description":"Window end, exclusive: a date or an instant with a zone (default: now).","schema":{"type":"string","format":"date-time"}},{"name":"profile","in":"query","required":false,"description":"A profile id from `/me/profiles` (default: your default profile).","schema":{"type":"string"}},{"name":"include","in":"query","required":false,"description":"Ad-hoc rules replacing the profile’s, comma-separated; empty: none.","schema":{"type":"string"}},{"name":"exclude","in":"query","required":false,"description":"Ad-hoc exclusions replacing the profile’s, comma-separated; empty: none.","schema":{"type":"string"}}],"security":[{"userKey":["me:read"]}],"x-scope":"me:read","responses":{"200":{"description":"`{data, meta}`: the answer in the API’s names, every time an instant.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"properties":{"interval":{"type":"string","enum":["1m","5m","15m","1h","4h","1d"],"title":"Interval","description":"Spacing of the `series` grid, picked from the window's length."},"positions_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Oldest position snapshot of the selected exchanges (collector lag)."},"selection":{"$ref":"#/components/schemas/Selection","description":"The profile and the rules this answer covers."},"exchanges":{"items":{"$ref":"#/components/schemas/ExchangeMeta"},"type":"array","title":"Exchanges","description":"Exchanges with data in the selection, in configured order."},"accounts":{"items":{"$ref":"#/components/schemas/AccountEquity"},"type":"array","title":"Accounts","description":"Equity of the accounts with a selected bucket, over those buckets (the totals)."},"account_equity":{"items":{"$ref":"#/components/schemas/AccountEquity"},"type":"array","title":"Account Equity","description":"Current equity of every account in the portfolio over all its buckets, whatever the profile (the Accounts tab)."},"excluded_accounts":{"items":{"type":"string"},"type":"array","title":"Excluded Accounts","description":"Enabled accounts without credentials (not in the portfolio)."},"equity_history":{"additionalProperties":{"items":{"type":"object","properties":{"time":{"type":"string","format":"date-time"},"value":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"}},"required":["time","value"]},"type":"array"},"type":"object","title":"Equity History","description":"Exchange (bucket) -> equity points `(t, equity)` as the grid sees them: the bucket's first point in the window and its last at or before each grid point."},"summary":{"$ref":"#/components/schemas/PortfolioSummary","description":"Window totals over the selection: P&L and its parts, volume, exposure, carry, equity."},"by_exchange":{"items":{"$ref":"#/components/schemas/ExchangeSummary"},"type":"array","title":"By Exchange","description":"The same totals per exchange, with its current exposure."},"series":{"$ref":"#/components/schemas/PortfolioSeries","description":"P&L, equity and exposure over the window, one point per `interval`."},"delta_by_asset":{"items":{"$ref":"#/components/schemas/DeltaSeries"},"type":"array","title":"Delta By Asset","description":"Net delta of the largest assets over the window, the rest as \"Other\"."},"assets":{"items":{"$ref":"#/components/schemas/AssetRow"},"type":"array","title":"Assets","description":"One row per asset held or traded: position per exchange, P&L parts, funding, volume and the legs behind it."},"asset_options":{"items":{"$ref":"#/components/schemas/AssetOption"},"type":"array","title":"Asset Options","description":"Assets with activity in the window on any exchange (what include and exclude rules can name)."},"fills":{"items":{"$ref":"#/components/schemas/FillRow"},"type":"array","title":"Fills","description":"The window's most recent fills, newest first (`/me/portfolio/fills` pages all of them)."},"transfers":{"items":{"$ref":"#/components/schemas/TransferRow"},"type":"array","title":"Transfers","description":"On-chain balance changes that are not trades (EVM wallets), newest first."},"asset_info":{"additionalProperties":{"$ref":"#/components/schemas/AssetInfo"},"type":"object","title":"Asset Info","description":"Display data (name, icon) of every asset in this response."},"prices_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Observation time of the USD rates used (LiveHub `rates`); null: none read."},"reference_prices":{"type":"object","additionalProperties":{"type":"string","format":"date-time"},"description":"Assets of this answer valued now at their reference price (quality `aggregator`) instead of a market rate, with when that price was observed: the views say \"reference price, as of HH:MM\"."},"venue_prices":{"additionalProperties":{"$ref":"#/components/schemas/VenuePrice"},"type":"object","title":"Venue Prices","description":"Assets of this answer valued now at their reference price (quality `aggregator`) instead of a market rate, with when that price was observed (epoch ms): the views say \"reference price, as of HH:MM\"."},"no_price":{"$ref":"#/components/schemas/NoPrice","description":"What the totals leave out for lack of a USD rate."},"collateral":{"items":{"properties":{"asset_id":{"type":"string","title":"Asset"},"symbol":{"type":"string","title":"Symbol"},"qty":{"title":"Qty","description":"Units of the coin over the buckets.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"price":{"title":"Rate","description":"USD per unit now.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"usd":{"title":"Usd","description":"`qty x rate`.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"pnl":{"title":"Pnl","description":"What holding it made over the window as its rate moved, USD.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"exchanges":{"additionalProperties":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"type":"object","title":"Exchanges","description":"Exchange (bucket) -> units held there."}},"required":["asset_id","symbol","qty","price","usd","pnl","exchanges"],"type":"object","title":"CollateralHolding","description":"One coin held as collateral by the selected perp buckets, now."},"type":"array","title":"Collateral","description":"The coins the selected perp buckets hold as collateral now."},"conns":{"additionalProperties":{"$ref":"#/components/schemas/Conn"},"type":"object","title":"Conns","description":"Every connection of the user, by connection id."},"next_sync_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the running or next `accounts` pass over the user's syncing connections ends; null: none syncs (none, or all read-only)."}},"required":["interval","positions_at","selection","exchanges","accounts","account_equity","excluded_accounts","equity_history","summary","by_exchange","series","delta_by_asset","assets","asset_options","fills","transfers","asset_info","prices_at","reference_prices","venue_prices","no_price","collateral","conns","next_sync_at"],"type":"object","title":"Overview"},"meta":{"type":"object","properties":{"as_of":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the data is current as of: its build or update time, else the answer’s."},"range":{"type":"object","description":"The half-open window the answer covers.","properties":{"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time"}},"required":["from","to"]}},"required":["as_of"]}},"required":["data","meta"]},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/me/portfolio?from=2026-11-16 (recorded 2026-11-17)","value":{"data":{"interval":"15m","positions_at":null,"selection":{"profile":"all","name":"All accounts","include":[],"exclude":[],"edited":false,"exchanges":[],"partial":[],"excluded_markets":[],"account_wide":[]},"exchanges":[],"accounts":[],"account_equity":[],"excluded_accounts":[],"equity_history":{},"summary":{"pnl":"0","trading":"0","funding":"0","fees":"0","volume":"0","fills":0,"maker_share":0,"pnl_bps":0,"net_delta":"0","gross_notional":"0","perp_notional":"0","carry_hourly":"0","equity":"0","collateral":"0"},"by_exchange":[],"series":{"time":["2026-11-16T00:00:00.000Z","2026-11-16T00:15:00.000Z","2026-11-16T00:30:00.000Z"],"pnl":["0","0","0"],"trading":["0","0","0"],"funding":["0","0","0"],"fees":["0","0","0"],"collateral":["0","0","0"],"equity":["0","0","0"],"net_delta":["0","0","0"],"gross_notional":["0","0","0"],"funding_by":{},"notional_by":{},"volume_by":{}},"delta_by_asset":[],"assets":[],"asset_options":[],"fills":[],"transfers":[],"asset_info":{},"prices_at":"2026-11-17T21:29:33.626Z","reference_prices":{},"venue_prices":{},"no_price":{"assets":0,"fees":0,"balances":0},"collateral":[],"conns":{},"next_sync_at":null},"meta":{"as_of":"2026-11-17T21:29:53.632Z","range":{"from":"2026-11-16T00:00:00.000Z","to":"2026-11-17T21:29:53.560Z"}}}}}}}},"default":{"$ref":"#/components/responses/Error"}}}},"/me/portfolio/summary":{"get":{"operationId":"get_me_portfolio_summary","summary":"A profile’s totals over a window (default the last 24 hours) with its risk figures now (leverage, nearest liquidation, free collateral, maintenance margin, daily funding carry), its accounts with their exposure, and how fresh its connections are: `/me/portfolio` without assets, fills, series or transfers, cheap to poll.","description":"A profile’s totals over a window (default the last 24 hours) with its risk figures now (leverage, nearest liquidation, free collateral, maintenance margin, daily funding carry), its accounts with their exposure, and how fresh its connections are: `/me/portfolio` without assets, fills, series or transfers, cheap to poll.","tags":["me"],"parameters":[{"name":"from","in":"query","required":false,"description":"Window start, inclusive: a date (`2026-11-10`, its 00:00 UTC) or an instant with a zone (default: 24 hours before `to`).","schema":{"type":"string","format":"date-time"}},{"name":"to","in":"query","required":false,"description":"Window end, exclusive: a date or an instant with a zone (default: now).","schema":{"type":"string","format":"date-time"}},{"name":"profile","in":"query","required":false,"description":"A profile id from `/me/profiles` (default: your default profile).","schema":{"type":"string"}}],"security":[{"userKey":["me:read"]}],"x-scope":"me:read","responses":{"200":{"description":"`{data, meta}`: the answer in the API’s names, every time an instant.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"properties":{"positions_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Oldest position snapshot of the selected exchanges (collector lag)."},"selection":{"$ref":"#/components/schemas/Selection","description":"The profile and the rules this answer covers."},"summary":{"$ref":"#/components/schemas/SelectionSummary"},"accounts":{"items":{"$ref":"#/components/schemas/AccountEquity"},"type":"array","title":"Accounts","description":"The accounts with a selected bucket: equity over those buckets, and `exposure` over the selection's markets."},"conns":{"additionalProperties":{"$ref":"#/components/schemas/Conn"},"type":"object","title":"Conns","description":"The selection's connections, by id: last sync, status, read-only."},"next_sync_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the running or next pass over the user's syncing connections ends."},"oldest_synced_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"The oldest last sync of the selection's connections; `None`: one of them never synced, or none is selected."},"warnings":{"items":{"$ref":"#/components/schemas/KeyWarning"},"type":"array","title":"Warnings","description":"The selection's connections that need attention."}},"required":["positions_at","selection","summary","accounts","conns","next_sync_at","oldest_synced_at","warnings"],"type":"object","title":"PortfolioSummary"},"meta":{"type":"object","properties":{"as_of":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the data is current as of: its build or update time, else the answer’s."},"range":{"type":"object","description":"The half-open window the answer covers.","properties":{"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time"}},"required":["from","to"]}},"required":["as_of"]}},"required":["data","meta"]},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/me/portfolio/summary?profile=dydx (recorded 2026-11-29)","value":{"data":{"positions_at":"2026-11-29T21:06:06.774Z","selection":{"profile":"dydx","name":"dYdX","include":["dydx-75eabf8a06:*"],"exclude":[],"edited":false,"exchanges":["dydx-75eabf8a06:perp"],"partial":[],"excluded_markets":[],"account_wide":[]},"summary":{"pnl":"270.41311342884705","trading":"273.16790349999724","funding":"-2.5208305969945908","fees":"0.23395947415560914","volume":"623.9266","fills":33,"maker_share":0,"pnl_bps":4334.05329134624,"net_delta":"29839.22045","gross_notional":"29839.22045","perp_notional":"29839.22045","carry_hourly":"-0.07341818169045444","equity":"5695.095702263747","collateral":"0","leverage":5.23945900296973,"min_liq_distance":null,"free_collateral":"3609.2961367985054","maintenance_margin":"1076.0228439285215","carry_daily_usd":"-1.7620363605709066"},"accounts":[{"account":"dydx-75eabf8a06","equity":"5695.095702263747","buckets":[{"segment_id":"dydx-75eabf8a06:perp","equity":"5695.095702263747","free_collateral":"3609.2961367985054","initial_margin":"2085.7995654652414","maintenance_margin":"1076.0228439285215","maintenance_ratio":0.188938500805318,"leverage":5.23706158037942}],"exposure":{"notional":"29839.22045","long":"29839.22045","short":"0","borrowed":"0","positions":5,"cross":5,"equity":"5695.095702263747","margin_equity":"5695.095702263747","leverage":5.23945900296973,"margin_leverage":null,"missing":null,"estimated":[],"unpriced":[],"isolated":[]}}],"conns":{"dydx-75eabf8a06":{"venue_id":"dydx","label":null,"synced_at":"2026-11-29T21:06:06.842Z","status":"ok","read_only":false}},"next_sync_at":"2026-11-29T21:06:16.793Z","oldest_synced_at":"2026-11-29T21:06:06.842Z","warnings":[]},"meta":{"as_of":"2026-11-29T21:06:08.932Z","range":{"from":"2026-11-28T21:06:08.915Z","to":"2026-11-29T21:06:08.915Z"}}}}}}}},"default":{"$ref":"#/components/responses/Error"}}}},"/me/portfolio/pnl-days":{"get":{"operationId":"get_me_portfolio_pnl_days","summary":"A profile’s P&L per UTC day (trading, funding, fees paid) and its equity at each day’s end, over the last `days` days (default 30).","description":"A profile’s P&L per UTC day (trading, funding, fees paid) and its equity at each day’s end, over the last `days` days (default 30). While it is computed, 202 with `Retry-After`: ask again then.","tags":["me"],"parameters":[{"name":"days","in":"query","required":false,"description":"Days back from now, 1 to 3660; the first day starts at that UTC midnight (default 30).","schema":{"type":"integer","minimum":1,"maximum":3660,"default":30}},{"name":"profile","in":"query","required":false,"description":"A profile id from `/me/profiles` (default: your default profile).","schema":{"type":"string"}}],"security":[{"userKey":["me:read"]}],"x-scope":"me:read","responses":{"200":{"description":"`{data, meta}`: the answer in the API’s names, every time an instant.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"properties":{"stale":{"type":"boolean","title":"Stale","description":"An answer kept from up to two days ago; the answer of the data now is being computed (ask again in a few seconds)."},"days":{"items":{"$ref":"#/components/schemas/PnlDay"},"type":"array","title":"Days","description":"Oldest first; a day before anything was recorded is not listed."}},"required":["stale","days"],"type":"object","title":"DailyPnl"},"meta":{"type":"object","properties":{"as_of":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the data is current as of: its build or update time, else the answer’s."},"range":{"type":"object","description":"The half-open window the answer covers.","properties":{"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time"}},"required":["from","to"]}},"required":["as_of"]}},"required":["data","meta"]},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/me/portfolio/pnl-days?days=3&profile=dydx (recorded 2026-11-29)","value":{"data":{"stale":false,"days":[{"date":"2026-11-26","pnl":"67.22934453361957","trading":"77.46017599999323","funding":"-10.001502499548764","fees_paid":"0.22932896682489812","equity_close":"5613.598864278257","partial":false},{"date":"2026-11-27","pnl":"130.84194648835506","trading":"139.68719324999984","funding":"-7.2176806847946295","fees_paid":"1.6275660768501474","equity_close":"5810.41113102682","partial":false},{"date":"2026-11-28","pnl":"-321.147288210026","trading":"-319.37959425000736","funding":"-1.4786948948679708","fees_paid":"0.2889990651506764","equity_close":"5483.9993086411505","partial":false},{"date":"2026-11-29","pnl":"200.0555436226107","trading":"202.71738350000192","funding":"-2.427880403235605","fees_paid":"0.23395947415560903","equity_close":"5682.622634653857","partial":true}]},"meta":{"as_of":"2026-11-29T21:06:00.206Z","range":{"from":"2026-11-26T00:00:00.000Z","to":"2026-11-29T21:06:00.206Z"}}}}}}}},"202":{"description":"Still computing: `{data: null, meta: {pending: true}}`; ask again after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"default":{"$ref":"#/components/responses/Error"}}}},"/me/portfolio/asset":{"get":{"operationId":"get_me_portfolio_asset","summary":"One asset’s drill-down in a profile.","description":"One asset’s drill-down in a profile.","tags":["me"],"parameters":[{"name":"asset","in":"query","required":true,"description":"A catalogue asset id (`bitcoin`) or symbol.","schema":{"type":"string"}},{"name":"from","in":"query","required":false,"description":"Window start, inclusive: a date (`2026-11-10`, its 00:00 UTC) or an instant with a zone (default: 24 hours before `to`).","schema":{"type":"string","format":"date-time"}},{"name":"to","in":"query","required":false,"description":"Window end, exclusive: a date or an instant with a zone (default: now).","schema":{"type":"string","format":"date-time"}},{"name":"profile","in":"query","required":false,"description":"A profile id from `/me/profiles` (default: your default profile).","schema":{"type":"string"}},{"name":"include","in":"query","required":false,"description":"Ad-hoc rules replacing the profile’s, comma-separated; empty: none.","schema":{"type":"string"}},{"name":"exclude","in":"query","required":false,"description":"Ad-hoc exclusions replacing the profile’s, comma-separated; empty: none.","schema":{"type":"string"}}],"security":[{"userKey":["me:read"]}],"x-scope":"me:read","responses":{"200":{"description":"`{data, meta}`: the answer in the API’s names, every time an instant.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/AssetDetail"},"meta":{"type":"object","properties":{"as_of":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the data is current as of: its build or update time, else the answer’s."}},"required":["as_of"]}},"required":["data","meta"]},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/me/portfolio/asset?asset=bitcoin&from=2026-11-16 (recorded 2026-11-17)","value":{"data":{"asset_id":"bitcoin","symbol":"BTC","info":{"id":"bitcoin","symbol":"BTC","name":"Bitcoin","icon_url":"https://catalogue.tribulnation.com/icons/asset/bitcoin.svg","category":"crypto","provisional":false},"markets":{"dydx:perp":"BTC-USD"},"reference":"dydx:perp","time":["2026-11-16T00:00:00.000Z","2026-11-16T00:15:00.000Z","2026-11-16T00:30:00.000Z"],"price":{"dydx:perp":["65338","65080.5","64980"]},"basis_bps":{},"pos":{},"net":["0","0","0"],"pnl":["0","0","0"],"trading":["0","0","0"],"funding":["0","0","0"],"fees":["0","0","0"],"fills":{},"funding_rates":{"dydx:perp":[{"time":"2026-11-16T00:00:00.000Z","value":0.28980999999999996},{"time":"2026-11-16T01:00:00.000Z","value":0.17233631065367913},{"time":"2026-11-16T02:00:00.000Z","value":0.10399463560408378}]},"market_lines":[],"price_only":["dydx:perp"],"prices_at":"2026-11-17T21:29:33.626Z","reference_prices":{},"venue_prices":{},"no_price":{"assets":0,"fees":0,"balances":0},"conns":{},"next_sync_at":null},"meta":{"as_of":"2026-11-17T21:29:33.626Z"}}}}}}},"default":{"$ref":"#/components/responses/Error"}}}},"/me/portfolio/fills":{"get":{"operationId":"get_me_portfolio_fills","summary":"Every fill of a profile in the window, newest first, a page at a time.","description":"Every fill of a profile in the window, newest first, a page at a time. `next` is the following page’s `cursor`, which keeps the first page’s window; `format=csv` answers all of them.","tags":["me"],"parameters":[{"name":"from","in":"query","required":false,"description":"Window start, inclusive: a date (`2026-11-10`, its 00:00 UTC) or an instant with a zone (default: 24 hours before `to`).","schema":{"type":"string","format":"date-time"}},{"name":"to","in":"query","required":false,"description":"Window end, exclusive: a date or an instant with a zone (default: now).","schema":{"type":"string","format":"date-time"}},{"name":"profile","in":"query","required":false,"description":"A profile id from `/me/profiles` (default: your default profile).","schema":{"type":"string"}},{"name":"include","in":"query","required":false,"description":"Ad-hoc rules replacing the profile’s, comma-separated; empty: none.","schema":{"type":"string"}},{"name":"exclude","in":"query","required":false,"description":"Ad-hoc exclusions replacing the profile’s, comma-separated; empty: none.","schema":{"type":"string"}},{"name":"assets","in":"query","required":false,"description":"Only these assets (ids or symbols), comma-separated.","schema":{"type":"string"}},{"name":"accounts","in":"query","required":false,"description":"Only these accounts, comma-separated.","schema":{"type":"string"}},{"name":"markets","in":"query","required":false,"description":"Only these markets, as the venue names them, comma-separated.","schema":{"type":"string"}},{"name":"segments","in":"query","required":false,"description":"Only these segment ids (`binance:usdm`), comma-separated.","schema":{"type":"string"}},{"name":"side","in":"query","required":false,"description":"`buy` (received, in) or `sell` (paid, out).","schema":{"type":"string","enum":["buy","sell"]}},{"name":"search","in":"query","required":false,"description":"Text in the asset’s or market’s symbol.","schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"description":"The previous page's `meta.page.next_cursor`; it keeps the first page's window.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Rows per page, 1 to 1000 (default 200).","schema":{"type":"integer","minimum":1,"maximum":1000,"default":200}},{"name":"format","in":"query","required":false,"description":"`csv`: every matching row of the window, no paging.","schema":{"type":"string","enum":["csv"]}}],"security":[{"userKey":["me:read"]}],"x-scope":"me:read","responses":{"200":{"description":"`{data, meta}`: the answer in the API’s names, every time an instant.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"items":{"$ref":"#/components/schemas/FillRow"},"type":"array","title":"Rows"},"meta":{"type":"object","properties":{"as_of":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the data is current as of: its build or update time, else the answer’s."},"range":{"type":"object","description":"The half-open window the answer covers.","properties":{"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time"}},"required":["from","to"]},"page":{"type":"object","description":"Where this page is: pass `next_cursor` back as `cursor` (`null`: the last page).","properties":{"limit":{"type":"integer"},"has_more":{"type":"boolean"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}]},"total":{"type":"integer"}},"required":["limit","has_more","next_cursor"]},"assets":{"type":"object","description":"The assets the answer names, by id.","additionalProperties":true}},"required":["as_of"]}},"required":["data","meta"]},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/me/portfolio/fills?from=2026-11-10 (recorded 2026-11-17)","value":{"data":[],"meta":{"as_of":"2026-11-17T21:29:53.944Z","range":{"from":"2026-11-10T00:00:00.000Z","to":"2026-11-17T21:29:53.873Z"},"page":{"limit":200,"has_more":false,"next_cursor":null,"total":0},"assets":{}}}}}}}},"default":{"$ref":"#/components/responses/Error"}}}},"/me/portfolio/funding":{"get":{"operationId":"get_me_portfolio_funding","summary":"Every funding payment of a profile in the window, paged as the fills are.","description":"Every funding payment of a profile in the window, paged as the fills are.","tags":["me"],"parameters":[{"name":"from","in":"query","required":false,"description":"Window start, inclusive: a date (`2026-11-10`, its 00:00 UTC) or an instant with a zone (default: 24 hours before `to`).","schema":{"type":"string","format":"date-time"}},{"name":"to","in":"query","required":false,"description":"Window end, exclusive: a date or an instant with a zone (default: now).","schema":{"type":"string","format":"date-time"}},{"name":"profile","in":"query","required":false,"description":"A profile id from `/me/profiles` (default: your default profile).","schema":{"type":"string"}},{"name":"include","in":"query","required":false,"description":"Ad-hoc rules replacing the profile’s, comma-separated; empty: none.","schema":{"type":"string"}},{"name":"exclude","in":"query","required":false,"description":"Ad-hoc exclusions replacing the profile’s, comma-separated; empty: none.","schema":{"type":"string"}},{"name":"assets","in":"query","required":false,"description":"Only these assets (ids or symbols), comma-separated.","schema":{"type":"string"}},{"name":"accounts","in":"query","required":false,"description":"Only these accounts, comma-separated.","schema":{"type":"string"}},{"name":"markets","in":"query","required":false,"description":"Only these markets, as the venue names them, comma-separated.","schema":{"type":"string"}},{"name":"segments","in":"query","required":false,"description":"Only these segment ids (`binance:usdm`), comma-separated.","schema":{"type":"string"}},{"name":"side","in":"query","required":false,"description":"`buy` (received, in) or `sell` (paid, out).","schema":{"type":"string","enum":["buy","sell"]}},{"name":"search","in":"query","required":false,"description":"Text in the asset’s or market’s symbol.","schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"description":"The previous page's `meta.page.next_cursor`; it keeps the first page's window.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Rows per page, 1 to 1000 (default 200).","schema":{"type":"integer","minimum":1,"maximum":1000,"default":200}},{"name":"format","in":"query","required":false,"description":"`csv`: every matching row of the window, no paging.","schema":{"type":"string","enum":["csv"]}}],"security":[{"userKey":["me:read"]}],"x-scope":"me:read","responses":{"200":{"description":"`{data, meta}`: the answer in the API’s names, every time an instant.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"items":{"$ref":"#/components/schemas/FundingPayment"},"type":"array","title":"Rows"},"meta":{"type":"object","properties":{"as_of":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the data is current as of: its build or update time, else the answer’s."},"range":{"type":"object","description":"The half-open window the answer covers.","properties":{"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time"}},"required":["from","to"]},"page":{"type":"object","description":"Where this page is: pass `next_cursor` back as `cursor` (`null`: the last page).","properties":{"limit":{"type":"integer"},"has_more":{"type":"boolean"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}]},"total":{"type":"integer"}},"required":["limit","has_more","next_cursor"]},"assets":{"type":"object","description":"The assets the answer names, by id.","additionalProperties":true}},"required":["as_of"]}},"required":["data","meta"]},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/me/portfolio/funding?from=2026-11-10 (recorded 2026-11-17)","value":{"data":[],"meta":{"as_of":"2026-11-17T21:29:54.024Z","range":{"from":"2026-11-10T00:00:00.000Z","to":"2026-11-17T21:29:53.956Z"},"page":{"limit":200,"has_more":false,"next_cursor":null,"total":0},"assets":{}}}}}}}},"default":{"$ref":"#/components/responses/Error"}}}},"/me/portfolio/transfers":{"get":{"operationId":"get_me_portfolio_transfers","summary":"Every on-chain wallet transfer of a profile in the window, paged as the fills are.","description":"Every on-chain wallet transfer of a profile in the window, paged as the fills are.","tags":["me"],"parameters":[{"name":"from","in":"query","required":false,"description":"Window start, inclusive: a date (`2026-11-10`, its 00:00 UTC) or an instant with a zone (default: 24 hours before `to`).","schema":{"type":"string","format":"date-time"}},{"name":"to","in":"query","required":false,"description":"Window end, exclusive: a date or an instant with a zone (default: now).","schema":{"type":"string","format":"date-time"}},{"name":"profile","in":"query","required":false,"description":"A profile id from `/me/profiles` (default: your default profile).","schema":{"type":"string"}},{"name":"include","in":"query","required":false,"description":"Ad-hoc rules replacing the profile’s, comma-separated; empty: none.","schema":{"type":"string"}},{"name":"exclude","in":"query","required":false,"description":"Ad-hoc exclusions replacing the profile’s, comma-separated; empty: none.","schema":{"type":"string"}},{"name":"assets","in":"query","required":false,"description":"Only these assets (ids or symbols), comma-separated.","schema":{"type":"string"}},{"name":"accounts","in":"query","required":false,"description":"Only these accounts, comma-separated.","schema":{"type":"string"}},{"name":"markets","in":"query","required":false,"description":"Only these markets, as the venue names them, comma-separated.","schema":{"type":"string"}},{"name":"segments","in":"query","required":false,"description":"Only these segment ids (`binance:usdm`), comma-separated.","schema":{"type":"string"}},{"name":"side","in":"query","required":false,"description":"`buy` (received, in) or `sell` (paid, out).","schema":{"type":"string","enum":["buy","sell"]}},{"name":"search","in":"query","required":false,"description":"Text in the asset’s or market’s symbol.","schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"description":"The previous page's `meta.page.next_cursor`; it keeps the first page's window.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Rows per page, 1 to 1000 (default 200).","schema":{"type":"integer","minimum":1,"maximum":1000,"default":200}},{"name":"format","in":"query","required":false,"description":"`csv`: every matching row of the window, no paging.","schema":{"type":"string","enum":["csv"]}}],"security":[{"userKey":["me:read"]}],"x-scope":"me:read","responses":{"200":{"description":"`{data, meta}`: the answer in the API’s names, every time an instant.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"items":{"$ref":"#/components/schemas/TransferRow"},"type":"array","title":"Rows"},"meta":{"type":"object","properties":{"as_of":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the data is current as of: its build or update time, else the answer’s."},"range":{"type":"object","description":"The half-open window the answer covers.","properties":{"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time"}},"required":["from","to"]},"page":{"type":"object","description":"Where this page is: pass `next_cursor` back as `cursor` (`null`: the last page).","properties":{"limit":{"type":"integer"},"has_more":{"type":"boolean"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}]},"total":{"type":"integer"}},"required":["limit","has_more","next_cursor"]},"assets":{"type":"object","description":"The assets the answer names, by id.","additionalProperties":true}},"required":["as_of"]}},"required":["data","meta"]},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/me/portfolio/transfers?from=2026-11-10 (recorded 2026-11-17)","value":{"data":[],"meta":{"as_of":"2026-11-17T21:29:54.131Z","range":{"from":"2026-11-10T00:00:00.000Z","to":"2026-11-17T21:29:54.036Z"},"page":{"limit":200,"has_more":false,"next_cursor":null,"total":0},"assets":{}}}}}}}},"default":{"$ref":"#/components/responses/Error"}}}},"/me/position":{"get":{"operationId":"get_me_position","summary":"One asset’s position and 24h P&L in the default profile.","description":"One asset’s position and 24h P&L in the default profile.","tags":["me"],"parameters":[{"name":"asset","in":"query","required":true,"description":"A catalogue asset id (`bitcoin`) or symbol.","schema":{"type":"string"}}],"security":[{"userKey":["me:read"]}],"x-scope":"me:read","responses":{"200":{"description":"`{data, meta}`: the answer in the API’s names, every time an instant.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/PositionAnswer"},"meta":{"type":"object","properties":{"as_of":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the data is current as of: its build or update time, else the answer’s."}},"required":["as_of"]}},"required":["data","meta"]},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/me/position?asset=bitcoin (recorded 2026-11-17)","value":{"data":{"position":null,"labels":{},"profile":{"id":"all","name":"All accounts"},"currency":"usd","note":null},"meta":{"as_of":"2026-11-17T21:29:54.270Z"}}}}}}},"default":{"$ref":"#/components/responses/Error"}}}},"/me/charts":{"get":{"operationId":"get_me_charts","summary":"Your saved Charts plots (Charts is part of Pro).","description":"Your saved Charts plots (Charts is part of Pro).","tags":["me"],"parameters":[],"security":[{"userKey":["me:read"]}],"x-scope":"me:read","responses":{"200":{"description":"`{data, meta}`: the answer in the API’s names, every time an instant.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/SavedPlot"}},"meta":{"type":"object","properties":{"as_of":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the data is current as of: its build or update time, else the answer’s."}},"required":["as_of"]}},"required":["data","meta"]},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/me/charts (recorded 2026-11-17)","value":{"data":[],"meta":{"as_of":"2026-11-17T21:29:54.352Z"}}}}}}},"default":{"$ref":"#/components/responses/Error"}}}},"/me/charts/{id}":{"get":{"operationId":"get_me_charts_id","summary":"One of your saved Charts plots: its name, kind and configuration.","description":"One of your saved Charts plots: its name, kind and configuration. Someone else’s is 404.","tags":["me"],"parameters":[{"name":"id","in":"path","required":true,"description":"A saved plot’s id (16 letters and digits).","schema":{"type":"string","pattern":"^[0-9A-Za-z]{16}$"},"example":"AbCdEfGh12345678"}],"security":[{"userKey":["me:read"]}],"x-scope":"me:read","responses":{"200":{"description":"`{data, meta}`: the answer in the API’s names, every time an instant.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"plot":{"$ref":"#/components/schemas/SavedPlot"}},"required":["plot"]},"meta":{"type":"object","properties":{"as_of":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the data is current as of: its build or update time, else the answer’s."}},"required":["as_of"]}},"required":["data","meta"]}}}},"default":{"$ref":"#/components/responses/Error"}}}},"/me/profiles/{id}":{"patch":{"operationId":"patch_me_profiles_id","summary":"Change a portfolio profile (needs `me:profiles`).","description":"Change a portfolio profile (needs `me:profiles`): only the fields given (those of creating one), the rest kept. Its id stays; the built-in `all` cannot be changed. Answers the profile.","tags":["me"],"parameters":[{"name":"id","in":"path","required":true,"description":"A profile’s id, from `GET /me/profiles`.","schema":{"type":"string"},"example":"perps"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"The profile’s name (not empty)."},"description":{"type":"string","description":"What the profile is for."},"include":{"type":"array","items":{"type":"string"},"description":"What it counts, as the Portfolio page’s rules: `<account>:*` (every market of an account), `<account>:<exchange>[:<market>]`, `asset:<id>`, `kind:perp` or `kind:spot` (empty: every account)."},"exclude":{"type":"array","items":{"type":"string"},"description":"What it leaves out, the same rules."},"base_currency":{"type":["string","null"],"description":"The currency its figures are shown in, a three-letter code (`eur`); null: the reader’s Settings currency."},"value_collateral":{"type":["boolean","null"],"description":"Whether perp accounts’ collateral coins are valued as their rates move; null or false: off."}},"additionalProperties":false}}}},"security":[{"userKey":["me:profiles"]}],"x-scope":"me:profiles","responses":{"200":{"description":"`{data, meta}`: the profile, as a row of `GET /me/profiles`.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ProfileInfo"},"meta":{"type":"object","properties":{"as_of":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the data is current as of: its build or update time, else the answer’s."}},"required":["as_of"]}},"required":["data","meta"]}}}},"default":{"$ref":"#/components/responses/Error"}}}},"/oauth/device/code":{"post":{"operationId":"post_oauth_device_code","summary":"Start a device login (RFC 8628 §3.1), answered with a device code to poll with and a user code to approve on the app’s /integrations/device.","description":"Start a device login (RFC 8628 §3.1), answered with a device code to poll with and a user code to approve on the app’s /integrations/device.","tags":["oauth"],"security":[],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"client_id":{"type":"string"},"scope":{"type":"string"},"name":{"type":"string"}},"required":["client_id"]}}}},"responses":{"200":{"description":"The app’s answer, unchanged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceCodeAnswer"}}}},"default":{"description":"An RFC 6749 error: `{error, error_description}`.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"error_description":{"type":"string"}},"required":["error"]}}}}}}},"/oauth/token":{"post":{"operationId":"post_oauth_token","summary":"Exchange an approved device code, or an authorization code with PKCE, for an API key.","description":"Exchange an approved device code, or an authorization code with PKCE, for an API key. Device grant (RFC 8628 §3.4): authorization_pending, slow_down, access_denied or expired_token until approved; then the API key, once. Authorization code with PKCE (OAuth 2.1, an MCP client such as Claude or ChatGPT): the code from /oauth/authorize for the API key, once.","tags":["oauth"],"security":[],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"grant_type":{"type":"string"},"device_code":{"type":"string"},"client_id":{"type":"string"},"code":{"type":"string"},"redirect_uri":{"type":"string"},"code_verifier":{"type":"string"},"resource":{"type":"string"}},"required":["client_id"]}}}},"responses":{"200":{"description":"The app’s answer, unchanged.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CodeTokenAnswer"},{"$ref":"#/components/schemas/DeviceTokenAnswer"}]}}}},"default":{"description":"An RFC 6749 error: `{error, error_description}`.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"error_description":{"type":"string"}},"required":["error"]}}}}}}},"/oauth/register":{"post":{"operationId":"post_oauth_register","summary":"Register a public OAuth client (no secret) with its redirect URIs, answered 201 with its client_id.","description":"Register a public OAuth client (no secret) with its redirect URIs, answered 201 with its client_id. For MCP clients without a Client ID Metadata Document (RFC 7591).","tags":["oauth"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"redirect_uris":{"type":"array","items":{"type":"string"}},"client_name":{"type":"string"},"client_uri":{"type":"string"},"logo_uri":{"type":"string"},"grant_types":{"type":"array","items":{"type":"string"}},"response_types":{"type":"array","items":{"type":"string"}},"token_endpoint_auth_method":{"type":"string"},"scope":{"type":"string"},"software_id":{"type":"string"},"software_version":{"type":"string"},"application_type":{"type":"string"}},"required":["redirect_uris"]}}}},"responses":{"201":{"description":"The app’s answer, unchanged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistrationAnswer"}}}},"default":{"description":"An RFC 6749 error: `{error, error_description}`.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"error_description":{"type":"string"}},"required":["error"]}}}}}}},"/oauth/revoke":{"post":{"operationId":"post_oauth_revoke","summary":"Revoke an API key with the key itself (RFC 7009), answered 200 for any well-formed request.","description":"Revoke an API key with the key itself (RFC 7009), answered 200 for any well-formed request.","tags":["oauth"],"security":[],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"token":{"type":"string"},"token_type_hint":{"type":"string"},"client_id":{"type":"string"}},"required":["client_id"]}}}},"responses":{"200":{"description":"The app’s answer, unchanged.","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"not":{}}}}}},"default":{"description":"An RFC 6749 error: `{error, error_description}`.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"error_description":{"type":"string"}},"required":["error"]}}}}}}},"/live/opportunities":{"get":{"operationId":"get_live_opportunities","summary":"Every opportunity the plan sees, ranked.","tags":["live"],"parameters":[{"name":"limit","in":"query","required":false,"description":"Rows of each strategy per page, 1 to 1000 (default 100).","schema":{"type":"integer","minimum":1,"maximum":1000,"default":100}},{"name":"cursor","in":"query","required":false,"description":"The previous page's `meta.page.next_cursor`.","schema":{"type":"string"}}],"security":[{"userKey":["market:read"]}],"x-scope":"market:read","x-plan":"Ultra","responses":{"200":{"description":"The live answer, as `{data, meta}` in the API’s names.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"delayed_s":{"type":"number","description":"How much older than `meta.as_of` the rows are, seconds: 0 for live plans."},"plan":{"type":"string","enum":["free","pro","ultra"],"description":"The plan the key reads at."},"notionals":{"type":"array","items":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"description":"The trade sizes (USD) each row's figures are given for."},"stats_notional":{"description":"The size (USD) the headline statistics use.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"maker_notional":{"description":"The size (USD) hedged maker quotes are sized for.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"taker":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/TakerRow"},{"$ref":"#/components/schemas/FundingCarryRow"},{"$ref":"#/components/schemas/CashCarryRow"},{"$ref":"#/components/schemas/EarnCarryRow"},{"$ref":"#/components/schemas/MakerRow"}]},"description":"Hedged taker arbitrage rows (buy on one venue, sell on another, now)."},"carry":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/TakerRow"},{"$ref":"#/components/schemas/FundingCarryRow"},{"$ref":"#/components/schemas/CashCarryRow"},{"$ref":"#/components/schemas/EarnCarryRow"},{"$ref":"#/components/schemas/MakerRow"}]},"description":"Funding carry and cash and carry rows."},"earn":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/TakerRow"},{"$ref":"#/components/schemas/FundingCarryRow"},{"$ref":"#/components/schemas/CashCarryRow"},{"$ref":"#/components/schemas/EarnCarryRow"},{"$ref":"#/components/schemas/MakerRow"}]},"description":"Earn carry rows (an earn product hedged with a perp)."},"maker":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/TakerRow"},{"$ref":"#/components/schemas/FundingCarryRow"},{"$ref":"#/components/schemas/CashCarryRow"},{"$ref":"#/components/schemas/EarnCarryRow"},{"$ref":"#/components/schemas/MakerRow"}]},"description":"Hedged maker quote rows."},"strategies":{"type":"object","properties":{"funding-carry":{"$ref":"#/components/schemas/LiveStrategyState"},"cash-carry":{"$ref":"#/components/schemas/LiveStrategyState"},"earn-carry":{"$ref":"#/components/schemas/LiveStrategyState"},"hedged-taker":{"$ref":"#/components/schemas/LiveStrategyState"},"hedged-maker":{"$ref":"#/components/schemas/LiveStrategyState"}},"required":["funding-carry","cash-carry","earn-carry","hedged-taker","hedged-maker"],"description":"What each strategy said."},"live":{"type":"boolean","description":"Always `true`: these are live rows."},"error":{"type":"null","description":"Always `null` on a 200."}},"required":["delayed_s","plan","notionals","stats_notional","maker_notional","taker","carry","earn","maker","strategies","live","error"],"description":"`GET /live/opportunities`: every strategy's rows the key's plan sees, ranked."},"meta":{"type":"object","properties":{"as_of":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the data is current as of: its build or update time, else the answer’s."},"assets":{"type":"object","description":"The assets the answer names, by id.","additionalProperties":true},"page":{"type":"object","description":"Where this page is: pass `next_cursor` back as `cursor` (`null`: the last page).","properties":{"limit":{"type":"integer"},"has_more":{"type":"boolean"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}]},"total":{"type":"integer"}},"required":["limit","has_more","next_cursor"]}},"required":["as_of"]}},"required":["data","meta"]},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/live/opportunities (recorded 2026-11-17)","value":{"data":{"delayed_s":0,"plan":"ultra","notionals":["250","1000","2500","5000","10000","25000","50000","100000"],"stats_notional":"1000","maker_notional":"10000","taker":[{"id":"hedged-taker:usd:toobit:perp/USDJPY-SWAP-USDT:sell","strategy":"hedged-taker","asset_id":"usd","symbol":"USD","legs":[{"segment_id":"toobit:perp","market":"USDJPY-SWAP-USDT","kind":"perp","side":"sell","quote_asset_id":"japanese-yen","peg_asset_id":"japanese-yen","settlement_asset_id":"tether","tier":"extended","age_s":1.76,"polled":true},{"segment_id":"toobit:perp","market":"USDBRL-SWAP-USDT","kind":"perp","side":"buy","quote_asset_id":"brazilian-real","peg_asset_id":"brazilian-real","settlement_asset_id":"tether","tier":"extended","age_s":1.76,"polled":true},{"segment_id":"gtrade:polygon-weth","market":"polygon-weth:USD/SGD","kind":"perp","side":"buy","quote_asset_id":"singapore-dollar","peg_asset_id":"singapore-dollar","settlement_asset_id":"wrapped-ether","tier":"extended","age_s":1.158}],"tier":"extended","age_s":96.12,"headline":{"edge_bps":193.9},"rank":193.9,"edge_bps":193.9,"edge_usd_bps":185,"basis_bps":8.9,"basis":["japanese-yen","brazilian-real"],"quote_exposure":null,"taker":"toobit:perp","side":"sell","buy":["toobit:perp","gtrade:polygon-weth","gtrade:polygon-weth"],"sell":["toobit:perp"],"capacity":["7850000","7850000","3410000","3380000"],"capacity_usd":["7840000","7840000","3410000","3380000"],"best_edge_bps":193.9,"best_edge_usd_bps":185,"profit_usd":"19600","size_usd":"7840000","depth":"partial","since_at":"2026-11-17T11:17:53.629Z","stats":{"notional":"1000","n_24h":2,"share_24h":0.9993,"median_s":3448.9},"time":"2026-11-17T21:29:51.127Z","edges_bps":[193.9,193.9,191.7,188.2,186,184.5,183.4,181.8],"edges_usd_bps":[185,185,182.7,179.2,177,175.6,174.5,172.9]},{"id":"hedged-taker:usd:toobit:perp/USDBRL-SWAP-USDT:sell","strategy":"hedged-taker","asset_id":"usd","symbol":"USD","legs":[{"segment_id":"toobit:perp","market":"USDBRL-SWAP-USDT","kind":"perp","side":"sell","quote_asset_id":"brazilian-real","peg_asset_id":"brazilian-real","settlement_asset_id":"tether","tier":"extended","age_s":1.76,"polled":true},{"segment_id":"lighter:perp","market":"105","kind":"perp","side":"buy","quote_asset_id":"south-korean-won","peg_asset_id":"south-korean-won","settlement_asset_id":"usd-coin","tier":"core","age_s":0.475},{"segment_id":"bingx:perp","market":"NCFXUSD2ZAR-USDT","kind":"perp","side":"buy","quote_asset_id":"south-african-rand","peg_asset_id":"south-african-rand","settlement_asset_id":"tether","tier":"core","age_s":0.664}],"tier":"extended","age_s":1.76,"headline":{"edge_bps":146.3},"rank":146.3,"edge_bps":146.3,"edge_usd_bps":137.4,"basis_bps":8.9,"basis":["brazilian-real","south-korean-won"],"quote_exposure":null,"taker":"toobit:perp","side":"sell","buy":["lighter:perp","bingx:perp","gatedex:perp"],"sell":["toobit:perp"],"capacity":["292000","292000","292000","292000"],"capacity_usd":["292000","292000","292000","292000"],"best_edge_bps":146.3,"best_edge_usd_bps":137.4,"profit_usd":"3750","size_usd":"292000","depth":"partial","since_at":"2026-11-17T11:17:53.629Z","stats":{"notional":"1000","n_24h":3,"share_24h":0.9956,"median_s":82.5},"time":"2026-11-17T21:29:51.127Z","edges_bps":[146.3,146.3,144.1,140.6,138.4,137,135.9,134.2],"edges_usd_bps":[137.4,137.4,135.1,131.7,129.4,128,126.9,125.3]},{"id":"hedged-taker:copper:toobit:perp/COPPER-SWAP-USDT:sell","strategy":"hedged-taker","asset_id":"copper","symbol":"XCU","legs":[{"segment_id":"toobit:perp","market":"COPPER-SWAP-USDT","kind":"perp","side":"sell","quote_asset_id":"tether","peg_asset_id":"usd","settlement_asset_id":"tether","tier":"extended","age_s":1.76,"polled":true},{"segment_id":"gtrade:arbitrum-usdc","market":"arbitrum-usdc:HG/USD","kind":"perp","side":"buy","quote_asset_id":"usd","peg_asset_id":"usd","settlement_asset_id":"usd-coin","tier":"extended","age_s":1.158},{"segment_id":"gtrade:base-btcusd","market":"base-btcusd:HG/USD","kind":"perp","side":"buy","quote_asset_id":"usd","peg_asset_id":"usd","settlement_asset_id":"bitcoin-usd-btcfi","tier":"extended","age_s":1.158}],"tier":"extended","age_s":1.76,"headline":{"edge_bps":125.4},"rank":125.4,"edge_bps":125.4,"edge_usd_bps":114.4,"basis_bps":11,"basis":["tether","usd"],"quote_exposure":null,"bound_bps":150,"taker":"toobit:perp","side":"sell","buy":["gtrade:arbitrum-usdc","gtrade:base-btcusd","gtrade:base-usdc","gtrade:polygon-usdc","gtrade:megaeth-usdm"],"sell":["toobit:perp"],"capacity":["53200","53200","53200","53200"],"capacity_usd":["53100","53100","53100","53100"],"best_edge_bps":125.4,"best_edge_usd_bps":114.4,"profit_usd":"666","size_usd":"53100","depth":"none","since_at":"2026-11-16T23:11:02.127Z","stats":{"notional":"1000","n_24h":24,"share_24h":0.9567,"median_s":16},"time":"2026-11-17T21:29:51.127Z","edges_bps":[125.4,125.4,125.4,125.4,125.4,125.4,125.3,53],"edges_usd_bps":[114.4,114.4,114.4,114.4,114.4,114.4,114.4,45.1]}],"carry":[{"id":"funding-carry:applied-optoelectronics:mexc:perp/AAOISTOCK_USDT+hyperliquid:para/para:AAOI","strategy":"funding-carry","asset_id":"applied-optoelectronics","symbol":"AAOI","legs":[{"segment_id":"mexc:perp","market":"AAOISTOCK_USDT","kind":"perp","side":"buy","quote_asset_id":"tether","peg_asset_id":"usd","settlement_asset_id":"tether","tier":"core","age_s":0,"funding_interval_s":28800},{"segment_id":"hyperliquid:para","market":"para:AAOI","kind":"perp","side":"sell","quote_asset_id":"tether","peg_asset_id":"usd","settlement_asset_id":"usd-coin","tier":"core","age_s":1.161,"funding_interval_s":3600}],"tier":"core","age_s":1.161,"headline":{"apr":43.8},"rank":4344.33,"edge_bps":-51.6,"edge_usd_bps":-51.6,"basis_bps":null,"basis":null,"quote_exposure":null,"kind":"perp","pair":"applied-optoelectronics|hyperliquid:para|mexc:perp","long":"mexc:perp","short":"hyperliquid:para","long_market":"AAOISTOCK_USDT","short_market":"para:AAOI","apr":43.8,"long_apr":0,"short_apr":43.8,"entry_bps":-51.6,"entry_bps_usd":-51.6,"cost_bps":68.4,"cost_bps_usd":68.4,"breakeven_s":3600,"breakeven_usd_s":3600,"size_usd":"9200","fees_known":true,"premium_bps":-17.5,"premium_bps_usd":-17.5,"hedge":0},{"id":"funding-carry:applied-optoelectronics:extended:perp/AAOI-USD+hyperliquid:para/para:AAOI","strategy":"funding-carry","asset_id":"applied-optoelectronics","symbol":"AAOI","legs":[{"segment_id":"extended:perp","market":"AAOI-USD","kind":"perp","side":"buy","quote_asset_id":"usd-coin","peg_asset_id":"usd","settlement_asset_id":"usd-coin","tier":"extended","age_s":0.188,"funding_interval_s":3600},{"segment_id":"hyperliquid:para","market":"para:AAOI","kind":"perp","side":"sell","quote_asset_id":"tether","peg_asset_id":"usd","settlement_asset_id":"usd-coin","tier":"core","age_s":1.161,"funding_interval_s":3600}],"tier":"extended","age_s":1.161,"headline":{"apr":43.8},"rank":4343.55,"edge_bps":-61.8,"edge_usd_bps":-70.7,"basis_bps":8.9,"basis":["usd-coin","tether"],"quote_exposure":null,"kind":"perp","pair":"applied-optoelectronics|hyperliquid:para|extended:perp","long":"extended:perp","short":"hyperliquid:para","long_market":"AAOI-USD","short_market":"para:AAOI","apr":43.8,"long_apr":0,"short_apr":43.8,"entry_bps":-61.8,"entry_bps_usd":-70.7,"cost_bps":69.9,"cost_bps_usd":69.9,"breakeven_s":3600,"breakeven_usd_s":3600,"size_usd":"1400","fees_known":true,"premium_bps":-27,"premium_bps_usd":-35.9,"hedge":1},{"id":"funding-carry:applied-optoelectronics:lighter:perp/207+hyperliquid:para/para:AAOI","strategy":"funding-carry","asset_id":"applied-optoelectronics","symbol":"AAOI","legs":[{"segment_id":"lighter:perp","market":"207","kind":"perp","side":"buy","quote_asset_id":"usd","peg_asset_id":"usd","settlement_asset_id":"usd-coin","tier":"core","age_s":0,"funding_interval_s":3600},{"segment_id":"hyperliquid:para","market":"para:AAOI","kind":"perp","side":"sell","quote_asset_id":"tether","peg_asset_id":"usd","settlement_asset_id":"usd-coin","tier":"core","age_s":1.161,"funding_interval_s":3600}],"tier":"core","age_s":1.161,"headline":{"apr":43.8},"rank":4342.67,"edge_bps":-42.6,"edge_usd_bps":-53.5,"basis_bps":10.9,"basis":["usd","tether"],"quote_exposure":null,"kind":"perp","pair":"applied-optoelectronics|hyperliquid:para|lighter:perp","long":"lighter:perp","short":"hyperliquid:para","long_market":"207","short_market":"para:AAOI","apr":43.8,"long_apr":0.035,"short_apr":43.8,"entry_bps":-42.6,"entry_bps_usd":-53.5,"cost_bps":71.6,"cost_bps_usd":71.6,"breakeven_s":3600,"breakeven_usd_s":3600,"size_usd":"1400","fees_known":true,"premium_bps":-6.8,"premium_bps_usd":-17.8,"hedge":2}],"earn":[{"id":"earn-carry:lighter:gate/gate:simple-earn:LIT+gtrade:base-usdc/base-usdc:LIT/USD","strategy":"earn-carry","asset_id":"lighter","symbol":"LIT","legs":[{"segment_id":"gate","market":"gate:simple-earn:LIT","kind":"spot","side":"buy","quote_asset_id":"lighter","settlement_asset_id":"lighter","tier":"core","age_s":2331.269},{"segment_id":"gtrade:base-usdc","market":"base-usdc:LIT/USD","kind":"perp","side":"sell","quote_asset_id":"usd","settlement_asset_id":"usd-coin","tier":"extended","age_s":0.674}],"tier":"extended","age_s":2331.269,"headline":{"apr":8.1},"rank":810,"edge_bps":-7.6,"edge_usd_bps":-7.6,"basis_bps":null,"basis":null,"quote_exposure":null,"venue_id":"gate","instrument":"gate:simple-earn:LIT","earn_apr":1.2092,"lock_s":null,"tags":["flexible"],"max_qty":null,"max_usd":null,"url":"https://www.gate.com/simple-earn","perp":{"asset_id":"lighter","symbol":"LIT","segment_id":"gtrade:base-usdc","market":"base-usdc:LIT/USD","funding_apr":6.89376623762506,"funding_interval_s":3600,"bid_usd":"999.852223757","taker_fee_bps":5,"perps":36,"short_funding_apr":6.94,"short_borrow_apr":0.05},"combined_apr":8.10296623762506,"entry_bps":-7.6,"entry_bps_usd":-7.6,"cost_bps":15.2,"cost_bps_usd":15.2,"breakeven_s":7200,"breakeven_usd_s":7200},{"id":"earn-carry:lighter:okx/okx:simple-earn:LIT+gtrade:base-usdc/base-usdc:LIT/USD","strategy":"earn-carry","asset_id":"lighter","symbol":"LIT","legs":[{"segment_id":"okx","market":"okx:simple-earn:LIT","kind":"spot","side":"buy","quote_asset_id":"lighter","settlement_asset_id":"lighter","tier":"core","age_s":2031.002},{"segment_id":"gtrade:base-usdc","market":"base-usdc:LIT/USD","kind":"perp","side":"sell","quote_asset_id":"usd","settlement_asset_id":"usd-coin","tier":"extended","age_s":0.674}],"tier":"extended","age_s":2031.002,"headline":{"apr":7.2},"rank":720,"edge_bps":-7.6,"edge_usd_bps":-7.6,"basis_bps":null,"basis":null,"quote_exposure":null,"venue_id":"okx","instrument":"okx:simple-earn:LIT","earn_apr":0.31,"lock_s":null,"tags":["flexible"],"max_qty":null,"max_usd":null,"url":"https://www.okx.com/earn/simple-earn","perp":{"asset_id":"lighter","symbol":"LIT","segment_id":"gtrade:base-usdc","market":"base-usdc:LIT/USD","funding_apr":6.89376623762506,"funding_interval_s":3600,"bid_usd":"999.852223757","taker_fee_bps":5,"perps":36,"short_funding_apr":6.94,"short_borrow_apr":0.05},"combined_apr":7.20376623762506,"entry_bps":-7.6,"entry_bps_usd":-7.6,"cost_bps":15.2,"cost_bps_usd":15.2,"breakeven_s":7200,"breakeven_usd_s":7200},{"id":"earn-carry:treehouse:bitget/bitget:TREE:None:flexible:0.0:4000000.0+bitget:usdt/TREEUSDT","strategy":"earn-carry","asset_id":"treehouse","symbol":"TREE","legs":[{"segment_id":"bitget","market":"bitget:TREE:None:flexible:0.0:4000000.0","kind":"spot","side":"buy","quote_asset_id":"treehouse","settlement_asset_id":"treehouse","tier":"core","age_s":2631.27},{"segment_id":"bitget:usdt","market":"TREEUSDT","kind":"perp","side":"sell","quote_asset_id":"tether","settlement_asset_id":"tether","tier":"core","age_s":5.974,"polled":true}],"tier":"core","age_s":2631.27,"headline":{"apr":3.76},"rank":376,"edge_bps":-12.7,"edge_usd_bps":-12.7,"basis_bps":null,"basis":null,"quote_exposure":null,"venue_id":"bitget","instrument":"bitget:TREE:None:flexible:0.0:4000000.0","earn_apr":3.65,"lock_s":null,"tags":["flexible"],"max_qty":"4000000","max_usd":"119742.10924776","url":"https://www.bitget.com/earning/savings","perp":{"asset_id":"treehouse","symbol":"TREE","segment_id":"bitget:usdt","market":"TREEUSDT","funding_apr":0.1095,"funding_interval_s":14400,"bid_usd":"115.49986962","taker_fee_bps":6,"perps":15},"combined_apr":3.7595,"entry_bps":-12.7,"entry_bps_usd":-12.7,"cost_bps":25.4,"cost_bps_usd":25.4,"breakeven_s":21600,"breakeven_usd_s":21600}],"maker":[{"id":"hedged-maker:ethereum:aster:perp/ETHU:buy","strategy":"hedged-maker","asset_id":"ethereum","symbol":"ETH","legs":[{"segment_id":"aster:perp","market":"ETHU","kind":"perp","side":"buy","quote_asset_id":"united-stables","peg_asset_id":"usd","settlement_asset_id":"united-stables","tier":"core","age_s":0.529},{"segment_id":"coinbase:spot","market":"ETH-INR","kind":"spot","side":"sell","quote_asset_id":"indian-rupee","peg_asset_id":"indian-rupee","settlement_asset_id":"indian-rupee","tier":"core","age_s":1.828}],"tier":"core","age_s":1.828,"headline":{"edge_bps":355.51},"rank":355.51,"edge_bps":355.51,"edge_usd_bps":360.56,"basis_bps":-5.05,"basis":["united-stables","indian-rupee"],"quote_exposure":["indian-rupee"],"segment_id":"aster:perp","market":"ETHU","side":"buy","quote":"1869.91","quote_usd":"1868.96","vs_best_bps":361.95,"join_bps":355.51,"join_bps_usd":360.56,"filled":1,"hedges":["coinbase:spot"],"spread_bps":22.09,"maker_fee_bps":1,"time":"2026-11-17T21:29:51.127Z"},{"id":"hedged-maker:ethereum:aster:perp/ETHUSDC:buy","strategy":"hedged-maker","asset_id":"ethereum","symbol":"ETH","legs":[{"segment_id":"aster:perp","market":"ETHUSDC","kind":"perp","side":"buy","quote_asset_id":"usd-coin","peg_asset_id":"usd","settlement_asset_id":"usd-coin","tier":"core","age_s":0.479},{"segment_id":"coinbase:spot","market":"ETH-INR","kind":"spot","side":"sell","quote_asset_id":"indian-rupee","peg_asset_id":"indian-rupee","settlement_asset_id":"indian-rupee","tier":"core","age_s":1.828}],"tier":"core","age_s":1.828,"headline":{"edge_bps":341.55},"rank":341.55,"edge_bps":341.55,"edge_usd_bps":343.55,"basis_bps":-2,"basis":["usd-coin","indian-rupee"],"quote_exposure":["indian-rupee"],"segment_id":"aster:perp","market":"ETHUSDC","side":"buy","quote":"1869.93","quote_usd":"1869.56","vs_best_bps":347.48,"join_bps":341.55,"join_bps_usd":343.55,"filled":1,"hedges":["coinbase:spot"],"spread_bps":1.27,"maker_fee_bps":1,"time":"2026-11-17T21:29:51.127Z"},{"id":"hedged-maker:ethereum:dydx:perp/ETH-USD:buy","strategy":"hedged-maker","asset_id":"ethereum","symbol":"ETH","legs":[{"segment_id":"dydx:perp","market":"ETH-USD","kind":"perp","side":"buy","quote_asset_id":"usd","peg_asset_id":"usd","settlement_asset_id":"usd-coin","tier":"core","age_s":0.552},{"segment_id":"coinbase:spot","market":"ETH-INR","kind":"spot","side":"sell","quote_asset_id":"indian-rupee","peg_asset_id":"indian-rupee","settlement_asset_id":"indian-rupee","tier":"core","age_s":1.828}],"tier":"core","age_s":1.828,"headline":{"edge_bps":339.58},"rank":339.58,"edge_bps":339.58,"edge_usd_bps":339.58,"basis_bps":0,"basis":["usd","indian-rupee"],"quote_exposure":["indian-rupee"],"segment_id":"dydx:perp","market":"ETH-USD","side":"buy","quote":"1869.94","quote_usd":"1869.94","vs_best_bps":345.44,"join_bps":339.58,"join_bps_usd":339.58,"filled":1,"hedges":["coinbase:spot"],"spread_bps":13.82,"maker_fee_bps":1,"time":"2026-11-17T21:29:51.127Z"}],"strategies":{"funding-carry":{"status":"ok","rows":2335,"locked":null,"withheld":null},"cash-carry":{"status":"ok","rows":1665,"locked":null,"withheld":null},"earn-carry":{"status":"ok","rows":223,"locked":null,"withheld":null},"hedged-taker":{"status":"ok","rows":15543,"locked":null,"withheld":null},"hedged-maker":{"status":"ok","rows":1190,"locked":null,"withheld":null}},"live":true,"error":null},"meta":{"as_of":"2026-11-17T21:29:51.629Z","assets":{"applied-optoelectronics":{"id":"applied-optoelectronics","symbol":"AAOI","name":"Applied Optoelectronics","icon_url":"https://catalogue.tribulnation.com/icons/asset/applied-optoelectronics.svg","category":"stock","provisional":false},"ciena":{"id":"ciena","symbol":"CIEN","name":"Ciena","icon_url":"https://catalogue.tribulnation.com/icons/asset/ciena.svg","category":"stock","provisional":false},"reddit":{"id":"reddit","symbol":"RDDT","name":"Reddit","icon_url":"https://catalogue.tribulnation.com/icons/asset/reddit.svg","category":"stock","provisional":false}},"page":{"limit":100,"has_more":true,"next_cursor":"eyJvZmZzZXQiOiIxMDAifQ"}}}}}}}},"default":{"$ref":"#/components/responses/Error"}}}},"/live/opportunities/{asset}":{"get":{"operationId":"get_live_opportunities_asset","summary":"One asset: its markets with fees, depth and maker ladder, its rows.","tags":["live"],"parameters":[{"name":"asset","in":"path","required":true,"description":"A catalogue asset id (`bitcoin`); `/v1/search` finds it.","schema":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._-]{0,79}$"},"example":"bitcoin"}],"security":[{"userKey":["market:read"]}],"x-scope":"market:read","x-plan":"Ultra","responses":{"200":{"description":"The live answer, as `{data, meta}` in the API’s names.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"asset_id":{"type":"string","description":"The catalogue asset id."},"plan":{"type":"string","enum":["free","pro","ultra"],"description":"The plan the key reads at."},"delayed_s":{"type":"number","description":"How much older than `meta.as_of` the rows are, seconds: 0 for live plans."},"markets":{"type":["array","null"],"items":{"$ref":"#/components/schemas/Market"},"description":"The asset's markets the plan sees."},"rate":{"anyOf":[{"$ref":"#/components/schemas/Rate"},{"type":"null"}],"description":"The asset's USD rate (null when it has none)."},"rows":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/TakerRow"},{"$ref":"#/components/schemas/FundingCarryRow"},{"$ref":"#/components/schemas/CashCarryRow"},{"$ref":"#/components/schemas/EarnCarryRow"},{"$ref":"#/components/schemas/MakerRow"}]},"description":"The asset's opportunity rows, every strategy, each strategy's best first."},"withheld":{"anyOf":[{"$ref":"#/components/schemas/Withheld"},{"type":"null"}],"description":"Pro's extended rows, replaced by their count and best; null when none."},"truncated":{"type":"boolean","description":"The asset has more rows than `rows` holds."},"live":{"type":"boolean","description":"Always `true`: these are live rows."},"error":{"type":"null","description":"Always `null` on a 200."}},"required":["asset_id","plan","delayed_s","markets","rate","rows","withheld","truncated","live","error"],"description":"`GET /live/opportunities/{asset}`: one asset's markets (fees, depth curve, maker ladder), its rate and its rows, for the key's plan."},"meta":{"type":"object","properties":{"as_of":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the data is current as of: its build or update time, else the answer’s."}},"required":["as_of"]}},"required":["data","meta"]},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/live/opportunities/bitcoin (recorded 2026-11-17)","value":{"data":{"asset_id":"bitcoin","plan":"ultra","delayed_s":0,"markets":[{"segment_id":"aster:perp","market":"BTCU","kind":"perp","quote_asset_id":"united-stables","settlement_asset_id":"united-stables","tier":"core","bid":"63976.7","ask":"63985","bid_qty":"1.523","ask_qty":"0.21","mark_price":"63989.44036651","index_price":"64014.51324727","funding_rate":0.00001277,"funding_interval_s":28800,"next_funding_at":"2026-11-18T00:00:00.000Z","open_interest":null,"received_at":"2026-11-17T21:03:34.313Z","age_s":0.085,"ctx_age_s":0.242,"live":true,"taker_fee_bps":3.5,"maker_fee_bps":1,"fee_source":"configured","levels":20,"depth_age_s":0.287,"curve":null,"maker":{"bid":"63976.7","ask":"63980.1","buy":[{"quote":"69589.7","vs_best_bps":877.35,"join_bps":840.48,"filled":1,"hedges":["coinbase:spot"]},{"quote":"68010.6","vs_best_bps":630.53,"join_bps":611.26,"filled":1,"hedges":["coinbase:spot"]},{"quote":"66649.2","vs_best_bps":417.73,"join_bps":409.18,"filled":1,"hedges":["coinbase:spot","okx:spot","binance:spot","bitfinex:perp","bitget:spot","mexc:spot"]}],"sell":[{"quote":"63826.2","vs_best_bps":24.05,"join_bps":24.08,"filled":1,"hedges":["whitebit:spot"]},{"quote":"63927.1","vs_best_bps":8.29,"join_bps":8.29,"filled":1,"hedges":["blofin:perp","whitebit:spot","bullish:spot","bullish:spot","bullish:spot","bullish:spot","bullish:spot","bullish:spot"]},{"quote":"63943.6","vs_best_bps":5.7,"join_bps":5.71,"filled":1,"hedges":["blofin:perp","whitebit:spot","bullish:spot","bullish:spot","bullish:spot","bullish:spot","bullish:spot","bullish:spot"]}]}},{"segment_id":"aster:perp","market":"BTCUSD1","kind":"perp","quote_asset_id":"usd1","settlement_asset_id":"usd1","tier":"core","bid":"64007.3","ask":"64011.4","bid_qty":"0.136","ask_qty":"0.468","mark_price":"64014.37787258","index_price":"64034.39238032","funding_rate":0.0001,"funding_interval_s":28800,"next_funding_at":"2026-11-18T00:00:00.000Z","open_interest":null,"received_at":"2026-11-17T21:03:34.178Z","age_s":0.22,"ctx_age_s":0.242,"live":true,"taker_fee_bps":3.5,"maker_fee_bps":1,"fee_source":"configured","levels":20,"depth_age_s":0.439,"curve":null,"maker":{"bid":"64007.3","ask":"64011.5","buy":[{"quote":"69589.9","vs_best_bps":872.19,"join_bps":835.74,"filled":1,"hedges":["coinbase:spot"]},{"quote":"68010.9","vs_best_bps":625.49,"join_bps":606.52,"filled":1,"hedges":["coinbase:spot"]},{"quote":"66650.4","vs_best_bps":412.95,"join_bps":404.59,"filled":1,"hedges":["coinbase:spot","okx:spot","binance:spot","bitfinex:perp","bitget:spot","mexc:spot"]}],"sell":[{"quote":"63826.2","vs_best_bps":28.94,"join_bps":28.98,"filled":1,"hedges":["whitebit:spot"]},{"quote":"63927","vs_best_bps":13.19,"join_bps":13.2,"filled":1,"hedges":["blofin:perp","whitebit:spot","bullish:spot","bullish:spot","bullish:spot","bullish:spot","bullish:spot","bullish:spot"]},{"quote":"63943.6","vs_best_bps":10.61,"join_bps":10.61,"filled":1,"hedges":["blofin:perp","whitebit:spot","bullish:spot","bullish:spot","bullish:spot","bullish:spot","bullish:spot","bullish:spot"]}]}},{"segment_id":"aster:perp","market":"BTCUSDC","kind":"perp","quote_asset_id":"usd-coin","settlement_asset_id":"usd-coin","tier":"core","bid":"63927.9","ask":"63935.6","bid_qty":"0.365","ask_qty":"0.078","mark_price":"63915.51832204","index_price":"63946.52237256","funding_rate":0.0001,"funding_interval_s":28800,"next_funding_at":"2026-11-18T00:00:00.000Z","open_interest":null,"received_at":"2026-11-17T21:03:34.382Z","age_s":0.016,"ctx_age_s":0.242,"live":true,"taker_fee_bps":3.5,"maker_fee_bps":1,"fee_source":"configured","levels":20,"depth_age_s":0.241,"curve":null,"maker":{"bid":"63927.9","ask":"63935.6","buy":[{"quote":"69589.3","vs_best_bps":885.6,"join_bps":848.05,"filled":1,"hedges":["coinbase:spot"]},{"quote":"68010.2","vs_best_bps":638.57,"join_bps":618.81,"filled":1,"hedges":["coinbase:spot"]},{"quote":"66647.2","vs_best_bps":425.37,"join_bps":416.51,"filled":1,"hedges":["coinbase:spot","okx:spot","binance:spot","bitfinex:perp","bitget:spot","mexc:spot"]}],"sell":[{"quote":"63826.2","vs_best_bps":17.11,"join_bps":17.12,"filled":1,"hedges":["whitebit:spot"]},{"quote":"63927.1","vs_best_bps":1.33,"join_bps":1.33,"filled":1,"hedges":["blofin:perp","whitebit:spot","bullish:spot","bullish:spot","bullish:spot","bullish:spot","bullish:spot","bullish:spot"]},{"quote":"63943.6","vs_best_bps":-1.25,"join_bps":-1.25,"filled":1,"hedges":["blofin:perp","whitebit:spot","bullish:spot","bullish:spot","bullish:spot","bullish:spot","bullish:spot","bullish:spot"]}]}}],"rate":{"usd":"63955.6075","quality":"ok","source":"markets","markets":[{"segment_id":"binance:spot","market":"BTCUSD","hop":1,"mid":"63974.11"},{"segment_id":"binanceus:spot","market":"BTCUSD","hop":1,"mid":"63958.18"},{"segment_id":"bitfinex:spot","market":"BTCUSD","hop":1,"mid":"63999"}],"dropped":[],"hops":1,"spread_bps":9.94048879920296,"oldest_s":5.413},"rows":[{"id":"funding-carry:bitcoin:evedex:perp/BTCUSD+gtrade:megaeth-usdm/megaeth-usdm:BTC/USD","strategy":"funding-carry","asset_id":"bitcoin","symbol":"BTC","legs":[{"segment_id":"evedex:perp","market":"BTCUSD","kind":"perp","side":"buy","quote_asset_id":"tether","peg_asset_id":"usd","settlement_asset_id":"tether","tier":"extended","age_s":0,"funding_interval_s":3600},{"segment_id":"gtrade:megaeth-usdm","market":"megaeth-usdm:BTC/USD","kind":"perp","side":"sell","quote_asset_id":"usd","peg_asset_id":"usd","settlement_asset_id":"megausd","tier":"extended","age_s":0.798,"funding_interval_s":3600}],"tier":"extended","age_s":0.798,"headline":{"apr":1.16},"rank":106.98,"edge_bps":-17.8,"edge_usd_bps":-6.4,"basis_bps":-11.4,"basis":["tether","usd"],"quote_exposure":null,"kind":"perp","pair":"bitcoin|gtrade:megaeth-usdm|evedex:perp","long":"evedex:perp","short":"gtrade:megaeth-usdm","long_market":"BTCUSD","short_market":"megaeth-usdm:BTC/USD","apr":1.16,"long_apr":-0.379,"short_apr":0.786,"entry_bps":-17.8,"entry_bps_usd":-6.4,"cost_bps":17.3,"cost_bps_usd":17.3,"breakeven_s":46800,"breakeven_usd_s":46800,"size_usd":"50000","fees_known":true,"premium_bps":-9.2,"premium_bps_usd":2.3,"short_funding_apr":0.806,"short_borrow_apr":0.02},{"id":"funding-carry:bitcoin:evedex:perp/BTCUSD+gtrade:polygon-usdc/polygon-usdc:BTC/USD","strategy":"funding-carry","asset_id":"bitcoin","symbol":"BTC","legs":[{"segment_id":"evedex:perp","market":"BTCUSD","kind":"perp","side":"buy","quote_asset_id":"tether","peg_asset_id":"usd","settlement_asset_id":"tether","tier":"extended","age_s":0,"funding_interval_s":3600},{"segment_id":"gtrade:polygon-usdc","market":"polygon-usdc:BTC/USD","kind":"perp","side":"sell","quote_asset_id":"usd","peg_asset_id":"usd","settlement_asset_id":"usd-coin","tier":"extended","age_s":0.798,"funding_interval_s":3600}],"tier":"extended","age_s":0.798,"headline":{"apr":1.13},"rank":103.98,"edge_bps":-17.6,"edge_usd_bps":-6.1,"basis_bps":-11.5,"basis":["tether","usd"],"quote_exposure":null,"kind":"perp","pair":"bitcoin|gtrade:polygon-usdc|evedex:perp","long":"evedex:perp","short":"gtrade:polygon-usdc","long_market":"BTCUSD","short_market":"polygon-usdc:BTC/USD","apr":1.13,"long_apr":-0.379,"short_apr":0.747,"entry_bps":-17.6,"entry_bps_usd":-6.1,"cost_bps":17.3,"cost_bps_usd":17.3,"breakeven_s":46800,"breakeven_usd_s":46800,"size_usd":"100000","fees_known":true,"premium_bps":-9,"premium_bps_usd":2.5,"short_funding_apr":0.767,"short_borrow_apr":0.02},{"id":"funding-carry:bitcoin:grvt:perp/BTC_USDT_Perp+gtrade:megaeth-usdm/megaeth-usdm:BTC/USD","strategy":"funding-carry","asset_id":"bitcoin","symbol":"BTC","legs":[{"segment_id":"grvt:perp","market":"BTC_USDT_Perp","kind":"perp","side":"buy","quote_asset_id":"tether","peg_asset_id":"usd","settlement_asset_id":"tether","tier":"extended","age_s":0,"funding_interval_s":28800},{"segment_id":"gtrade:megaeth-usdm","market":"megaeth-usdm:BTC/USD","kind":"perp","side":"sell","quote_asset_id":"usd","peg_asset_id":"usd","settlement_asset_id":"megausd","tier":"extended","age_s":0.798,"funding_interval_s":3600}],"tier":"extended","age_s":0.798,"headline":{"apr":0.829},"rank":74.04,"edge_bps":-17.1,"edge_usd_bps":-5.6,"basis_bps":-11.5,"basis":["tether","usd"],"quote_exposure":null,"kind":"perp","pair":"bitcoin|grvt:perp|gtrade:megaeth-usdm","long":"grvt:perp","short":"gtrade:megaeth-usdm","long_market":"BTC_USDT_Perp","short_market":"megaeth-usdm:BTC/USD","apr":0.829,"long_apr":-0.0427,"short_apr":0.786,"entry_bps":-17.1,"entry_bps_usd":-5.6,"cost_bps":17,"cost_bps_usd":17,"breakeven_s":64800,"breakeven_usd_s":64800,"size_usd":"50000","fees_known":true,"premium_bps":-8.6,"premium_bps_usd":2.9,"short_funding_apr":0.806,"short_borrow_apr":0.02}],"withheld":null,"truncated":true,"live":true,"error":null},"meta":{"as_of":"2026-11-17T21:03:34.398Z"}}}}}}},"default":{"$ref":"#/components/responses/Error"}}}},"/live/book/{asset}":{"get":{"operationId":"get_live_book_asset","summary":"One asset’s order books, fresh: the read watches book:<asset> for 30 s and waits for a full build (≤ 3.5 s, else 503 warming); ?depth=1..50 levels a side (live: the WebSocket /live/book:<asset>).","tags":["live"],"parameters":[{"name":"asset","in":"path","required":true,"description":"A catalogue asset id (`bitcoin`); `/v1/search` finds it.","schema":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._-]{0,79}$"},"example":"bitcoin"},{"name":"depth","in":"query","required":false,"description":"Levels a side, 1 to 50 (default: every level).","schema":{"type":"integer","minimum":1,"maximum":50},"example":10}],"security":[{"userKey":["market:read"]}],"x-scope":"market:read","x-plan":"Ultra","responses":{"200":{"description":"The topic’s current view plus `age_s`, never older than the freshness limit, as `{data, meta}`.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"age_s":{"type":"number","description":"How old the build is, seconds (by LiveHub's receipt; served as `age_s`)."},"stale":{"type":"boolean","const":false,"description":"Always `false`: a stale view is never answered (`503 warming` instead)."},"v":{"const":2,"description":"The view format’s version, the same as a socket frame’s `v` of this view."},"topic":{"type":"string","description":"The topic this view is of (`book:bitcoin`)."},"plan":{"type":"string","enum":["free","pro","ultra"],"description":"The plan the view is cut for."},"delayed_s":{"type":"number","description":"How much older than the view’s build time (a frame’s `ts_ms`) the rows are: 0 for live plans and when not ready."},"status":{"type":"string","enum":["ok","not_ready"],"description":"`ok`, or `not_ready` before the first build."},"locked":{"anyOf":[{"$ref":"#/components/schemas/Locked"},{"type":"null"}],"description":"Free's locked rows, as their count and best; null when none."},"withheld":{"anyOf":[{"$ref":"#/components/schemas/Withheld"},{"type":"null"}],"description":"Pro's extended rows, replaced by their count and best; null when none."},"books":{"type":["array","null"],"items":{"$ref":"#/components/schemas/Book"},"description":"`book` topics: the books the plan sees (Pro: core venues' only); null for other topics."},"starting":{"type":["array","null"],"items":{"type":"string"},"description":"`book` topics: the snapshot's `starting`, the exchange ids whose feed has not listed its markets yet (a chip's venue there is starting, not unlisted); null for other topics."}},"required":["age_s","stale","v","topic","plan","delayed_s","status","locked","withheld","books","starting"],"description":"`GET /live/book/{asset}`: the `book:<asset>` topic's view for the key's plan, never older than the freshness limit. `books` holds each venue's order book."},"meta":{"type":"object","properties":{"as_of":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the data is current as of: its build or update time, else the answer’s."}},"required":["as_of"]}},"required":["data","meta"]},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/live/book/bitcoin?depth=3 (recorded 2026-11-17)","value":{"data":{"v":2,"topic":"book:bitcoin","plan":"ultra","delayed_s":0,"status":"ok","locked":null,"withheld":null,"books":[{"segment_id":"aster:perp","market":"BTCUSDT","kind":"perp","quote_asset_id":"tether","settlement_asset_id":"tether","tier":"core","source":"stream","note":null,"error":null,"bid":"64399.4","ask":"64399.5","received_at":"2026-11-17T21:30:00.119Z","depth_at":"2026-11-17T21:29:59.968Z","levels":20,"bids":[["64399.4","3.097"],["64398.6","1.91"],["64397.2","2.298"]],"asks":[["64399.5","0.605"],["64402.7","0.002"],["64402.8","0.301"]]},{"segment_id":"aster:spot","market":"BTCUSDT","kind":"spot","quote_asset_id":"tether","tier":"core","source":"stream","note":null,"error":null,"bid":"64424.03","ask":"64426.32","received_at":"2026-11-17T21:30:00.118Z","depth_at":"2026-11-17T21:29:59.842Z","levels":20,"bids":[["64424.03","0.91776"],["64424","0.00318"],["64423.97","0.00269"]],"asks":[["64424.68","0.20674"],["64425.59","0.06813"],["64426.43","0.00033"]]},{"segment_id":"binance:spot","market":"BTCUSDT","kind":"spot","quote_asset_id":"tether","tier":"core","source":"rest","note":null,"error":null,"bid":"64429.08","ask":"64429.77","received_at":"2026-11-17T21:30:00.121Z","depth_at":"2026-11-17T21:29:59.875Z","levels":51,"bids":[["64429.08","1.02088"],["64424.35","5.77659"],["64424.34","0.00056"]],"asks":[["64429.77","0.00018"],["64430","1.62811"],["64435","2.79668"]]}],"starting":[],"age_s":0.905,"stale":false},"meta":{"as_of":"2026-11-17T21:30:00.126Z"}}}}}}},"default":{"$ref":"#/components/responses/Error"}}}},"/live/asset/{asset}":{"get":{"operationId":"get_live_asset_asset","summary":"One asset’s markets, rate and rows, fresh as /live/book/{asset} (live: the WebSocket /live/asset:<asset>).","tags":["live"],"parameters":[{"name":"asset","in":"path","required":true,"description":"A catalogue asset id (`bitcoin`); `/v1/search` finds it.","schema":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._-]{0,79}$"},"example":"bitcoin"}],"security":[{"userKey":["market:read"]}],"x-scope":"market:read","x-plan":"Ultra","responses":{"200":{"description":"The topic’s current view plus `age_s`, never older than the freshness limit, as `{data, meta}`.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"age_s":{"type":"number","description":"How old the build is, seconds (by LiveHub's receipt; served as `age_s`)."},"stale":{"type":"boolean","const":false,"description":"Always `false`: a stale view is never answered (`503 warming` instead)."},"v":{"const":2,"description":"The view format’s version, the same as a socket frame’s `v` of this view."},"topic":{"type":"string","description":"The topic this view is of (`book:bitcoin`)."},"plan":{"type":"string","enum":["free","pro","ultra"],"description":"The plan the view is cut for."},"delayed_s":{"type":"number","description":"How much older than the view’s build time (a frame’s `ts_ms`) the rows are: 0 for live plans and when not ready."},"status":{"type":"string","enum":["ok","not_ready"],"description":"`ok`, or `not_ready` before the first build."},"rows":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/TakerRow"},{"$ref":"#/components/schemas/FundingCarryRow"},{"$ref":"#/components/schemas/CashCarryRow"},{"$ref":"#/components/schemas/EarnCarryRow"},{"$ref":"#/components/schemas/MakerRow"}]},"description":"Rows the plan sees with every figure. An asset topic's rows of every strategy, in strategy order, each strategy's best first."},"truncated":{"type":"boolean","description":"The plan sees more rows than `rows` holds (cut at `limit`, or the snapshot holds only the best of them): the page reads the rest over HTTP."},"locked":{"anyOf":[{"$ref":"#/components/schemas/Locked"},{"type":"null"}],"description":"Free's locked rows, as their count and best; null when none."},"withheld":{"anyOf":[{"$ref":"#/components/schemas/Withheld"},{"type":"null"}],"description":"Pro's extended rows, replaced by their count and best; null when none."},"markets":{"type":["array","null"],"items":{"$ref":"#/components/schemas/Market"},"description":"Asset topics: the markets the plan sees; null for other topics."},"rate":{"anyOf":[{"$ref":"#/components/schemas/Rate"},{"type":"null"}],"description":"Asset topics: the asset's rate (null also when it has none)."},"rates":{"type":["object","null"],"additionalProperties":{"$ref":"#/components/schemas/CompactRate"},"description":"`rates` topics: every rate; null for other topics."},"books":{"type":["array","null"],"items":{"$ref":"#/components/schemas/Book"},"description":"`book` topics: the books the plan sees (Pro: core venues' only); null for other topics."},"starting":{"type":["array","null"],"items":{"type":"string"},"description":"`book` topics: the snapshot's `starting`, the exchange ids whose feed has not listed its markets yet (a chip's venue there is starting, not unlisted); null for other topics."}},"required":["age_s","stale","v","topic","plan","delayed_s","status","rows","truncated","locked","withheld","markets","rate","rates","books","starting"],"description":"`GET /live/asset/{asset}`: the `asset:<asset>` topic's view for the key's plan (`markets`, `rate`, `rows`), never older than the freshness limit."},"meta":{"type":"object","properties":{"as_of":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the data is current as of: its build or update time, else the answer’s."}},"required":["as_of"]}},"required":["data","meta"]},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/live/asset/bitcoin (recorded 2026-11-17)","value":{"data":{"v":2,"topic":"asset:bitcoin","plan":"ultra","delayed_s":0,"status":"ok","rows":[{"id":"funding-carry:bitcoin:evedex:perp/BTCUSD+gtrade:megaeth-usdm/megaeth-usdm:BTC/USD","strategy":"funding-carry","asset_id":"bitcoin","symbol":"BTC","legs":[{"segment_id":"evedex:perp","market":"BTCUSD","kind":"perp","side":"buy","quote_asset_id":"tether","peg_asset_id":"usd","settlement_asset_id":"tether","tier":"extended","age_s":0,"funding_interval_s":3600},{"segment_id":"gtrade:megaeth-usdm","market":"megaeth-usdm:BTC/USD","kind":"perp","side":"sell","quote_asset_id":"usd","peg_asset_id":"usd","settlement_asset_id":"megausd","tier":"extended","age_s":0.122,"funding_interval_s":3600}],"tier":"extended","age_s":0.122,"headline":{"apr":1.16},"rank":106.82,"edge_bps":-15.6,"edge_usd_bps":-4.7,"basis_bps":-10.9,"basis":["tether","usd"],"quote_exposure":null,"kind":"perp","pair":"bitcoin|gtrade:megaeth-usdm|evedex:perp","long":"evedex:perp","short":"gtrade:megaeth-usdm","long_market":"BTCUSD","short_market":"megaeth-usdm:BTC/USD","apr":1.16,"long_apr":-0.379,"short_apr":0.786,"entry_bps":-15.6,"entry_bps_usd":-4.7,"cost_bps":17.6,"cost_bps_usd":17.6,"breakeven_s":46800,"breakeven_usd_s":46800,"size_usd":"50000","fees_known":true,"premium_bps":-6.8,"premium_bps_usd":4.2,"short_funding_apr":0.806,"short_borrow_apr":0.02},{"id":"funding-carry:bitcoin:evedex:perp/BTCUSD+gtrade:polygon-usdc/polygon-usdc:BTC/USD","strategy":"funding-carry","asset_id":"bitcoin","symbol":"BTC","legs":[{"segment_id":"evedex:perp","market":"BTCUSD","kind":"perp","side":"buy","quote_asset_id":"tether","peg_asset_id":"usd","settlement_asset_id":"tether","tier":"extended","age_s":0,"funding_interval_s":3600},{"segment_id":"gtrade:polygon-usdc","market":"polygon-usdc:BTC/USD","kind":"perp","side":"sell","quote_asset_id":"usd","peg_asset_id":"usd","settlement_asset_id":"usd-coin","tier":"extended","age_s":0.122,"funding_interval_s":3600}],"tier":"extended","age_s":0.122,"headline":{"apr":1.13},"rank":103.82,"edge_bps":-15.4,"edge_usd_bps":-4.4,"basis_bps":-11,"basis":["tether","usd"],"quote_exposure":null,"kind":"perp","pair":"bitcoin|gtrade:polygon-usdc|evedex:perp","long":"evedex:perp","short":"gtrade:polygon-usdc","long_market":"BTCUSD","short_market":"polygon-usdc:BTC/USD","apr":1.13,"long_apr":-0.379,"short_apr":0.749,"entry_bps":-15.4,"entry_bps_usd":-4.4,"cost_bps":17.6,"cost_bps_usd":17.6,"breakeven_s":50400,"breakeven_usd_s":50400,"size_usd":"100000","fees_known":true,"premium_bps":-6.6,"premium_bps_usd":4.4,"short_funding_apr":0.769,"short_borrow_apr":0.02},{"id":"funding-carry:bitcoin:evedex:perp/BTCUSD+gtrade:base-usdc/base-usdc:BTC/USD","strategy":"funding-carry","asset_id":"bitcoin","symbol":"BTC","legs":[{"segment_id":"evedex:perp","market":"BTCUSD","kind":"perp","side":"buy","quote_asset_id":"tether","peg_asset_id":"usd","settlement_asset_id":"tether","tier":"extended","age_s":0,"funding_interval_s":3600},{"segment_id":"gtrade:base-usdc","market":"base-usdc:BTC/USD","kind":"perp","side":"sell","quote_asset_id":"usd","peg_asset_id":"usd","settlement_asset_id":"usd-coin","tier":"extended","age_s":0.122,"funding_interval_s":3600}],"tier":"extended","age_s":0.122,"headline":{"apr":1.08},"rank":98.82,"edge_bps":-15.3,"edge_usd_bps":-4.3,"basis_bps":-11,"basis":["tether","usd"],"quote_exposure":null,"kind":"perp","pair":"bitcoin|gtrade:base-usdc|evedex:perp","long":"evedex:perp","short":"gtrade:base-usdc","long_market":"BTCUSD","short_market":"base-usdc:BTC/USD","apr":1.08,"long_apr":-0.379,"short_apr":0.702,"entry_bps":-15.3,"entry_bps_usd":-4.3,"cost_bps":17.6,"cost_bps_usd":17.6,"breakeven_s":50400,"breakeven_usd_s":50400,"size_usd":"250000","fees_known":true,"premium_bps":-6.5,"premium_bps_usd":4.5,"short_funding_apr":0.722,"short_borrow_apr":0.02}],"truncated":false,"locked":null,"withheld":null,"markets":[{"segment_id":"aster:perp","market":"BTCU","kind":"perp","quote_asset_id":"united-stables","settlement_asset_id":"united-stables","tier":"core","bid":"64136","ask":"64136.1","bid_qty":"0.882","ask_qty":"0.001","mark_price":"64153.30625014","index_price":"64414.44341182","funding_rate":0.00002074,"funding_interval_s":28800,"next_funding_at":"2026-11-18T00:00:00.000Z","open_interest":null,"received_at":"2026-11-17T21:30:03.655Z","age_s":0,"ctx_age_s":0.473,"live":true,"taker_fee_bps":3.5,"maker_fee_bps":1,"fee_source":"configured","levels":20,"depth_age_s":0.067,"curve":null,"maker":{"bid":"64136","ask":"64136.1","buy":[{"quote":"70336.1","vs_best_bps":966.72,"join_bps":922.15,"filled":1,"hedges":["coinbase:spot"]},{"quote":"66908.7","vs_best_bps":432.31,"join_bps":423.17,"filled":1,"hedges":["okx:spot","coinbase:spot","binance:spot","bitget:spot","mexc:spot","okx:spot"]},{"quote":"65676.8","vs_best_bps":240.25,"join_bps":237.39,"filled":1,"hedges":["okx:spot","coinbase:spot","bitfinex:perp","binance:spot","bitget:spot","mexc:spot","okx:spot"]}],"sell":[{"quote":"64305","vs_best_bps":-26.33,"join_bps":-26.3,"filled":1,"hedges":["bitfinex:spot"]},{"quote":"64305","vs_best_bps":-26.33,"join_bps":-26.3,"filled":1,"hedges":["bitfinex:spot"]},{"quote":"64305","vs_best_bps":-26.33,"join_bps":-26.3,"filled":1,"hedges":["bitfinex:spot"]}]}},{"segment_id":"aster:perp","market":"BTCUSD1","kind":"perp","quote_asset_id":"usd1","settlement_asset_id":"usd1","tier":"core","bid":"64418.9","ask":"64423","bid_qty":"0.011","ask_qty":"0.135","mark_price":"64416.2","index_price":"64432.87295879","funding_rate":0.0001,"funding_interval_s":28800,"next_funding_at":"2026-11-18T00:00:00.000Z","open_interest":null,"received_at":"2026-11-17T21:30:03.600Z","age_s":0.028,"ctx_age_s":0.473,"live":true,"taker_fee_bps":3.5,"maker_fee_bps":1,"fee_source":"configured","levels":20,"depth_age_s":0,"curve":null,"maker":{"bid":"64421","ask":"64431","buy":[{"quote":"70336.4","vs_best_bps":918.24,"join_bps":877.93,"filled":1,"hedges":["coinbase:spot"]},{"quote":"66919.6","vs_best_bps":387.86,"join_bps":380.48,"filled":1,"hedges":["okx:spot","coinbase:spot","binance:spot","bitget:spot","mexc:spot","okx:spot"]},{"quote":"65682.3","vs_best_bps":195.79,"join_bps":193.89,"filled":1,"hedges":["okx:spot","coinbase:spot","bitfinex:perp","binance:spot","bitget:spot","mexc:spot","okx:spot"]}],"sell":[{"quote":"64296","vs_best_bps":20.96,"join_bps":20.98,"filled":1,"hedges":["bitfinex:spot","aster:perp"]},{"quote":"64303.2","vs_best_bps":19.84,"join_bps":19.86,"filled":1,"hedges":["bitfinex:spot","aster:perp"]},{"quote":"64304.1","vs_best_bps":19.7,"join_bps":19.72,"filled":1,"hedges":["bitfinex:spot","aster:perp"]}]}},{"segment_id":"aster:perp","market":"BTCUSDC","kind":"perp","quote_asset_id":"usd-coin","settlement_asset_id":"usd-coin","tier":"core","bid":"64344.5","ask":"64352.4","bid_qty":"0.134","ask_qty":"0.712","mark_price":"64333.38336365","index_price":"64362.51440821","funding_rate":0.0001,"funding_interval_s":28800,"next_funding_at":"2026-11-18T00:00:00.000Z","open_interest":null,"received_at":"2026-11-17T21:30:03.700Z","age_s":0,"ctx_age_s":0.473,"live":true,"taker_fee_bps":3.5,"maker_fee_bps":1,"fee_source":"configured","levels":20,"depth_age_s":0.067,"curve":null,"maker":{"bid":"64350.8","ask":"64358.7","buy":[{"quote":"70336.3","vs_best_bps":930.14,"join_bps":888.8,"filled":1,"hedges":["coinbase:spot"]},{"quote":"66916.9","vs_best_bps":398.77,"join_bps":390.98,"filled":1,"hedges":["okx:spot","coinbase:spot","binance:spot","bitget:spot","mexc:spot","okx:spot"]},{"quote":"65681","vs_best_bps":206.71,"join_bps":204.59,"filled":1,"hedges":["okx:spot","coinbase:spot","bitfinex:perp","binance:spot","bitget:spot","mexc:spot","okx:spot"]}],"sell":[{"quote":"64296","vs_best_bps":9.75,"join_bps":9.75,"filled":1,"hedges":["bitfinex:spot","aster:perp"]},{"quote":"64303.2","vs_best_bps":8.63,"join_bps":8.63,"filled":1,"hedges":["bitfinex:spot","aster:perp"]},{"quote":"64304.1","vs_best_bps":8.49,"join_bps":8.49,"filled":1,"hedges":["bitfinex:spot","aster:perp"]}]}}],"rate":{"usd":"64376.0575","quality":"ok","source":"markets","markets":[{"segment_id":"binance:spot","market":"BTCUSD","hop":1,"mid":"64394.365"},{"segment_id":"binanceus:spot","market":"BTCUSD","hop":1,"mid":"64382.415"},{"segment_id":"bitfinex:spot","market":"BTCUSD","hop":1,"mid":"64419"}],"dropped":[],"hops":1,"spread_bps":10.7586582169924,"oldest_s":5.472},"rates":null,"books":null,"starting":null,"age_s":0,"stale":false},"meta":{"as_of":"2026-11-17T21:30:03.628Z"}}}}}}},"default":{"$ref":"#/components/responses/Error"}}}},"/live/funding":{"get":{"operationId":"get_live_funding","summary":"Funding spreads of the perp pairs, filtered (venues, assets, min_apr), ordered (sort) and paged (limit, cursor; 50 a page by default).","tags":["live"],"parameters":[{"name":"venues","in":"query","required":false,"description":"Only pairs on these venues, comma-separated catalogue venue ids (a leg's `segment_id` before `:`), at most 200; `venue_match` says whether both legs or one must be on them. Ids in no pair are listed in `meta.unmatched`.","schema":{"type":"string"},"example":"hyperliquid,binance,bybit"},{"name":"venue_match","in":"query","required":false,"description":"`all` (default): both legs on a listed venue, pairs the caller can trade there; `any`: at least one leg.","schema":{"type":"string","enum":["all","any"],"default":"all"}},{"name":"assets","in":"query","required":false,"description":"Only these assets, comma-separated catalogue ids, at most 200.","schema":{"type":"string"},"example":"bitcoin,ethereum"},{"name":"min_apr","in":"query","required":false,"description":"Only pairs whose sort figure (`carry` when `sort` is `rank` or `breakeven`) is at least this, a fraction a year (`0.1` = 10 %).","schema":{"type":"number"},"example":0.1},{"name":"sort","in":"query","required":false,"description":"`rank` (default): the Opportunities page’s order; a figure (`carry`, `current`, `avg_1d`, `avg_7d`, `avg_30d`) highest first; `breakeven` shortest `breakeven_s` first. Pairs without the figure go last.","schema":{"type":"string","enum":["rank","carry","current","avg_1d","avg_7d","avg_30d","breakeven"],"default":"rank"}},{"name":"limit","in":"query","required":false,"description":"Pairs per page, 1 to 1000 (default 50); `meta.page.total` says how many pairs match.","schema":{"type":"integer","minimum":1,"maximum":1000,"default":50}},{"name":"cursor","in":"query","required":false,"description":"The previous page's `meta.page.next_cursor`, sent with the same filters and `sort` (a cursor of other filters is refused).","schema":{"type":"string"}}],"security":[{"userKey":["market:read"]}],"x-scope":"market:read","x-plan":"Ultra","responses":{"200":{"description":"The live answer, as `{data, meta}` in the API’s names.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"End"},"pairs":{"type":"array","items":{"$ref":"#/components/schemas/FundingRow"}},"settlements_error":{"type":["string","null"]},"locked":{"anyOf":[{"$ref":"#/components/schemas/Locked"},{"type":"null"}],"description":"Free: the page's locked rows, left out of `pairs` (their count and best only)."},"withheld":{"anyOf":[{"$ref":"#/components/schemas/Withheld"},{"type":"null"}],"description":"Pro: the page's extended-venue rows, left out of `pairs` (their count and best)."},"others":{"type":"object","additionalProperties":{"type":"number"},"description":"Per asset: pairs on the filter's venues the overview does not list."},"filter":{"type":"string","description":"The reader's filter the pairs were cut under. The reader's filter the pairs were cut under (a `filterKey`)."},"short":{"type":"boolean","description":"LiveHub's read was short of its rows (bodies late): read again soon (#446b). True when LiveHub's read was short of its rows (bodies late): not cached, the page reads it again soon (#446b)."},"teaser":{"type":"object","properties":{"total":{"type":"number"},"best":{"type":"object","properties":{"apr":{"type":"number","description":"A carry row: its APR, a fraction."},"edge_bps":{"type":"number","description":"A taker or maker row: its edge, bps."}}}},"required":["total","best"],"description":"A signed-out visitor's teaser: `pairs` are the best few only; `total` is how many a free account lists, `best` the best figure among them. A signed-out visitor's teaser: `pairs` holds the top few only; `total` is how many a free account lists, `best` the best figure among them (Free's delayed view: its locked best rows are not in it)."}},"required":["end","pairs","locked","withheld"],"description":"The overview as a plan gets it: its pairs, what the plan holds back of them, and per asset the pairs on the filter's venues it does not list."},"meta":{"type":"object","properties":{"as_of":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the data is current as of: its build or update time, else the answer’s."},"assets":{"type":"object","description":"The assets the answer names, by id.","additionalProperties":true},"page":{"type":"object","description":"Where this page is: pass `next_cursor` back as `cursor` (`null`: the last page).","properties":{"limit":{"type":"integer"},"has_more":{"type":"boolean"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}]},"total":{"type":"integer"}},"required":["limit","has_more","next_cursor"]},"unmatched":{"type":"object","description":"The `venues` and `assets` asked for that are in no row of the plan's whole answer (a typo, or nothing live there); absent when every id matched.","properties":{"venues":{"type":"array","items":{"type":"string"}},"assets":{"type":"array","items":{"type":"string"}}}}},"required":["as_of"]}},"required":["data","meta"]},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/live/funding (recorded 2026-11-17)","value":{"data":{"end":"2026-11-14T00:00:00.000Z","pairs":[{"key":"applied-optoelectronics|hyperliquid:para|mexc:perp","asset_id":"applied-optoelectronics","symbol":"AAOI","source":"catalogue","a":{"segment_id":"hyperliquid:para","market":"para:AAOI","funding_interval_s":3600,"current":43.8,"avg_7d":-0.0263219280714286,"history":"ticks"},"b":{"segment_id":"mexc:perp","market":"AAOISTOCK_USDT","funding_interval_s":28800,"current":0,"avg_7d":0.0790485714285714,"history":"ticks"},"long":"a","current":-43.8,"avg_1d":-0.10178463,"avg_7d":0.1053704995,"avg_30d":-0.212272577933333,"stable_7d":0.571428571428571,"stable_30d":0.566666666666667,"history_s":2592000,"carry":0.1053704995,"carry_window":"7d","round_trip_bps":68.4,"fees_known":true,"top_size":null,"sizes":{"a":null,"b":"9200"},"breakeven_s":2047121.73733218,"hedge":0},{"key":"applied-optoelectronics|hyperliquid:para|extended:perp","asset_id":"applied-optoelectronics","symbol":"AAOI","source":"catalogue","a":{"segment_id":"hyperliquid:para","market":"para:AAOI","funding_interval_s":3600,"current":43.8,"avg_7d":-0.0263219280714286,"history":"ticks"},"b":{"segment_id":"extended:perp","market":"AAOI-USD","funding_interval_s":3600,"current":0,"avg_7d":0.074095,"history":"ticks"},"long":"a","current":-43.8,"avg_1d":0.06757537,"avg_7d":0.100416928071429,"avg_30d":-0.214572077933333,"stable_7d":0.714285714285714,"stable_30d":0.533333333333333,"history_s":2592000,"carry":0.100416928071429,"carry_window":"7d","round_trip_bps":69.9,"fees_known":true,"top_size":null,"sizes":{"a":null,"b":"1400"},"breakeven_s":2195213.93686928,"hedge":1},{"key":"applied-optoelectronics|hyperliquid:para|lighter:perp","asset_id":"applied-optoelectronics","symbol":"AAOI","source":"catalogue","a":{"segment_id":"hyperliquid:para","market":"para:AAOI","funding_interval_s":3600,"current":43.8,"avg_7d":-0.0263219280714286,"history":"ticks"},"b":{"segment_id":"lighter:perp","market":"207","funding_interval_s":3600,"current":0.035,"avg_7d":0.0272707142857143,"history":"ticks"},"long":"a","current":-43.765,"avg_1d":-0.13353963,"avg_7d":0.0535926423571428,"avg_30d":-0.2794812446,"stable_7d":0.285714285714286,"stable_30d":0.766666666666667,"history_s":2592000,"carry":0.0535926423571428,"carry_window":"7d","round_trip_bps":71.6,"fees_known":true,"top_size":null,"sizes":{"a":null,"b":"1400"},"breakeven_s":4213223.12296672,"hedge":2}],"settlements_error":"being read: settled funding is read in the background, the averages follow within minutes","locked":null,"withheld":null,"others":{"0x":117,"safe":33,"graniteshares-2x-long-intc-daily-etf":79,"edgex":89,"hyperliquid":917,"usd-ai":225,"stellar":752,"gilead-sciences":4,"mubarak":30,"nvidia":521,"iota":126,"xrp":1550,"taiwan-semiconductor-adr":311,"coreweave":177,"uniswap":922,"tether-gold":253,"sui":1423,"particle-network":67,"tron":731,"render":326,"1inch":157,"synthetix":168,"microstrategy":418,"nillion":141,"pax-gold":456,"pancakeswap":119,"graniteshares-2x-long-mrvl-daily-etf":53,"ethena":922,"re":240,"sonic":235,"immutable-x":259,"marvell-technology":333,"solana":1847,"pump":732,"dogecoin":1406,"stacks":254,"morpho":169,"pendle":451,"curve-dao":588,"lumentum-holdings":291,"filecoin":719,"fluent-network":34,"irys":72,"talus":80,"yooldo-games":31,"4-bsc":56,"giggle-fund":72,"ethereum":1961,"sky":180,"memecoin":80,"aave":843,"pudgy-penguins":669,"midnight":146,"okta":3,"yearn-finance":128,"moderna":182,"the-sandbox":258,"direxion-daily-semiconductor-bull-3x":450,"natural-gas":309,"ontology":55,"salesforce":55,"pepe":1008,"swarms":56,"ordi":138,"zora":182,"polkadot":710,"west-texas-intermediate":382,"zcash":805,"roundhill-memory-etf":436,"terra-classic":115,"fetch-ai":284,"mina-protocol":152,"gold":693,"humanity":76,"metal":20,"ethereum-classic":466,"reddit":132,"redstone":72,"worldcoin":862,"turbo":129,"movement":136,"soon":104,"lido-dao":461,"the-graph":214,"tezos":141,"moonbirds":86,"dydx":271,"celestia":634,"jasmycoin":178,"hive":41,"plasma":399,"strategy-stretch-preferred-stock":146,"quant":296,"optimism":767,"shiba-inu":606,"lisk":60,"just-a-chill-guy":112,"trust-wallet-token":22,"robostrategy":105,"ondo":754,"official-trump":609,"abbvie":16,"accenture":35,"tellor":186,"huma-finance":126,"steem":71,"goldman-sachs":62,"act-i-the-ai-prophecy":66,"internet-computer":554,"jupiter":661,"pippin":91,"nebius-group":387,"acurast":72,"towns":55,"orca":72,"adobe":84,"cash-cat":188,"copper":399,"walmart":82,"tradr-2x-long-sndk-daily-etf":163,"ishares-msci-japan-etf":116,"advanced-micro-devices":326,"tesla":369,"thorchain":203,"shopify":72,"katana-network-token":55,"world-liberty-financial":578,"robinhood-markets":310,"toshi":35,"seeker":163,"adventure-gold":91,"ionq":109,"moonriver":62,"twilio":15,"aehr-test-systems":8,"aeon-xyz":12,"four":35,"floki":294,"flow":67,"toncoin":122,"aerodrome":206,"ishares-msci-south-korea-etf":368,"eqt":14,"sprott-uranium-miners-etf":121,"qualcomm":153,"fogo":32,"smooth-love-potion":27,"vechain":91,"livepeer":143,"tac":62,"bonk":702,"reserve-rights-token":134,"humidifi":39,"aethir":44,"treehouse":75,"micron-technology":514,"superrare":71,"aevo-exchange":145,"yield-guild-games":59,"skale":43,"eigen-layer":334,"t-rex-2x-long-mstr":81,"wax":16,"airbnb":5,"aixbt":90,"super-micro-computer":164,"deep":113,"synapse":24,"zksync":242,"akamai":14,"akash-network":35,"lombard":142,"tutorial":24,"starknet":616,"akedo":96,"kava":110,"alaya-ai":27,"alchemist-ai":38,"dymension":39,"vaneck-semiconductor-etf":128,"vaulta":129,"draftkings":84,"kaito":473,"algorand":432,"syrup":90,"pyth-network":299,"dogwifcoin":597,"nesa":30,"skyai":9,"travala":30,"opengradient":63,"decentraland":151,"proshares-ultra-vix-short-term-futures-etf":185,"silver":725,"sapien":55,"vana":67,"t-mobile-us":3,"polygon":541,"sophon":98,"alibaba-group-adr":200,"sushi":130,"spacex":449,"synopsys":35,"walletconnect":45,"wormhole":252,"gala":194,"allora":72,"theta-token":80,"alphabet":456,"multiversx":84,"litecoin":1046,"stp-network":22,"sei":542,"tria":71,"samsung-electronics":52,"pieverse":104,"sign-global":59,"palantir-technologies":324,"janction":73,"layer-zero":482,"space-id":43,"overtake":46,"lg-electronics":2,"kaia":72,"alpine-f1-team-fan-token":31,"grass":136,"altlayer":85,"swarm-network":51,"thena":20,"compound":233,"altria-group":4,"subsquid":26,"sun-token":46,"terra":33,"constitutiondao":137,"amazon":269,"kamino":71,"dexe":62,"pha":81,"amc-entertainment":24,"amgen":16,"analog-devices":6,"animecoin":125,"lumia":20,"merlin-chain":108,"threshold-network":49,"vistra":105,"gopro":67,"meteora":233,"zoom-communications":55,"ankr":47,"bnb-standard":59,"playsout":22,"velvet":106,"sony-group-adr":39,"zerobase":72,"stable":96,"cardano":1111,"anoma":13,"apecoin":258,"monad":403,"heroes-of-mavia":39,"espresso":151,"virtuals-protocol":553,"fabric-protocol":72,"ravedao":61,"merck-and-co":52,"kraneshares-star-50-etf":96,"api3":45,"shein":2,"hyperliquid-strategies":18,"iost":110,"apple":341,"io-net":156,"zero-gravity":87,"spx6900":120,"enso":51,"oracle":317,"goplus-security":67,"zest-protocol":84,"test-bsc":32,"venice-token":307,"applied-digital":47,"renzo":96,"applied-materials":108,"peanut-the-squirrel":284,"nexpace":95,"ether-fi":344,"solayer":72,"applied-optoelectronics":217,"notcoin":232,"mantle":101,"quantinuum":30,"applovin":72,"invesco-qqq":366,"mask-network":42,"apriori":92,"near":862,"apro":43,"aptos":577,"superfarm":39,"openeden":38,"frax-share":35,"tencent-holdings":2,"pundi-x":15,"fartcoin":500,"yield-basis":24,"direxion-daily-semiconductor-bear-3x":189,"kernel":11,"catecoin-cate-meme":2,"global-x-defense-tech-etf":9,"zilliqa":116,"arbitrum":941,"energy-select-sector-spdr-fund":129,"lighter":485,"olaxbt":50,"spdr-sp500-etf-trust":292,"palladium":140,"sahara-ai":87,"zetachain":72,"rivian-automotive":72,"magma-finance":59,"platinum":431,"plume":55,"ontology-gas":30,"melania-meme":161,"spark":102,"zerebro":36,"zelcash":45,"zebec-network":8,"green-metaverse-token":103,"mog-coin":66,"magic":89,"arcium":57,"harmony":122,"aria-ai":54,"goatseus-maximus":106,"space-and-time":73,"arista-networks":31,"portal":43,"zama":104,"ark":30,"arkham":134,"vethor-token":21,"polymesh":67,"arm-holdings-adr":184,"take-two-interactive":161,"microsoft":311,"neo":207,"river":137,"stonk":23,"arweave":202,"popcat":195,"dash":211,"as-roma-fan-token":8,"shentu":6,"asml-holding":123,"cyberconnect":109,"seagate-technology":13,"ast-spacemobile":116,"gmx":129,"kyber-network":70,"astar":57,"direxion-daily-msci-south-korea-bull-3x":182,"aster":542,"dgrid-ai":38,"stakestone":29,"sentient":96,"hedera":735,"cosmos":473,"rats":94,"orochi-network":54,"yei-finance":30,"neo-gas":99,"kusama":141,"evaa-protocol":85,"sandisk":555,"cypherpunk-technologies":122,"astera-labs":112,"circle-internet-group":515,"atlassian":60,"international-business-machines":145,"o1-exchange":94,"xpin-network":22,"auction":42,"xdc-network":10,"megaeth":302,"useless-coin":168,"audiera":132,"sk-hynix":52,"ava-ai":68,"myshell":39,"regeneron-pharmaceuticals":8,"avalanche":1038,"pons":295,"ecash":31,"forward-industries":41,"folks":71,"snowflake":60,"vaneck-gold-miners-etf":47,"lagrange":48,"mind-network":58,"prometeus":39,"sk-hynix-adr":283,"tokenbot":43,"graniteshares-2x-long-sk-hynix-daily-etf":72,"intel":418,"initia":164,"dell-technologies":192,"my-neighbor-alice":47,"drift-protocol":46,"nike":47,"illumina":2,"concrete":72,"moo-deng":114,"joe":36,"usa-rare-earth":82,"lululemon-athletica":10,"injective":505,"avantis":271,"usual":51,"pharos-network":23,"fluid":39,"neosoul":36,"axe-compute":64,"derive":11,"quack-ai":67,"axelar":43,"defi-app":55,"axie-infinity":251,"celer-network":50,"spdr-gold-shares":3,"monero":380,"linea":206,"roundhill-photonics-optics-etf":47,"axis-robotics":87,"servicenow":213,"axt":132,"solstice":20,"leverage-shares-2x-long-spcx-daily-etf":14,"starpower":7,"grvt":149,"aztec":63,"baby-doge-coin":27,"babylon":105,"santos-fc-fan-token":4,"backpack":4,"banana-for-scale":62,"pi":4,"banana-gun":71,"unibase":72,"stbl":36,"marscoin-bnb":78,"ishares-semiconductor-etf":6,"euler":102,"bancor":47,"everlyn":79,"band-protocol":84,"opinion":63,"rootstock-infrastructure-framework":17,"bank-of-america":16,"penguin-solutions":27,"bas":27,"saga":90,"based":102,"basic-attention-token":147,"holoworld":24,"bedrock":69,"bending-spoons":52,"intuit":6,"stmicroelectronics":5,"og-fan-token":41,"berachain":283,"proshares-ultrashort-20-year-treasury":27,"ge-vernova":62,"woo-network":55,"magic-eden":72,"berkshire-hathaway-class-b":8,"just":71,"technology-select-sector-spdr-fund":4,"western-digital":151,"big-time":59,"chainlink":1258,"doublezero":179,"maverick-protocol":17,"doppler-finance":27,"numeraire":26,"recall":36,"billions-network":84,"bio-protocol":186,"neiro":27,"wendys":27,"waves":9,"raydium":180,"walt-disney":22,"cap":95,"trusta-ai":30,"succinct":86,"walrus":76,"redwire":47,"bitcoin":2026,"visa":55,"palo-alto-networks":47,"ssv-network":55,"deagentai":21,"rocket-pool":9,"sharonai":78,"twist-bioscience":52,"golem":20,"critical-metals":52,"minimax":25,"oura-health":81,"verizon":3,"cleanspark":4,"ethgas":53,"ethereum-name-service":139,"unitedhealth-group":52,"bitcoin-cash":774,"memecore":84,"core":24,"hamster-kombat":72,"kite":101,"gravity":10,"kaspa":177,"credo-technology-group":150,"enjin":105,"proshares-ultrapro-qqq":73,"centrifuge":147,"spacecoin":59,"okb":56,"solv-protocol":9,"tradoor":18,"bitcoin-cash-sv":24,"bitlayer-bitvm":56,"bitlight":51,"power-protocol":70,"bitmine-immersion-technologies":266,"bittensor":852,"cronos":135,"resolv":55,"turtle":39,"netflix":182,"newton-protocol":7,"thermo-fisher-scientific":4,"sofi-technologies":57,"xai":26,"convex-finance":55,"impossible-cloud-network":46,"bitway":66,"dappos":72,"blackberry":27,"unitree-robotics":22,"tensor":30,"blackstone":96,"unifai-network":33,"bless-network":43,"uma":42,"uber-technologies":51,"block-street":103,"bloom-energy":168,"meet48":47,"trump-media-technology-group":39,"kgen":89,"cvs-health":3,"nokia-adr":77,"synfutures":11,"blur":139,"bluwhale":43,"bnb":1091,"venus":29,"ishares-msci-brazil-etf":109,"ishares-20-year-treasury-bond-etf":37,"usd":51,"jito":268,"nomina":18,"boeing":2,"oklo":47,"bonfida":22,"nexus-labs":2,"texas-instruments":43,"securitize":39,"pepsico":18,"sats-ordinals":63,"zkpass":26,"meta-platforms":372,"terrausd":9,"teradyne":72,"book-of-meme":151,"booking-holdings":8,"bouncebit":87,"taiko":20,"tagger":30,"boundless":26,"pixels":59,"zhipu-ai":12,"zscaler":16,"breakwave-tanker-shipping-etf":33,"horizen":136,"qtum":83,"brent":300,"koma-inu":48,"brett":59,"tower-semiconductor":14,"british-pound":90,"broadcom":242,"costco-wholesale":121,"superfortune":18,"somnia":36,"ravencoin":39,"bsquared-network":9,"orderly-network":65,"bubblemaps":69,"build-on":60,"bulla":18,"caldera":110,"edu-coin":17,"canadian-dollar":2,"canton":225,"new-zealand-dollar":2,"pdd-holdings":39,"heima":38,"paypay-adr":36,"hemi":51,"storj":3,"siren-bsc":9,"cartesi":57,"carv":20,"hajimi":15,"predict-fun":15,"liquity":13,"cat-in-a-dogs-world":26,"caterpillar":11,"catizen":51,"coinbase":331,"xiaomi":7,"infinex":65,"cluster-protocol":37,"spdr-sp-biotech-etf":43,"origin-protocol":30,"celo":102,"sonic-svm":20,"infinit":53,"cerebras-systems":230,"openledger":51,"wells-fargo":1,"procter-and-gamble":5,"collect-on-fanable":36,"cetus-protocol":36,"illuvium":22,"chainbase":22,"chaingpt":22,"okzoo":41,"kla":87,"viking-therapeutics":14,"intuition":36,"chainopera-ai":18,"cheems-token":9,"chiliz":156,"coherent-corp":129,"home-depot":36,"ciena":66,"hims-and-hers-health":84,"cisco":77,"citrea":48,"helium":2,"civic":20,"claudia":1,"cloudflare":95,"coca-cola":36,"codatta":20,"cow-protocol":66,"perle":67,"cookie":51,"comedian":10,"exxon-mobil":66,"rocket-lab":192,"conflux":100,"tempus-ai":43,"constellation-energy":26,"wo-ta-ma-lai-le":2,"coti":47,"paypal":39,"verge":5,"the-black-bull":9,"metis":28,"corning":150,"griffain":47,"usd1":2,"graniteshares-2x-long-nvda-daily-etf":66,"iren":249,"fluence-energy":72,"monolithic-power-systems":6,"vertiv":27,"momentum":123,"iexec-rlc":43,"extended":1,"flex-ltd":27,"crowdstrike":102,"mara-holdings":62,"power-ledger":18,"jpmorgan-chase":72,"valero-energy":8,"utilities-select-sector-spdr-fund":6,"cxmt":12,"mcdonalds":67,"cysic":22,"czs-dog":5,"oasis-network":28,"danaher":2,"ishares-msci-taiwan-etf":84,"genius-terminal":39,"proshares-ultrapro-short-qqq":67,"uipath":39,"datadog":26,"hana-network":27,"unitas":8,"stablecoinx":5,"kioxia":2,"manta-network":28,"mira-network":16,"holo":22,"gitcoin":31,"dia-data":7,"direxion-daily-20-year-treasury-bull-3x":51,"openai":27,"onyxcoin":4,"ondas":59,"direxion-daily-mu-bull-2x":57,"usd-coin":39,"swiss-franc":2,"direxion-daily-small-cap-bear-3x":27,"direxion-daily-tsla-bull-2x":39,"ishares-russell-2000-etf":77,"carvana":52,"ishares-msci-indonesia-etf":14,"naoris-protocol":33,"dogs":42,"lorenzo-protocol":33,"mantra":41,"dolomite":20,"doodles":57,"onechain":9,"dusk-network":52,"mp-materials":18,"ebay":62,"futu-holdings-adr":10,"onbeam":6,"eli-lilly":109,"elsa":22,"iotex":39,"coin98":24,"novo-nordisk-adr":24,"flock":39,"nervos-network":13,"united-microelectronics-adr":1,"mongodb":27,"fusionist":63,"myx-finance":22,"lam-research":131,"fight":29,"safepal":10,"roundhill-t-rex-2x-long-dram-daily-target-etf":47,"falcon-finance-ff":45,"hyundai-motor":9,"ethereum-pow":18,"euro":174,"gamestop":67,"lab":42,"mocaverse":8,"loopring":4,"intuitive-surgical":16,"ronin":9,"flare":13,"football-fun":2,"graniteshares-2x-short-sk-hynix-daily-etf":113,"samsung-electro-mechanics":2,"general-electric":7,"gensyn":15,"gitlab":27,"globalfoundries":8,"hyperlane":51,"graniteshares-2x-long-coin-daily-etf":2,"grayscale-zcash-etf":14,"spotify-technology":4,"jelly-my-jelly":30,"gunz":33,"haedal-protocol":22,"health-care-select-sector-spdr-fund":8,"peaq":2,"hewlett-packard-enterprise":55,"hut-8":47,"ouster":15,"infinity-ground":8,"infleqtion":12,"interactive-brokers-group":24,"intuitive-machines":6,"pearl":12,"naver":1,"moonshot-ai":31,"japanese-yen":2,"riot-platforms":6,"scroll":14,"johnson-and-johnson":8,"rum-group":14,"canopy":8,"rockwell-automation":3,"kiichain":11,"proshares-bitcoin-etf":16,"bella-protocol":14,"lista":18,"jio-platforms":1,"cognex":10,"tjx-companies":3,"mastercard":1,"mercadolibre":18,"chromaway":24,"cipher-digital":12,"pfizer":2,"lockheed-martin":5,"linde":3,"hanmi-semiconductor":2,"nu-holdings":2,"starbucks":10,"debridge":2,"bullish":2,"brevis":5,"simon-s-cat":21,"generac-holdings":2,"biconomy":39,"apex-token":10,"ai-rig-complex":98,"arpa-chain":28,"alien-worlds":71,"ishares-bitcoin-trust":2,"australian-dollar":12,"alchemy-pay":30,"american-airlines-group":10},"filter":"*||any"},"meta":{"as_of":"2026-11-17T21:29:43.627Z","assets":{"applied-optoelectronics":{"id":"applied-optoelectronics","symbol":"AAOI","name":"Applied Optoelectronics","icon_url":"https://catalogue.tribulnation.com/icons/asset/applied-optoelectronics.svg","category":"stock","provisional":false},"ciena":{"id":"ciena","symbol":"CIEN","name":"Ciena","icon_url":"https://catalogue.tribulnation.com/icons/asset/ciena.svg","category":"stock","provisional":false},"reddit":{"id":"reddit","symbol":"RDDT","name":"Reddit","icon_url":"https://catalogue.tribulnation.com/icons/asset/reddit.svg","category":"stock","provisional":false}}}}}}}}},"default":{"$ref":"#/components/responses/Error"}}}},"/live/funding/history":{"get":{"operationId":"get_live_funding_history","summary":"One pair’s hourly funding over 30 days.","tags":["live"],"parameters":[{"name":"pair","in":"query","required":true,"description":"A pair as `/live/funding` lists it: `<asset>|<segment A>|<segment B>`.","schema":{"type":"string"},"example":"bitcoin|binance|hyperliquid"}],"security":[{"userKey":["market:read"]}],"x-scope":"market:read","x-plan":"Ultra","responses":{"200":{"description":"The live answer, as `{data, meta}` in the API’s names.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"a":{"type":"array","items":{"type":["number","null"]},"description":"A"},"b":{"type":"array","items":{"type":["number","null"]},"description":"B"},"avg_1d":{"type":"array","items":{"type":["number","null"]},"description":"Avg 1D"},"avg_7d":{"type":"array","items":{"type":["number","null"]},"description":"Avg 7D"},"spread":{"type":"array","items":{"type":["number","null"]},"description":"Spread"},"cumulative":{"type":"array","items":{"type":"number"},"description":"Cumulative"},"pair":{"$ref":"#/components/schemas/FundingRow"},"settlements_error":{"type":["string","null"]},"borrow_included":{"type":"boolean","const":true},"other":{"type":"object","properties":{"avg_1d":{"type":"array","items":{"type":["number","null"]},"description":"Avg 1D"},"avg_7d":{"type":"array","items":{"type":["number","null"]},"description":"Avg 7D"},"spread":{"type":"array","items":{"type":["number","null"]},"description":"Spread"},"cumulative":{"type":"array","items":{"type":"number"},"description":"Cumulative"},"pair":{"$ref":"#/components/schemas/FundingRow"}},"required":["avg_1d","avg_7d","spread","cumulative","pair"]}},"required":["a","b","avg_1d","avg_7d","spread","cumulative","pair"]},"meta":{"type":"object","properties":{"as_of":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the data is current as of: its build or update time, else the answer’s."}},"required":["as_of"]}},"required":["data","meta"]}}}},"default":{"$ref":"#/components/responses/Error"}}}},"/live/funding/perps":{"get":{"operationId":"get_live_funding_perps","summary":"Per asset, the perp paying a short the most, filtered (venues, assets, min_apr), ordered (sort) and paged (limit, cursor; 100 a page by default).","tags":["live"],"parameters":[{"name":"venues","in":"query","required":false,"description":"Only perps on these venues, comma-separated catalogue venue ids, at most 200. Ids in no perp are listed in `meta.unmatched`.","schema":{"type":"string"},"example":"hyperliquid"},{"name":"assets","in":"query","required":false,"description":"Only these assets, comma-separated catalogue ids, at most 200.","schema":{"type":"string"},"example":"bitcoin,ethereum"},{"name":"min_apr","in":"query","required":false,"description":"Only perps whose `funding_apr` is at least this, a fraction a year (`0.1` = 10 %).","schema":{"type":"number"},"example":0.1},{"name":"sort","in":"query","required":false,"description":"`rank` (default): the app’s order; `funding_apr` highest first.","schema":{"type":"string","enum":["rank","funding_apr"],"default":"rank"}},{"name":"limit","in":"query","required":false,"description":"Perps per page, 1 to 1000 (default 100); `meta.page.total` says how many perps match.","schema":{"type":"integer","minimum":1,"maximum":1000,"default":100}},{"name":"cursor","in":"query","required":false,"description":"The previous page's `meta.page.next_cursor`, sent with the same filters and `sort` (a cursor of other filters is refused).","schema":{"type":"string"}}],"security":[{"userKey":["market:read"]}],"x-scope":"market:read","x-plan":"Ultra","responses":{"200":{"description":"The live answer, as `{data, meta}` in the API’s names.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"perps":{"type":"array","items":{"type":"object","properties":{"asset_id":{"type":"string","description":"Asset"},"symbol":{"type":"string","description":"Symbol"},"segment_id":{"type":"string","description":"Exchange"},"market":{"type":"string","description":"Market"},"funding_apr":{"type":"number","description":"Funding Apr"},"funding_interval_s":{"type":["number","null"],"description":"Interval, seconds"},"bid_usd":{"description":"Bid Usd","type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"taker_fee_bps":{"type":["number","null"],"description":"Taker Fee Bps"},"perps":{"type":"number","description":"Perps"}},"required":["asset_id","symbol","segment_id","market","funding_apr","funding_interval_s","bid_usd","taker_fee_bps","perps"]},"description":"Perps"}},"required":["perps"]},"meta":{"type":"object","properties":{"as_of":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the data is current as of: its build or update time, else the answer’s."},"assets":{"type":"object","description":"The assets the answer names, by id.","additionalProperties":true},"page":{"type":"object","description":"Where this page is: pass `next_cursor` back as `cursor` (`null`: the last page).","properties":{"limit":{"type":"integer"},"has_more":{"type":"boolean"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}]},"total":{"type":"integer"}},"required":["limit","has_more","next_cursor"]},"unmatched":{"type":"object","description":"The `venues` and `assets` asked for that are in no row of the plan's whole answer (a typo, or nothing live there); absent when every id matched.","properties":{"venues":{"type":"array","items":{"type":"string"}},"assets":{"type":"array","items":{"type":"string"}}}}},"required":["as_of"]}},"required":["data","meta"]},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/live/funding/perps (recorded 2026-11-17)","value":{"data":{"perps":[{"asset_id":"applied-optoelectronics","symbol":"AAOI","segment_id":"hyperliquid:para","market":"para:AAOI","funding_apr":43.8,"funding_interval_s":null,"bid_usd":null,"taker_fee_bps":null,"perps":4},{"asset_id":"ciena","symbol":"CIEN","segment_id":"hyperliquid:para","market":"para:CIEN","funding_apr":43.8,"funding_interval_s":null,"bid_usd":null,"taker_fee_bps":null,"perps":4},{"asset_id":"reddit","symbol":"RDDT","segment_id":"hyperliquid:para","market":"para:RDDT","funding_apr":43.8,"funding_interval_s":null,"bid_usd":null,"taker_fee_bps":null,"perps":4}]},"meta":{"as_of":"2026-11-17T21:29:42.630Z","assets":{"applied-optoelectronics":{"id":"applied-optoelectronics","symbol":"AAOI","name":"Applied Optoelectronics","icon_url":"https://catalogue.tribulnation.com/icons/asset/applied-optoelectronics.svg","category":"stock","provisional":false},"ciena":{"id":"ciena","symbol":"CIEN","name":"Ciena","icon_url":"https://catalogue.tribulnation.com/icons/asset/ciena.svg","category":"stock","provisional":false},"reddit":{"id":"reddit","symbol":"RDDT","name":"Reddit","icon_url":"https://catalogue.tribulnation.com/icons/asset/reddit.svg","category":"stock","provisional":false}}}}}}}}},"default":{"$ref":"#/components/responses/Error"}}}},"/live/spreads/history":{"get":{"operationId":"get_live_spreads_history","summary":"A pair’s edges, basis and funding over a window.","tags":["live"],"parameters":[{"name":"pair","in":"query","required":true,"description":"`<asset>|<segment A>|<segment B>`, optionally with `/<market>` after a segment.","schema":{"type":"string"},"example":"bitcoin|binance:usdm|hyperliquid:"},{"name":"from","in":"query","required":false,"description":"Window start, inclusive: a date or an instant with a zone (default: 7 days before `to`).","schema":{"type":"string","format":"date-time"}},{"name":"to","in":"query","required":false,"description":"Window end, exclusive: a date or an instant with a zone (default: now).","schema":{"type":"string","format":"date-time"}}],"security":[{"userKey":["market:read"]}],"x-scope":"market:read","x-plan":"Ultra","responses":{"200":{"description":"The live answer, as `{data, meta}` in the API’s names.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"pair":{"type":"string","description":"Pair"},"asset_id":{"type":"string","description":"Asset"},"symbol":{"type":"string","description":"Symbol"},"segment_id_a":{"type":"string","description":"Leg A's segment id (`<venue>:<segment>`)."},"market_a":{"type":"string","description":"Leg A's venue market symbol."},"segment_id_b":{"type":"string","description":"Leg B's segment id (`<venue>:<segment>`)."},"market_b":{"type":"string","description":"Leg B's venue market symbol."},"bucket_s":{"type":"number","description":"Bucket width, seconds"},"ab_last_bps":{"type":"array","items":{"type":["number","null"]},"description":"Buy on A, sell on B: the edge net of taker fees, bps, the bucket's mean of its minute-end edges."},"ab_max_bps":{"type":"array","items":{"type":["number","null"]},"description":"Buy on A, sell on B: the bucket's largest minute-end edge net of taker fees, bps."},"ba_last_bps":{"type":"array","items":{"type":["number","null"]},"description":"Buy on B, sell on A: the edge net of taker fees, bps, the bucket's mean of its minute-end edges."},"ba_max_bps":{"type":"array","items":{"type":["number","null"]},"description":"Buy on B, sell on A: the bucket's largest minute-end edge net of taker fees, bps."},"mid_diff_bps":{"type":"array","items":{"type":["number","null"]},"description":"A's mid over B's, bps."},"index_diff_bps":{"type":"array","items":{"type":["number","null"]},"description":"A's index over B's, bps (a spot leg's mid is its index)."},"premium_diff_bps":{"type":"array","items":{"type":["number","null"]},"description":"`mid_diff_bps` less `index_diff_bps`: the legs' premium gap, bps."},"funding_a":{"type":"array","items":{"type":["number","null"]},"description":"Leg A's funding rate, annualized (a fraction)."},"funding_b":{"type":"array","items":{"type":["number","null"]},"description":"Leg B's funding rate, annualized (a fraction)."},"index_a":{"type":"array","items":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"description":"Index A"},"index_b":{"type":"array","items":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"description":"Index B"}},"required":["pair","asset_id","symbol","segment_id_a","market_a","segment_id_b","market_b","bucket_s","ab_last_bps","ab_max_bps","ba_last_bps","ba_max_bps","mid_diff_bps","index_diff_bps","premium_diff_bps","funding_a","funding_b","index_a","index_b"]},"meta":{"type":"object","properties":{"as_of":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the data is current as of: its build or update time, else the answer’s."}},"required":["as_of"]}},"required":["data","meta"]}}}},"default":{"$ref":"#/components/responses/Error"}}}},"/live/exchanges":{"get":{"operationId":"get_live_exchanges","summary":"Every exchange the live data covers (spot or perp, CEX or DEX), ranked, with how many markets it lists, trades and pairs.","tags":["live"],"parameters":[],"security":[{"userKey":["market:read"]}],"x-scope":"market:read","x-plan":"Ultra","responses":{"200":{"description":"The live answer, as `{data, meta}` in the API’s names.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ExchangeInfo"}},"meta":{"type":"object","properties":{"as_of":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the data is current as of: its build or update time, else the answer’s."}},"required":["as_of"]}},"required":["data","meta"]},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/live/exchanges (recorded 2026-11-17)","value":{"data":[{"id":"dydx:perp","kind":"perp","venue_id":"dydx","venue_type":"dex","icon_url":"https://catalogue.tribulnation.com/icons/asset/dydx.svg","rank":1,"slot":1,"badge":null,"listed":57,"tradable":57,"paired":10,"name":"dYdX"},{"id":"hyperliquid:","kind":"perp","venue_id":"hyperliquid","venue_type":"dex","icon_url":"https://catalogue.tribulnation.com/icons/asset/hyperliquid.svg","rank":2,"slot":2,"badge":null,"listed":179,"tradable":179,"paired":117,"name":"HL"},{"id":"hyperliquid:io","kind":"perp","venue_id":"hyperliquid","venue_type":"dex","icon_url":"https://catalogue.tribulnation.com/icons/asset/hyperliquid.svg","rank":3,"slot":3,"badge":"io","listed":16,"tradable":16,"paired":8,"name":"HL io"}],"meta":{"as_of":"2026-11-17T21:30:11.226Z"}}}}}}},"default":{"$ref":"#/components/responses/Error"}}}},"/live/profile":{"get":{"operationId":"get_live_profile","summary":"A perp market’s funding profile: live index, mark, funding, OI, the venue’s rules, what is missing, history.","tags":["live"],"parameters":[{"name":"asset","in":"query","required":true,"description":"A catalogue asset id (`bitcoin`).","schema":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._-]{0,79}$"},"example":"bitcoin"},{"name":"venue","in":"query","required":false,"description":"Only this venue or segment id (`hyperliquid`).","schema":{"type":"string"},"example":"hyperliquid"},{"name":"market","in":"query","required":false,"description":"Only this venue market symbol (`BTC`).","schema":{"type":"string"}},{"name":"window","in":"query","required":false,"description":"Add one market’s history over this window (give `venue` and `market`).","schema":{"type":"string","enum":["1d","7d","30d"]}}],"security":[{"userKey":["market:read"]}],"x-scope":"market:read","x-plan":"Ultra","responses":{"200":{"description":"The live answer, as `{data, meta}` in the API’s names.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"asset_id":{"type":"string","description":"The catalogue asset id."},"markets":{"type":"array","items":{"$ref":"#/components/schemas/MarketProfile"},"description":"One profile per matching perp market (at most a few)."},"more":{"type":"number","description":"How many more markets matched than `markets` holds."}},"required":["asset_id","markets","more"],"description":"`GET /live/profile`: perp markets' funding profiles."},"meta":{"type":"object","properties":{"as_of":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the data is current as of: its build or update time, else the answer’s."}},"required":["as_of"]}},"required":["data","meta"]},"examples":{"recorded":{"summary":"GET https://api.tribulnation.com/live/profile?asset=bitcoin&venue=hyperliquid (recorded 2026-11-17)","value":{"data":{"asset_id":"bitcoin","markets":[{"segment_id":"hyperliquid:","market":"BTC","venue_id":"hyperliquid","quote_asset_id":"tether","settlement_asset_id":"usd-coin","quanto":false,"live":{"index_price":"64435","mark_price":"64411","funding_rate":0.0000125,"funding_apr":0.1095,"funding_interval_s":3600,"next_funding_at":"2026-11-17T22:00:00.000Z","open_interest":"37597.76902","premium":-0.000372468378986524,"ctx_age_s":13.814,"connected":true,"impact_bid":"64399.5","impact_ask":"64410","funding_cap":null,"funding_floor":null,"funding_short":null,"borrow":null,"borrow_short":null},"formula":{"venue_id":"hyperliquid","name":"Hyperliquid","funding":{"funding_interval_s":3600,"cap":[-0.04,0.04],"clamp":0.0005,"interest":0.0000125,"impact_notional":"impact bid and ask from the book at the asset’s impact notional","premium_sampling":"premium sampled every 5 s, averaged over the hour","formula":"F = P + clamp(I - P, -0.05%, +0.05%) on an 8-hour basis, paid hourly as 1/8; capped at 4% an hour. HIP-3 dexes: the same formula on the deployer’s oracle"},"index":{"method":"Oracle: a weighted median of spot prices on major exchanges, published by the validators every few seconds; a HIP-3 dex’s oracle is set by its deployer","sources":["Binance","OKX","Bybit","Kraken","KuCoin","Gate","MEXC","Hyperliquid spot"]},"mark":{"method":"The median of the oracle plus an EMA of the book’s basis, the book’s median of best bid, best ask and last trade, and the median of other venues’ perp mids","separate":true},"docs_url":"https://hyperliquid.gitbook.io/hyperliquid-docs/trading/funding","checked_at":"2026-11-06T00:00:00.000Z","source":"docs","notes":["HIP-3 dexes (xyz:, flx:, ...): oracle and mark from the deployer"]},"missing":[],"history":null}],"more":0},"meta":{"as_of":"2026-11-17T21:30:10.229Z"}}}}}}},"default":{"$ref":"#/components/responses/Error"}}}},"/live/{topic}":{"get":{"operationId":"live_socket","summary":"The live socket: a WebSocket of a topic’s frames. Send `Upgrade: websocket`; a plain GET is 426.","tags":["live"],"parameters":[{"name":"topic","in":"path","required":true,"description":"`book:<asset>`, `asset:<asset>`, `rates`, `rates:<c>` (a part of `rates` once it splits) or `page:<strategy>[:<n>]`.","schema":{"type":"string"},"example":"book:bitcoin"},{"name":"depth","in":"query","required":false,"description":"Book topics only: Levels a side, 1 to 50 (default: every level).","schema":{"type":"integer","minimum":1,"maximum":50},"example":10}],"security":[{"userKey":["market:read"]}],"x-scope":"market:read","x-plan":"Ultra","x-websocket":{"frames":{"$ref":"#/components/schemas/LiveFrame"},"ping":"Send the text `ping` about every 20 s; the answer is the bare text `pong`.","close":[{"code":4001,"meaning":"The socket’s one-minute grant ended: every socket gets it about a minute after it opens; your key and plan are checked again on reconnect.","action":"Reconnect at once"},{"code":4401,"meaning":"The key was revoked.","action":"Stop; the next open is 401"},{"code":4003,"meaning":"The topic is not in your plan.","action":"Stop"},{"code":4004,"meaning":"Unknown topic.","action":"Stop"},{"code":1011,"meaning":"The server could not build the topic’s view for this socket.","action":"Reconnect with backoff"}],"retryAfterS":10},"responses":{"101":{"description":"Switching protocols: JSON text frames follow."},"default":{"$ref":"#/components/responses/Error"}}}}},"components":{"schemas":{"RankedAssetEnvelope":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/RankedAsset"},"description":"The answer: one object, or a list of rows."},"meta":{"allOf":[{"$ref":"#/components/schemas/Meta"}],"description":"About the answer: its freshness, currency, window and page."}},"required":["data","meta"],"description":"Every successful response, so a caller reads `meta` the same way everywhere."},"RankedAsset":{"type":"object","properties":{"id":{"type":"string","description":"The catalogue asset id (`bitcoin`): what every other route takes."},"symbol":{"type":"string","description":"Ticker symbol (`BTC`)."},"name":{"type":"string","description":"Name to show (`Bitcoin`)."},"category":{"type":["string","null"],"enum":["crypto","stock","fiat","stablecoin","commodity","rwa","fund",null],"description":"The asset's category, or `null` when the catalogue gives none."},"icon_url":{"type":["string","null"],"description":"Icon URL, or `null`."},"price":{"type":["string","null"],"format":"decimal","description":"Reference price in `meta.currency`, a decimal string, or `null` when never priced."},"market_cap":{"type":["string","null"],"format":"decimal","description":"Market capitalisation in `meta.currency`, a decimal string, or `null`."},"observed_at":{"type":["string","null"],"description":"When `price` was observed (ISO-8601 UTC), or `null`."},"price_24h_ago":{"type":["string","null"],"format":"decimal","description":"The price about 24 hours before `observed_at`, or `null` when not known."},"price_7d_ago":{"type":["string","null"],"format":"decimal","description":"The price ~7 days before `observed_at`, or `null` when that is not something we know -- same doctrine as `price24hAgo`, at a wider window."},"peg_currency":{"type":["string","null"],"description":"See `PegCurrency`. `null` for anything that is not a resolvable stablecoin."},"sparkline":{"allOf":[{"$ref":"#/components/schemas/Sparkline"}]}},"required":["id","symbol","name","category","icon_url","price","market_cap","observed_at","price_24h_ago","price_7d_ago","peg_currency"],"description":"One row of the market-cap ranking."},"Sparkline":{"type":"object","properties":{"start_time":{"type":["string","null"],"description":"The first point's instant. `null` when there are no points."},"interval":{"type":"string","const":"1d","description":"The step between points: one day."},"prices":{"type":"array","items":{"type":["string","null"],"format":"decimal"},"description":"Decimal strings in `meta.currency`; `null` for a day without a price."}},"required":["start_time","interval","prices"],"description":"A daily price series on an implicit axis: point `i` is at `start_time + i * interval`."},"Meta":{"type":"object","properties":{"as_of":{"type":["string","null"],"description":"The newest observation the answer reflects (an instant), or the catalogue's applied time for directories and search; `null` when nothing in `data` carries one. Never a calendar date. The ETag is derived from it."},"currency":{"type":"string","enum":["usd","eur"],"description":"The currency every money value in `data` is in. Only on routes whose `data` holds money."},"collected_at":{"type":["string","null"],"description":"The newest observation in the whole dataset, before any filter or page: with `as_of` it tells \"a filter matched nothing\" from \"never collected\". `null` is a statement (the dataset never collected); absent means the route does not report it."},"coverage":{"allOf":[{"$ref":"#/components/schemas/Coverage"}],"description":"Collection routes: how much of what the venues published the answer holds."},"best_apr":{"type":["number","null"],"description":"`GET /v1/earn/latest?venues=<one>`: the venue's best non-promotional APR, a fraction."},"stake":{"type":"string","description":"`GET /v1/earn/latest`: the USD stake `earnings_30d` is about, a decimal string."},"interval":{"type":"string","description":"The interval the series is in, echoed so a caller never assumes it."},"range":{"allOf":[{"$ref":"#/components/schemas/Range"}],"description":"Windowed routes: the effective half-open window the answer covers."},"page":{"allOf":[{"$ref":"#/components/schemas/Page"}],"description":"Paginated routes: where this page is and how to read on."}},"required":["as_of"]},"Coverage":{"type":"object","properties":{"observed":{"type":"number","description":"Markets the venues in scope published, translated or not."},"returned":{"type":"number","description":"Rows in `data`."},"untranslated":{"type":"number","description":"Markets the venues published that no catalogue instrument resolves."},"venues":{"type":"array","items":{"type":"string"},"description":"Venues these numbers cover, so a filtered request's coverage is legible."}},"required":["observed","returned","untranslated","venues"],"description":"What the venues in scope published, against what the catalogue could translate."},"Range":{"type":"object","properties":{"from":{"type":"string","description":"Start, inclusive (an instant)."},"to":{"type":"string","description":"End, exclusive (an instant)."}},"required":["from","to"],"description":"A half-open instant range: `from` inclusive, `to` exclusive."},"Page":{"type":"object","properties":{"limit":{"type":"number","description":"Rows asked for per page."},"has_more":{"type":"boolean","description":"Whether another page exists."},"next_cursor":{"type":["string","null"],"description":"Pass back as `?cursor=`; `null` at the end."},"number":{"type":"number","description":"Ranked routes: the 1-based page number."},"total":{"type":"number","description":"Ranked routes: the rows the query matches across every page."}},"required":["limit","has_more","next_cursor"],"description":"Pagination, one object on every paginated route. Read on with `?cursor=` from `next_cursor`; `null` means this was the last page. Ranked routes also take `?page=` and answer `number` and `total`, and their `next_cursor` encodes the next page, so a generic client pages every route the same way."},"AssetAggregateEnvelope":{"type":"object","properties":{"data":{"allOf":[{"$ref":"#/components/schemas/AssetAggregate"}],"description":"The answer: one object, or a list of rows."},"meta":{"allOf":[{"$ref":"#/components/schemas/Meta"}],"description":"About the answer: its freshness, currency, window and page."}},"required":["data","meta"],"description":"Every successful response, so a caller reads `meta` the same way everywhere."},"AssetAggregate":{"type":"object","properties":{"asset":{"allOf":[{"$ref":"#/components/schemas/AssetProfile"}],"description":"The asset and its catalogue copy."},"price":{"anyOf":[{"$ref":"#/components/schemas/LatestPrice"},{"type":"null"}],"description":"`null` when the sampler has never priced this asset."},"price_history":{"type":"array","items":{"$ref":"#/components/schemas/PricePoint"},"description":"Oldest first. Bounded -- the whole series is `/v1/prices/historical`."},"tickers":{"type":"array","items":{"$ref":"#/components/schemas/AssetTicker"},"description":"Every ticker for this asset, venue and quote asset resolved to names/icons — see `AssetTicker`."},"perps":{"type":"array","items":{"$ref":"#/components/schemas/AssetPerpStats"},"description":"Every perpetual for this asset, resolved the same way."},"funding":{"type":"array","items":{"$ref":"#/components/schemas/Funding"},"description":"Latest funding of its perpetuals, per venue market."},"earn":{"type":"array","items":{"$ref":"#/components/schemas/EarnInstrument"},"description":"Earn products on the asset."},"instruments":{"type":"array","items":{"$ref":"#/components/schemas/AssetInstrument"},"description":"The asset's trading pages, ordered by venue, kind and market; empty where the serving path carries none (the retained Supabase handler) — see `AssetInstrument`."},"listings":{"type":"array","items":{"$ref":"#/components/schemas/AssetListing"},"description":"Every market the asset trades on, ordered by venue, kind and market; empty where the serving path carries none — see `AssetListing`."}},"required":["asset","price","price_history","tickers","perps","funding","earn","instruments","listings"]},"AssetProfile":{"type":"object","properties":{"id":{"type":"string","description":"The catalogue asset id (`bitcoin`): what every other route takes."},"symbol":{"type":"string","description":"Ticker symbol (`BTC`)."},"name":{"type":"string","description":"Name to show (`Bitcoin`)."},"category":{"type":["string","null"],"enum":["crypto","stock","fiat","stablecoin","commodity","rwa","fund",null],"description":"The asset's category, or `null` when the catalogue gives none."},"icon_url":{"type":["string","null"],"description":"Icon URL, or `null`."},"about_en":{"type":["string","null"],"description":"About the asset, English Markdown, or `null`."},"about_ca":{"type":["string","null"],"description":"About the asset, Catalan Markdown, or `null`."},"about_es":{"type":["string","null"],"description":"About the asset, Spanish Markdown, or `null`."},"urls":{"allOf":[{"$ref":"#/components/schemas/Json"}],"description":"Links (website, explorer, socials) as the catalogue holds them."},"tags":{"allOf":[{"$ref":"#/components/schemas/Json"}],"description":"Catalogue tags."},"external":{"allOf":[{"$ref":"#/components/schemas/Json"}],"description":"Ids of the asset on other data providers."}},"required":["id","symbol","name","category","icon_url","about_en","about_ca","about_es","urls","tags","external"],"description":"An asset plus the catalogue's descriptive copy."},"Json":{"anyOf":[{"type":"boolean"},{"type":"string"},{"type":"number"},{"type":"array","items":{"$ref":"#/components/schemas/Json"}},{"type":"object","additionalProperties":{"$ref":"#/components/schemas/Json"}},{"type":"null"}]},"LatestPrice":{"type":"object","properties":{"asset_id":{"type":"string","description":"The catalogue asset id."},"price":{"type":["string","null"],"format":"decimal","description":"Reference price in `meta.currency`, a decimal string; `null` when none is known."},"market_cap":{"type":["string","null"],"format":"decimal","description":"Market capitalisation in `meta.currency`, a decimal string, or `null`."},"observed_at":{"type":["string","null"],"description":"This row's own observation time; `meta.asOf` is the newest of them."},"price_24h_ago":{"type":["string","null"],"format":"decimal","description":"The price about 24 hours before `observed_at`, or `null` when not known."}},"required":["asset_id","price","market_cap","observed_at","price_24h_ago"],"description":"One asset's current price."},"PricePoint":{"type":"object","properties":{"asset_id":{"type":"string","description":"The catalogue asset id."},"time":{"type":"string","description":"The day the price is for, labelled by its start (00:00Z), an instant."},"price":{"type":["string","null"],"format":"decimal","description":"The day's reference price in `meta.currency`, a decimal string, or `null`."},"market_cap":{"type":["string","null"],"format":"decimal","description":"The day's market capitalisation, a decimal string, or `null`."},"source":{"type":["string","null"],"description":"Which of the up-to-four price sources won this day, or `PEG_SOURCE` and the id of the asset this one is pegged to 1:1, for a day taken from that asset's history before this one had its own."},"fetched_at":{"type":["string","null"],"description":"When the run that wrote this row ran (a cache validator, not a freshness signal)."}},"required":["asset_id","time","price","market_cap","source","fetched_at"],"description":"One day of one asset's price."},"AssetTicker":{"type":"object","properties":{"asset_id":{"type":"string","description":"The catalogue id of the market's base asset."},"venue_id":{"type":"string","description":"The venue (catalogue platform id, `binance`)."},"segment":{"type":["string","null"],"description":"Exact SDK exchange ID; an empty string is a valid ID."},"kind":{"type":["string","null"],"enum":["spot","perp",null],"description":"SDK market type, independent of the opaque exchange ID."},"market":{"type":"string","description":"The venue's own market symbol (`BTCUSDT`)."},"quote_asset_id":{"type":["string","null"],"description":"Catalogue id of the quote asset prices are in, or `null` when unresolved."},"settlement_asset_id":{"type":["string","null"],"description":"Catalogue id of the asset a perpetual settles in, or `null`."},"observed_at":{"type":["string","null"],"description":"When the venue reported these figures, ISO-8601 UTC."},"last":{"type":["string","null"],"format":"decimal","description":"Last trade price, in the quote asset."},"bid":{"type":["string","null"],"format":"decimal","description":"Best bid price, in the quote asset."},"ask":{"type":["string","null"],"format":"decimal","description":"Best ask price, in the quote asset."},"bid_qty":{"type":["string","null"],"format":"decimal","description":"Size at the best bid, base units."},"ask_qty":{"type":["string","null"],"format":"decimal","description":"Size at the best ask, base units."},"base_volume_24h":{"type":["string","null"],"format":"decimal","description":"Traded volume over 24 hours, base units."},"delayed":{"anyOf":[{"$ref":"#/components/schemas/DelayedTicker"},{"type":"null"}],"description":"The row's figures at least the Free plan's delay old: what a delayed reader is served in place of the row's own. `null`: none that old is kept (a market new to /v1); absent: published before it. Additive."},"segment_name":{"type":["string","null"],"description":"SDK exchange display metadata; absent on older API versions or legacy stats-only rows."},"market_url":{"type":["string","null"],"description":"The market's page on the venue, or `null`."},"venue_name":{"type":["string","null"],"description":"The venue's display name, or `null` when the catalogue does not carry it."},"venue_icon_url":{"type":["string","null"],"description":"The venue's icon URL, or `null`."},"venue_kind":{"type":["string","null"],"enum":["cex","dex","blockchain",null],"description":"`cex`, `dex` or `blockchain`; `null` for a venue not in the catalogue."},"quote_asset_symbol":{"type":["string","null"],"description":"Symbol of the quote asset, or `null`."},"quote_asset_name":{"type":["string","null"],"description":"Name of the quote asset, or `null`."},"quote_asset_icon_url":{"type":["string","null"],"description":"Icon URL of the quote asset, or `null`."}},"required":["asset_id","venue_id","segment","kind","market","quote_asset_id","settlement_asset_id","observed_at","last","bid","ask","bid_qty","ask_qty","base_volume_24h","venue_name","venue_icon_url","venue_kind","quote_asset_symbol","quote_asset_name","quote_asset_icon_url"],"description":"A `Ticker`, with its venue and quote asset resolved to names/icons. What `AssetAggregate.tickers` carries."},"DelayedTicker":{"type":"object","properties":{"observed_at":{"type":["string","null"],"description":"When the venue reported these figures, ISO-8601 UTC."},"last":{"type":["string","null"],"format":"decimal","description":"Last trade price, in the quote asset."},"bid":{"type":["string","null"],"format":"decimal","description":"Best bid price, in the quote asset."},"ask":{"type":["string","null"],"format":"decimal","description":"Best ask price, in the quote asset."},"bid_qty":{"type":["string","null"],"format":"decimal","description":"Size at the best bid, base units."},"ask_qty":{"type":["string","null"],"format":"decimal","description":"Size at the best ask, base units."},"base_volume_24h":{"type":["string","null"],"format":"decimal","description":"Traded volume over 24 hours, base units."}},"required":["observed_at","last","bid","ask","bid_qty","ask_qty","base_volume_24h"],"description":"A ticker's figures as of at least the Free plan's delay before the aggregate or the market dataset was published."},"AssetPerpStats":{"type":"object","properties":{"asset_id":{"type":"string","description":"The catalogue id of the perpetual's base asset."},"venue_id":{"type":"string","description":"The venue (catalogue platform id)."},"market":{"type":"string","description":"The venue's own market symbol."},"quote_asset_id":{"type":["string","null"],"description":"Catalogue id of the quote asset prices are in, or `null`."},"settlement_asset_id":{"type":["string","null"],"description":"Catalogue id of the settlement asset, or `null`."},"observed_at":{"type":["string","null"],"description":"When the venue reported these figures, ISO-8601 UTC."},"index_price":{"type":["string","null"],"format":"decimal","description":"The venue's index price, in the quote asset."},"mark_price":{"type":["string","null"],"format":"decimal","description":"The venue's mark price, in the quote asset."},"funding_rate":{"type":["number","null"],"description":"Relative units, as every rate on this API is: `0.0001` is 0.01%. See `EarnInstrument.apr`."},"next_funding_at":{"type":["string","null"],"description":"When the next funding settles, ISO-8601 UTC, or `null`."},"funding_interval_s":{"type":["number","null"],"description":"Seconds between funding settlements, or `null` when unknown."},"funding_settled_at":{"type":["string","null"],"description":"Set when `funding_rate` is not the venue's current rate but its last settled one (ISO, the settlement's time): the venue's bulk list states no current rate, so the publish fills the period that has just ended. Absent: the venue's own rate."},"open_interest":{"type":["string","null"],"format":"decimal","description":"Open interest, base units."},"delayed":{"anyOf":[{"$ref":"#/components/schemas/DelayedPerpStats"},{"type":"null"}],"description":"As `Ticker.delayed`, for the stats."},"segment_name":{"type":["string","null"],"description":"SDK exchange display metadata; absent on older API versions or legacy stats-only rows."},"market_url":{"type":["string","null"],"description":"The market's page on the venue, or `null`."},"venue_name":{"type":["string","null"],"description":"The venue's display name, or `null` when the catalogue does not carry it."},"venue_icon_url":{"type":["string","null"],"description":"The venue's icon URL, or `null`."},"venue_kind":{"type":["string","null"],"enum":["cex","dex","blockchain",null],"description":"`cex`, `dex` or `blockchain`; `null` for a venue not in the catalogue."},"quote_asset_symbol":{"type":["string","null"],"description":"Symbol of the quote asset, or `null`."},"quote_asset_name":{"type":["string","null"],"description":"Name of the quote asset, or `null`."},"quote_asset_icon_url":{"type":["string","null"],"description":"Icon URL of the quote asset, or `null`."}},"required":["asset_id","venue_id","market","quote_asset_id","settlement_asset_id","observed_at","index_price","mark_price","funding_rate","next_funding_at","funding_interval_s","open_interest","venue_name","venue_icon_url","venue_kind","quote_asset_symbol","quote_asset_name","quote_asset_icon_url"],"description":"A `PerpStats`, resolved the same way. What `AssetAggregate.perps` carries."},"DelayedPerpStats":{"type":"object","properties":{"observed_at":{"type":["string","null"],"description":"When the venue reported these figures, ISO-8601 UTC."},"index_price":{"type":["string","null"],"format":"decimal","description":"The venue's index price, in the quote asset."},"mark_price":{"type":["string","null"],"format":"decimal","description":"The venue's mark price, in the quote asset."},"funding_rate":{"type":["number","null"],"description":"Relative units, as every rate on this API is: `0.0001` is 0.01%. See `EarnInstrument.apr`."},"next_funding_at":{"type":["string","null"],"description":"When the next funding settles, ISO-8601 UTC, or `null`."},"funding_interval_s":{"type":["number","null"],"description":"Seconds between funding settlements, or `null` when unknown."},"funding_settled_at":{"type":["string","null"],"description":"Set when `funding_rate` is not the venue's current rate but its last settled one (ISO, the settlement's time): the venue's bulk list states no current rate, so the publish fills the period that has just ended. Absent: the venue's own rate."},"open_interest":{"type":["string","null"],"format":"decimal","description":"Open interest, base units."}},"required":["observed_at","index_price","mark_price","funding_rate","next_funding_at","funding_interval_s","open_interest"],"description":"A perp's stats as of at least the Free plan's delay before publication."},"Funding":{"type":"object","properties":{"asset_id":{"type":"string","description":"The catalogue id of the perpetual's base asset."},"venue_id":{"type":"string","description":"The venue (catalogue platform id)."},"market":{"type":"string","description":"The venue's own market symbol."},"quote_asset_id":{"type":["string","null"],"description":"Catalogue id of the quote asset, or `null`."},"settlement_asset_id":{"type":["string","null"],"description":"Catalogue id of the settlement asset, or `null`."},"time":{"type":["string","null"],"description":"When the rate was observed, ISO-8601 UTC, or `null`."},"rate":{"type":["number","null"],"description":"Relative units, as every rate on this API is: `0.0001` is 0.01%. See `EarnInstrument.apr`."},"premium":{"type":["number","null"],"description":"Mark over index, a fraction, or `null`."}},"required":["asset_id","venue_id","market","quote_asset_id","settlement_asset_id","time","rate","premium"],"description":"The most recent settled funding on one venue's perpetual."},"EarnInstrument":{"type":"object","properties":{"venue_id":{"type":"string","description":"The venue offering it (catalogue platform id)."},"instrument":{"type":"string","description":"The venue's own product id."},"asset_id":{"type":["string","null"],"description":"Catalogue id of the asset earned on."},"asset_symbol":{"type":["string","null"],"description":"`market.assets.symbol` for `asset_id`, or `null` when there is no asset."},"asset_name":{"type":["string","null"],"description":"`market.assets.display_name` for `asset_id` -- `Tether USD`. `null` as above."},"asset_icon_url":{"type":["string","null"],"description":"`market.assets.icon` for `asset_id`: a path relative to `https://catalogue.tribulnation.com/`, like every other `icon` on this API."},"venue_name":{"type":["string","null"],"description":"`market.platforms.display_name` for `venue` -- `MEXC`, `Binance`."},"venue_icon_url":{"type":["string","null"],"description":"**An icon to show, not `market.platforms.icon`** -- the same promise `Platform.icon` makes, resolved the same way."},"url":{"type":["string","null"],"description":"**Where to open this product on the venue's own site**, or `null` when the venue publishes no link for it."},"apr":{"type":["number","null"],"description":"**A fraction of one, not percentage points: `0.0123` is 1.23%.**"},"lock_s":{"type":["number","null"],"description":"Lock-up in whole seconds; `null` or 0 for flexible."},"tags":{"allOf":[{"$ref":"#/components/schemas/Json"}],"description":"Product tags (`flexible`, `locked`, `staking`,...)."},"observed_at":{"type":["string","null"],"description":"When the offer was read, ISO-8601 UTC."},"min_qty":{"type":["string","null"],"format":"decimal","description":"The smallest and largest amount this product accepts. Both promoted out of `raw` the same way `url` was: `null` on either means the venue publishes no such bound, not that the collector failed to read one."},"max_qty":{"type":["string","null"],"format":"decimal","description":"Most you can subscribe, asset units, or `null` for no cap."},"price":{"type":["string","null"],"format":"decimal"},"earnings_1k_30d":{"type":["string","null"],"format":"decimal","description":"**What a $1,000 stake earns from this product over 30 days, in US dollars** -- the figure `?sort=earnings` ranks by."},"earnings_30d":{"type":["string","null"],"format":"decimal"},"bonus":{"allOf":[{"$ref":"#/components/schemas/EarnBonus"}],"description":"A promotion on top of `apr`, which stays the product's base rate: absent when the product has none. `apr`, `earnings_1k_30d` and the ranking never include it, because a bonus is capped, ends, and is often for new accounts only."},"offer":{"allOf":[{"$ref":"#/components/schemas/EarnOffer"}],"description":"Who may take the product and when: the KYC level, what the venue calls its rate, the offer's dates. Absent when the venue states none (most products); set on new-user products."},"unavailable_in":{"type":"array","items":{"type":"string","enum":["eu","us"]},"description":"The regions the product is not offered in: `[]` when none is known, which does not claim it is offered everywhere."}},"required":["venue_id","instrument","asset_id","asset_symbol","asset_name","asset_icon_url","venue_name","venue_icon_url","url","apr","lock_s","tags","observed_at","min_qty","max_qty","price","earnings_1k_30d","earnings_30d"],"description":"One earn product."},"EarnBonus":{"type":"object","properties":{"apr":{"type":"number","description":"The bonus APR, a fraction."},"tiers":{"type":["array","null"],"items":{"$ref":"#/components/schemas/EarnTier"},"description":"The bonus by amount: each band's extra rate on the slice of a balance inside it."},"max_qty":{"type":["string","null"],"format":"decimal","description":"Amount the bonus applies up to, asset units, or `null`."},"reward_asset_id":{"type":["string","null"],"description":"The venue symbol the bonus is paid in, when not the product's asset."},"ends_at":{"type":["string","null"],"description":"When it ends (ISO-8601), `null`: not published."},"new_users":{"type":["boolean","null"],"description":"`true`: new accounts only; `null`: not stated."},"conditions":{"type":["string","null"],"description":"Anything else that limits it, in words."},"source":{"type":"string","enum":["page","api"],"description":"`api`: from the venue's own data; `page`: seen on its page, which the API does not publish (so its cap and who gets it are unknown)."}},"required":["apr","tiers","max_qty","reward_asset_id","ends_at","new_users","conditions","source"],"description":"A venue's promotion on an earn product: the extra annual rate on top of the base `apr` (a fraction; the best band's when laddered), on at most `max_qty` of the asset (`null`: no cap published)."},"EarnTier":{"type":"object","properties":{"min_qty":{"type":["string","null"],"format":"decimal","description":"Tier lower bound, asset units."},"max_qty":{"type":["string","null"],"format":"decimal","description":"Tier upper bound, asset units, or `null` for no bound."},"apr":{"type":["number","null"],"description":"The tier's APR, a fraction."}},"required":["min_qty","max_qty","apr"],"description":"One band of an earn product's tier ladder: `apr` pays on the part of the balance between `min_qty` and `max_qty` (in the asset; `max_qty` `null`: no cap)."},"EarnOffer":{"type":"object","properties":{"kyc":{"type":["string","null"],"description":"The verification level required (`L2`), `null`: not stated."},"rate_label":{"type":["string","null"],"enum":["apr","apy",null],"description":"What the venue calls the rate it shows; `apr` stays the number either way."},"starts_at":{"type":["string","null"],"description":"When it opens to subscriptions and stops taking them (dates), `null`: not published."},"ends_at":{"type":["string","null"],"description":"When the promotion ends, ISO-8601 UTC, or `null`."},"term_start_at":{"type":["string","null"],"description":"The interest period of a subscription made now, when the venue states it."},"term_end_at":{"type":["string","null"],"description":"When the product's term ends, ISO-8601 UTC, or `null`."},"conditions":{"type":["string","null"],"description":"The venue's conditions, in its words, or `null`."}},"required":["kyc","rate_label","starts_at","ends_at","term_start_at","term_end_at","conditions"],"description":"Who may take an earn product and when (`EarnInstrument.offer`)."},"AssetInstrument":{"type":"object","properties":{"venue_id":{"type":"string","description":"The venue (catalogue platform id)."},"kind":{"type":"string","enum":["spot","perp"],"description":"`spot` or `perp`."},"segment":{"type":["string","null"],"description":"The catalogue instrument's `exchange` (the SDK exchange id, `usdm`, `spot`; a Hyperliquid dex), `null` where the catalogue names none."},"market":{"type":"string","description":"The venue's own market symbol."},"url":{"type":"string","description":"The market's page on the venue."}},"required":["venue_id","kind","segment","market","url"],"description":"One of the asset's instruments with a trading page: the catalogue's `url`, verbatim, for an instrument the asset is the base of (`market.instruments`). Only instruments with a URL are listed; a delisted one, or one on a venue the catalogue has no verified rule for, has none, and a consumer shows no link rather than building one. `venue` is the catalogue platform id, `exchange` the instrument's exchange within it, and `market` the venue's own symbol: the keys every `Ticker` row carries (and the realtime exchange id `<venue>:<exchange>`)."},"AssetListing":{"type":"object","properties":{"venue_id":{"type":"string","description":"The venue (catalogue platform id)."},"kind":{"type":"string","enum":["spot","perp"],"description":"`spot` or `perp`."},"segment":{"type":["string","null"],"description":"As `AssetInstrument.segment`."},"market":{"type":"string","description":"The venue's own market symbol."},"base_asset_id":{"type":"string","description":"Catalogue id of the base asset."},"quote_asset_id":{"type":["string","null"],"description":"Catalogue id of the quote asset, or `null`."},"settlement_asset_id":{"type":["string","null"],"description":"Catalogue id of the settlement asset, or `null`."},"quote_side":{"type":"boolean","description":"The asset is this market's quote (a currency pair, listed on its quote's page)."},"url":{"type":["string","null"],"description":"The catalogue's trading page, verbatim; null where it has none."},"multiplier":{"type":"number","description":"The catalogue's contract multiplier: base units per contract of a perp priced per contract (Bybit's `1000PEPEUSDT`: 1,000 PEPE), whose `/v1` prices are per contract and open interest in contracts, as the venue sends them. Absent where 1 (every spot market), and in artifacts published before the field."},"base_asset_symbol":{"type":["string","null"],"description":"Symbol of the base asset, or `null`."},"base_asset_icon_url":{"type":["string","null"],"description":"Icon URL of the base asset, or `null`."},"segment_name":{"type":["string","null"],"description":"SDK exchange display metadata; absent on older API versions or legacy stats-only rows."},"market_url":{"type":["string","null"],"description":"The market's page on the venue, or `null`."},"venue_name":{"type":["string","null"],"description":"The venue's display name, or `null` when the catalogue does not carry it."},"venue_icon_url":{"type":["string","null"],"description":"The venue's icon URL, or `null`."},"venue_kind":{"type":["string","null"],"enum":["cex","dex","blockchain",null],"description":"`cex`, `dex` or `blockchain`; `null` for a venue not in the catalogue."},"quote_asset_symbol":{"type":["string","null"],"description":"Symbol of the quote asset, or `null`."},"quote_asset_name":{"type":["string","null"],"description":"Name of the quote asset, or `null`."},"quote_asset_icon_url":{"type":["string","null"],"description":"Icon URL of the quote asset, or `null`."}},"required":["venue_id","kind","segment","market","base_asset_id","quote_asset_id","settlement_asset_id","quote_side","url","base_asset_symbol","base_asset_icon_url","venue_name","venue_icon_url","venue_kind","quote_asset_symbol","quote_asset_name","quote_asset_icon_url"],"description":"One market the asset trades on, from the catalogue: every listed spot and perpetual instrument the asset is the base of, and the currency pairs it is the quote of (`quote_side`), with or without a trading page. `tickers` and `perps` carry figures only for the venues `/v1` collects (a dozen); the catalogue and the live feeds cover ~70, so this is the asset page's list of markets, and a market with no `/v1` row takes its figures from the live asset topic or shows none. A delisted instrument is not listed."},"AssetSummaryEnvelope":{"type":"object","properties":{"data":{"allOf":[{"$ref":"#/components/schemas/AssetSummary"}],"description":"The answer: one object, or a list of rows."},"meta":{"allOf":[{"$ref":"#/components/schemas/Meta"}],"description":"About the answer: its freshness, currency, window and page."}},"required":["data","meta"],"description":"Every successful response, so a caller reads `meta` the same way everywhere."},"AssetSummary":{"type":"object","properties":{"asset":{"allOf":[{"$ref":"#/components/schemas/AssetProfile"}],"description":"The asset and its catalogue copy."},"price":{"anyOf":[{"$ref":"#/components/schemas/LatestPrice"},{"type":"null"}],"description":"`null` when the sampler has never priced this asset."}},"required":["asset","price"],"description":"Identity/profile and current price, without history or secondary sections."},"AssetInstrumentEnvelope":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AssetInstrument"},"description":"The answer: one object, or a list of rows."},"meta":{"allOf":[{"$ref":"#/components/schemas/Meta"}],"description":"About the answer: its freshness, currency, window and page."}},"required":["data","meta"],"description":"Every successful response, so a caller reads `meta` the same way everywhere."},"SearchResultEnvelope":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/SearchResult"},"description":"The answer: one object, or a list of rows."},"meta":{"allOf":[{"$ref":"#/components/schemas/Meta"}],"description":"About the answer: its freshness, currency, window and page."}},"required":["data","meta"],"description":"Every successful response, so a caller reads `meta` the same way everywhere."},"SearchResult":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","const":"asset"},"id":{"type":"string"},"symbol":{"type":"string"},"name":{"type":"string"},"category":{"type":["string","null"]},"icon_url":{"type":["string","null"],"description":"Absolute icon URL, or `null`."}},"required":["kind","id","symbol","name","category","icon_url"]},{"type":"object","properties":{"kind":{"type":"string","const":"venue"},"id":{"type":"string"},"name":{"type":"string"},"icon_url":{"type":["string","null"]}},"required":["kind","id","name","icon_url"]},{"type":"object","properties":{"kind":{"type":"string","const":"network"},"id":{"type":"string"},"name":{"type":"string"},"icon_url":{"type":["string","null"]}},"required":["kind","id","name","icon_url"]}]},"PlatformListEnvelope":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Platform"},"description":"The answer: one object, or a list of rows."},"meta":{"allOf":[{"$ref":"#/components/schemas/Meta"}],"description":"About the answer: its freshness, currency, window and page."}},"required":["data","meta"],"description":"Every successful response, so a caller reads `meta` the same way everywhere."},"Platform":{"type":"object","properties":{"id":{"type":"string","description":"The catalogue platform id (`binance`)."},"name":{"type":"string","description":"Name to show."},"kind":{"type":"string","enum":["cex","dex","blockchain"],"description":"`cex`, `dex` or `blockchain`."},"icon_url":{"type":["string","null"],"description":"**An icon to show, not `market.platforms.icon`.** 25 of the 97 rows have no icon of their own, and all 25 carry a `native_asset` whose asset row does -- so the API serves that one instead and every platform comes back with an icon. The join is on `native_asset` and the path is taken whole: `morph` borrows `icons/asset/bitget-token.svg`, which contains neither its id nor its kind."},"about_en":{"type":["string","null"],"description":"About the platform, English Markdown, or `null`."},"about_ca":{"type":["string","null"],"description":"About the platform, Catalan Markdown, or `null`."},"about_es":{"type":["string","null"],"description":"About the platform, Spanish Markdown, or `null`."},"urls":{"allOf":[{"$ref":"#/components/schemas/Json"}],"description":"Links as the catalogue holds them."},"category":{"type":["string","null"],"description":"The catalogue's `BlockchainCategory`, which today has **exactly one value**: `evm`. `null` on every venue and on every chain the catalogue has not labelled — 14 of the 58 chains carry it at 2026-08-21."},"native_asset_id":{"type":["string","null"],"description":"The catalogue **asset id** of the chain's gas asset. Set for blockchains only -- 57 of the 97 rows, and the other 40 are every `cex` and every `dex`."},"native_asset_name":{"type":["string","null"],"description":"`market.assets.display_name` for `native_asset` -- \"xDAI\", \"Toncoin\", \"Bitget Token\"."},"native_asset_symbol":{"type":["string","null"],"description":"`market.assets.symbol` for `native_asset` -- \"ETH\", \"BGB\", \"xDAI\"."},"native_asset_icon_url":{"type":["string","null"],"description":"`market.assets.icon` for `native_asset` -- the asset's own mark, whatever `icon` above ended up being."},"namespace":{"type":["string","null"],"description":"A **CAIP-2 namespace**, from the catalogue's `BlockchainNamespace`: `eip155`, `cosmos`, `bip122` or `solana`. `null` on every venue and on a chain the catalogue has not mapped."},"chain_id":{"type":["string","null"],"description":"A chain id, as a **string**. `market.platforms.chain_id` is `text`, deliberately: it is an identifier, not a quantity, and CAIP-2 namespaces treat it as one — `eip155`'s are decimal (`1`, `42161`), `cosmos`'s are names (`cosmoshub-4`, `pacific-1`), `bip122`'s is a genesis block hash and `solana`'s is `mainnet-beta`."},"snapshot_supported":{"type":"boolean","description":"**True when the portfolio can snapshot this venue** — what the connect form offers, minus the credential-schema condition."}},"required":["id","name","kind","icon_url","about_en","about_ca","about_es","urls","category","native_asset_id","native_asset_name","native_asset_symbol","native_asset_icon_url","namespace","chain_id","snapshot_supported"],"description":"One row of `market.platforms` -- a venue, a chain, or a DEX, discriminated by `kind`. `/v1/platforms` serves every row;"},"PlatformEnvelope":{"type":"object","properties":{"data":{"allOf":[{"$ref":"#/components/schemas/Platform"}],"description":"The answer: one object, or a list of rows."},"meta":{"allOf":[{"$ref":"#/components/schemas/Meta"}],"description":"About the answer: its freshness, currency, window and page."}},"required":["data","meta"],"description":"Every successful response, so a caller reads `meta` the same way everywhere."},"CandlePointEnvelope":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CandlePoint"},"description":"The answer: one object, or a list of rows."},"meta":{"allOf":[{"$ref":"#/components/schemas/Meta"}],"description":"About the answer: its freshness, currency, window and page."}},"required":["data","meta"],"description":"Every successful response, so a caller reads `meta` the same way everywhere."},"CandlePoint":{"type":"object","properties":{"asset_id":{"type":"string","description":"The catalogue asset id."},"time":{"type":"string","description":"Bucket start, ISO-8601 UTC."},"interval":{"type":"string","enum":["1h","4h","1d"],"description":"Bucket width: `1h`, `4h` or `1d`."},"source":{"type":"string","enum":["venues","perpetuals"],"description":"`venues`: the spot asset index. `perpetuals`: an asset that trades only as perpetuals (gold, stocks), from its perpetual markets' trade candles; a chart series carrying their basis and funding, never a valuation price."},"open":{"type":"string","format":"decimal","description":"First price of the bucket, a decimal string."},"high":{"type":"string","format":"decimal","description":"Highest price of the bucket, a decimal string."},"low":{"type":"string","format":"decimal","description":"Lowest price of the bucket, a decimal string."},"close":{"type":"string","format":"decimal","description":"Last price of the bucket, a decimal string."},"turnover":{"type":"string","format":"decimal","description":"Traded value in the bucket (quote turnover), in `meta.currency`, a decimal string."},"built_at":{"type":"string","description":"When this candle was built, an instant."},"period":{"type":"object","properties":{"hours":{"type":["number","null"],"description":"How many hourly buckets were observed in it: a count, not a duration (a `1h` candle's is 1); `null` where unknown (daily historical coverage)."},"closed":{"type":"boolean","description":"Calendar period ended; this does not assert all its hours were collected."}},"required":["hours","closed"],"description":"The bucket's period: how much of it was observed and whether it has ended."}},"required":["asset_id","time","interval","source","open","high","low","close","turnover","built_at","period"]},"LatestPriceEnvelope":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/LatestPrice"},"description":"The answer: one object, or a list of rows."},"meta":{"allOf":[{"$ref":"#/components/schemas/Meta"}],"description":"About the answer: its freshness, currency, window and page."}},"required":["data","meta"],"description":"Every successful response, so a caller reads `meta` the same way everywhere."},"PricePointEnvelope":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/PricePoint"},"description":"The answer: one object, or a list of rows."},"meta":{"allOf":[{"$ref":"#/components/schemas/Meta"}],"description":"About the answer: its freshness, currency, window and page."}},"required":["data","meta"],"description":"Every successful response, so a caller reads `meta` the same way everywhere."},"LatestRowEnvelope":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/LatestRow"},"description":"The answer: one object, or a list of rows."},"meta":{"allOf":[{"$ref":"#/components/schemas/Meta"}],"description":"About the answer: its freshness, currency, window and page."}},"required":["data","meta"],"description":"Every successful response, so a caller reads `meta` the same way everywhere."},"LatestRow":{"anyOf":[{"$ref":"#/components/schemas/Ticker"},{"$ref":"#/components/schemas/PerpStats"},{"$ref":"#/components/schemas/Funding"}]},"Ticker":{"type":"object","properties":{"asset_id":{"type":"string","description":"The catalogue id of the market's base asset."},"venue_id":{"type":"string","description":"The venue (catalogue platform id, `binance`)."},"segment":{"type":["string","null"],"description":"Exact SDK exchange ID; an empty string is a valid ID."},"kind":{"type":["string","null"],"enum":["spot","perp",null],"description":"SDK market type, independent of the opaque exchange ID."},"market":{"type":"string","description":"The venue's own market symbol (`BTCUSDT`)."},"quote_asset_id":{"type":["string","null"],"description":"Catalogue id of the quote asset prices are in, or `null` when unresolved."},"settlement_asset_id":{"type":["string","null"],"description":"Catalogue id of the asset a perpetual settles in, or `null`."},"observed_at":{"type":["string","null"],"description":"When the venue reported these figures, ISO-8601 UTC."},"last":{"type":["string","null"],"format":"decimal","description":"Last trade price, in the quote asset."},"bid":{"type":["string","null"],"format":"decimal","description":"Best bid price, in the quote asset."},"ask":{"type":["string","null"],"format":"decimal","description":"Best ask price, in the quote asset."},"bid_qty":{"type":["string","null"],"format":"decimal","description":"Size at the best bid, base units."},"ask_qty":{"type":["string","null"],"format":"decimal","description":"Size at the best ask, base units."},"base_volume_24h":{"type":["string","null"],"format":"decimal","description":"Traded volume over 24 hours, base units."},"delayed":{"anyOf":[{"$ref":"#/components/schemas/DelayedTicker"},{"type":"null"}],"description":"The row's figures at least the Free plan's delay old: what a delayed reader is served in place of the row's own. `null`: none that old is kept (a market new to /v1); absent: published before it. Additive."}},"required":["asset_id","venue_id","segment","kind","market","quote_asset_id","settlement_asset_id","observed_at","last","bid","ask","bid_qty","ask_qty","base_volume_24h"],"description":"A ticker enriched through Catalogue, retaining exact SDK exchange and market IDs."},"PerpStats":{"type":"object","properties":{"asset_id":{"type":"string","description":"The catalogue id of the perpetual's base asset."},"venue_id":{"type":"string","description":"The venue (catalogue platform id)."},"market":{"type":"string","description":"The venue's own market symbol."},"quote_asset_id":{"type":["string","null"],"description":"Catalogue id of the quote asset prices are in, or `null`."},"settlement_asset_id":{"type":["string","null"],"description":"Catalogue id of the settlement asset, or `null`."},"observed_at":{"type":["string","null"],"description":"When the venue reported these figures, ISO-8601 UTC."},"index_price":{"type":["string","null"],"format":"decimal","description":"The venue's index price, in the quote asset."},"mark_price":{"type":["string","null"],"format":"decimal","description":"The venue's mark price, in the quote asset."},"funding_rate":{"type":["number","null"],"description":"Relative units, as every rate on this API is: `0.0001` is 0.01%. See `EarnInstrument.apr`."},"next_funding_at":{"type":["string","null"],"description":"When the next funding settles, ISO-8601 UTC, or `null`."},"funding_interval_s":{"type":["number","null"],"description":"Seconds between funding settlements, or `null` when unknown."},"funding_settled_at":{"type":["string","null"],"description":"Set when `funding_rate` is not the venue's current rate but its last settled one (ISO, the settlement's time): the venue's bulk list states no current rate, so the publish fills the period that has just ended. Absent: the venue's own rate."},"open_interest":{"type":["string","null"],"format":"decimal","description":"Open interest, base units."},"delayed":{"anyOf":[{"$ref":"#/components/schemas/DelayedPerpStats"},{"type":"null"}],"description":"As `Ticker.delayed`, for the stats."}},"required":["asset_id","venue_id","market","quote_asset_id","settlement_asset_id","observed_at","index_price","mark_price","funding_rate","next_funding_at","funding_interval_s","open_interest"],"description":"One venue's perpetual on an asset."},"FundingPointEnvelope":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/FundingPoint"},"description":"The answer: one object, or a list of rows."},"meta":{"allOf":[{"$ref":"#/components/schemas/Meta"}],"description":"About the answer: its freshness, currency, window and page."}},"required":["data","meta"],"description":"Every successful response, so a caller reads `meta` the same way everywhere."},"FundingPoint":{"type":"object","properties":{"asset_id":{"type":"string","description":"The catalogue id of the perpetual's base asset."},"venue_id":{"type":"string","description":"The venue (catalogue platform id)."},"market":{"type":"string","description":"The venue's own market symbol."},"time":{"type":"string","description":"Settlement instant, or the UTC day it fell in. See above."},"rate":{"type":["number","null"],"description":"Settled rate; the day's **total** at `interval=day`. Relative units, as every rate on this API is: `0.0001` is 0.01%. See `EarnInstrument.apr`."},"premium":{"type":["number","null"],"description":"Mark-to-index spread; the day's **mean** at `interval=day`."},"funding_short":{"type":"number","description":"The per-side holding rates, each a fraction per interval like `rate` (+ = that side pays; the day's **total** at `interval=day`). `rate` is what a long pays in funding; `funding_short` is what a short pays; `borrow_long` / `borrow_short` are what each side pays the venue or pool to hold, on top of funding. A key is **absent** where the venue does not charge or report it: a one-rate venue's short side is `-rate` and it charges no borrow. Only gTrade carries them today (from 2026-09-01; a borrowing-v1 pair's hours after its one read carry no borrow). gTrade's funding is zero-sum: the earning side is 0 where the paying side held no open interest, and an hour whose payer is unknown has `rate` null and no `funding_short` (its borrow stays)."},"borrow_long":{"type":"number","description":"Borrow fee a long pays per interval, a fraction (venues that charge one)."},"borrow_short":{"type":"number","description":"Borrow fee a short pays per interval, a fraction (venues that charge one)."}},"required":["asset_id","venue_id","market","time","rate","premium"],"description":"One settled funding payment, or one UTC day of them."},"EarnInstrumentEnvelope":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/EarnInstrument"},"description":"The answer: one object, or a list of rows."},"meta":{"allOf":[{"$ref":"#/components/schemas/Meta"}],"description":"About the answer: its freshness, currency, window and page."}},"required":["data","meta"],"description":"Every successful response, so a caller reads `meta` the same way everywhere."},"EarnFacets":{"type":"object","properties":{"venues":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]},"icon_url":{"type":["string","null"]}},"required":["id","name","icon_url"]},"description":"Venues with earn products."},"assets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"symbol":{"type":["string","null"]},"name":{"type":["string","null"]},"icon_url":{"type":["string","null"]}},"required":["id","symbol","name","icon_url"]},"description":"Assets with earn products."},"tags":{"type":"array","items":{"type":"string"},"description":"Product tags in use, with counts."}},"required":["venues","assets","tags"],"description":"market.earn_facet_{platforms,assets,tags}. The complete set of platforms, assets and tags that currently have at least one earn product — not a page, the whole set, small and bounded by how many venues actually publish yields. Backs the combobox filters on `/earn`; a name/icon is `null` on exactly the conditions `EarnInstrument`'s own venue/asset fields are."},"EarnHistoryPointEnvelope":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/EarnHistoryPoint"},"description":"The answer: one object, or a list of rows."},"meta":{"allOf":[{"$ref":"#/components/schemas/Meta"}],"description":"About the answer: its freshness, currency, window and page."}},"required":["data","meta"],"description":"Every successful response, so a caller reads `meta` the same way everywhere."},"EarnHistoryPoint":{"type":"object","properties":{"asset_id":{"type":"string","description":"Catalogue id of the asset earned on."},"time":{"type":"string","description":"The day, labelled by its start (00:00Z), an instant."},"venue_id":{"type":"string","description":"The venue (catalogue platform id)."},"instrument":{"type":"string","description":"The product, as `EarnInstrument.instrument` names it."},"apr":{"type":["number","null"],"description":"The product's rate as collected (a fraction: `0.05` is 5 %)."},"tiers":{"type":"array","items":{"$ref":"#/components/schemas/EarnTier"},"description":"APR tiers by amount."},"laddered":{"type":"boolean","description":"Whether `tiers` is a collected ladder, rather than the row as one tier."},"lock_s":{"type":["number","null"],"description":"Lock-up in whole seconds; `null` or 0 for flexible."},"tags":{"type":["array","null"],"items":{"type":"string"},"description":"Product tags."},"min_qty":{"type":["string","null"],"format":"decimal","description":"Least you can subscribe, asset units, or `null`."},"max_qty":{"type":["string","null"],"format":"decimal","description":"Most you can subscribe, asset units, or `null`."},"price":{"type":["string","null"],"format":"decimal","description":"The asset's USD price at `observed_at`, or `null`."},"observed_at":{"type":"string","description":"When the offer was read, ISO-8601 UTC."}},"required":["asset_id","time","venue_id","instrument","apr","tiers","laddered","lock_s","tags","min_qty","max_qty","price","observed_at"],"description":"One earn product on one UTC day: its last observation that day."},"V2Meta":{"type":"object","properties":{"as_of":{"type":["string","null"],"description":"The newest record time on this page (an instant), or `null` (contracts, registries, empty pages)."},"publication":{"anyOf":[{"$ref":"#/components/schemas/Publication"},{"type":"null"}],"description":"`null` for contracts and registries, which are not publications."},"catalogue":{"anyOf":[{"$ref":"#/components/schemas/CatalogueRelease"},{"type":"null"}],"description":"The catalogue release the ids are from, or `null`."},"page":{"type":"object","properties":{"limit":{"type":"number"},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["limit","has_more","next_cursor"],"description":"Collection routes only: `next_cursor: null` is the end."},"no_data":{"type":"string","enum":["no_matching_instance","no_data","no_records_in_range"],"description":"Present only on a final, empty page: why a valid query has no records. `no_matching_instance`: no known subject matches; `no_data`: the matching subjects are known but have no served records; `no_records_in_range`: none of their records fall in the range. Absence is never answered as an error."},"held":{"type":"array","items":{"type":"object","properties":{"asset_id":{"type":"string"},"reason":{"type":"string"}},"required":["asset_id","reason"]},"description":"Instances whose records are withheld, and why. A read that could include them omits their records and names them here; a read naming one directly is `503 unavailable` with `reason: held`."}},"required":["as_of","publication","catalogue"]},"Publication":{"type":"object","properties":{"id":{"type":"string","description":"Opaque; changes whenever the served records change."},"published_at":{"type":"string","description":"When the publication was built, an instant."}},"required":["id","published_at"],"description":"One consistent set of served data, scoped to one series or snapshot."},"CatalogueRelease":{"type":"object","properties":{"applied_at":{"type":"string","description":"When the catalogue refresh that produced the mappings ran, an instant."},"release":{"type":["string","null"],"description":"The archive's release identifier. `null` until the refresh records one (the applied release is not identified yet)."}},"required":["applied_at","release"],"description":"The catalogue applied when the publication was built."},"RecordField":{"type":"object","properties":{"name":{"type":"string","description":"Field name on the wire."},"type":{"type":"string","enum":["string","number","boolean","integer","decimal","timestamp","string[]"],"description":"Wire type."},"unit":{"type":["string","null"],"description":"Unit or quote, where the value has one."},"nullable":{"type":"boolean","description":"Whether the value may be `null`."},"description":{"type":"string","description":"What the field holds."}},"required":["name","type","unit","nullable","description"],"description":"One field of a record or an instance."},"V2RecordsEnvelope":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WireRecord"},"description":"The records (or the contract, or the listing)."},"meta":{"allOf":[{"$ref":"#/components/schemas/V2Meta"}],"description":"The publication the records are from, and the page."}},"required":["data","meta"]},"WireRecord":{"type":"object","description":"One record; its fields are the route’s record schema."},"V2Coverage":{"type":"object","properties":{"firstTime":{"type":["string","null"],"description":"First record's time, ISO-8601 UTC, or `null`."},"lastTime":{"type":["string","null"],"description":"Last record's time, ISO-8601 UTC, or `null`."},"startOrigin":{"type":"string","description":"Why the series starts where it does."},"endedAt":{"type":["string","null"],"description":"When the instance stopped (delisted), or `null` while it runs."}},"required":["firstTime","lastTime","startOrigin","endedAt"]},"AssetPriceCandles1hRecord":{"type":"object","description":"One `asset.price.candles.1h` record (candle, 1h).","properties":{"asset":{"type":"string","description":"Catalogue asset ID."},"time":{"type":"string","format":"date-time","description":"Start of the interval. Unit: UTC."},"open":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$","description":"Turnover-weighted mean open across included markets. Unit: USD."},"high":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$","description":"Highest high of the included markets. Unit: USD."},"low":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$","description":"Lowest low of the included markets. Unit: USD."},"close":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$","description":"Turnover-weighted mean close across included markets. Unit: USD."},"turnover":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$","description":"Included turnover. Unit: USD."}},"required":["asset","time","open","high","low","close","turnover"]},"AssetPriceCandles1hInstance":{"type":"object","description":"One `asset.price.candles.1h` instance and its coverage.","properties":{"asset":{"type":"string","description":"Catalogue asset ID."},"coverage":{"$ref":"#/components/schemas/V2Coverage"},"state":{"type":"string","enum":["data","no_data"]},"records":{"type":"integer","description":"Records served for this instance."}},"required":["asset"]},"AssetPriceCandles4hRecord":{"type":"object","description":"One `asset.price.candles.4h` record (candle, 4h).","properties":{"asset":{"type":"string","description":"Catalogue asset ID."},"time":{"type":"string","format":"date-time","description":"Start of the interval. Unit: UTC."},"open":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$","description":"Turnover-weighted mean open across included markets. Unit: USD."},"high":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$","description":"Highest high of the included markets. Unit: USD."},"low":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$","description":"Lowest low of the included markets. Unit: USD."},"close":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$","description":"Turnover-weighted mean close across included markets. Unit: USD."},"turnover":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$","description":"Included turnover. Unit: USD."},"hours":{"type":"integer","description":"Hours that contributed to the candle. Unit: hours."}},"required":["asset","time","open","high","low","close","turnover","hours"]},"AssetPriceCandles4hInstance":{"type":"object","description":"One `asset.price.candles.4h` instance and its coverage.","properties":{"asset":{"type":"string","description":"Catalogue asset ID."},"coverage":{"$ref":"#/components/schemas/V2Coverage"},"state":{"type":"string","enum":["data","no_data"]},"records":{"type":"integer","description":"Records served for this instance."}},"required":["asset"]},"AssetPriceCandles1dRecord":{"type":"object","description":"One `asset.price.candles.1d` record (candle, 1d).","properties":{"asset":{"type":"string","description":"Catalogue asset ID."},"time":{"type":"string","format":"date-time","description":"Start of the interval. Unit: UTC."},"open":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$","description":"Turnover-weighted mean open across included markets. Unit: USD."},"high":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$","description":"Highest high of the included markets. Unit: USD."},"low":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$","description":"Lowest low of the included markets. Unit: USD."},"close":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$","description":"Turnover-weighted mean close across included markets. Unit: USD."},"turnover":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$","description":"Included turnover. Unit: USD."},"hours":{"type":["integer","null"],"description":"Hours that contributed to the candle; null until the daily build records it. Unit: hours."}},"required":["asset","time","open","high","low","close","turnover","hours"]},"AssetPriceCandles1dInstance":{"type":"object","description":"One `asset.price.candles.1d` instance and its coverage.","properties":{"asset":{"type":"string","description":"Catalogue asset ID."},"coverage":{"$ref":"#/components/schemas/V2Coverage"},"state":{"type":"string","enum":["data","no_data"]},"records":{"type":"integer","description":"Records served for this instance."}},"required":["asset"]},"AssetPriceReference1dRecord":{"type":"object","description":"One `asset.price.reference.1d` record (point, 1d).","properties":{"asset":{"type":"string","description":"Catalogue asset ID."},"time":{"type":"string","format":"date-time","description":"00:00 UTC of the date the value is for; which instant of the day it stands for is the source’s convention. Unit: UTC."},"price":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$","description":"Reference price. Unit: USD."},"market_cap":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$","description":"Market capitalization. Unit: USD."},"source":{"type":"string","description":"Where the value came from: venues (our daily asset candle, where the day is eligible), else the source, in this precedence: ecb_public (ECB reference rates, fiat only), coingecko_export, coinmarketcap_public, yahoo_public or fred_public."}},"required":["asset","time","price","market_cap","source"]},"AssetPriceReference1dInstance":{"type":"object","description":"One `asset.price.reference.1d` instance and its coverage.","properties":{"asset":{"type":"string","description":"Catalogue asset ID."},"coverage":{"$ref":"#/components/schemas/V2Coverage"},"state":{"type":"string","enum":["data","no_data"]},"records":{"type":"integer","description":"Records served for this instance."}},"required":["asset"]},"MarketPriceCandles5mRecord":{"type":"object","description":"One `market.price.candles.5m` record (candle, 5m).","properties":{"venue":{"type":"string","description":"Venue ID."},"exchange":{"type":["string","null"],"description":"The venue's product family; null where the catalogue has none."},"kind":{"type":"string","description":"`spot` or `perpetual`."},"market":{"type":"string","description":"The venue's native market ID."},"time":{"type":"string","format":"date-time","description":"Start of the interval. Unit: UTC."},"open":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$","description":"The venue's open. Unit: market's quote."},"high":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$","description":"The venue's high. Unit: market's quote."},"low":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$","description":"The venue's low. Unit: market's quote."},"close":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$","description":"The venue's close. Unit: market's quote."},"volume":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$","description":"Base volume, where the venue reports it. Unit: base units."},"quote_volume":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$","description":"Quote volume, where the venue reports it. Unit: market's quote."},"trades":{"type":["integer","null"],"description":"Trade count, where the venue reports it."}},"required":["venue","exchange","kind","market","time","open","high","low","close","volume","quote_volume","trades"]},"MarketPriceCandles5mInstance":{"type":"object","description":"One `market.price.candles.5m` instance and its coverage.","properties":{"venue":{"type":"string","description":"Venue ID."},"exchange":{"type":["string","null"],"description":"The venue's product family; null where the catalogue has none."},"kind":{"type":"string","description":"`spot` or `perpetual`."},"market":{"type":"string","description":"The venue's native market ID."},"asset":{"type":"string","description":"Base asset, catalogue ID."},"quote":{"type":["string","null"],"description":"Quote asset, catalogue ID; null while unmapped."},"settlement":{"type":["string","null"],"description":"Settlement asset, catalogue ID; null while unmapped."},"coverage":{"$ref":"#/components/schemas/V2Coverage"},"state":{"type":"string","enum":["data","no_data"]},"records":{"type":"integer","description":"Records served for this instance."}},"required":["venue","exchange","kind","market","asset","quote","settlement"]},"PerpFundingSettlementsRecord":{"type":"object","description":"One `perp.funding.settlements` record (event, no fixed interval).","properties":{"venue":{"type":"string","description":"Venue ID."},"exchange":{"type":["string","null"],"description":"The venue's product family; null where the catalogue has none."},"kind":{"type":"string","description":"`spot` or `perpetual`."},"market":{"type":"string","description":"The venue's native market ID."},"time":{"type":"string","format":"date-time","description":"Settlement time. Unit: UTC."},"rate":{"type":"number","description":"The rate the venue applied, as it reports it. Unit: fraction of position value per settlement period."},"premium":{"type":["number","null"],"description":"Premium component, where the venue reports it. Unit: fraction."},"interval_s":{"type":["integer","null"],"description":"The settlement period: the time since the previous settlement where it repeats a neighbouring interval; null for a first settlement and after a gap. Unit: seconds."},"apr":{"type":["number","null"],"description":"`rate × 365 days / interval_s`; null when `interval_s` is. Unit: fraction per year, simple."}},"required":["venue","exchange","kind","market","time","rate","premium","interval_s","apr"]},"PerpFundingSettlementsInstance":{"type":"object","description":"One `perp.funding.settlements` instance and its coverage.","properties":{"venue":{"type":"string","description":"Venue ID."},"exchange":{"type":["string","null"],"description":"The venue's product family; null where the catalogue has none."},"kind":{"type":"string","description":"`spot` or `perpetual`."},"market":{"type":"string","description":"The venue's native market ID."},"asset":{"type":"string","description":"Base asset, catalogue ID."},"quote":{"type":["string","null"],"description":"Quote asset, catalogue ID; null while unmapped."},"settlement":{"type":["string","null"],"description":"Settlement asset, catalogue ID; null while unmapped."},"coverage":{"$ref":"#/components/schemas/V2Coverage"},"state":{"type":"string","enum":["data","no_data"]},"records":{"type":"integer","description":"Records served for this instance."}},"required":["venue","exchange","kind","market","asset","quote","settlement"]},"PerpIndexCandles5mRecord":{"type":"object","description":"One `perp.index.candles.5m` record (candle, 5m).","properties":{"venue":{"type":"string","description":"Venue ID."},"exchange":{"type":["string","null"],"description":"The venue's product family; null where the catalogue has none."},"kind":{"type":"string","description":"`spot` or `perpetual`."},"market":{"type":"string","description":"The venue's native market ID."},"time":{"type":"string","format":"date-time","description":"Start of the interval. Unit: UTC."},"open":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$","description":"First value of the interval. Unit: market's quote."},"high":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$","description":"Highest value of the interval. Unit: market's quote."},"low":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$","description":"Lowest value of the interval. Unit: market's quote."},"close":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$","description":"Last value of the interval. Unit: market's quote."}},"required":["venue","exchange","kind","market","time","open","high","low","close"]},"PerpIndexCandles5mInstance":{"type":"object","description":"One `perp.index.candles.5m` instance and its coverage.","properties":{"venue":{"type":"string","description":"Venue ID."},"exchange":{"type":["string","null"],"description":"The venue's product family; null where the catalogue has none."},"kind":{"type":"string","description":"`spot` or `perpetual`."},"market":{"type":"string","description":"The venue's native market ID."},"asset":{"type":"string","description":"Base asset, catalogue ID."},"quote":{"type":["string","null"],"description":"Quote asset, catalogue ID; null while unmapped."},"settlement":{"type":["string","null"],"description":"Settlement asset, catalogue ID; null while unmapped."},"coverage":{"$ref":"#/components/schemas/V2Coverage"},"state":{"type":"string","enum":["data","no_data"]},"records":{"type":"integer","description":"Records served for this instance."}},"required":["venue","exchange","kind","market","asset","quote","settlement"]},"PerpMarkCandles5mRecord":{"type":"object","description":"One `perp.mark.candles.5m` record (candle, 5m).","properties":{"venue":{"type":"string","description":"Venue ID."},"exchange":{"type":["string","null"],"description":"The venue's product family; null where the catalogue has none."},"kind":{"type":"string","description":"`spot` or `perpetual`."},"market":{"type":"string","description":"The venue's native market ID."},"time":{"type":"string","format":"date-time","description":"Start of the interval. Unit: UTC."},"open":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$","description":"First value of the interval. Unit: as the venue quotes it, per contract."},"high":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$","description":"Highest value of the interval. Unit: as the venue quotes it, per contract."},"low":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$","description":"Lowest value of the interval. Unit: as the venue quotes it, per contract."},"close":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$","description":"Last value of the interval. Unit: as the venue quotes it, per contract."}},"required":["venue","exchange","kind","market","time","open","high","low","close"]},"PerpMarkCandles5mInstance":{"type":"object","description":"One `perp.mark.candles.5m` instance and its coverage.","properties":{"venue":{"type":"string","description":"Venue ID."},"exchange":{"type":["string","null"],"description":"The venue's product family; null where the catalogue has none."},"kind":{"type":"string","description":"`spot` or `perpetual`."},"market":{"type":"string","description":"The venue's native market ID."},"asset":{"type":"string","description":"Base asset, catalogue ID."},"quote":{"type":["string","null"],"description":"Quote asset, catalogue ID; null while unmapped."},"settlement":{"type":["string","null"],"description":"Settlement asset, catalogue ID; null while unmapped."},"coverage":{"$ref":"#/components/schemas/V2Coverage"},"state":{"type":"string","enum":["data","no_data"]},"records":{"type":"integer","description":"Records served for this instance."}},"required":["venue","exchange","kind","market","asset","quote","settlement"]},"PerpOpenInterestCandles5mRecord":{"type":"object","description":"One `perp.open_interest.candles.5m` record (candle, 5m).","properties":{"venue":{"type":"string","description":"Venue ID."},"exchange":{"type":["string","null"],"description":"The venue's product family; null where the catalogue has none."},"kind":{"type":"string","description":"`spot` or `perpetual`."},"market":{"type":"string","description":"The venue's native market ID."},"time":{"type":"string","format":"date-time","description":"Start of the interval. Unit: UTC."},"open":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$","description":"First value of the interval. Unit: base units."},"high":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$","description":"Highest value of the interval. Unit: base units."},"low":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$","description":"Lowest value of the interval. Unit: base units."},"close":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$","description":"Last value of the interval. Unit: base units."}},"required":["venue","exchange","kind","market","time","open","high","low","close"]},"PerpOpenInterestCandles5mInstance":{"type":"object","description":"One `perp.open_interest.candles.5m` instance and its coverage.","properties":{"venue":{"type":"string","description":"Venue ID."},"exchange":{"type":["string","null"],"description":"The venue's product family; null where the catalogue has none."},"kind":{"type":"string","description":"`spot` or `perpetual`."},"market":{"type":"string","description":"The venue's native market ID."},"asset":{"type":"string","description":"Base asset, catalogue ID."},"quote":{"type":["string","null"],"description":"Quote asset, catalogue ID; null while unmapped."},"settlement":{"type":["string","null"],"description":"Settlement asset, catalogue ID; null while unmapped."},"coverage":{"$ref":"#/components/schemas/V2Coverage"},"state":{"type":"string","enum":["data","no_data"]},"records":{"type":"integer","description":"Records served for this instance."}},"required":["venue","exchange","kind","market","asset","quote","settlement"]},"MarketTickerSnapshot":{"type":"object","description":"One `market.ticker` record.","properties":{"venue":{"type":"string","description":"Venue ID."},"exchange":{"type":["string","null"],"description":"The venue's product family."},"kind":{"type":"string","description":"`spot` or `perpetual`."},"market":{"type":"string","description":"The venue's native market ID."},"last":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$","description":"Last trade price. Unit: market's quote."},"bid":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$","description":"Best bid price. Unit: market's quote."},"ask":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$","description":"Best ask price. Unit: market's quote."},"bid_size":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$","description":"Size at the best bid. Unit: base units."},"ask_size":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$","description":"Size at the best ask. Unit: base units."},"volume_24h":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$","description":"Traded volume over 24 hours. Unit: base units."},"observed_at":{"type":"string","format":"date-time","description":"When the values were collected. A failed collection leaves the record with its old observation time. Unit: UTC."}},"required":["venue","exchange","kind","market","last","bid","ask","bid_size","ask_size","volume_24h","observed_at"]},"PerpFundingNextSnapshot":{"type":"object","description":"One `perp.funding.next` record.","properties":{"venue":{"type":"string","description":"Venue ID."},"exchange":{"type":["string","null"],"description":"The venue's product family."},"kind":{"type":"string","description":"`spot` or `perpetual`."},"market":{"type":"string","description":"The venue's native market ID."},"rate":{"type":["number","null"],"description":"The rate the venue publishes for the next settlement; on most venues an estimate. Unit: fraction of position value per settlement period."},"interval_s":{"type":["integer","null"],"description":"The settlement period. Unit: seconds."},"apr":{"type":["number","null"],"description":"`rate × 365 days / interval_s`, not compounded; null when either is. Unit: fraction per year, simple."},"next_funding_at":{"type":["string","null"],"format":"date-time","description":"When the next settlement is due. Unit: UTC."},"observed_at":{"type":"string","format":"date-time","description":"When the values were collected. A failed collection leaves the record with its old observation time. Unit: UTC."}},"required":["venue","exchange","kind","market","rate","interval_s","apr","next_funding_at","observed_at"]},"AssetPriceReferenceSnapshot":{"type":"object","description":"One `asset.price.reference` record.","properties":{"asset":{"type":"string","description":"Catalogue asset ID."},"price":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$","description":"Latest reference price: our latest hourly asset candle close where the asset has a venue price, else the aggregators’ latest. Unit: USD."},"market_cap":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$","description":"Latest market capitalization, from the aggregators. Unit: USD."},"price_24h_ago":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$","description":"The reference price 24 hours earlier. Unit: USD."},"source":{"type":"string","description":"Where price came from: venues, else the name of the aggregator that answered (coingecko, coinmarketcap,...), or aggregator where the stored row does not name it."},"observed_at":{"type":"string","format":"date-time","description":"When the values were collected. A failed collection leaves the record with its old observation time. Unit: UTC."}},"required":["asset","price","market_cap","price_24h_ago","source","observed_at"]},"VenueEarnSnapshot":{"type":"object","description":"One `venue.earn` record.","properties":{"venue":{"type":"string","description":"Venue ID."},"product":{"type":"string","description":"The venue's product ID."},"asset":{"type":"string","description":"Deposited asset, catalogue ID."},"paid_asset":{"type":["string","null"],"description":"Asset the yield is paid in, catalogue ID; null where the venue does not say or it is unmapped."},"apr":{"type":["number","null"],"description":"Annual rate as the venue states it. Unit: fraction per year."},"kinds":{"type":"array","items":{"type":"string"},"description":"Product kind as the venue tags it: flexible, fixed and others."},"min_amount":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$","description":"Minimum deposit. Unit: deposited asset."},"max_amount":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$","description":"Maximum deposit. Unit: deposited asset."},"lock_seconds":{"type":["number","null"],"description":"Lock period; null when flexible. Unit: seconds."},"url":{"type":["string","null"],"description":"The product's page."},"observed_at":{"type":"string","format":"date-time","description":"When the values were collected. A failed collection leaves the record with its old observation time. Unit: UTC."}},"required":["venue","product","asset","paid_asset","apr","kinds","min_amount","max_amount","lock_seconds","url","observed_at"]},"ApiErrorBody":{"type":"object","properties":{"error":{"allOf":[{"$ref":"#/components/schemas/ApiErrorDetail"}],"description":"Branch on `code`; `message` is one lower-case sentence for people; `param`, on a parameter problem, names the first offending query parameter by its real name; `details` carries free-form extras (`{ value, allowed }`, `{ unknown: [ids] }`)."}},"required":["error"],"description":"Every error answer of the API, on every surface."},"ApiErrorDetail":{"type":"object","properties":{"code":{"type":"string","enum":["bad_request","unauthorized","forbidden","not_found","gone","rate_limited","unavailable","warming","upgrade_required","internal"],"description":"What went wrong, to branch on (`bad_request`, `not_found`,...)."},"message":{"type":"string","description":"One sentence for people; not stable, never parse it."},"param":{"type":"string","description":"On a parameter problem: the first offending query parameter, by its real name."},"details":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/ErrorDetail"},"description":"Extras: the value refused and the values allowed (`value`, `allowed`), the ids no catalogue entry has (`unknown`) and what they may mean (`suggestions`)."}},"required":["code","message"],"description":"The `error` object of `ApiErrorBody`."},"ErrorDetail":{"anyOf":[{"type":"boolean"},{"type":"string"},{"type":"number"},{"type":"array","items":{"type":"string"}},{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}},{"type":"null"}]},"V2ErrorBody":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["bad_request","unauthorized","forbidden","not_found","gone","rate_limited","unavailable","warming","upgrade_required","internal","publication_changed"]},"message":{"type":"string"},"param":{"type":"string"},"details":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/ErrorDetail"}}},"required":["code","message"],"description":"Branch on `code`; `message` is for people; `details`, when present, names fields."}},"required":["error"],"description":"Every `/v2` error answer: the API's error envelope, plus `publication_changed`."},"KeyIntrospection":{"type":"object","properties":{"key":{"type":"object","properties":{"id":{"type":"string","description":"The key's id (not its secret)."},"prefix":{"type":"string","description":"The first characters of the key, as `/integrations` shows them."},"label":{"type":"string","description":"The name it was given."},"scopes":{"type":"array","items":{"type":"string","enum":["me:read","me:profiles","market:read"]},"description":"What it may read: `me:read`, `market:read`."},"source":{"type":"string","enum":["manual","device","mcp"],"description":"How it was made: by hand, by `tn terminal auth login`, or by an MCP client."},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When it was made."},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When it expires, or `null` for never."}},"required":["id","prefix","label","scopes","source","created_at","expires_at"],"description":"The key that made the request."},"plan":{"type":"string","enum":["free","pro","ultra"],"description":"The owner's plan: market data (`market:read`) needs `ultra`."},"owner":{"type":"string","description":"The owner's pseudonymous id."},"internal":{"type":"boolean","description":"Whether the owner is staff (reads at Ultra)."}},"required":["key","plan","owner","internal"],"description":"What a key is: its scopes, expiry and the owner's plan."},"ExchangeMeta":{"properties":{"id":{"type":"string","title":"Id"},"label":{"type":"string","title":"Label"},"account":{"type":"string","title":"Account"},"venue_id":{"type":"string","title":"Venue"},"kind":{"type":"string","enum":["perp","spot"],"title":"Kind"},"icon_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon","description":"Venue icon URL (catalogue CDN)."},"slot":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Slot","description":"Chart color slot (`--s<slot>`; `None`: the shared other color)."},"badge":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Badge","description":"Name shown on the venue icon (a HIP-3 dex, `spot`), if any."}},"required":["id","label","account","venue_id","kind","icon_url","slot","badge"],"type":"object","title":"ExchangeMeta","description":"A P&L exchange."},"AccountInfo":{"properties":{"account":{"type":"string","title":"Account"},"venue_id":{"type":"string","title":"Venue"},"name":{"type":"string","title":"Name","description":"The venue's title, plus the account's label, or its id where the user has other accounts on the venue (`Config.account_title`: `Margin Trade`, `dYdX · B`)."},"icon_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"},"included":{"type":"boolean","title":"Included","description":"In the portfolio (its credentials resolve an identity)."},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label","description":"The name its owner gave the connection; `None`: none."},"identity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Identity","description":"The account the connection reads, as the venue names it: a wallet address, an account index, the venue's uid, or a sub-account number; `None` where only its key identifies it (Terminal keeps a hash of the key, never shown) or for an account that is no connection. Never a key or any part of one."},"identity_kind":{"anyOf":[{"type":"string","enum":["address","account_id"]},{"type":"null"}],"title":"Identity Kind","description":"`address` (a wallet address) or `account_id` (an index, uid or number)."},"subaccount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subaccount","description":"The sub-account's name where the connection is one its parent's discovery found (a Hyperliquid sub-account); `None` otherwise."}},"required":["account","venue_id","name","icon_url","included","label","identity","identity_kind","subaccount"],"type":"object","title":"AccountInfo","description":"An enabled account."},"CredentialFieldInfo":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"secret":{"type":"boolean","title":"Secret"},"required":{"type":"boolean","title":"Required"},"help":{"type":"string","title":"Help"},"address":{"type":"boolean","title":"Address","description":"A public address (shown in full once stored)."},"multiline":{"type":"boolean","title":"Multiline","description":"A value with line breaks (a PEM key): a text area, line breaks kept."}},"required":["key","label","secret","required","help","address","multiline"],"type":"object","title":"CredentialFieldInfo","description":"One field a connection collects (named as the SDK account field)."},"CredentialsInfo":{"properties":{"fields":{"items":{"$ref":"#/components/schemas/CredentialFieldInfo"},"type":"array","title":"Fields","description":"Empty: the venue reads no accounts yet (public data only)."},"not_collected":{"items":{"type":"string"},"type":"array","title":"Not Collected","description":"Credentials never asked for (signing keys)."},"steps":{"items":{"type":"string"},"type":"array","title":"Steps","description":"How to create a read-only key."},"permissions_to_reject":{"items":{"type":"string"},"type":"array","title":"Permissions To Reject","description":"What makes a key unacceptable (it can trade or withdraw)."},"expiry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expiry"},"docs":{"items":{"type":"string"},"type":"array","title":"Docs"},"permissions_verifiable":{"type":"boolean","title":"Permissions Verifiable","description":"Whether the venue lets Terminal verify a key's permissions. `false`: keys are accepted unverified, and the add-account guide and form show `permissions_warning` (create a read-only / View key)."},"permissions_warning":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Permissions Warning","description":"What to tell the user about keys Terminal cannot verify: set whenever `permissions_verifiable` is false (and on a venue where only optional fields cannot be verified, such as Kraken Futures keys)."},"refused":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refused","description":"Why every key of the venue is refused, for a reason other than unverifiable permissions; the venue is then `public_only` and its connect flow shows this instead."}},"required":["fields","not_collected","steps","permissions_to_reject","expiry","docs","permissions_verifiable","permissions_warning","refused"],"type":"object","title":"CredentialsInfo","description":"A venue's credentials catalogue entry (`CredentialSpec`): what the connect flow asks for and tells the user."},"ReviewInfo":{"properties":{"last_report":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Report","description":"Day of its latest daily report."},"status":{"anyOf":[{"type":"string","enum":["pass","fail","warn","skip"]},{"type":"null"}],"title":"Status","description":"That report's status."},"findings":{"type":"integer","title":"Findings","description":"Open findings: failing and warning findings of the latest report."},"failures_7d":{"type":"integer","title":"Failures 7D","description":"Reports with a failing invariant among the last seven finished days."}},"required":["last_report","status","findings","failures_7d"],"type":"object","title":"ReviewInfo"},"VenueEntry":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"icon_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"},"stage":{"type":"string","enum":["beta","stable"],"title":"Stage"},"venue_type":{"anyOf":[{"type":"string","enum":["cex","dex"]},{"type":"null"}],"title":"Venue Type","description":"`cex` or `dex` (`VenueInfo.venue_type`)."},"kinds":{"items":{"type":"string"},"type":"array","title":"Kinds"},"capabilities":{"items":{"type":"string"},"type":"array","title":"Capabilities","description":"Optional parts the module implements (`stream`, `funding_rates`, `candles`, `equity_history`,...); the others are unavailable."},"docs":{"items":{"type":"string"},"type":"array","title":"Docs"},"credentials":{"$ref":"#/components/schemas/CredentialsInfo"},"subaccounts":{"anyOf":[{"type":"string","enum":["separate","included"]},{"type":"null"}],"title":"Subaccounts","description":"Sub-account discovery (`VenueInfo.subaccounts`): `separate`, each found sub-account becomes an account of its own (Hyperliquid); `included`, the account reads them all (dYdX); `None`, no discovery."},"paid":{"type":"boolean","title":"Paid","description":"Connections need a paid plan (`VenueInfo.paid`: EVM wallets)."},"wallet":{"type":"boolean","title":"Wallet","description":"A wallet read by address across chains (`VenueInfo.wallet`): listed apart from the trading venues."},"accounts":{"items":{"type":"string"},"type":"array","title":"Accounts","description":"The user's connections on the venue (their ids)."},"status":{"type":"string","enum":["connected","needs_key","public_only"],"title":"Status"},"review":{"$ref":"#/components/schemas/ReviewInfo","description":"The beta review of the module: its latest daily report."}},"required":["id","name","icon_url","stage","venue_type","kinds","capabilities","docs","credentials","subaccounts","paid","wallet","accounts","status","review"],"type":"object","title":"VenueEntry","description":"An enabled venue: its module's stage, capabilities and credentials entry, and whether an account is connected."},"KeyWarning":{"properties":{"connection":{"type":"string","title":"Connection"},"venue_id":{"type":"string","title":"Venue"},"name":{"type":"string","title":"Name","description":"The connection's name (`display_name`)."},"kind":{"type":"string","enum":["suspended","expired","expiring","error"],"title":"Kind"},"cause":{"anyOf":[{"type":"string","enum":["permissions","invalid"]},{"type":"null"}],"title":"Cause","description":"For a suspended key: `permissions` (it can do more than read) or `invalid` (the venue rejects it: replace it)."},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"message":{"type":"string","title":"Message"}},"required":["connection","venue_id","name","kind","cause","expires_at","message"],"type":"object","title":"KeyWarning","description":"A connection that needs attention: its key is suspended (the daily re-check found it no longer read-only: not read until fixed), expired or expires soon, or reading it fails."},"ProfileInfo":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"include":{"items":{"type":"string"},"type":"array","title":"Include"},"exclude":{"items":{"type":"string"},"type":"array","title":"Exclude"},"builtin":{"type":"boolean","title":"Builtin","description":"The built-in `all` profile (read-only)."},"default":{"type":"boolean","title":"Default","description":"The profile the user opens by default (the Portfolio page without a profile in its link, and the portfolio summaries elsewhere in the Terminal)."},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"base_currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Currency","description":"The currency the profile's figures are shown in (lower-case code, `eur`); null: the reader's own (the app's Settings currency)."},"value_collateral":{"type":"boolean","title":"Value Collateral","description":"Whether the perp accounts' collateral coins are valued as their rates move (a stablecoin is never exactly 1), that drift counted in the P&L; false (the default): collateral counts at its value of each read."}},"required":["id","name","description","include","exclude","builtin","default","created_at","updated_at","base_currency","value_collateral"],"type":"object","title":"ProfileInfo","description":"A profile on the wire."},"Selection":{"properties":{"profile":{"type":"string","title":"Profile","description":"Profile id (`all` is built in)."},"name":{"type":"string","title":"Name","description":"The profile's display name."},"include":{"items":{"type":"string"},"type":"array","title":"Include","description":"Include rules in effect (empty: every market)."},"exclude":{"items":{"type":"string"},"type":"array","title":"Exclude","description":"Exclude rules in effect."},"edited":{"type":"boolean","title":"Edited","description":"Whether the rules in effect differ from the stored profile's (unsaved edits)."},"exchanges":{"items":{"type":"string"},"type":"array","title":"Exchanges","description":"P&L exchanges with any selected market, in configured order."},"partial":{"items":{"type":"string"},"type":"array","title":"Partial","description":"Of `exchanges`, those where the rules leave out markets with account data."},"excluded_markets":{"items":{"type":"string"},"type":"array","title":"Excluded Markets","description":"Full market ids with account data (positions, fills, funding) that an exclude rule removes."},"account_wide":{"items":{"type":"string"},"type":"array","title":"Account Wide","description":"Accounts whose equity and margin are shown although the rules leave some of their markets out: equity cannot be split by market, so it is not filtered."}},"required":["profile","name","include","exclude","edited","exchanges","partial","excluded_markets","account_wide"],"type":"object","title":"Selection","description":"What a response covers: a profile's rules, maybe edited."},"BucketState":{"properties":{"segment_id":{"type":"string","title":"Exchange"},"equity":{"title":"Equity","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"free_collateral":{"title":"Free Collateral","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"initial_margin":{"title":"Initial Margin","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"maintenance_margin":{"title":"Maintenance Margin","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"maintenance_ratio":{"type":"number","title":"Maintenance Ratio"},"leverage":{"type":"number","title":"Leverage"}},"required":["segment_id","equity","free_collateral","initial_margin","maintenance_margin","maintenance_ratio","leverage"],"type":"object","title":"BucketState","description":"Margin state of one account bucket (an exchange of an account)."},"IsolatedLeg":{"properties":{"segment_id":{"type":"string","title":"Exchange"},"market":{"type":"string","title":"Market"},"notional":{"title":"Notional","description":"Gross USD notional of the position.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"margin":{"anyOf":[{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},{"type":"null"}],"title":"Margin","description":"Its margin in USD; `None`: not reported."},"leverage":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Leverage","description":"`notional / margin`, else as the venue states it; `None`: neither."}},"required":["segment_id","market","notional","margin","leverage"],"type":"object","title":"IsolatedLeg","description":"An isolated-margin position: its own notional over its own margin."},"AccountExposure":{"properties":{"notional":{"title":"Notional","description":"Gross USD notional: open perpetual legs, each at its own quote's rate, plus margin borrows.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"long":{"title":"Long","description":"USD notional of the long perpetual legs.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"short":{"title":"Short","description":"USD notional of the short perpetual legs (positive).","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"borrowed":{"title":"Borrowed","description":"USD value of spot balances below zero (margin borrows).","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"positions":{"type":"integer","title":"Positions","description":"Open perpetual legs (one per market) counted in `notional`."},"cross":{"type":"integer","title":"Cross","description":"Legs of `positions` the venue reports as cross-margined; those neither here nor in `isolated` have no margin mode reported."},"equity":{"anyOf":[{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},{"type":"null"}],"title":"Equity","description":"Equity of every bucket in USD (collateral incl. unrealized P&L, spot holdings); `None`: no collateral read."},"margin_equity":{"anyOf":[{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},{"type":"null"}],"title":"Margin Equity","description":"Equity of its perpetual buckets alone (what margins the perps); `None`: none."},"leverage":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Leverage","description":"`notional / equity`; `None` with `missing` saying why."},"margin_leverage":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Margin Leverage","description":"Perpetual notional over the perpetual buckets' equity, where the account holds spot beside them."},"missing":{"anyOf":[{"type":"string","enum":["flat","no_collateral","no_equity","unpriced"]},{"type":"null"}],"title":"Missing"},"estimated":{"items":{"type":"string"},"type":"array","title":"Estimated","description":"`exchange|market` of legs valued at their asset's rate (no mark or quote rate)."},"unpriced":{"items":{"type":"string"},"type":"array","title":"Unpriced","description":"`exchange|market` of legs left out: no rate of any kind."},"isolated":{"items":{"$ref":"#/components/schemas/IsolatedLeg"},"type":"array","title":"Isolated"}},"required":["notional","long","short","borrowed","positions","cross","equity","margin_equity","leverage","margin_leverage","missing","estimated","unpriced","isolated"],"type":"object","title":"AccountExposure","description":"An account's open notional and leverage now."},"AccountEquity":{"properties":{"account":{"type":"string","title":"Account"},"equity":{"title":"Equity","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"buckets":{"items":{"$ref":"#/components/schemas/BucketState"},"type":"array","title":"Buckets"},"exposure":{"$ref":"#/components/schemas/AccountExposure","description":"Open notional and leverage."}},"required":["account","equity","buckets"],"type":"object","title":"AccountEquity","description":"Equity of one account over its selected buckets."},"PortfolioSummary":{"properties":{"pnl":{"title":"Pnl","description":"P&L over the window in USD, every part together: trading, funding, fees and (where valued) collateral.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"trading":{"title":"Trading","description":"P&L from price moves on the positions held and traded.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"funding":{"title":"Funding","description":"Funding received (+) or paid (−) on perp positions.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"borrow":{"title":"Borrow","description":"Of `funding`, the borrowing fees.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"dividend":{"type":"number","title":"Dividend","description":"Of `funding`, the equity-perp dividend adjustments."},"bonus":{"type":"number","title":"Bonus","description":"Of `funding`, the loss-refund bonuses."},"fees":{"title":"Fees","description":"Trading fees paid in the window, positive when paid (a maker rebate counts negative): `pnl = trading + funding - fees + collateral`. The `series` fees are the same as a cumulative P&L term, negative when paid.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"volume":{"title":"Volume","description":"USD volume traded in the window.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"fills":{"type":"integer","title":"Fills","description":"Fills in the window."},"maker_share":{"type":"number","title":"Maker Share","description":"Fraction of the volume filled as maker."},"pnl_bps":{"type":"number","title":"Pnl Bps","description":"Total P&L over total volume, in basis points."},"net_delta":{"title":"Net Delta","description":"Current net exposure in quote units.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"gross_notional":{"title":"Gross Notional","description":"Current gross position value: every leg's notional, long and short.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"perp_notional":{"title":"Perp Notional","description":"Gross notional of the legs that pay or earn funding (spot legs aside): the base of the carry's secondary, perp-notional APR. The headline APR is on `equity`.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"carry_hourly":{"title":"Carry Hourly","description":"Expected funding income per hour at current rates and positions.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"equity":{"title":"Equity","description":"Equity of the selected buckets.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"collateral":{"title":"Collateral","description":"What the perp buckets' collateral coins made as their USD rates moved.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"}},"required":["pnl","trading","funding","fees","volume","fills","maker_share","pnl_bps","net_delta","gross_notional","perp_notional","carry_hourly","equity","collateral"],"type":"object","title":"Summary","description":"Window totals over the selection."},"ExchangeSummary":{"properties":{"segment_id":{"type":"string","title":"Exchange"},"volume":{"title":"Volume","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"maker_volume":{"title":"Maker Volume","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"maker_share":{"type":"number","title":"Maker Share","description":"Fraction of the volume filled as maker."},"fees":{"title":"Fees","description":"Trading fees paid in the window, positive when paid (`Summary.fees`).","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"funding":{"title":"Funding","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"borrow":{"title":"Borrow","description":"Of `funding`, the borrowing fees the venue splits out.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"dividend":{"type":"number","title":"Dividend","description":"Of `funding`, the equity-perp dividend adjustments the venue books apart."},"bonus":{"type":"number","title":"Bonus","description":"Of `funding`, the venue's loss-refund bonuses."},"fills":{"type":"integer","title":"Fills","description":"Fills in the window, valued or not (a count needs no rate: an asset left out of the USD totals still traded; `summary.fills` counts the same way)."},"net_usd":{"title":"Net Usd","description":"Signed position value now.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"gross":{"title":"Gross","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"carry_hourly":{"title":"Carry Hourly","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"}},"required":["segment_id","volume","maker_volume","maker_share","fees","funding","fills","net_usd","gross","carry_hourly"],"type":"object","title":"ExchangeSummary","description":"Window totals and current exposure of one exchange."},"PortfolioSeries":{"properties":{"time":{"type":"array","items":{"type":"string","format":"date-time"}},"pnl":{"items":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"type":"array","title":"Pnl"},"trading":{"items":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"type":"array","title":"Trading"},"funding":{"items":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"type":"array","title":"Funding"},"fees":{"items":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"type":"array","title":"Fees","description":"Cumulative fees as a P&L contribution (negative when paying)."},"collateral":{"items":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"type":"array","title":"Collateral","description":"Cumulative revaluation of the collateral coins (`Summary.collateral`; zeros unless the profile values its collateral)."},"equity":{"items":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"type":"array","title":"Equity","description":"USD held by the selected buckets at each grid point (their equity): what a base currency other than USD revalues (the app's currency effect)."},"net_delta":{"items":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"type":"array","title":"Net Delta"},"gross_notional":{"items":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"type":"array","title":"Gross Notional"},"funding_by":{"additionalProperties":{"items":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"type":"array"},"type":"object","title":"Funding By","description":"Exchange -> cumulative funding."},"borrow_by":{"additionalProperties":{"items":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"type":"array"},"type":"object","title":"Borrow By","description":"Exchange -> cumulative borrowing fees, part of `funding_by`; absent where no selected exchange split any out in the window."},"dividend_by":{"additionalProperties":{"items":{"type":"number"},"type":"array"},"type":"object","title":"Dividend By","description":"Exchange -> cumulative equity-perp dividend adjustments, part of `funding_by`; absent where no selected exchange booked any in the window."},"bonus_by":{"additionalProperties":{"items":{"type":"number"},"type":"array"},"type":"object","title":"Bonus By","description":"Exchange -> cumulative loss-refund bonuses, part of `funding_by`; absent where no selected exchange credited any in the window."},"notional_by":{"additionalProperties":{"items":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"type":"array"},"type":"object","title":"Notional By","description":"Exchange -> signed position value."},"held_by":{"additionalProperties":{"items":{"type":"number"},"type":"array"},"type":"object","title":"Held By","description":"Exchange -> what its positions are worth, each asset's as a magnitude and none under `HELD_DUST` (`daily.held_value` on this grid): the relative P&L's stand-in for an exchange's equity where none was recorded. Only in the P&L by period card's computation (`overview(with_held=True)`), never in an overview answer."},"volume_by":{"additionalProperties":{"items":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"type":"array"},"type":"object","title":"Volume By","description":"Exchange -> volume traded in the bucket ending at `t`."}},"required":["time","pnl","trading","funding","fees","collateral","equity","net_delta","gross_notional","funding_by","notional_by","volume_by"],"type":"object","title":"Series","description":"Aligned time series over the window grid."},"DeltaSeries":{"properties":{"asset_id":{"type":"string","title":"Asset"},"symbol":{"type":"string","title":"Symbol"},"values":{"items":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"type":"array","title":"Values"}},"required":["asset_id","symbol","values"],"type":"object","title":"DeltaSeries","description":"Net delta of one asset (or \"Other\") over the window."},"LegRisk":{"properties":{"entry":{"anyOf":[{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},{"type":"null"}],"title":"Entry","description":"Average entry price, in the leg's `quote_symbol`."},"liq_px":{"anyOf":[{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},{"type":"null"}],"title":"Liq Px","description":"Estimated liquidation price, in the leg's `quote_symbol`; `None`: none reported."},"liq_distance":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Liq Distance","description":"`(liq_px - mark) / mark`, a fraction (negative for a long, positive for a short)."},"margin_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Margin Mode","description":"`cross` or `isolated`."},"margin":{"anyOf":[{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},{"type":"null"}],"title":"Margin","description":"Margin of this position, in the leg's `settlement_symbol` asset."},"margin_usd":{"anyOf":[{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},{"type":"null"}],"title":"Margin Usd","description":"`margin` in USD at the settlement asset's current rate."},"leverage":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Leverage"},"source":{"type":"string","title":"Source","description":"`venue`: as the venue states it; `computed`: from its margin rules."}},"required":["entry","liq_px","liq_distance","margin_mode","margin","margin_usd","leverage","source"],"type":"object","title":"LegRisk","description":"A leg's margin and liquidation where its venue reports them."},"MarketLeg":{"properties":{"segment_id":{"type":"string","title":"Exchange"},"market":{"type":"string","title":"Market","description":"Native market id."},"symbol":{"type":"string","title":"Symbol","description":"Venue display symbol."},"quote_symbol":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quote","description":"What its prices are quoted in (`USDC`, `USDT`, `USD`), as the pricer labels it: the catalogue's quote, else the venue listing's; null: unknown."},"settlement_symbol":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Settle","description":"A perpetual's settlement (margin) currency (`USDC` for dYdX `BTC-USD`); null: spot, or unknown."},"pos":{"title":"Pos","description":"Current position, base units.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"delta":{"anyOf":[{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},{"type":"null"}],"title":"Delta","description":"Net delta, base units: `pos`, a quanto perpetual's in units of its price; `None`: not known."},"net_usd":{"title":"Net Usd","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"notional":{"title":"Notional","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"funding":{"title":"Funding","description":"Funding received on this market in the window.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"fees":{"title":"Fees","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"volume":{"title":"Volume","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"fills":{"type":"integer","title":"Fills"},"rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rate","description":"The funding rate the venue publishes for its next settlement (at `next_funding_at`): a prediction until then, not what was last paid; annualized, a fraction. `None`: spot, or no quote. `carry_hourly` is at it."},"carry_hourly":{"title":"Carry Hourly","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"funding_interval_s":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Funding Hours","description":"The interval between its settlements, what `rate` and `settled_rate` are annualized from; `None`: spot, or no quote."},"next_funding_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the settlement `rate` predicts falls (`/me`: ISO); `None`: spot, or the live feed does not say."},"settled_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Settled Rate","description":"The rate of its last settlement, annualized at `funding_hours`, a fraction; added by the app from `/v1`'s latest settled funding; `None` or absent: none found."},"settled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When that settlement was (`/me`: ISO); `None` or absent: none found."},"mark":{"anyOf":[{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},{"type":"null"}],"title":"Mark","description":"Its price now, in `quote_symbol` (a perp's mark, else index or mid, as recorded with the position); `None`: no position, or none recorded."},"quote_usd":{"anyOf":[{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},{"type":"null"}],"title":"Quote Usd","description":"USD per unit of what `value_quote` is in (the quote; a quanto perpetual's settlement asset) now; `None`: no rate."},"value_quote":{"anyOf":[{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},{"type":"null"}],"title":"Value Quote","description":"`pos` x `mark`, in `quote_symbol` (a quanto's in its settlement asset)."},"valued_at_asset_rate":{"type":"boolean","title":"Valued At Asset Rate","description":"A perpetual whose `net_usd` is size x the asset's USD price, for lack of a mark or a quote rate; spot is never flagged."},"risk":{"anyOf":[{"$ref":"#/components/schemas/LegRisk"},{"type":"null"}],"description":"Margin and liquidation where the venue reports them; `None` elsewhere."}},"required":["segment_id","market","symbol","quote_symbol","settlement_symbol","pos","delta","net_usd","notional","funding","fees","volume","fills","rate","carry_hourly"],"type":"object","title":"MarketLeg","description":"One market an asset is held or traded on: two perpetuals of one asset on one account (Aster BTCUSDT and BTCUSDC) are two legs. The asset row's per-exchange figures are the sums of its legs there."},"AssetRow":{"properties":{"asset_id":{"type":"string","title":"Asset"},"symbol":{"type":"string","title":"Symbol"},"markets":{"additionalProperties":{"type":"string"},"type":"object","title":"Markets","description":"Exchange -> market of the asset there (where listed or traded)."},"held":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object","title":"Held","description":"Exchange -> markets with a position now or fills in the window."},"price":{"anyOf":[{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},{"type":"null"}],"title":"Price","description":"Current USD price; `None`: none (an unpriced asset, or one without a current rate: never 0 standing in for a missing price)."},"pos":{"additionalProperties":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"type":"object","title":"Pos","description":"Exchange -> current position, base units (exchanges with activity only)."},"net":{"anyOf":[{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},{"type":"null"}],"title":"Net","description":"Net delta, base units, summed over every market; `None`: one leg's is not known."},"net_usd":{"title":"Net Usd","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"notional":{"title":"Notional","description":"Gross notional across exchanges.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"trading":{"title":"Trading","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"funding":{"title":"Funding","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"funding_by":{"additionalProperties":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"type":"object","title":"Funding By"},"dividend":{"type":"number","title":"Dividend","description":"Of `funding`, the equity-perp dividend adjustments."},"bonus":{"type":"number","title":"Bonus","description":"Of `funding`, the loss-refund bonuses."},"fees":{"title":"Fees","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"pnl":{"title":"Pnl","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"volume":{"title":"Volume","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"volume_by":{"additionalProperties":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"type":"object","title":"Volume By"},"fills":{"type":"integer","title":"Fills"},"edge_bps":{"type":"number","title":"Edge Bps","description":"Total P&L over volume, in basis points."},"rates":{"additionalProperties":{"type":"number"},"type":"object","title":"Rates","description":"Exchange -> current funding, annualized (perps listing the asset)."},"carry_hourly":{"title":"Carry Hourly","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note","description":"Why the row reads differently (`NO_PRICE`), if it does."},"priced_from_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the asset is valued from, when after the window start: its price history starts inside the window, so its P&L, volume and fees count from that grid point; `None` or absent: from the window start (or not valued)."},"subaccounts":{"additionalProperties":{"additionalProperties":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"type":"object"},"type":"object","title":"Subaccounts","description":"Exchange -> subaccount -> current position, base units, where the venue reports the position per subaccount (dYdX); other exchanges are absent."},"exposure_at_asset_rate":{"items":{"type":"string"},"type":"array","title":"Exposure At Asset Rate","description":"Perp exchanges whose share of `net_usd` and `notional` is size x the asset's rate, for lack of a mark or of its quote's rate; elsewhere a perp is size x mark in its quote x that quote's rate and a spot holding size x the asset's rate."},"legs":{"items":{"$ref":"#/components/schemas/MarketLeg"},"type":"array","title":"Legs","description":"Every market of the asset with a position now or activity in the window: the row's figures are their sums."}},"required":["asset_id","symbol","markets","held","price","pos","net","net_usd","notional","trading","funding","funding_by","fees","pnl","volume","volume_by","fills","edge_bps","rates","carry_hourly","note","subaccounts","exposure_at_asset_rate","legs"],"type":"object","title":"AssetRow","description":"Per-asset breakdown."},"AssetOption":{"properties":{"asset_id":{"type":"string","title":"Asset"},"symbol":{"type":"string","title":"Symbol"}},"required":["asset_id","symbol"],"type":"object","title":"AssetOption","description":"An asset with activity in the window, over every exchange (rule picker)."},"FeeInAsset":{"properties":{"asset_id":{"type":"string","title":"Asset","description":"Catalogue asset id (the venue symbol when uncatalogued)."},"amount":{"title":"Amount","description":"+ paid, - rebate.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"}},"required":["asset_id","amount"],"type":"object","title":"FeeInAsset","description":"A fee kept in its own asset (no USD rate at fill time)."},"RouteInfo":{"properties":{"kind":{"type":"string","title":"Kind","description":"`swap`, or what a transfer was: `deposit`, `withdrawal`, `mint`, `burn`, `bridge-in`, `bridge-out`, `wrap`, `lp`, `protocol`."},"via":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Via","description":"The DEX, aggregator or bridge (`Uniswap v4`, `1inch`, `DEX swap`)."},"icon_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon","description":"Its catalogue icon."},"tx":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tx"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url","description":"The transaction on the chain's explorer."},"pool_fee":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Pool Fee","description":"The pools' fee as a fraction of the amount swapped (already in the price)."},"counterparty":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Counterparty"}},"required":["kind","via","icon_url","tx","url","pool_fee","counterparty"],"type":"object","title":"RouteInfo","description":"Where an on-chain fill happened (EVM wallets)."},"QuantoQuote":{"properties":{"price":{"title":"Price","description":"The venue's price per base unit, in `quote_asset_id`.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"quote_asset_id":{"type":"string","title":"Quote","description":"Catalogue id of the asset prices are quoted in."},"quote_symbol":{"type":"string","title":"Quote Symbol"},"settlement":{"type":"string","title":"Settlement","description":"Catalogue id of the asset its notional and P&L are in."},"settlement_symbol":{"type":"string","title":"Settlement Symbol"},"notional":{"title":"Notional","description":"`|qty| x price`, in `settlement` units.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"}},"required":["price","quote_asset_id","quote_symbol","settlement","settlement_symbol","notional"],"type":"object","title":"QuantoQuote","description":"A fill on a quanto perpetual as the venue reports it."},"FillRow":{"properties":{"time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"segment_id":{"type":"string","title":"Exchange"},"asset_id":{"type":"string","title":"Asset"},"symbol":{"type":"string","title":"Symbol"},"market":{"type":"string","title":"Market"},"market_symbol":{"type":"string","title":"Market Symbol","description":"Venue display symbol of the market (`BTC` for Lighter market `1`)."},"qty":{"title":"Qty","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"price":{"title":"Price","description":"USD per base unit at the rate of the fill time of the asset its notional is in: its quote, a quanto perpetual's settlement (`qty x price` is the notional).","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"notional":{"title":"Notional","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"fee":{"title":"Fee","description":"USD paid (negative for rebates) at the rate of the fill time; 0 when `fee_in_asset` holds it.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"maker":{"type":"boolean","title":"Maker"},"subaccount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subaccount","description":"The venue subaccount of the fill (dYdX: its number), else `None`."},"trade_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trade Id","description":"The venue's own id of the fill (trade, execution or match id), as it reports it; null: the venue reports none, or the fill was stored before these ids were kept."},"order_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Order Id","description":"The venue's id of the order the fill executed; null as for `trade_id`."},"client_order_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Order Id","description":"The client order id the order was placed with, where the venue reports one; null otherwise."},"fee_in_asset":{"anyOf":[{"$ref":"#/components/schemas/FeeInAsset"},{"type":"null"}],"description":"The fee in its own asset when it had no USD rate at fill time; null: `fee` is USD."},"price_in_asset":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Price In Asset","description":"The asset `price` and `notional` are in, as quoted, when that quote had no USD rate at fill time (the fill's asset is then counted in `no_price.assets`); null: they are USD at the quote's rate of the fill time."},"route":{"anyOf":[{"$ref":"#/components/schemas/RouteInfo"},{"type":"null"}],"description":"Where an on-chain swap happened (EVM wallets); null: a venue fill."},"liquidation":{"type":"boolean","title":"Liquidation","description":"Forced by the venue at liquidation: a position closed by its liquidation engine, or collateral sold and a borrowed coin bought back to repay a margin debt; absent: not."},"quanto":{"anyOf":[{"$ref":"#/components/schemas/QuantoQuote"},{"type":"null"}],"description":"A quanto perpetual's fill as the venue reports it (`price` in its quote, the notional in its settlement); null: not a quanto perpetual."}},"required":["time","segment_id","asset_id","symbol","market","market_symbol","qty","price","notional","fee","maker","subaccount","trade_id","order_id","client_order_id","fee_in_asset","price_in_asset","route","quanto"],"type":"object","title":"FillRow","description":"A fill as shown in the recent-fills table."},"TransferRow":{"properties":{"time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"segment_id":{"type":"string","title":"Exchange"},"asset_id":{"type":"string","title":"Asset"},"symbol":{"type":"string","title":"Symbol"},"token_symbol":{"type":"string","title":"Token Symbol","description":"The token's own symbol (`WPRL` for Pearl)."},"qty":{"title":"Qty","description":"Signed base units: + in, - out.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"usd":{"anyOf":[{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},{"type":"null"}],"title":"Usd","description":"At the asset's rate then; null: no rate."},"route":{"$ref":"#/components/schemas/RouteInfo"}},"required":["time","segment_id","asset_id","symbol","token_symbol","qty","usd","route"],"type":"object","title":"TransferRow","description":"An on-chain balance change that is not a trade."},"AssetInfo":{"properties":{"id":{"type":"string","title":"Id"},"symbol":{"type":"string","title":"Symbol"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Catalogue display name (`None` for uncatalogued and synthetic assets)."},"icon_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon","description":"Icon URL (catalogue CDN), when the catalogue has one."},"category":{"anyOf":[{"type":"string","enum":["crypto","stablecoin","stock","fund","index","commodity","fiat","rwa"]},{"type":"null"}],"title":"Category","description":"Asset class (`None` when unknown: uncatalogued, unprefixed synthetic ids)."},"provisional":{"type":"boolean","title":"Provisional","description":"Not in the catalogue yet: an identity the tracker inferred from symbol and price (`provisional`), shown as unverified."},"resolver":{"type":"boolean","title":"Resolver","description":"Provisional because the AI resolver identified it; absent: false."}},"required":["id","symbol","name","icon_url","category","provisional"],"type":"object","title":"AssetInfo","description":"Display data of an asset, on the wire."},"VenuePrice":{"properties":{"segment_id":{"type":"string","title":"Exchange","description":"Venue exchange (`hyperliquid:spot`)."},"market":{"type":"string","title":"Market","description":"Native market id."},"symbol":{"type":"string","title":"Symbol","description":"Venue display symbol (`QONE/USDC`)."},"observed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"End of the quote bucket the price is from."}},"required":["segment_id","market","symbol","observed_at"],"type":"object","title":"VenuePrice","description":"Where a venue-priced asset's price comes from, on the wire (`venue_prices`)."},"NoPrice":{"properties":{"assets":{"type":"integer","title":"Assets","description":"Assets shown with their quantity and no price, left out of every total."},"fees":{"type":"integer","title":"Fees","description":"Window fills whose fee stayed in its own asset, left out of the fee totals."},"balances":{"type":"integer","title":"Balances","description":"Spot balances of the selected buckets left out of their equity at the last read."}},"required":["assets","fees","balances"],"type":"object","title":"NoPrice","description":"What a view left out of its totals for lack of a USD rate."},"Conn":{"properties":{"venue_id":{"type":"string","title":"Venue"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"synced_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"End of the last successful `accounts` pass over it; null: never synced."},"status":{"type":"string","enum":["ok","error","unchecked","suspended"],"title":"Status","description":"`ok`, `error` (the last read failed), `unchecked` (not checked yet), `suspended` (the key re-check refused the key)."},"read_only":{"type":"boolean","title":"Read Only","description":"Above the plan's connection limit: served from what was synced, not synced."}},"required":["venue_id","label","synced_at","status","read_only"],"additionalProperties":false,"type":"object","title":"Conn","description":"One of the user's connections, as the answer reports its freshness."},"SelectionSummary":{"properties":{"pnl":{"title":"Pnl","description":"P&L over the window in USD, every part together: trading, funding, fees and (where valued) collateral.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"trading":{"title":"Trading","description":"P&L from price moves on the positions held and traded.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"funding":{"title":"Funding","description":"Funding received (+) or paid (−) on perp positions.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"borrow":{"title":"Borrow","description":"Of `funding`, the borrowing fees.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"dividend":{"type":"number","title":"Dividend","description":"Of `funding`, the equity-perp dividend adjustments."},"bonus":{"type":"number","title":"Bonus","description":"Of `funding`, the loss-refund bonuses."},"fees":{"title":"Fees","description":"Trading fees paid in the window, positive when paid (a maker rebate counts negative): `pnl = trading + funding - fees + collateral`. The `series` fees are the same as a cumulative P&L term, negative when paid.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"volume":{"title":"Volume","description":"USD volume traded in the window.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"fills":{"type":"integer","title":"Fills","description":"Fills in the window."},"maker_share":{"type":"number","title":"Maker Share","description":"Fraction of the volume filled as maker."},"pnl_bps":{"type":"number","title":"Pnl Bps","description":"Total P&L over total volume, in basis points."},"net_delta":{"title":"Net Delta","description":"Current net exposure in quote units.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"gross_notional":{"title":"Gross Notional","description":"Current gross position value: every leg's notional, long and short.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"perp_notional":{"title":"Perp Notional","description":"Gross notional of the legs that pay or earn funding (spot legs aside): the base of the carry's secondary, perp-notional APR. The headline APR is on `equity`.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"carry_hourly":{"title":"Carry Hourly","description":"Expected funding income per hour at current rates and positions.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"equity":{"title":"Equity","description":"Equity of the selected buckets.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"collateral":{"title":"Collateral","description":"What the perp buckets' collateral coins made as their USD rates moved.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"leverage":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Leverage","description":"Open notional over equity, over the selected accounts (their `exposure`); 0 when nothing is held; `None`: no collateral read, or equity 0 or less."},"min_liq_distance":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min Liq Distance","description":"The smallest move of a mark, as a positive fraction, that liquidates a selected position (`0.25`: 25%); `None`: no position reports a liquidation price."},"free_collateral":{"title":"Free Collateral","description":"Free collateral of the selected buckets, summed.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"maintenance_margin":{"title":"Maintenance Margin","description":"Maintenance margin of the selected buckets, summed.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"carry_daily_usd":{"title":"Carry Daily Usd","description":"Funding per day at the current predicted rates on the selection's open positions (`carry_hourly` x 24): positive when the positions receive it, negative when they pay.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"}},"required":["pnl","trading","funding","fees","volume","fills","maker_share","pnl_bps","net_delta","gross_notional","perp_notional","carry_hourly","equity","collateral","leverage","min_liq_distance","free_collateral","maintenance_margin","carry_daily_usd"],"type":"object","title":"SelectionSummary","description":"The overview's window totals, plus the selection's risk figures now."},"PnlDay":{"properties":{"date":{"type":"string","title":"Date","description":"The UTC day, `YYYY-MM-DD`."},"pnl":{"title":"Pnl","description":"P&L made that day in USD: `trading + funding - fees_paid`, plus what the collateral coins made where the profile values them (`Profile.value_collateral`).","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"trading":{"title":"Trading","description":"Of `pnl`, price moves on the positions held and traded.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"funding":{"title":"Funding","description":"Of `pnl`, funding received (+) or paid (-).","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"fees_paid":{"title":"Fees Paid","description":"Trading fees paid that day, positive when paid (a rebate is negative).","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"equity_close":{"title":"Equity Close","description":"Equity at the day's end (UTC midnight after it; the open day: now).","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"partial":{"type":"boolean","title":"Partial","description":"The day is not over (today), or the series starts within it."}},"required":["date","pnl","trading","funding","fees_paid","equity_close","partial"],"type":"object","title":"PnlDay"},"FillPoint":{"properties":{"time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"price":{"title":"Price","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"qty":{"title":"Qty","description":"Signed base units.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"maker":{"type":"boolean","title":"Maker"},"price_in_asset":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Price In Asset","description":"As on `FillRow`: the asset `price` is in when its quote had no USD rate at fill time; null: USD."},"liquidation":{"type":"boolean","title":"Liquidation","description":"Forced by the venue at liquidation (as on `FillRow`); absent: not."}},"required":["time","price","qty","maker","price_in_asset"],"type":"object","title":"FillPoint","description":"A fill on the price chart."},"MarketLine":{"properties":{"segment_id":{"type":"string","title":"Exchange"},"market":{"type":"string","title":"Market","description":"Native market id: the leg's own, else the exchange's asset market; empty: none known."},"symbol":{"type":"string","title":"Symbol","description":"Venue display symbol."},"quote_symbol":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quote","description":"What its prices are quoted in (`USDC`, `USDT`, `USD`), as the pricer labels it: the catalogue's quote, else the venue listing's; null: unknown."},"settlement_symbol":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Settle","description":"A perpetual's settlement (margin) currency (`USDC` for dYdX `BTC-USD`); null: spot, or unknown."},"pos":{"items":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"type":"array","title":"Pos","description":"Position (base units) per grid point."},"funding_rates":{"items":{"type":"object","properties":{"time":{"type":"string","format":"date-time"},"value":{"type":"number"}},"required":["time","value"]},"type":"array","title":"Funding Rates","description":"Annualized funding rate history `(t, rate)`; empty: spot, or none stored."},"price":{"items":{"anyOf":[{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},{"type":"null"}]},"type":"array","title":"Price","description":"USD price of its market per grid point, as `price` (all null: not charted)."},"basis_bps":{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array","title":"Basis Bps","description":"Its price over the reference market's, minus one, in bps; empty: it is the reference market, there is none, or its price is not charted."},"fills":{"items":{"$ref":"#/components/schemas/FillPoint"},"type":"array","title":"Fills","description":"Its fills in the window (a spot or whole-exchange line: the exchange's)."},"reference":{"type":"boolean","title":"Reference","description":"Its market is the asset's reference market."}},"required":["segment_id","market","symbol","quote_symbol","settlement_symbol","pos","funding_rates","price","basis_bps","fills","reference"],"type":"object","title":"MarketLine","description":"One market holding or trading the asset, as the drill-down's By market table lists them: two perps of one asset on one account are two lines, a spot exchange one (its balance is one holding), an exchange without per-market positions one at its asset market. Its own position, price, basis, fills and funding rate, where the exchange's `pos`, `price` and `funding_rates` sum or pick one."},"AssetDetail":{"properties":{"asset_id":{"type":"string","title":"Asset"},"symbol":{"type":"string","title":"Symbol"},"info":{"$ref":"#/components/schemas/AssetInfo"},"markets":{"additionalProperties":{"type":"string"},"type":"object","title":"Markets","description":"Exchange -> market, for the exchanges charted."},"reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference","description":"Exchange whose price marks the asset (P&L)."},"time":{"type":"array","items":{"type":"string","format":"date-time"}},"price":{"additionalProperties":{"items":{"anyOf":[{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},{"type":"null"}]},"type":"array"},"type":"object","title":"Price","description":"USD price per grid point on each exchange (per base unit): stored quote mids, candles where the collector has none (`PortfolioReader.prices`), at the quote's rate then; `None` where either is missing."},"basis_bps":{"additionalProperties":{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array"},"type":"object","title":"Basis Bps","description":"Each other exchange's price over the reference's, minus one, in bps."},"pos":{"additionalProperties":{"items":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"type":"array"},"type":"object","title":"Pos"},"net":{"items":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"type":"array","title":"Net"},"pnl":{"items":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"type":"array","title":"Pnl"},"trading":{"items":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"type":"array","title":"Trading"},"funding":{"items":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"type":"array","title":"Funding"},"fees":{"items":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"type":"array","title":"Fees"},"fills":{"additionalProperties":{"items":{"$ref":"#/components/schemas/FillPoint"},"type":"array"},"type":"object","title":"Fills"},"funding_rates":{"additionalProperties":{"items":{"type":"object","properties":{"time":{"type":"string","format":"date-time"},"value":{"type":"number"}},"required":["time","value"]},"type":"array"},"type":"object","title":"Funding Rates","description":"Annualized funding rate history `(t, rate)` per perp exchange (its asset market there; `market_lines` has every market of an exchange with several)."},"market_lines":{"items":{"$ref":"#/components/schemas/MarketLine"},"type":"array","title":"Market Lines","description":"Every market holding or trading the asset (the By market table's rows), in exchange order: an exchange's `pos` is the sum of its lines'."},"price_only":{"items":{"type":"string"},"type":"array","title":"Price Only","description":"Exchanges of `price` no market line repeats (the reference, an active venue where nothing is held): drawn for their price beside the market lines."},"prices_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Observation time of the unified rates used; `None`: none read."},"reference_prices":{"type":"object","additionalProperties":{"type":"string","format":"date-time"},"description":"Assets of this answer valued now at their reference price (quality `aggregator`) instead of a market rate, with when that price was observed: the views say \"reference price, as of HH:MM\"."},"venue_prices":{"additionalProperties":{"$ref":"#/components/schemas/VenuePrice"},"type":"object","title":"Venue Prices","description":"The asset, when valued now at a venue price, with that market."},"no_price":{"$ref":"#/components/schemas/NoPrice"},"priced_from_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the asset is valued from, when after the window start; its money series are 0 before. `None`: from the start (or not valued)."},"conns":{"additionalProperties":{"$ref":"#/components/schemas/Conn"},"type":"object","title":"Conns"},"next_sync_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["asset_id","symbol","info","markets","reference","time","price","basis_bps","pos","net","pnl","trading","funding","fees","fills","funding_rates","market_lines","price_only","prices_at","reference_prices","venue_prices","no_price","conns","next_sync_at"],"type":"object","title":"AssetDetail"},"FundingPayment":{"properties":{"time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"segment_id":{"type":"string","title":"Exchange"},"asset_id":{"type":"string","title":"Asset"},"symbol":{"type":"string","title":"Symbol"},"market":{"type":"string","title":"Market"},"market_symbol":{"type":"string","title":"Market Symbol"},"amount":{"title":"Amount","description":"USD received (+) or paid (-) at its settlement asset's rate then; as paid when `amount_in_asset` is set.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"amount_in_asset":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Amount In Asset","description":"Symbol of the asset `amount` is in when it had no USD rate then; `None`: USD."},"settlement_symbol":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Settle","description":"Symbol of the asset the payment was settled in (`USDC` for Hyperliquid `BTC`): the market's settlement asset; `None`: not known."},"borrow":{"title":"Borrow","description":"Of `amount`, the venue's borrowing fee, valued alike; absent where the venue splits none out.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"dividend":{"type":"number","title":"Dividend","description":"Of `amount`, an equity perpetual's dividend adjustment, valued alike; absent where the payment is regular funding."},"bonus":{"type":"number","title":"Bonus","description":"Of `amount`, a loss-refund bonus the venue credited, valued alike; absent where the payment is regular funding."}},"required":["time","segment_id","asset_id","symbol","market","market_symbol","amount","amount_in_asset","settlement_symbol"],"type":"object","title":"FundingPayment","description":"A funding payment."},"PositionAnswer":{"type":"object","properties":{"position":{"type":["object","null"],"properties":{"symbol":{"type":"string","description":"Symbol"},"asset_id":{"type":"string","description":"Asset"},"funding":{"description":"Funding","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"price":{"description":"Price","type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"fees":{"description":"Fees","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"net":{"description":"Net","type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"net_usd":{"description":"Net Usd","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"pos":{"type":"object","additionalProperties":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"description":"Pos"},"pnl":{"description":"Pnl","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"trading":{"description":"Trading","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"}},"required":["symbol","asset_id","funding","price","fees","net","net_usd","pos","pnl","trading"],"description":"The asset's net position, P&L, funding and fees (`null`: you hold none)."},"labels":{"type":"object","additionalProperties":{"type":"string"},"description":"Exchange id to its display name, for the exchanges the position names."},"profile":{"type":["object","null"],"properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"description":"The profile the figures cover (the reader's default)."},"currency":{"type":"string","enum":["usd","eur","gbp","jpy","chf","cad","aud","nzd","cny","hkd","sgd","krw","inr","idr","myr","php","thb","sek","nok","dkk","isk","pln","czk","huf","ron","try","ils","aed","zar","brl","mxn","ars"],"description":"The currency the figures are in: the reader's, or USD without a rate."},"note":{"type":["string","null"],"description":"Said under the figures, or null."}},"required":["position","labels","profile","currency","note"],"description":"One asset's position across your accounts."},"LineBases":{"type":"object","additionalProperties":{"type":"string"},"description":"The base of each line whose base is not the chart's `asset`."},"HistoryConfig":{"type":"object","properties":{"v":{"type":"number","const":1},"kind":{"type":"string","const":"history"},"asset_id":{"type":"string","description":"The base asset."},"quote_asset_id":{"type":"string","description":"The quote: one asset (`usd-coin`, `euro`), every line a market of the pair, those listed the other way round inverted; absent: USD-like, each venue on its USDT, USDC or USD market. Only present when set, so a configuration saved before it is unchanged."},"exchanges":{"type":"array","items":{"type":"string"},"description":"The lines on the chart: venue chips (`binance:usdm`, the venue's default market) or single markets of one; with `venues`, the preset's venues as last resolved. A chart saved before markets existed names chips only, and opens on each venue's default market."},"venues":{"type":"string","enum":["cex","dex","top","mine"],"description":"The preset the venues follow; absent: `exchanges` as picked. Only present when set, so a configuration saved before presets existed is unchanged."},"bases":{"allOf":[{"$ref":"#/components/schemas/LineBases"}],"description":"The lines whose base is not `asset`, line key to base asset id; absent: every line is a market of `asset`."},"series":{"type":"array","items":{"type":"string","enum":["funding","price","index","mark","next_funding","basis","borrow","holding"]}},"range":{"type":"string","enum":["1d","7d","30d","90d","1y","live"]},"window":{"type":"string","enum":["1h","1m","5m","15m"],"description":"The Live range's window; only with `range: 'live'`."},"mode":{"type":"string","enum":["overlay","diff"],"description":"`overlay`: the series themselves; `diff`: each exchange against `reference`."},"reference":{"type":["string","null"],"description":"The venue `diff` is against, or `median`; `null` in `diff` (venues following a preset only): the first venue, the preset's largest (`diffReference`)."},"usd":{"type":"boolean","const":true,"description":"Price series (index, mark, price) in US dollars, converted with our own USDT/USD and USDC/USD rates; absent: each series in the currency its venue's index tracks. Only present when on, so a configuration saved before the option existed is unchanged."},"pct":{"type":"boolean","const":true,"description":"Overlaid prices (index, mark, price) as each line's % change from its first value on the chart. Only present when on."},"candles":{"type":"string","description":"`median`, each bucket's median open, high, low and close of the lines (one base only), or one line's own (a line key). Drawn as prices (never against a reference or as % change). Only present when on."},"cum":{"type":"boolean","const":true,"description":"Only present when on, and only with a funding series."},"totals":{"type":"boolean","const":false,"description":"With `cum`: the by-line Totals strip turned off (it shows from three lines). Only present when off."}},"required":["v","kind","asset_id","exchanges","series","range","mode","reference"]},"DepthConfig":{"type":"object","properties":{"v":{"type":"number","const":1},"kind":{"type":"string","const":"depth"},"asset_id":{"type":"string"},"quote_asset_id":{"type":"string","description":"As `HistoryConfig.quote`."},"exchanges":{"type":"array","items":{"type":"string"}},"venues":{"type":"string","enum":["cex","dex","top","mine"]},"bases":{"allOf":[{"$ref":"#/components/schemas/LineBases"}],"description":"As `HistoryConfig.bases`."},"view":{"type":"string","enum":["merged","side","cost"],"description":"`merged`: every book on one axis in bps from the reference mid; `side`: one panel per exchange; `cost`: what taking $100 … $100k costs on each venue."},"reference":{"type":["string","null"],"description":"Exchange whose mid is the zero of the axis; `null`: the median of the mids."},"span":{"type":"number","description":"Half-width of the depth axis, in bps of the reference mid; `0`: auto (wide enough for the median venue's $100k fill, `autoSpan`)."},"prices":{"type":"string","enum":["usd","quoted"],"description":"Live depth's price scale: `usd` every book converted at its quote's unified rate (the default), `quoted` each in its own quote. Read only while `usdApplies` (a USD-like or dollar pair quote). `parsePlotConfig` still reads those."}},"required":["v","kind","asset_id","exchanges","view","reference","span","prices"]},"IndexConfig":{"type":"object","properties":{"v":{"type":"number","const":1},"kind":{"type":"string","const":"index"},"asset_id":{"type":"string"},"exchanges":{"type":"array","items":{"type":"string"}},"venues":{"type":"string","enum":["cex","dex","top","mine"]},"bases":{"allOf":[{"$ref":"#/components/schemas/LineBases"}],"description":"As `HistoryConfig.bases`."},"reference":{"type":["string","null"],"description":"The venue every other is measured against; `null`: the median of the indexes."},"window":{"type":"string","enum":["1m","5m","15m"],"description":"The rolling chart's span."},"quoted":{"type":"boolean","const":true,"description":"Each index as its venue quotes it (USDT, USDC, USD); absent: in US dollars with our own live rates (the `rates` topic), so a USDT index does not sit off a USD one by the stablecoin's rate alone. Only present when on."},"measure":{"type":"string","const":"mark","description":"The chart follows each venue's mark price; absent: its index."}},"required":["v","kind","asset_id","exchanges","reference","window"],"description":"Live index: one asset's index price on each venue as it updates, from its LiveHub asset topic (`asset:<id>`), each against the median of the venues' indexes (or one venue's), with a rolling chart of those differences."},"EarnConfig":{"type":"object","properties":{"v":{"type":"number","const":1},"kind":{"type":"string","const":"earn"},"asset_id":{"type":"string","description":"The first line's asset (the builder's market state reads it)."},"exchanges":{"type":"array","items":{"type":"string"},"description":"Always empty: an Earn APR chart has no market lines."},"reference":{"type":"null"},"lines":{"type":"array","items":{"type":"string"},"description":"The lines, `<asset>@<venue>` (`tether@binance`): the best product of the asset on the venue on each day."},"amount":{"description":"The amount in US dollars each line prices (`/earn`'s $1,000 basis by default).","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"range":{"type":"string","enum":["1d","7d","30d","90d","1y"]},"products":{"type":"string","enum":["flexible","all"],"description":"`flexible`: products without a lock-up only (the default); `all`: fixed terms too."},"promos":{"type":"boolean","const":true,"description":"Promotions and new-user offers count too; absent: they are left out."}},"required":["v","kind","asset_id","exchanges","reference","lines","amount","range","products"],"description":"Earn APR: what an amount earns on each venue's earn products over time, one line per asset and venue. It charts no markets: `exchanges` is always empty and `asset` is its first line's asset, so the builder's market state stays at rest while it shows."},"SavedPlot":{"type":"object","properties":{"id":{"type":"string","description":"The chart's id (16 letters and digits)."},"name":{"type":"string","description":"Its name."},"kind":{"type":"string","enum":["history","earn","depth","index"],"description":"What it plots."},"config":{"anyOf":[{"$ref":"#/components/schemas/HistoryConfig"},{"$ref":"#/components/schemas/DepthConfig"},{"$ref":"#/components/schemas/IndexConfig"},{"$ref":"#/components/schemas/EarnConfig"},{"type":"null"}],"description":"Its settings, or `null` for the kind's defaults."},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When it was saved."},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When it last changed."},"owner":{"type":"boolean","description":"Whether the key's owner made it (else it was shared)."}},"required":["id","name","kind","config","created_at","updated_at","owner"]},"DeviceCodeAnswer":{"type":"object","properties":{"device_code":{"type":"string","description":"Secret the client polls `/oauth/token` with."},"user_code":{"type":"string","description":"Short code the person confirms in the browser."},"verification_uri":{"type":"string","description":"Where the person approves the code."},"verification_uri_complete":{"type":"string","description":"The same page with the code filled in."},"expires_in":{"type":"number","description":"Seconds until the code expires."},"interval":{"type":"number","description":"Seconds to wait between polls."},"scope":{"type":"string","description":"The scopes asked for, space-separated."}},"required":["device_code","user_code","verification_uri","verification_uri_complete","expires_in","interval","scope"],"description":"What the code request answers (RFC 8628 §3.2)."},"CodeTokenAnswer":{"type":"object","properties":{"access_token":{"type":"string","description":"The new API key (`tn_key_…`): store it as a secret."},"token_type":{"type":"string","const":"Bearer","description":"Always `Bearer`."},"scope":{"type":"string","description":"The scopes granted, space-separated."},"expires_in":{"type":"number","description":"Seconds until the key expires; absent for a key that never does."}},"required":["access_token","token_type","scope"],"description":"The token answer (RFC 6749 §5.1): the API key itself."},"DeviceTokenAnswer":{"type":"object","properties":{"access_token":{"type":"string","description":"The new API key (`tn_key_…`): store it as a secret."},"token_type":{"type":"string","const":"Bearer","description":"Always `Bearer`."},"scope":{"type":"string","description":"The scopes granted, space-separated."},"expires_in":{"type":"number","description":"Seconds until the key expires; absent for a key that never does."},"key_id":{"type":"string","description":"The key's id and name, as `/integrations` lists it."},"label":{"type":"string","description":"The key's name on `/integrations`."}},"required":["access_token","token_type","scope","key_id","label"],"description":"The token answer (RFC 6749 §5.1): the API key itself."},"RegistrationAnswer":{"type":"object","properties":{"client_id":{"type":"string","description":"The id the client signs in with."},"client_id_issued_at":{"type":"number","description":"When it was issued, epoch seconds."},"client_name":{"type":"string","description":"The name it registered."},"redirect_uris":{"type":"array","items":{"type":"string"},"description":"Where sign-in may return."},"grant_types":{"type":"array","prefixItems":[{"type":"string","const":"authorization_code"}],"minItems":1,"maxItems":1,"description":"Grants it may use (`authorization_code`)."},"response_types":{"type":"array","prefixItems":[{"type":"string","const":"code"}],"minItems":1,"maxItems":1,"description":"Response types (`code`)."},"token_endpoint_auth_method":{"type":"string","const":"none","description":"Always `none`: a public client."},"client_uri":{"type":"string","description":"Its homepage, or absent."}},"required":["client_id","client_id_issued_at","client_name","redirect_uris","grant_types","response_types","token_endpoint_auth_method"],"description":"RFC 7591 §3.2.1: what a registration answers."},"TakerRow":{"type":"object","properties":{"id":{"type":"string","description":"Stable while the opportunity lasts (row.md): carry and earn carry `<strategy>:<asset>:<exchange>/<market>+<exchange>/<market>` (long, short); hedged taker and maker `<strategy>:<asset>:<exchange>/<market>:<side>` (taken or quoted leg)."},"strategy":{"type":"string","const":"hedged-taker"},"asset_id":{"type":"string"},"symbol":{"type":"string"},"legs":{"type":"array","items":{"$ref":"#/components/schemas/Leg"},"description":"Every leg, the primary leg first."},"tier":{"type":"string","enum":["core","extended"],"description":"`extended` when any leg is, else `core`."},"age_s":{"type":"number","description":"Receive age of the oldest leg, seconds."},"headline":{"type":"object","properties":{"apr":{"type":"number","description":"A carry row: its APR, a fraction."},"edge_bps":{"type":"number","description":"A taker or maker row: its edge, bps."}}},"rank":{"type":"number","description":"The number the page sorts and locks by: carry and earn carry `headline.value`; hedged taker the edge at 1,000 USD (10,000 lower when that size does not fill, by its best edge), hedged maker its headline; a hedged row 20,000 lower while its market is closed. Never above `headline.value`."},"edge_bps":{"type":["number","null"],"description":"The strategy's edge as quoted, bps."},"edge_usd_bps":{"type":["number","null"],"description":"`edge_bps` with every leg in USD at its quote's rate."},"basis_bps":{"type":["number","null"],"description":"`edge_bps − edge_usd_bps`; null when the legs share one quote or a rate is missing."},"basis":{"type":["array","null"],"prefixItems":[{"type":"string"},{"type":"string"}],"minItems":2,"maxItems":2,"description":"The two quote asset ids the basis is between."},"quote_exposure":{"type":["array","null"],"items":{"type":"string"},"description":"Quotes whose rate moved more than the USD edge over the last hour."},"bound_bps":{"type":"number","description":"Hedged taker and maker: the asset class's sanity bound, the largest edge (as quoted or in USD) LiveHub shows of the row; absent when the legs span two peg families."},"market_closed":{"type":"boolean","description":"Hedged taker and maker: the underlying's market is shut now (a stock or fund outside the US session, forex or a commodity at the weekend); the row ranks below the open ones. Absent: open."},"taker":{"type":"string","description":"Exchange id taken on."},"side":{"type":"string","enum":["buy","sell"],"description":"Side taken on `taker`; the hedge is the other side."},"buy":{"type":"array","items":{"type":"string"}},"sell":{"type":"array","items":{"type":"string"}},"edges_bps":{"$ref":"#/components/schemas/Ladder"},"edges_usd_bps":{"$ref":"#/components/schemas/Ladder"},"capacity":{"type":"array","items":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"}},"capacity_usd":{"type":"array","items":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"}},"best_edge_bps":{"type":["number","null"]},"best_edge_usd_bps":{"type":["number","null"]},"profit_usd":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"size_usd":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"depth":{"type":"string","enum":["full","partial","none"]},"since_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"index_bps":{"type":["number","null"],"description":"The part of the edge that is the legs' index gap, bps: the hedges' index over the taker's, in USD, weighted by each hedge's fill at the $1,000 cell (inverted when the taker sells); a spot leg's price is its index. It closes only if the venues' indices converge; the rest of the edge, the premium gap, closes as each perp converges on its own index."},"stats":{"anyOf":[{"$ref":"#/components/schemas/TakerStats"},{"type":"null"}],"description":"Episode statistics of this row: absent or null until VM-live has seeded its window from `taker_episodes`, and for a row with no episode positive at 1,000 USD in the last 7 days."},"time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When it was priced."}},"required":["id","strategy","asset_id","symbol","legs","tier","age_s","headline","rank","edge_bps","edge_usd_bps","basis_bps","basis","quote_exposure","taker","side","buy","sell","edges_bps","edges_usd_bps","capacity","capacity_usd","best_edge_bps","best_edge_usd_bps","profit_usd","size_usd","depth","since_at","time"],"description":"Hedged taker: the tracker's `TakerOpportunity` plus the quote view."},"Leg":{"type":"object","properties":{"segment_id":{"type":"string","description":"Exchange id `<venue>:<exchange>`, or the earn venue for an earn leg."},"market":{"type":"string","description":"The venue's own symbol (or the earn product id)."},"kind":{"type":"string","enum":["perp","spot"]},"side":{"type":"string","enum":["buy","sell"]},"quote_asset_id":{"type":"string","description":"Price-tracking quote asset."},"peg_asset_id":{"type":"string","description":"The quote's peg family: the asset its `pegged_to` chain ends at (tether: usd), the quote itself when unpegged. Optional; set on funding and cash carry legs, which share one, and on hedged taker and maker legs, which may not."},"settlement_asset_id":{"type":"string","description":"Settlement asset."},"tier":{"type":"string","enum":["core","extended"]},"age_s":{"type":"number","description":"Receive age of this leg's top, seconds."},"polled":{"type":"boolean","description":"The leg is priced from the venue's bulk REST data at a coarse cadence (its age is up to that period), not streamed live. Absent: streamed."},"funding_interval_s":{"type":"number","description":"A carry row's perp leg: the funding interval its funding is annualized over, seconds, as the venue states it or as learned from its settlement cadence. Absent: not given."},"funding_interval_guessed":{"type":"boolean","description":"`funding_hours` is neither stated by the venue nor learned from its settlements, only estimated from the next funding time. Absent: false."}},"required":["segment_id","market","kind","side","quote_asset_id","settlement_asset_id","tier","age_s"],"description":"One leg of a row."},"Ladder":{"type":"array","items":{"type":["number","null"]}},"TakerStats":{"type":"object","properties":{"notional":{"description":"USD notional the episodes count at (the tracker's `STATS_NOTIONAL`).","type":"string","const":"1000"},"n_24h":{"type":"number","description":"Episodes positive at `notional` that ended in the last 24 hours, or are open."},"share_24h":{"type":"number","description":"Share of the last 24 hours positive at `notional` (an episode that started before the window counts pro rata), 0 to 1, four decimals."},"median_s":{"type":["number","null"],"description":"Median time positive at `notional` per episode over 7 days, seconds, one decimal."}},"required":["notional","n_24h","share_24h","median_s"],"description":"A hedged-taker row's episode statistics at `notional` USD (the tracker's `OpportunityStats`): VM-live's episodes of the row, closed and open, positive at that notional (`seconds_at`)."},"FundingCarryRow":{"type":"object","properties":{"id":{"type":"string","description":"Stable while the opportunity lasts (row.md): carry and earn carry `<strategy>:<asset>:<exchange>/<market>+<exchange>/<market>` (long, short); hedged taker and maker `<strategy>:<asset>:<exchange>/<market>:<side>` (taken or quoted leg)."},"strategy":{"type":"string","const":"funding-carry"},"asset_id":{"type":"string"},"symbol":{"type":"string"},"legs":{"type":"array","items":{"$ref":"#/components/schemas/Leg"},"description":"Every leg, the primary leg first."},"tier":{"type":"string","enum":["core","extended"],"description":"`extended` when any leg is, else `core`."},"age_s":{"type":"number","description":"Receive age of the oldest leg, seconds."},"headline":{"type":"object","properties":{"apr":{"type":"number","description":"A carry row: its APR, a fraction."},"edge_bps":{"type":"number","description":"A taker or maker row: its edge, bps."}}},"rank":{"type":"number","description":"The number the page sorts and locks by: carry and earn carry `headline.value`; hedged taker the edge at 1,000 USD (10,000 lower when that size does not fill, by its best edge), hedged maker its headline; a hedged row 20,000 lower while its market is closed. Never above `headline.value`."},"edge_bps":{"type":["number","null"],"description":"The strategy's edge as quoted, bps."},"edge_usd_bps":{"type":["number","null"],"description":"`edge_bps` with every leg in USD at its quote's rate."},"basis_bps":{"type":["number","null"],"description":"`edge_bps − edge_usd_bps`; null when the legs share one quote or a rate is missing."},"basis":{"type":["array","null"],"prefixItems":[{"type":"string"},{"type":"string"}],"minItems":2,"maxItems":2,"description":"The two quote asset ids the basis is between."},"quote_exposure":{"type":["array","null"],"items":{"type":"string"},"description":"Quotes whose rate moved more than the USD edge over the last hour."},"bound_bps":{"type":"number","description":"Hedged taker and maker: the asset class's sanity bound, the largest edge (as quoted or in USD) LiveHub shows of the row; absent when the legs span two peg families."},"market_closed":{"type":"boolean","description":"Hedged taker and maker: the underlying's market is shut now (a stock or fund outside the US session, forex or a commodity at the weekend); the row ranks below the open ones. Absent: open."},"pair":{"type":"string"},"long":{"type":"string","description":"Exchange id of the long leg."},"short":{"type":"string","description":"Exchange id of the short leg."},"long_market":{"type":"string"},"short_market":{"type":"string"},"apr":{"type":"number","description":"Funding earned per year, a fraction of the notional."},"long_apr":{"type":["number","null"]},"short_apr":{"type":["number","null"]},"entry_bps":{"type":["number","null"]},"entry_bps_usd":{"type":["number","null"]},"cost_bps":{"type":["number","null"]},"cost_bps_usd":{"type":["number","null"]},"breakeven_s":{"type":["number","null"]},"breakeven_usd_s":{"type":["number","null"]},"size_usd":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"fees_known":{"type":"boolean"},"premium_bps":{"type":["number","null"],"description":"Short leg's mid over the long leg's − 1, bps (the tracker's carry `basis_bps`)."},"premium_bps_usd":{"type":["number","null"]},"hedge":{"type":"number","description":"On a carry page: the row's place among its asset's pairs (one strategy and peg family), 0 its best by rank, 1.. its other hedges. Absent outside a page."},"long_funding_apr":{"type":"number","description":"The funding and borrow parts of a leg's APR, set only on a leg whose venue charges borrow; absent elsewhere. `long_apr = long_funding_apr + long_borrow_apr` (+ = pays); `short_apr = short_funding_apr - short_borrow_apr` (short funding + = earns, borrow + = pays)."},"long_borrow_apr":{"type":"number"},"short_funding_apr":{"type":"number"},"short_borrow_apr":{"type":"number"},"kind":{"type":"string","const":"perp"}},"required":["id","strategy","asset_id","symbol","legs","tier","age_s","headline","rank","edge_bps","edge_usd_bps","basis_bps","basis","quote_exposure","pair","long","short","long_market","short_market","apr","long_apr","short_apr","entry_bps","entry_bps_usd","cost_bps","cost_bps_usd","breakeven_s","breakeven_usd_s","size_usd","fees_known","premium_bps","premium_bps_usd","kind"]},"CashCarryRow":{"type":"object","properties":{"id":{"type":"string","description":"Stable while the opportunity lasts (row.md): carry and earn carry `<strategy>:<asset>:<exchange>/<market>+<exchange>/<market>` (long, short); hedged taker and maker `<strategy>:<asset>:<exchange>/<market>:<side>` (taken or quoted leg)."},"strategy":{"type":"string","const":"cash-carry"},"asset_id":{"type":"string"},"symbol":{"type":"string"},"legs":{"type":"array","items":{"$ref":"#/components/schemas/Leg"},"description":"Every leg, the primary leg first."},"tier":{"type":"string","enum":["core","extended"],"description":"`extended` when any leg is, else `core`."},"age_s":{"type":"number","description":"Receive age of the oldest leg, seconds."},"headline":{"type":"object","properties":{"apr":{"type":"number","description":"A carry row: its APR, a fraction."},"edge_bps":{"type":"number","description":"A taker or maker row: its edge, bps."}}},"rank":{"type":"number","description":"The number the page sorts and locks by: carry and earn carry `headline.value`; hedged taker the edge at 1,000 USD (10,000 lower when that size does not fill, by its best edge), hedged maker its headline; a hedged row 20,000 lower while its market is closed. Never above `headline.value`."},"edge_bps":{"type":["number","null"],"description":"The strategy's edge as quoted, bps."},"edge_usd_bps":{"type":["number","null"],"description":"`edge_bps` with every leg in USD at its quote's rate."},"basis_bps":{"type":["number","null"],"description":"`edge_bps − edge_usd_bps`; null when the legs share one quote or a rate is missing."},"basis":{"type":["array","null"],"prefixItems":[{"type":"string"},{"type":"string"}],"minItems":2,"maxItems":2,"description":"The two quote asset ids the basis is between."},"quote_exposure":{"type":["array","null"],"items":{"type":"string"},"description":"Quotes whose rate moved more than the USD edge over the last hour."},"bound_bps":{"type":"number","description":"Hedged taker and maker: the asset class's sanity bound, the largest edge (as quoted or in USD) LiveHub shows of the row; absent when the legs span two peg families."},"market_closed":{"type":"boolean","description":"Hedged taker and maker: the underlying's market is shut now (a stock or fund outside the US session, forex or a commodity at the weekend); the row ranks below the open ones. Absent: open."},"pair":{"type":"string"},"long":{"type":"string","description":"Exchange id of the long leg."},"short":{"type":"string","description":"Exchange id of the short leg."},"long_market":{"type":"string"},"short_market":{"type":"string"},"apr":{"type":"number","description":"Funding earned per year, a fraction of the notional."},"long_apr":{"type":["number","null"]},"short_apr":{"type":["number","null"]},"entry_bps":{"type":["number","null"]},"entry_bps_usd":{"type":["number","null"]},"cost_bps":{"type":["number","null"]},"cost_bps_usd":{"type":["number","null"]},"breakeven_s":{"type":["number","null"]},"breakeven_usd_s":{"type":["number","null"]},"size_usd":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"fees_known":{"type":"boolean"},"premium_bps":{"type":["number","null"],"description":"Short leg's mid over the long leg's − 1, bps (the tracker's carry `basis_bps`)."},"premium_bps_usd":{"type":["number","null"]},"hedge":{"type":"number","description":"On a carry page: the row's place among its asset's pairs (one strategy and peg family), 0 its best by rank, 1.. its other hedges. Absent outside a page."},"long_funding_apr":{"type":"number","description":"The funding and borrow parts of a leg's APR, set only on a leg whose venue charges borrow; absent elsewhere. `long_apr = long_funding_apr + long_borrow_apr` (+ = pays); `short_apr = short_funding_apr - short_borrow_apr` (short funding + = earns, borrow + = pays)."},"long_borrow_apr":{"type":"number"},"short_funding_apr":{"type":"number"},"short_borrow_apr":{"type":"number"},"kind":{"type":"string","const":"spot"}},"required":["id","strategy","asset_id","symbol","legs","tier","age_s","headline","rank","edge_bps","edge_usd_bps","basis_bps","basis","quote_exposure","pair","long","short","long_market","short_market","apr","long_apr","short_apr","entry_bps","entry_bps_usd","cost_bps","cost_bps_usd","breakeven_s","breakeven_usd_s","size_usd","fees_known","premium_bps","premium_bps_usd","kind"]},"EarnCarryRow":{"type":"object","properties":{"id":{"type":"string","description":"Stable while the opportunity lasts (row.md): carry and earn carry `<strategy>:<asset>:<exchange>/<market>+<exchange>/<market>` (long, short); hedged taker and maker `<strategy>:<asset>:<exchange>/<market>:<side>` (taken or quoted leg)."},"strategy":{"type":"string","const":"earn-carry"},"asset_id":{"type":"string"},"symbol":{"type":"string"},"legs":{"type":"array","items":{"$ref":"#/components/schemas/Leg"},"description":"Every leg, the primary leg first."},"tier":{"type":"string","enum":["core","extended"],"description":"`extended` when any leg is, else `core`."},"age_s":{"type":"number","description":"Receive age of the oldest leg, seconds."},"headline":{"type":"object","properties":{"apr":{"type":"number","description":"A carry row: its APR, a fraction."},"edge_bps":{"type":"number","description":"A taker or maker row: its edge, bps."}}},"rank":{"type":"number","description":"The number the page sorts and locks by: carry and earn carry `headline.value`; hedged taker the edge at 1,000 USD (10,000 lower when that size does not fill, by its best edge), hedged maker its headline; a hedged row 20,000 lower while its market is closed. Never above `headline.value`."},"edge_bps":{"type":["number","null"],"description":"The strategy's edge as quoted, bps."},"edge_usd_bps":{"type":["number","null"],"description":"`edge_bps` with every leg in USD at its quote's rate."},"basis_bps":{"type":["number","null"],"description":"`edge_bps − edge_usd_bps`; null when the legs share one quote or a rate is missing."},"basis":{"type":["array","null"],"prefixItems":[{"type":"string"},{"type":"string"}],"minItems":2,"maxItems":2,"description":"The two quote asset ids the basis is between."},"quote_exposure":{"type":["array","null"],"items":{"type":"string"},"description":"Quotes whose rate moved more than the USD edge over the last hour."},"bound_bps":{"type":"number","description":"Hedged taker and maker: the asset class's sanity bound, the largest edge (as quoted or in USD) LiveHub shows of the row; absent when the legs span two peg families."},"market_closed":{"type":"boolean","description":"Hedged taker and maker: the underlying's market is shut now (a stock or fund outside the US session, forex or a commodity at the weekend); the row ranks below the open ones. Absent: open."},"venue_id":{"type":"string"},"instrument":{"type":"string"},"earn_apr":{"type":"number"},"lock_s":{"type":["number","null"]},"tags":{"type":"array","items":{"type":"string"}},"max_qty":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"max_usd":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"url":{"type":["string","null"]},"perp":{"$ref":"#/components/schemas/PerpFunding"},"combined_apr":{"type":"number"},"entry_bps":{"type":["number","null"]},"entry_bps_usd":{"type":["number","null"]},"cost_bps":{"type":["number","null"]},"cost_bps_usd":{"type":["number","null"]},"breakeven_s":{"type":["number","null"]},"breakeven_usd_s":{"type":["number","null"]}},"required":["id","strategy","asset_id","symbol","legs","tier","age_s","headline","rank","edge_bps","edge_usd_bps","basis_bps","basis","quote_exposure","venue_id","instrument","earn_apr","lock_s","tags","max_qty","max_usd","url","perp","combined_apr","entry_bps","entry_bps_usd","cost_bps","cost_bps_usd","breakeven_s","breakeven_usd_s"],"description":"Earn product held against a perp short (the app's `EarnCarry`, without its display fields, which the app adds from the catalogue)."},"PerpFunding":{"type":"object","properties":{"asset_id":{"type":"string"},"symbol":{"type":"string"},"segment_id":{"type":"string"},"market":{"type":"string"},"funding_apr":{"type":"number"},"funding_interval_s":{"type":["number","null"]},"bid_usd":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"taker_fee_bps":{"type":["number","null"]},"perps":{"type":"number"},"short_funding_apr":{"type":"number","description":"The funding and borrow parts of `funding_apr`, set only where the perp's venue charges borrow: `funding_apr = short_funding_apr - short_borrow_apr` (funding + = earns, borrow + = pays)."},"short_borrow_apr":{"type":"number"}},"required":["asset_id","symbol","segment_id","market","funding_apr","funding_interval_s","bid_usd","taker_fee_bps","perps"],"description":"The tracker's `PerpFunding`: the perp of an asset whose funding pays a short most."},"MakerRow":{"type":"object","properties":{"id":{"type":"string","description":"Stable while the opportunity lasts (row.md): carry and earn carry `<strategy>:<asset>:<exchange>/<market>+<exchange>/<market>` (long, short); hedged taker and maker `<strategy>:<asset>:<exchange>/<market>:<side>` (taken or quoted leg)."},"strategy":{"type":"string","const":"hedged-maker"},"asset_id":{"type":"string"},"symbol":{"type":"string"},"legs":{"type":"array","items":{"$ref":"#/components/schemas/Leg"},"description":"Every leg, the primary leg first."},"tier":{"type":"string","enum":["core","extended"],"description":"`extended` when any leg is, else `core`."},"age_s":{"type":"number","description":"Receive age of the oldest leg, seconds."},"headline":{"type":"object","properties":{"apr":{"type":"number","description":"A carry row: its APR, a fraction."},"edge_bps":{"type":"number","description":"A taker or maker row: its edge, bps."}}},"rank":{"type":"number","description":"The number the page sorts and locks by: carry and earn carry `headline.value`; hedged taker the edge at 1,000 USD (10,000 lower when that size does not fill, by its best edge), hedged maker its headline; a hedged row 20,000 lower while its market is closed. Never above `headline.value`."},"edge_bps":{"type":["number","null"],"description":"The strategy's edge as quoted, bps."},"edge_usd_bps":{"type":["number","null"],"description":"`edge_bps` with every leg in USD at its quote's rate."},"basis_bps":{"type":["number","null"],"description":"`edge_bps − edge_usd_bps`; null when the legs share one quote or a rate is missing."},"basis":{"type":["array","null"],"prefixItems":[{"type":"string"},{"type":"string"}],"minItems":2,"maxItems":2,"description":"The two quote asset ids the basis is between."},"quote_exposure":{"type":["array","null"],"items":{"type":"string"},"description":"Quotes whose rate moved more than the USD edge over the last hour."},"bound_bps":{"type":"number","description":"Hedged taker and maker: the asset class's sanity bound, the largest edge (as quoted or in USD) LiveHub shows of the row; absent when the legs span two peg families."},"market_closed":{"type":"boolean","description":"Hedged taker and maker: the underlying's market is shut now (a stock or fund outside the US session, forex or a commodity at the weekend); the row ranks below the open ones. Absent: open."},"segment_id":{"type":"string"},"market":{"type":"string"},"side":{"type":"string","enum":["buy","sell"]},"quote":{"description":"Break-even quote price per base unit, in the market's quote.","type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"quote_usd":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"vs_best_bps":{"type":["number","null"]},"join_bps":{"type":["number","null"]},"join_bps_usd":{"type":["number","null"]},"filled":{"type":["number","null"]},"hedges":{"type":"array","items":{"type":"string"}},"spread_bps":{"type":"number"},"maker_fee_bps":{"type":"number"},"time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["id","strategy","asset_id","symbol","legs","tier","age_s","headline","rank","edge_bps","edge_usd_bps","basis_bps","basis","quote_exposure","segment_id","market","side","quote","quote_usd","vs_best_bps","join_bps","join_bps_usd","filled","hedges","spread_bps","maker_fee_bps","time"],"description":"Hedged maker quote: the tracker's `MakerOpportunity`."},"LiveStrategyState":{"type":"object","properties":{"status":{"type":"string","enum":["ok","not_ready","not_in_plan"],"description":"`ok`: rows below; `not_ready`: not published yet; `not_in_plan`: the plan does not include it."},"rows":{"type":"number","description":"How many rows of this strategy the answer holds."},"locked":{"anyOf":[{"$ref":"#/components/schemas/Locked"},{"type":"null"}],"description":"Free's locked rows (count and best), else null."},"withheld":{"anyOf":[{"$ref":"#/components/schemas/Withheld"},{"type":"null"}],"description":"Pro's extended rows (count and best), else null."}},"required":["status","rows","locked","withheld"],"description":"What one strategy said in a `/live/opportunities` answer."},"Locked":{"type":"object","properties":{"count":{"type":"number","description":"How many rows are locked."},"best":{"type":"object","properties":{"apr":{"type":"number","description":"A carry row: its APR, a fraction."},"edge_bps":{"type":"number","description":"A taker or maker row: its edge, bps."}},"description":"The best locked row's headline: the teaser line's \"up to 42 % APR\"."}},"required":["count","best"],"description":"Free's locked rows: one line, their count and best figure (owner, 2026-10-28). No locked row is sent, not even its asset."},"Withheld":{"type":"object","properties":{"count":{"type":"number","description":"How many rows are withheld."},"best":{"type":"object","properties":{"apr":{"type":"number","description":"A carry row: its APR, a fraction."},"edge_bps":{"type":"number","description":"A taker or maker row: its edge, bps."}},"description":"The best withheld row's headline: \"up to 38 % APR\"."},"tier":{"type":"string","const":"extended","description":"The plan that shows them."}},"required":["count","best","tier"]},"Market":{"type":"object","properties":{"segment_id":{"type":"string","description":"Exchange id `<venue>:<exchange>`."},"market":{"type":"string","description":"The venue's own symbol."},"kind":{"type":"string","enum":["perp","spot"]},"quote_asset_id":{"type":"string","description":"Price-tracking quote, a catalogue asset id."},"settlement_asset_id":{"type":"string","description":"Differs from `quote_asset_id` where the index tracks another currency than the margin (Lighter BTC: quote tether, settle usd-coin)."},"quanto":{"type":"boolean","const":true,"description":"The catalogue perpetual's `quanto`: it pays 1 `settlement_asset_id` unit per `quote_asset_id` price point (an HK$-priced Tencent perp settled in USDT), so size x price is in `settlement_asset_id`, not `quote_asset_id`. Absent otherwise."},"multiplier":{"type":"number","description":"The catalogue's base units per contract where not 1: the market is in store units, as the venue sends it, so its prices (bid, ask, mark, index, impact, curve) are per contract and its sizes and `oi` count contracts. Divide prices by it (multiply quantities) for per base unit."},"tier":{"type":"string","enum":["core","extended"]},"bid":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"ask":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"bid_qty":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"ask_qty":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"mark_price":{"description":"Perp context; null on spot.","type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"index_price":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"funding_rate":{"type":["number","null"],"description":"Funding rate per interval, a fraction."},"funding_interval_s":{"type":["number","null"]},"next_funding_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"The instant of the next funding."},"open_interest":{"description":"Open interest, base units.","type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"received_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the top was received."},"age_s":{"type":["number","null"],"description":"Receive age of the top when the snapshot was built, seconds."},"ctx_age_s":{"type":["number","null"],"description":"Receive age of the perp context (mark, index, funding, interval, next funding, oi) when the snapshot was built, seconds; null without one. The context comes on its own stream or poll and can lag the top."},"impact_bid":{"description":"The venue's impact bid and ask where its context carries them (Hyperliquid's impactPxs); absent elsewhere.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"impact_ask":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"funding_cap":{"type":"number","description":"One interval's funding rate bounds where the venue states them per market (Binance's and Aster's fundingInfo); absent elsewhere."},"funding_floor":{"type":"number"},"funding_short":{"type":"number","description":"The short side's own funding rate per interval (+ = shorts pay) where the venue charges each side its own (gTrade; `funding` is then the long side's, + = longs pay); absent elsewhere."},"borrow":{"type":"number","description":"The fee per interval a long pays the venue to hold, on top of funding (gTrade's borrowing fee to its vault; + = pays); absent where the venue charges no borrow."},"borrow_short":{"type":"number","description":"The same for a short; set with `borrow`."},"live":{"type":"boolean","description":"The market's feed is connected and its top fresh (not the context: `ctx_age_s`)."},"polled":{"type":"boolean","description":"The top is the venue's bulk REST data at a coarse cadence, not a stream. Absent: streamed."},"taker_fee_bps":{"type":["number","null"],"description":"Taker fee, bps of notional; null when VM-live prices the market with no fees."},"maker_fee_bps":{"type":["number","null"],"description":"Maker fee of a buy, bps of notional (negative a rebate); null as `taker_fee_bps`."},"fee_source":{"type":["string","null"],"enum":["standard","configured","api",null],"description":"Where the fees come from: `api` the venue's public API, read with its listing; `configured` VM-live's `fees.toml` (its exchange rates or an override); `standard` the venue's published base tier as the collector's universe had it. VM-live holds no account fees. Null with the fees."},"levels":{"type":["number","null"],"description":"Book levels held, the deeper side's; null for a feed that keeps tops only."},"depth_age_s":{"type":["number","null"],"description":"Receive age of the held levels when the snapshot was built, seconds; null as `levels`."},"curve":{"anyOf":[{"$ref":"#/components/schemas/MarketCurve"},{"type":"null"}],"description":"The held book's curve points (0.7 item 7); null without levels or without a rate for the market's quote. Dropped first, extended markets' before core ones, when the snapshot is over its size limit (`fitAsset`)."},"maker":{"anyOf":[{"$ref":"#/components/schemas/MarketMaker"},{"type":"null"}],"description":"The market's break-even maker quotes at `MAKER_NOTIONALS`; null when the pricer does not price the market."}},"required":["segment_id","market","kind","quote_asset_id","tier","bid","ask","bid_qty","ask_qty","mark_price","index_price","funding_rate","funding_interval_s","next_funding_at","open_interest","received_at","age_s","ctx_age_s","live","taker_fee_bps","maker_fee_bps","fee_source","levels","depth_age_s","curve","maker"],"description":"One market of an asset, in store units; null is unknown (0.2 item 2)."},"MarketCurve":{"type":"object","properties":{"bid":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"ask":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"bid_ppm":{"type":"array","items":{"type":["number","null"]},"description":"Seven points, one per `CURVE_NOTIONALS_USD`."},"ask_ppm":{"type":"array","items":{"type":["number","null"]}},"bid_depth_usd":{"description":"US dollars the held levels of each side hold, rounded.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"ask_depth_usd":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"}},"required":["bid","ask","bid_ppm","ask_ppm","bid_depth_usd","ask_depth_usd"],"description":"A market's curve points as `curve_ticks` stores them (0.7 item 7; the same points the WP6 sampler writes for the same book): the held book's best levels and, per side and `CURVE_NOTIONALS_USD` notional, the average fill's distance from that level in ppm, rounded (selling fills at `bid · (1 − n/1e6)`, buying at `ask · (1 + n/1e6)`); null where the held levels cannot fill the notional. Prices are store units, like `bid`."},"MarketMaker":{"type":"object","properties":{"bid":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"ask":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"buy":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/MakerSide"},{"type":"null"}]},"description":"Five entries, one per `MAKER_NOTIONALS`: quoting the bid."},"sell":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/MakerSide"},{"type":"null"}]},"description":"Quoting the ask."}},"required":["bid","ask","buy","sell"],"description":"A market's maker ladder: its top per base unit and each side at each `MAKER_NOTIONALS` notional (null: nothing to hedge with)."},"MakerSide":{"type":"object","properties":{"quote":{"description":"Break-even quote per base unit, in the market's quote (as 0.1 maker rows).","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"vs_best_bps":{"type":"number","description":"Bps inside the best bid or ask (positive: inside)."},"join_bps":{"type":"number","description":"Bps edge of a fill at the best bid or ask itself, net of every fee."},"filled":{"type":"number","description":"Share of the notional the hedge absorbs, 0 to 1."},"hedges":{"type":"array","items":{"type":"string"},"description":"Hedge exchange ids, largest slice first."}},"required":["quote","vs_best_bps","join_bps","filled","hedges"],"description":"One side of a maker market at one notional (the tracker's `MakerSideWire`)."},"Rate":{"type":"object","properties":{"usd":{"description":"US dollars per unit of the asset.","type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"quality":{"type":"string","enum":["ok","thin","peg","ecb","aggregator"]},"source":{"type":"string","enum":["markets","peg","ecb","aggregator"]},"markets":{"type":"array","items":{"$ref":"#/components/schemas/RateMarket"},"description":"Kept estimates, sorted by exchange then market; empty unless `source` is `markets`."},"dropped":{"type":"array","items":{"$ref":"#/components/schemas/RateDropped"},"description":"Outliers dropped, sorted by exchange then market. Ineligible markets are listed nowhere."},"hops":{"type":"number","description":"The largest hop kept; 0 for the fallbacks."},"spread_bps":{"type":"number","description":"Range of the kept estimates in bps of `usd`; 0 for one estimate."},"oldest_s":{"type":"number","description":"Age in seconds, when the rate is computed, of the oldest input behind the kept estimates."},"ref_date":{"type":"string","description":"ECB reference date `YYYY-MM-DD`; only when `source` is `ecb`."},"ecb_diff_bps":{"type":"number","description":"The ECB note: market rate vs ECB rate in bps, only for a fiat priced from markets more than 200 bps from its ECB rate."}},"required":["usd","quality","source","markets","dropped","hops","spread_bps","oldest_s"]},"RateMarket":{"type":"object","properties":{"segment_id":{"type":"string","description":"Exchange id `<venue>:<exchange>`."},"market":{"type":"string","description":"The venue's own symbol."},"hop":{"type":"number","description":"Markets between this estimate and the anchor, 1 to 3."},"mid":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"}},"required":["segment_id","market","hop","mid"],"description":"One kept estimate's market. `mid` is the market's own mid, in its quote."},"RateDropped":{"type":"object","properties":{"segment_id":{"type":"string"},"market":{"type":"string"},"mid":{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"}},"required":["segment_id","market","mid"],"description":"One estimate dropped as an outlier."},"CompactRate":{"type":"array","prefixItems":[{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},{"type":"string","enum":["ok","thin","peg","ecb","aggregator"]},{"type":"number"},{"type":"number"},{"type":"number"},{"type":"string","enum":["markets","peg","ecb","aggregator"]}],"minItems":6,"maxItems":6,"description":"A rate in compact form: `[usd, quality, hops, spread_bps, oldest_s, source]`. `usd` is the asset's USD price, a decimal string; `oldest_s` the age of its oldest input, seconds."},"Book":{"type":"object","properties":{"segment_id":{"type":"string","description":"Exchange id `<venue>:<exchange>`."},"market":{"type":"string","description":"The venue's own symbol."},"kind":{"type":"string","enum":["perp","spot"]},"quote_asset_id":{"type":"string","description":"Price-tracking quote, a catalogue asset id."},"settlement_asset_id":{"type":"string"},"quanto":{"type":"boolean","const":true,"description":"As on `Market`: size x price is in `settlement_asset_id`."},"multiplier":{"type":"number","description":"As on `Market`: base units per contract where not 1; levels are per contract."},"tier":{"type":"string","enum":["core","extended"]},"source":{"type":"string","enum":["stream","rest","top"]},"note":{"type":["string","null"],"enum":["tops_only","rest_loading","rest_failed","rest_over_budget",null],"description":"Why a `top` book has no levels; null for `stream` and `rest`."},"error":{"type":["string","null"],"description":"The last REST read's error when `note` is `rest_failed`; else null."},"bid":{"description":"The market's top of book (null when not held).","type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"ask":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"received_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the top was received."},"depth_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When the levels were received (stream) or read (rest); null for `top`."},"levels":{"type":["number","null"],"description":"Levels the source holds, the deeper side's, before the cut to `bids`/`asks`; null for `top`."},"bids":{"type":"array","items":{"type":"array","prefixItems":[{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"}],"minItems":2,"maxItems":2},"description":"Best first, at most `TOPIC_LIMITS.bookLevels`; empty for `top`."},"asks":{"type":"array","items":{"type":"array","prefixItems":[{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"}],"minItems":2,"maxItems":2}}},"required":["segment_id","market","kind","quote_asset_id","tier","source","note","error","bid","ask","received_at","depth_at","levels","bids","asks"],"description":"One market's order book in a `book:` snapshot."},"FundingRow":{"type":"object","properties":{"symbol":{"type":"string","description":"Symbol"},"key":{"type":"string","description":"Key"},"asset_id":{"type":"string","description":"Asset"},"source":{"type":"string","enum":["catalogue","alias","inferred","rejected"],"description":"Source"},"long":{"type":"string","enum":["a","b"],"description":"Long"},"current":{"type":["number","null"],"description":"Current"},"avg_1d":{"type":["number","null"],"description":"Avg 1D"},"avg_7d":{"type":["number","null"],"description":"Avg 7D"},"avg_30d":{"type":["number","null"],"description":"Avg 30D"},"stable_7d":{"type":["number","null"],"description":"Stable 7D"},"stable_30d":{"type":["number","null"],"description":"Stable 30D"},"history_s":{"type":"number","description":"Seconds of history"},"carry":{"type":["number","null"],"description":"Carry"},"carry_window":{"type":["string","null"],"enum":["7d","1d","now",null],"description":"Carry Window"},"round_trip_bps":{"type":["number","null"],"description":"Round Trip"},"fees_known":{"type":"boolean","description":"Fees Known"},"top_size":{"description":"Top Size","type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"breakeven_s":{"type":["number","null"],"description":"Breakeven Days"},"a":{"$ref":"#/components/schemas/FundingLeg"},"b":{"$ref":"#/components/schemas/FundingLeg"},"sizes":{"type":"object","properties":{"a":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"b":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"}},"required":["a","b"],"description":"Top-of-book size (USD) when long leg `a` / long leg `b`: the side the pair's live row faces is known, the other null (`top_size` is the one of `long`)."},"hedge":{"type":["number","null"],"description":"The pair's place among its asset's pairs on the page: 0 its best, 1.. its other hedges; absent from an answer built before."},"entry":{"type":["object","null"],"properties":{"long":{"type":"string","enum":["a","b"]},"bps":{"type":"number"}},"required":["long","bps"],"description":"The edge of entering the side the pair's live row faces now (its `entry_bps`), with that side; `breakeven_days` credits it when the pair faces that side. Absent: no live entry (the round trip is paid back)."}},"required":["symbol","key","asset_id","source","long","current","avg_1d","avg_7d","avg_30d","stable_7d","stable_30d","history_s","carry","carry_window","round_trip_bps","fees_known","top_size","breakeven_s","a","b"]},"FundingLeg":{"type":"object","properties":{"segment_id":{"type":"string","description":"Exchange"},"market":{"type":"string","description":"Market"},"funding_interval_s":{"type":["number","null"],"description":"Interval, seconds"},"current":{"type":["number","null"],"description":"Current"},"avg_7d":{"type":["number","null"],"description":"Avg 7D"},"history":{"type":["string","null"],"enum":["ticks","quotes",null],"description":"History"},"unread":{"type":"boolean"},"partial":{"type":"boolean"},"interval_guessed":{"type":"number","description":"No known interval (`interval_hours` null) but VM-live annualized the current funding over this estimate, hours."}},"required":["segment_id","market","funding_interval_s","current","avg_7d","history"]},"ExchangeInfo":{"type":"object","properties":{"id":{"type":"string","description":"Id"},"kind":{"type":"string","description":"Kind"},"venue_id":{"type":"string","description":"Venue"},"venue_type":{"type":["string","null"],"enum":["cex","dex",null],"description":"Venue Type"},"icon_url":{"type":["string","null"],"description":"Icon"},"slot":{"type":["number","null"],"description":"Slot"},"badge":{"type":["string","null"],"description":"Badge"},"listed":{"type":"number","description":"Listed"},"tradable":{"type":"number","description":"Tradable"},"paired":{"type":"number","description":"Paired"},"rank":{"type":["number","null"]},"delisted":{"type":"boolean"},"name":{"type":"string","description":"Label"}},"required":["id","name","kind","venue_id","venue_type","icon_url","slot","badge","listed","tradable","paired","rank"],"description":"Such a row is kept so its id still resolves (a held position, a saved chart line: label, icon, badge); market lists leave it out. Absent: not."},"MarketProfile":{"type":"object","properties":{"segment_id":{"type":"string"},"market":{"type":"string"},"venue_id":{"type":"string"},"quote_asset_id":{"type":"string","description":"Catalogue ids: what prices are in, and what the perp settles in."},"settlement_asset_id":{"type":["string","null"]},"quanto":{"type":"boolean"},"live":{"type":"object","properties":{"index_price":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"mark_price":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"funding_rate":{"type":["number","null"],"description":"Funding per interval, a fraction."},"funding_apr":{"type":["number","null"],"description":"`funding` annualized at the interval."},"funding_interval_s":{"type":["number","null"]},"next_funding_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"open_interest":{"description":"Open interest, base units.","type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"premium":{"type":["number","null"],"description":"Mark over index, minus one."},"ctx_age_s":{"type":["number","null"],"description":"How old the context was when the topic was built, seconds."},"connected":{"type":"boolean"},"impact_bid":{"description":"The venue's impact bid and ask, in the quote (Hyperliquid); null elsewhere.","type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"impact_ask":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},"funding_cap":{"type":["number","null"],"description":"One interval's rate bounds as the venue states them for this market (Binance, Aster's fundingInfo); null elsewhere, where `formula.funding.cap` may say."},"funding_floor":{"type":["number","null"]},"funding_short":{"type":["number","null"],"description":"The short side's own funding rate per interval (+ = shorts pay) where the venue charges each side its own (gTrade; `funding` is then the long side's); null elsewhere."},"borrow":{"type":["number","null"],"description":"The fee per interval a long and a short pay the venue to hold on top of funding; null where the venue charges none."},"borrow_short":{"type":["number","null"]}},"required":["index_price","mark_price","funding_rate","funding_apr","funding_interval_s","next_funding_at","open_interest","premium","ctx_age_s","connected","impact_bid","impact_ask","funding_cap","funding_floor","funding_short","borrow","borrow_short"]},"formula":{"anyOf":[{"$ref":"#/components/schemas/VenueProfile"},{"type":"null"}]},"missing":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"why":{"type":"string"}},"required":["field","why"]}},"history":{"anyOf":[{"$ref":"#/components/schemas/ProfileHistory"},{"type":"null"}]}},"required":["segment_id","market","venue_id","quote_asset_id","settlement_asset_id","quanto","live","formula","missing","history"],"description":"What one market's profile says."},"VenueProfile":{"type":"object","properties":{"venue_id":{"type":"string"},"name":{"type":"string"},"funding":{"$ref":"#/components/schemas/FundingFormula"},"index":{"type":"object","properties":{"method":{"type":["string","null"]},"sources":{"type":["array","null"],"items":{"type":"string"}}},"required":["method","sources"],"description":"How the index (or oracle) price is made, and from which sources."},"mark":{"type":"object","properties":{"method":{"type":["string","null"]},"separate":{"type":"boolean"}},"required":["method","separate"],"description":"How the mark price is made; null where the venue has no separate mark."},"docs_url":{"type":["string","null"]},"checked_at":{"type":"string","format":"date-time","description":"When the entry was read against `docs_url`, `YYYY-MM-DD`."},"source":{"type":"string","enum":["api","docs"]},"notes":{"type":"array","items":{"type":"string"},"description":"What this venue cannot give, and why (beyond the null fields)."}},"required":["venue_id","name","funding","index","mark","docs_url","checked_at","source","notes"]},"FundingFormula":{"type":"object","properties":{"funding_interval_s":{"type":["number","null"],"description":"The venue's default funding interval, seconds (a market's own is in its context)."},"cap":{"type":["array","null"],"prefixItems":[{"type":"number"},{"type":"number"}],"minItems":2,"maxItems":2,"description":"The longest a single interval's rate may be: `[floor, cap]`, or null."},"clamp":{"type":["number","null"],"description":"The clamp on `interest - premium` (±), or null."},"interest":{"type":["number","null"],"description":"The interest rate term per interval, or null."},"impact_notional":{"anyOf":[{"type":"string"},{"type":"string","format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"},{"type":"null"}],"description":"The notional the impact bid and ask are taken at, in the quote, or a rule."},"premium_sampling":{"type":["string","null"],"description":"How the premium is sampled and averaged over an interval."},"formula":{"type":["string","null"],"description":"The formula, in words."}},"required":["funding_interval_s","cap","clamp","interest","impact_notional","premium_sampling","formula"]},"ProfileHistory":{"type":"object","properties":{"window":{"type":"string"},"bucket_s":{"type":"number","description":"Bucket width, seconds: `t` is each bucket's start, its values the bucket's last minute (null: no minute in it yet)."},"time":{"type":"array","items":{"type":"string","format":"date-time"}},"index_price":{"type":"array","items":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"}},"mark_price":{"type":"array","items":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"}},"funding_rate":{"type":"array","items":{"type":["number","null"]}},"open_interest":{"type":"array","items":{"type":["string","null"],"format":"decimal","pattern":"^-?(0|[1-9][0-9]*)(\\.[0-9]*[1-9])?$"}},"source":{"type":"string"}},"required":["window","bucket_s","time","index_price","mark_price","funding_rate","open_interest","source"]},"LiveFrame":{"description":"A JSON text frame: a topic’s view (`type: \"view\"`, one per build) or the hub’s word that its source went away (`type: \"control\"`). The answer to a `ping` is the bare text `pong`, not JSON.","oneOf":[{"type":"object","title":"ViewFrame","properties":{"type":{"const":"view"},"seq":{"type":"integer","description":"The topic’s publish counter, one higher per build."},"v":{"const":2,"description":"The frame format’s version."},"ts_ms":{"type":"integer","description":"When the view was built, epoch milliseconds: the one epoch number on the API (every other instant is ISO)."},"topic":{"type":"string","description":"The topic this view is of (`book:bitcoin`)."},"plan":{"type":"string","enum":["free","pro","ultra"],"description":"The plan the view is cut for."},"delayed_s":{"type":"number","description":"How much older than the view’s build time (a frame’s `ts_ms`) the rows are: 0 for live plans and when not ready."},"status":{"type":"string","enum":["ok","not_ready"],"description":"`ok`, or `not_ready` before the first build."},"rows":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/TakerRow"},{"$ref":"#/components/schemas/FundingCarryRow"},{"$ref":"#/components/schemas/CashCarryRow"},{"$ref":"#/components/schemas/EarnCarryRow"},{"$ref":"#/components/schemas/MakerRow"}]},"description":"Rows the plan sees with every figure. An asset topic's rows of every strategy, in strategy order, each strategy's best first."},"truncated":{"type":"boolean","description":"The plan sees more rows than `rows` holds (cut at `limit`, or the snapshot holds only the best of them): the page reads the rest over HTTP."},"locked":{"anyOf":[{"$ref":"#/components/schemas/Locked"},{"type":"null"}],"description":"Free's locked rows, as their count and best; null when none."},"withheld":{"anyOf":[{"$ref":"#/components/schemas/Withheld"},{"type":"null"}],"description":"Pro's extended rows, replaced by their count and best; null when none."},"markets":{"type":["array","null"],"items":{"$ref":"#/components/schemas/Market"},"description":"Asset topics: the markets the plan sees; null for other topics."},"rate":{"anyOf":[{"$ref":"#/components/schemas/Rate"},{"type":"null"}],"description":"Asset topics: the asset's rate (null also when it has none)."},"rates":{"type":["object","null"],"additionalProperties":{"$ref":"#/components/schemas/CompactRate"},"description":"`rates` topics: every rate; null for other topics."},"books":{"type":["array","null"],"items":{"$ref":"#/components/schemas/Book"},"description":"`book` topics: the books the plan sees (Pro: core venues' only); null for other topics."},"starting":{"type":["array","null"],"items":{"type":"string"},"description":"`book` topics: the snapshot's `starting`, the exchange ids whose feed has not listed its markets yet (a chip's venue there is starting, not unlisted); null for other topics."}},"required":["type","seq","v","ts_ms","topic","plan","delayed_s","status","rows","truncated","locked","withheld","markets","rate","rates","books","starting"]},{"type":"object","title":"ControlFrame","properties":{"type":{"const":"control"},"state":{"type":"string","enum":["reconnecting","stale"],"description":"`reconnecting`: the source went away; `stale`: no build for 30 s."}},"required":["type","state"]}]},"V2SeriesEntry":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string"},"public":{"type":"string","enum":["yes","no","not_assessed"]},"contract":{"type":"string"}},"required":["id","status","public","contract"]},"V2SnapshotEntry":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string"},"public":{"type":"string","enum":["yes","no","not_assessed"]},"contract":{"type":"string"}},"required":["id","status","public","contract"]},"V2SeriesContract":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["not_served","served"]},"specification":{"type":"string"},"contract":{"type":"object","properties":{"id":{"type":"object","properties":{"text":{"type":"string"},"value":{"type":"string"}},"required":["text","value"]},"keyed_by":{"type":"object","properties":{"text":{"type":"string"},"subject":{"type":"string","enum":["asset","venue_market"]},"key":{"type":"array","items":{"type":"string"}},"instance":{"type":"array","items":{"$ref":"#/components/schemas/RecordField"}}},"required":["text","subject","key","instance"]},"shape":{"type":"object","properties":{"text":{"type":"string"},"type":{"type":"string","enum":["candle","point","event"]},"fields":{"type":"array","items":{"$ref":"#/components/schemas/RecordField"}}},"required":["text","type","fields"]},"semantics":{"type":"object","properties":{"text":{"type":"string"},"time":{"type":"string","enum":["interval_start","observation","settlement","date"]}},"required":["text","time"]},"kind":{"type":"object","properties":{"text":{"type":"string"},"value":{"type":"string","enum":["source_history","live_feed","derived","source_history_or_live_feed"]}},"required":["text","value"]},"resolution_and_lag":{"type":"object","properties":{"text":{"type":"string"},"interval":{"type":["string","null"]}},"required":["text","interval"]},"coverage":{"type":"object","properties":{"text":{"type":"string"},"start_origin":{"type":"string","enum":["source_history","derived","collection_start","per_instance"]}},"required":["text","start_origin"]},"gaps":{"type":"object","properties":{"text":{"type":"string"}},"required":["text"]},"precision":{"type":"object","properties":{"text":{"type":"string"},"value":{"type":"string","enum":["float","exact"]}},"required":["text","value"]},"retention":{"type":"object","properties":{"text":{"type":"string"},"days":{"type":["number","null"]}},"required":["text","days"]},"corrections":{"type":"object","properties":{"text":{"type":"string"}},"required":["text"]},"built_from":{"type":"object","properties":{"text":{"type":"string"},"datasets":{"type":"array","items":{"type":"string"}}},"required":["text","datasets"]},"public":{"type":"object","properties":{"text":{"type":"string"},"value":{"type":"string","enum":["yes","no","not_assessed"]}},"required":["text","value"]}},"required":["id","keyed_by","shape","semantics","kind","resolution_and_lag","coverage","gaps","precision","retention","corrections","built_from","public"]},"serving":{"type":"object","properties":{"filters":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"field":{"type":"string"},"list":{"type":"boolean"}},"required":["name","field","list"]}},"order":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}},"latest":{"type":"array","items":{"type":"string"}},"instances":{"type":"array","items":{"type":"string"}}},"required":["data","latest","instances"]},"routes":{"type":"object","properties":{"contract":{"type":"string"},"instances":{"type":"string"},"data":{"type":"string"},"latest":{"type":"string"}},"required":["contract","instances","data","latest"]},"notes":{"type":"array","items":{"type":"string"}}},"required":["filters","order","routes","notes"]}},"required":["id","status","specification","contract","serving"]},"V2SnapshotContract":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["not_served","served"]},"specification":{"type":"string"},"contract":{"type":"object","properties":{"id":{"type":"object","properties":{"text":{"type":"string"},"value":{"type":"string"}},"required":["text","value"]},"keyed_by":{"type":"object","properties":{"text":{"type":"string"},"key":{"type":"array","items":{"type":"string"}},"descriptors":{"type":"array","items":{"$ref":"#/components/schemas/RecordField"}}},"required":["text","key","descriptors"]},"fields":{"type":"object","properties":{"text":{"type":"string"},"fields":{"type":"array","items":{"$ref":"#/components/schemas/RecordField"}}},"required":["text","fields"]},"updated":{"type":"object","properties":{"text":{"type":"string"}},"required":["text"]},"built_from":{"type":"object","properties":{"text":{"type":"string"}},"required":["text"]},"public":{"type":"object","properties":{"text":{"type":"string"},"value":{"type":"string","enum":["yes","no","not_assessed"]}},"required":["text","value"]}},"required":["id","keyed_by","fields","updated","built_from","public"]},"serving":{"type":"object","properties":{"filters":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"field":{"type":"string"},"list":{"type":"boolean"}},"required":["name","field","list"]}},"order":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"}}},"required":["data"]},"routes":{"type":"object","properties":{"contract":{"type":"string"},"data":{"type":"string"}},"required":["contract","data"]},"notes":{"type":"array","items":{"type":"string"}}},"required":["filters","order","routes","notes"]}},"required":["id","status","specification","contract","serving"]}},"securitySchemes":{"userKey":{"type":"http","scheme":"bearer","bearerFormat":"tn_key_<43 base64url characters>","description":"A Terminal API key, made on https://app.tribulnation.com/integrations, read-only. Scopes: `me:read` (your own data, `/me`, every plan) and `market:read` (`/v1`, `/v2`, `/live`, Ultra)."}},"responses":{"Error":{"description":"An error: `code` is one of `bad_request` (400), `unauthorized` (401), `forbidden` (403), `not_found` (404), `gone` (410), `rate_limited` (429), `unavailable` (503), `internal` (500).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorBody"}}}},"V2Error":{"description":"A `/v2` error: the `/v1` codes plus `publication_changed` (a cursor outlived its publication).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ErrorBody"}}}}}}}