{"openapi":"3.1.0","info":{"title":"Quanaris API","version":"1.0.0","description":"Reconciled live + historical OHLCV, normalized swaps and real-time metrics for any Solana token — over a clean REST + WebSocket API. Register a token, get correct data. Mainnet is fully indexed; the devnet-ready surface (one network parameter) returns an explicit not-yet-indexed note until devnet indexing lands.\n\nResponse fields are camelCase and match the SDK serializers. Every read accepts `?network=mainnet|devnet` (default mainnet) and echoes `chain`, `network` and the queried `address`.","contact":{"url":"https://www.quanaris.com/docs"}},"servers":[{"url":"https://www.quanaris.com","description":"Production"}],"tags":[{"name":"Token data"},{"name":"Pricing & utility"},{"name":"Platform"},{"name":"Pair / Pool"},{"name":"Wallet"},{"name":"Subscriptions"},{"name":"Account"},{"name":"Billing"},{"name":"Forensics"}],"paths":{"/v1/token/{mint}":{"get":{"operationId":"get-token-metadata","summary":"Core identity + latest price for one mint — the call you start a token view with.","tags":["Token data"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenMetadataResponse"}}}},"400":{"description":"Bad request — malformed mint, query param or body."},"401":{"description":"Unauthorized — an x-api-key was presented but is invalid or revoked. Omit the key entirely for anonymous access."}},"parameters":[{"name":"mint","in":"path","required":true,"description":"Token mint address (base58).","schema":{"type":"string"}},{"name":"network","in":"query","required":false,"description":"Network to read. Devnet returns an empty payload (with a note) until its ingestor lands.","schema":{"type":"string","enum":["mainnet","devnet"],"default":"mainnet"}}]}},"/v1/token/{mint}/overview":{"get":{"operationId":"get-token-overview","summary":"The full market snapshot for one token — everything a DexScreener header shows, in one call.","tags":["Token data"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenOverviewResponse"}}}},"400":{"description":"Bad request — malformed mint, query param or body."},"401":{"description":"Unauthorized — an x-api-key was presented but is invalid or revoked. Omit the key entirely for anonymous access."}},"parameters":[{"name":"mint","in":"path","required":true,"description":"Token mint address (base58).","schema":{"type":"string"}},{"name":"network","in":"query","required":false,"description":"Network to read. Devnet returns an empty payload (with a note) until its ingestor lands.","schema":{"type":"string","enum":["mainnet","devnet"],"default":"mainnet"}}]}},"/v1/token/{mint}/price":{"get":{"operationId":"get-token-price","summary":"The latest USD price for ANY mainnet mint — the cheapest call, ideal for polling. No registration needed.","tags":["Token data"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenPriceResponse"}}}},"400":{"description":"Bad request — malformed mint, query param or body."},"401":{"description":"Unauthorized — an x-api-key was presented but is invalid or revoked. Omit the key entirely for anonymous access."}},"description":"Indexed mints serve our trade-reconciled price (source: \"quanaris\"). A mint we don't index yet answers with a live Jupiter spot quote instead (source: \"jupiter\", indexed: false) — so your very first call works for any token, before you register anything. Register the mint (POST /v1/tokens/register) to upgrade it to reconciled prices, candles and trades.","parameters":[{"name":"mint","in":"path","required":true,"description":"Token mint address (base58).","schema":{"type":"string"}},{"name":"network","in":"query","required":false,"description":"Network to read. Devnet returns an empty payload (with a note) until its ingestor lands.","schema":{"type":"string","enum":["mainnet","devnet"],"default":"mainnet"}}]}},"/v1/token/{mint}/price-at":{"get":{"operationId":"get-token-price-at","summary":"The price at (or just before) a point in time — to value a position at a past moment.","tags":["Token data"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenPriceAtResponse"}}}},"400":{"description":"Bad request — malformed mint, query param or body."},"401":{"description":"Unauthorized — an x-api-key was presented but is invalid or revoked. Omit the key entirely for anonymous access."}},"parameters":[{"name":"mint","in":"path","required":true,"description":"Token mint address (base58).","schema":{"type":"string"}},{"name":"time","in":"query","required":false,"description":"The moment to price. Blank = now (latest close).","schema":{"type":"number"}},{"name":"network","in":"query","required":false,"description":"Network to read. Devnet returns an empty payload (with a note) until its ingestor lands.","schema":{"type":"string","enum":["mainnet","devnet"],"default":"mainnet"}}]}},"/v1/token/{mint}/price-history":{"get":{"operationId":"get-token-price-history","summary":"A lightweight price line ({ unixTime, value }) from candle closes — for sparklines & valuation.","tags":["Token data"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenPriceHistoryResponse"}}}},"400":{"description":"Bad request — malformed mint, query param or body."},"401":{"description":"Unauthorized — an x-api-key was presented but is invalid or revoked. Omit the key entirely for anonymous access."}},"parameters":[{"name":"mint","in":"path","required":true,"description":"Token mint address (base58).","schema":{"type":"string"}},{"name":"interval","in":"query","required":false,"description":"Candle interval (see Intervals & candles).","schema":{"type":"string","default":"1m"}},{"name":"from","in":"query","required":false,"description":"Window start.","schema":{"type":"number"}},{"name":"to","in":"query","required":false,"description":"Window end.","schema":{"type":"number"}},{"name":"limit","in":"query","required":false,"description":"Max points (≤1000). Newest last.","schema":{"type":"number","default":500}},{"name":"network","in":"query","required":false,"description":"Network to read. Devnet returns an empty payload (with a note) until its ingestor lands.","schema":{"type":"string","enum":["mainnet","devnet"],"default":"mainnet"}}]}},"/v1/token/{mint}/ohlcv":{"get":{"operationId":"get-token-ohlcv","summary":"Reconciled OHLCV candles for any timeframe — the data behind the chart. Newest candles last.","tags":["Token data"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenOhlcvResponse"}}}},"400":{"description":"Bad request — malformed mint, query param or body."},"401":{"description":"Unauthorized — an x-api-key was presented but is invalid or revoked. Omit the key entirely for anonymous access."}},"parameters":[{"name":"mint","in":"path","required":true,"description":"Token mint address (base58).","schema":{"type":"string"}},{"name":"interval","in":"query","required":false,"description":"One of the supported intervals (sub-minute needs a paid plan).","schema":{"type":"string","default":"1m"}},{"name":"from","in":"query","required":false,"description":"Window start.","schema":{"type":"number"}},{"name":"to","in":"query","required":false,"description":"Window end.","schema":{"type":"number"}},{"name":"limit","in":"query","required":false,"description":"Max candles (≤1000).","schema":{"type":"number","default":500}},{"name":"network","in":"query","required":false,"description":"Network to read. Devnet returns an empty payload (with a note) until its ingestor lands.","schema":{"type":"string","enum":["mainnet","devnet"],"default":"mainnet"}}]}},"/v1/token/{mint}/price-by-dex":{"get":{"operationId":"get-token-price-by-dex","summary":"Per-DEX close-price lines for one mint — compare how Raydium / Orca / Meteora price the same token, bucket by bucket.","tags":["Token data"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenPriceByDexResponse"}}}},"400":{"description":"Bad request — malformed mint, query param or body."},"401":{"description":"Unauthorized — an x-api-key was presented but is invalid or revoked. Omit the key entirely for anonymous access."}},"description":"Aggregated on the fly from the mint's swaps (we attribute every swap to its dex + pool_address). One series per venue that traded the mint in the window; each point carries the bucket's close price and that venue's USD volume. Unlike token OHLCV this does NOT drop satellite-pool trades — a venue's line reflects its own activity.","parameters":[{"name":"mint","in":"path","required":true,"description":"Token mint address (base58).","schema":{"type":"string"}},{"name":"type","in":"query","required":false,"description":"Bucket interval — same values as the candle endpoints (sub-minute needs a paid plan).","schema":{"type":"string","default":"1m"}},{"name":"from","in":"query","required":false,"description":"Window start (default: 30 days ago).","schema":{"type":"number"}},{"name":"to","in":"query","required":false,"description":"Window end (default: now).","schema":{"type":"number"}},{"name":"max_points","in":"query","required":false,"description":"Max points per DEX series (≤1000). Newest last.","schema":{"type":"number","default":300}},{"name":"network","in":"query","required":false,"description":"Network to read. Devnet returns an empty payload (with a note) until its ingestor lands.","schema":{"type":"string","enum":["mainnet","devnet"],"default":"mainnet"}}]}},"/v1/token/{mint}/trades":{"get":{"operationId":"get-token-trades","summary":"The trade tape, newest first, keyset-paginated. Pass nextCursor as ?cursor= to page back; optional from/to clip it to a time window.","tags":["Token data"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenTradesResponse"}}}},"400":{"description":"Bad request — malformed mint, query param or body."},"401":{"description":"Unauthorized — an x-api-key was presented but is invalid or revoked. Omit the key entirely for anonymous access."}},"parameters":[{"name":"mint","in":"path","required":true,"description":"Token mint address (base58).","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Trades per page (≤200).","schema":{"type":"number","default":50}},{"name":"cursor","in":"query","required":false,"description":"The nextCursor from the previous page.","schema":{"type":"string"}},{"name":"from","in":"query","required":false,"description":"Only trades at or after this time. Lifted to your plan's history floor.","schema":{"type":"number"}},{"name":"to","in":"query","required":false,"description":"Only trades at or before this time.","schema":{"type":"number"}},{"name":"network","in":"query","required":false,"description":"Network to read. Devnet returns an empty payload (with a note) until its ingestor lands.","schema":{"type":"string","enum":["mainnet","devnet"],"default":"mainnet"}}]}},"/v1/token/{mint}/export":{"get":{"operationId":"get-token-export","summary":"Pull a large historical range — trades or OHLCV — as one CSV or JSON artifact, instead of hand-paging /trades or /ohlcv.","tags":["Token data"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenExportResponse"}}}},"400":{"description":"Bad request — malformed mint, query param or body."},"401":{"description":"Unauthorized — missing or invalid x-api-key."}},"description":"The export walks the same store the live routes read, paginating internally so a wide range comes back in one call. Bounded by your plan's history window (a from below the floor is lifted to it) and capped at a fixed row ceiling (truncated: true when the cap is hit). CSV cells are formula-injection-neutralized (a leading =,+,-,@ is prefixed with ') so opening the file in Excel/Sheets is safe.","security":[{"apiKey":[]}],"parameters":[{"name":"mint","in":"path","required":true,"description":"Token mint address (base58).","schema":{"type":"string"}},{"name":"kind","in":"query","required":false,"description":"What to export.","schema":{"type":"string","enum":["ohlcv","trades"],"default":"trades"}},{"name":"format","in":"query","required":false,"description":"csv downloads an attachment (text/csv); json returns { items[] }.","schema":{"type":"string","enum":["csv","json"],"default":"json"}},{"name":"interval","in":"query","required":false,"description":"Candle interval (kind=ohlcv only): 1s…1d (sub-minute is plan-gated).","schema":{"type":"string","default":"1m"}},{"name":"from","in":"query","required":false,"description":"Range start. Lifted to your plan's history floor.","schema":{"type":"number"}},{"name":"to","in":"query","required":false,"description":"Range end (default now).","schema":{"type":"number"}},{"name":"limit","in":"query","required":false,"description":"Max rows (capped at the export ceiling).","schema":{"type":"number"}},{"name":"network","in":"query","required":false,"description":"Network to read. Devnet returns an empty payload (with a note) until its ingestor lands.","schema":{"type":"string","enum":["mainnet","devnet"],"default":"mainnet"}}]}},"/v1/token/{mint}/metrics":{"get":{"operationId":"get-token-metrics","summary":"Volume, trade count and buy/sell pressure over a single rolling window (in hours).","tags":["Token data"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenMetricsResponse"}}}},"400":{"description":"Bad request — malformed mint, query param or body."},"401":{"description":"Unauthorized — an x-api-key was presented but is invalid or revoked. Omit the key entirely for anonymous access."}},"description":"For the full multi-window grid (1m → 24h with unique wallets and change%), use Trade stats.","parameters":[{"name":"mint","in":"path","required":true,"description":"Token mint address (base58).","schema":{"type":"string"}},{"name":"window","in":"query","required":false,"description":"Rolling window, 1–720h.","schema":{"type":"number","default":24}},{"name":"network","in":"query","required":false,"description":"Network to read. Devnet returns an empty payload (with a note) until its ingestor lands.","schema":{"type":"string","enum":["mainnet","devnet"],"default":"mainnet"}}]}},"/v1/token/{mint}/trade-data":{"get":{"operationId":"get-token-trade-data","summary":"The full activity grid over 1m/5m/30m/1h/2h/4h/8h/24h — trades, buys/sells, buy/sell volume, unique wallets and price change, each with its change vs the previous window — plus an all-time rollup.","tags":["Token data"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenTradeDataResponse"}}}},"400":{"description":"Bad request — malformed mint, query param or body."},"401":{"description":"Unauthorized — an x-api-key was presented but is invalid or revoked. Omit the key entirely for anonymous access."}},"parameters":[{"name":"mint","in":"path","required":true,"description":"Token mint address (base58).","schema":{"type":"string"}},{"name":"network","in":"query","required":false,"description":"Network to read. Devnet returns an empty payload (with a note) until its ingestor lands.","schema":{"type":"string","enum":["mainnet","devnet"],"default":"mainnet"}}]}},"/v1/token/{mint}/top-traders":{"get":{"operationId":"get-token-top-traders","summary":"The wallets that traded this token most over a window, by volume or trade count, with their buy/sell split.","tags":["Token data"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenTopTradersResponse"}}}},"400":{"description":"Bad request — malformed mint, query param or body."},"401":{"description":"Unauthorized — missing or invalid x-api-key."}},"security":[{"apiKey":[]}],"parameters":[{"name":"mint","in":"path","required":true,"description":"Token mint address (base58).","schema":{"type":"string"}},{"name":"window","in":"query","required":false,"description":"Rolling window, 1–720h.","schema":{"type":"number","default":24}},{"name":"sort","in":"query","required":false,"description":"Ranking metric.","schema":{"type":"string","enum":["volume","trades"],"default":"volume"}},{"name":"limit","in":"query","required":false,"description":"How many traders (≤100).","schema":{"type":"number","default":10}},{"name":"network","in":"query","required":false,"description":"Network to read. Devnet returns an empty payload (with a note) until its ingestor lands.","schema":{"type":"string","enum":["mainnet","devnet"],"default":"mainnet"}}]}},"/v1/token/{mint}/holders":{"get":{"operationId":"get-token-holders","summary":"Holder count and the largest token accounts, each with their share of supply.","tags":["Token data"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenHoldersResponse"}}}},"400":{"description":"Bad request — malformed mint, query param or body."},"401":{"description":"Unauthorized — an x-api-key was presented but is invalid or revoked. Omit the key entirely for anonymous access."}},"parameters":[{"name":"mint","in":"path","required":true,"description":"Token mint address (base58).","schema":{"type":"string"}},{"name":"network","in":"query","required":false,"description":"Network to read. Devnet returns an empty payload (with a note) until its ingestor lands.","schema":{"type":"string","enum":["mainnet","devnet"],"default":"mainnet"}}]}},"/v1/token/{mint}/holders/history":{"get":{"operationId":"get-token-holders-history","summary":"Holder-count time series: one point per holder refresh, with the floor flag and the owner-aggregated top-10 concentration at each snapshot.","tags":["Token data"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenHoldersHistoryResponse"}}}},"400":{"description":"Bad request — malformed mint, query param or body."},"401":{"description":"Unauthorized — an x-api-key was presented but is invalid or revoked. Omit the key entirely for anonymous access."}},"parameters":[{"name":"mint","in":"path","required":true,"description":"Token mint address (base58).","schema":{"type":"string"}},{"name":"from","in":"query","required":false,"description":"Window start. Defaults to to − 7 days.","schema":{"type":"number"}},{"name":"to","in":"query","required":false,"description":"Window end. Defaults to now.","schema":{"type":"number"}},{"name":"limit","in":"query","required":false,"description":"Max points (≤1000; the newest points of the window are kept).","schema":{"type":"number","default":1000}},{"name":"network","in":"query","required":false,"description":"Network to read. Devnet returns an empty payload (with a note) until its ingestor lands.","schema":{"type":"string","enum":["mainnet","devnet"],"default":"mainnet"}}]}},"/v1/token/{mint}/security":{"get":{"operationId":"get-token-security","summary":"On-chain rug-check, read straight off the chain: is the mint/freeze authority renounced, is the metadata mutable, any Token-2022 transfer fee, top-10 concentration, and creation.","tags":["Token data"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenSecurityResponse"}}}},"400":{"description":"Bad request — malformed mint, query param or body."},"401":{"description":"Unauthorized — an x-api-key was presented but is invalid or revoked. Omit the key entirely for anonymous access."}},"parameters":[{"name":"mint","in":"path","required":true,"description":"Token mint address (base58).","schema":{"type":"string"}},{"name":"network","in":"query","required":false,"description":"Network to read. Devnet returns an empty payload (with a note) until its ingestor lands.","schema":{"type":"string","enum":["mainnet","devnet"],"default":"mainnet"}}]}},"/v1/token/{mint}/markets":{"get":{"operationId":"get-token-markets","summary":"Every pool/market for the token: base/quote, liquidity (on-chain for the dominant Raydium pool), and our own 24h volume/trades/unique-wallets per pool.","tags":["Token data"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenMarketsResponse"}}}},"400":{"description":"Bad request — malformed mint, query param or body."},"401":{"description":"Unauthorized — an x-api-key was presented but is invalid or revoked. Omit the key entirely for anonymous access."}},"parameters":[{"name":"mint","in":"path","required":true,"description":"Token mint address (base58).","schema":{"type":"string"}},{"name":"network","in":"query","required":false,"description":"Network to read. Devnet returns an empty payload (with a note) until its ingestor lands.","schema":{"type":"string","enum":["mainnet","devnet"],"default":"mainnet"}}]}},"/v1/token/{mint}/coverage":{"get":{"operationId":"get-token-coverage","summary":"The trust artifact Birdeye doesn't ship: how confident we are in a mint's recent series — the highest confirmed slot, when the contiguity reconciler last checked it, how many interior gaps it found vs repaired, unpriced swaps, and the oldest swap we hold.","tags":["Token data"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenCoverageResponse"}}}},"400":{"description":"Bad request — malformed mint, query param or body."},"401":{"description":"Unauthorized — an x-api-key was presented but is invalid or revoked. Omit the key entirely for anonymous access."}},"description":"A mint is reconciled once for the whole platform, so coverage is a mint-level fact and needs no API key. Use it to verify our numbers against the chain instead of trusting them blind: a recent lastReconcileSec with gapWindowsDetected == gapWindowsRepaired and zero unpricedSwapCount means the recent window is contiguous and fully priced.","parameters":[{"name":"mint","in":"path","required":true,"description":"Token mint address (base58).","schema":{"type":"string"}},{"name":"network","in":"query","required":false,"description":"Network to read. Devnet returns an empty payload (with a note) until its ingestor lands.","schema":{"type":"string","enum":["mainnet","devnet"],"default":"mainnet"}}]}},"/v1/price/multi":{"get":{"operationId":"get-price-multi","summary":"The latest USD price for many mints in one call — the call to value a whole portfolio.","tags":["Pricing & utility"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceMultiResponse"}}}},"400":{"description":"Bad request — malformed mint, query param or body."},"401":{"description":"Unauthorized — an x-api-key was presented but is invalid or revoked. Omit the key entirely for anonymous access."}},"parameters":[{"name":"list","in":"query","required":true,"description":"Comma-separated mints (≤100).","schema":{"type":"string"}},{"name":"network","in":"query","required":false,"description":"Network to read. Devnet returns an empty payload (with a note) until its ingestor lands.","schema":{"type":"string","enum":["mainnet","devnet"],"default":"mainnet"}}]}},"/v1/tokens/batch":{"post":{"operationId":"post-tokens-batch","summary":"Fetch one read (overview, security, holders, metrics, price, trade-data, markets or coverage) for up to 25 mints in a single call — for a portfolio dashboard, instead of N requests.","tags":["Pricing & utility"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokensBatchResponse"}}}},"400":{"description":"Bad request — malformed mint, query param or body."},"401":{"description":"Unauthorized — missing or invalid x-api-key."}},"description":"Pick ONE endpoint and pass the mints; we fan out to the same per-mint handler for each (so the shape is identical to the single-mint call) and return a map keyed by mint. Each mint counts as one request against your plan's rate limit, and a per-mint failure is captured in that mint's slot as { error, status } rather than failing the whole batch.","security":[{"apiKey":[]}],"parameters":[{"name":"network","in":"query","required":false,"description":"Network to read. Devnet returns an empty payload (with a note) until its ingestor lands.","schema":{"type":"string","enum":["mainnet","devnet"],"default":"mainnet"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mints":{"type":"array","items":{"type":"object","additionalProperties":true},"description":"Base58 mint addresses (deduped; capped at 25 — extras are dropped with truncated:true)."},"endpoint":{"type":"string","enum":["overview","security","holders","metrics","price","trade-data","markets","coverage"],"default":"overview","description":"Which per-mint read to fan out."}}}}}}}},"/v1/stats":{"get":{"operationId":"get-platform-stats","summary":"Service-wide coverage stats: tokens indexed, swaps ingested (approximate), data span and freshness. No key needed.","tags":["Platform"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformStatsResponse"}}}},"400":{"description":"Bad request — malformed mint, query param or body."},"401":{"description":"Unauthorized — an x-api-key was presented but is invalid or revoked. Omit the key entirely for anonymous access."}},"description":"The trust artifact: how much we index and how fresh it is, computed from our own store. swapsIngested is an approximate count read from catalog statistics (an exact count on a hypertable this size would be a heavy scan). The whole result is cached server-side for 60 seconds."}},"/v1/pair/{address}/overview":{"get":{"operationId":"get-pair-overview","summary":"Snapshot of one pool/market: base/quote, liquidity (on-chain for Raydium AMM v4), and our own 24h volume/trades/unique-wallets for the pool.","tags":["Pair / Pool"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PairOverviewResponse"}}}},"400":{"description":"Bad request — malformed mint, query param or body."},"401":{"description":"Unauthorized — an x-api-key was presented but is invalid or revoked. Omit the key entirely for anonymous access."}},"parameters":[{"name":"address","in":"path","required":true,"description":"Pool / market address (base58).","schema":{"type":"string"}},{"name":"network","in":"query","required":false,"description":"Network to read. Devnet returns an empty payload (with a note) until its ingestor lands.","schema":{"type":"string","enum":["mainnet","devnet"],"default":"mainnet"}}]}},"/v1/pair/{address}/trades":{"get":{"operationId":"get-pair-trades","summary":"The pool's trade tape, newest first, keyset-paginated.","tags":["Pair / Pool"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PairTradesResponse"}}}},"400":{"description":"Bad request — malformed mint, query param or body."},"401":{"description":"Unauthorized — an x-api-key was presented but is invalid or revoked. Omit the key entirely for anonymous access."}},"parameters":[{"name":"address","in":"path","required":true,"description":"Pool / market address.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Trades per page (≤200).","schema":{"type":"number","default":50}},{"name":"cursor","in":"query","required":false,"description":"The nextCursor from the previous page.","schema":{"type":"string"}},{"name":"network","in":"query","required":false,"description":"Network to read. Devnet returns an empty payload (with a note) until its ingestor lands.","schema":{"type":"string","enum":["mainnet","devnet"],"default":"mainnet"}}]}},"/v1/pair/{address}/ohlcv":{"get":{"operationId":"get-pair-ohlcv","summary":"OHLCV candles for ONE pool, aggregated on the fly from the pool's swaps (Birdeye /ohlcv/pair).","tags":["Pair / Pool"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PairOhlcvResponse"}}}},"400":{"description":"Bad request — malformed mint, query param or body."},"401":{"description":"Unauthorized — an x-api-key was presented but is invalid or revoked. Omit the key entirely for anonymous access."}},"description":"Unlike token OHLCV, this does NOT drop satellite-pool trades — it's the pool's own view, so a small pool still charts its real activity.","parameters":[{"name":"address","in":"path","required":true,"description":"Pool / market address.","schema":{"type":"string"}},{"name":"interval","in":"query","required":false,"description":"Candle interval (see Intervals & candles).","schema":{"type":"string","default":"1m"}},{"name":"from","in":"query","required":false,"description":"Window start (default: 30 days ago).","schema":{"type":"number"}},{"name":"to","in":"query","required":false,"description":"Window end (default: now).","schema":{"type":"number"}},{"name":"limit","in":"query","required":false,"description":"Max candles (≤1000), newest last.","schema":{"type":"number","default":500}},{"name":"network","in":"query","required":false,"description":"Network to read. Devnet returns an empty payload (with a note) until its ingestor lands.","schema":{"type":"string","enum":["mainnet","devnet"],"default":"mainnet"}}]}},"/v1/wallet/{address}/portfolio":{"get":{"operationId":"get-wallet-portfolio","summary":"A wallet's token holdings + native SOL, valued in USD — read off the chain, priced with our reconciled prices (Jupiter spot fallback, labelled per item).","tags":["Wallet"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletPortfolioResponse"}}}},"400":{"description":"Bad request — malformed mint, query param or body."},"401":{"description":"Unauthorized — an x-api-key was presented but is invalid or revoked. Omit the key entirely for anonymous access."}},"parameters":[{"name":"address","in":"path","required":true,"description":"Wallet address (base58).","schema":{"type":"string"}},{"name":"network","in":"query","required":false,"description":"Network to read. Devnet returns an empty payload (with a note) until its ingestor lands.","schema":{"type":"string","enum":["mainnet","devnet"],"default":"mainnet"}}]}},"/v1/wallet/{address}/token/{mint}":{"get":{"operationId":"get-wallet-token","summary":"One token's balance + USD value for a wallet.","tags":["Wallet"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTokenResponse"}}}},"400":{"description":"Bad request — malformed mint, query param or body."},"401":{"description":"Unauthorized — an x-api-key was presented but is invalid or revoked. Omit the key entirely for anonymous access."}},"parameters":[{"name":"address","in":"path","required":true,"description":"Wallet address.","schema":{"type":"string"}},{"name":"mint","in":"path","required":true,"description":"Token mint.","schema":{"type":"string"}},{"name":"network","in":"query","required":false,"description":"Network to read. Devnet returns an empty payload (with a note) until its ingestor lands.","schema":{"type":"string","enum":["mainnet","devnet"],"default":"mainnet"}}]}},"/v1/wallet/{address}/trades":{"get":{"operationId":"get-wallet-trades","summary":"A wallet's swaps on the tokens we index, newest first, keyset-paginated (from the signer on each swap).","tags":["Wallet"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTradesResponse"}}}},"400":{"description":"Bad request — malformed mint, query param or body."},"401":{"description":"Unauthorized — an x-api-key was presented but is invalid or revoked. Omit the key entirely for anonymous access."}},"parameters":[{"name":"address","in":"path","required":true,"description":"Wallet address.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Trades per page (≤200).","schema":{"type":"number","default":50}},{"name":"cursor","in":"query","required":false,"description":"The nextCursor from the previous page.","schema":{"type":"string"}},{"name":"network","in":"query","required":false,"description":"Network to read. Devnet returns an empty payload (with a note) until its ingestor lands.","schema":{"type":"string","enum":["mainnet","devnet"],"default":"mainnet"}}]}},"/v1/wallet/{address}/pnl":{"get":{"operationId":"get-wallet-pnl","summary":"Realized + unrealized profit & loss for a wallet — per token and aggregate — from its swaps on the tokens we index. Cost basis is average-cost by default (?basis=fifo for lot-matched), priced at each swap's block time; open positions are valued at the current reconciled price (Jupiter fallback) and cross-checked against the wallet's actual on-chain balances.","tags":["Wallet"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletPnlResponse"}}}},"400":{"description":"Bad request — malformed mint, query param or body."},"401":{"description":"Unauthorized — missing or invalid x-api-key."}},"security":[{"apiKey":[]}],"parameters":[{"name":"address","in":"path","required":true,"description":"Wallet address.","schema":{"type":"string"}},{"name":"basis","in":"query","required":false,"description":"Cost-basis method: average-cost (default) or FIFO lot-matching.","schema":{"type":"string","enum":["avgcost","fifo"],"default":"avgcost"}},{"name":"gas","in":"query","required":false,"description":"on subtracts an ESTIMATED network fee per indexed swap from realized PnL, valued at block-time SOL/USD (the swaps table carries no per-tx fee, so gas is an estimate).","schema":{"type":"string","enum":["on","off"],"default":"off"}},{"name":"reconcile","in":"query","required":false,"description":"Cross-check replay positions against the wallet's actual on-chain token balances. false skips the RPC read; summary.reconciled reports whether it ran.","schema":{"type":"string","enum":["true","false"],"default":"true"}},{"name":"format","in":"query","required":false,"description":"format=csv downloads the per-token reconciliation as a CSV artifact instead of JSON.","schema":{"type":"string"}},{"name":"network","in":"query","required":false,"description":"Network to read. Devnet returns an empty payload (with a note) until its ingestor lands.","schema":{"type":"string","enum":["mainnet","devnet"],"default":"mainnet"}}]}},"/v1/tokens/register":{"post":{"operationId":"post-register","summary":"Subscribe a slot. Enqueues a historical backfill only if the mint is new to the platform and a credit is free.","tags":["Subscriptions"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterResponse"}}}},"400":{"description":"Bad request — malformed mint, query param or body."},"401":{"description":"Unauthorized — missing or invalid x-api-key."}},"description":"Devnet slots are free: they don't count against your plan's mint slots (separate per-network pools), carry no commitment lock and never consume rotations — but devnet is not indexed yet, so its data endpoints return empty until the devnet ingestor ships (the response says so in coverage.note).","security":[{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mint":{"type":"string","description":"The token mint to track."},"network":{"type":"string","enum":["mainnet","devnet"],"default":"mainnet","description":"Which network."}}}}}}}},"/v1/tokens/{mint}":{"delete":{"operationId":"delete-unsubscribe","summary":"Release a slot. Blocked (409) while the commitment lock holds, unless rotate=true spends a free rotation.","tags":["Subscriptions"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnsubscribeResponse"}}}},"400":{"description":"Bad request — malformed mint, query param or body."},"401":{"description":"Unauthorized — missing or invalid x-api-key."}},"description":"Devnet slots are never locked and never spend a rotation — a devnet release is always free and immediate.","security":[{"apiKey":[]}],"parameters":[{"name":"mint","in":"path","required":true,"description":"Token mint address (base58).","schema":{"type":"string"}},{"name":"network","in":"query","required":false,"description":"Network to read. Devnet returns an empty payload (with a note) until its ingestor lands.","schema":{"type":"string","enum":["mainnet","devnet"],"default":"mainnet"}},{"name":"rotate","in":"query","required":false,"description":"Spend a free rotation to release while locked.","schema":{"type":"boolean","default":false}}]}},"/v1/tokens/mine":{"get":{"operationId":"get-my-mints","summary":"Your subscribed mints (with name/ticker/logo + backfill progress), slot usage and estimated cost.","tags":["Subscriptions"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MyMintsResponse"}}}},"400":{"description":"Bad request — malformed mint, query param or body."},"401":{"description":"Unauthorized — missing or invalid x-api-key."}},"security":[{"apiKey":[]}]}},"/v1/tokens/{mint}/backfill":{"get":{"operationId":"get-backfill-status","summary":"Backfill progress for one subscribed mint.","tags":["Subscriptions"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackfillStatusResponse"}}}},"400":{"description":"Bad request — malformed mint, query param or body."},"401":{"description":"Unauthorized — missing or invalid x-api-key."}},"security":[{"apiKey":[]}],"parameters":[{"name":"mint","in":"path","required":true,"description":"Token mint address (base58).","schema":{"type":"string"}},{"name":"network","in":"query","required":false,"description":"Network to read. Devnet returns an empty payload (with a note) until its ingestor lands.","schema":{"type":"string","enum":["mainnet","devnet"],"default":"mainnet"}}]}},"/v1/history/fetch":{"post":{"operationId":"post-history-fetch","summary":"Kick off a bounded historical backfill for a mint WITHOUT subscribing a slot — the fastest way to evaluate a token. Returns immediately with a status URL; poll GET /v1/token/:mint/backfill (and /ohlcv) as the data fills in.","tags":["Subscriptions"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HistoryFetchResponse"}}}},"400":{"description":"Bad request — malformed mint, query param or body."},"401":{"description":"Unauthorized — missing or invalid x-api-key."}},"security":[{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mint":{"type":"string","description":"The token mint (base58)."},"network":{"type":"string","enum":["mainnet","devnet"],"description":"Default mainnet. Devnet has no archive (400)."},"hours":{"type":"number","description":"Lookback window to walk (default 72h; capped server-side)."}}}}}}}},"/v1/me":{"get":{"operationId":"get-me","summary":"Your tenant, plan, plan limits, slot usage and estimated monthly cost.","tags":["Account"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeResponse"}}}},"400":{"description":"Bad request — malformed mint, query param or body."},"401":{"description":"Unauthorized — missing or invalid x-api-key."}},"security":[{"apiKey":[]}]}},"/v1/keys":{"get":{"operationId":"get-keys","summary":"List, mint and revoke API keys. POST /v1/keys mints a new key (secret returned once); DELETE /v1/keys/{id} revokes one.","tags":["Account"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeysResponse"}}}},"400":{"description":"Bad request — malformed mint, query param or body."},"401":{"description":"Unauthorized — missing or invalid x-api-key."}},"security":[{"apiKey":[]}]}},"/v1/billing/subscribe":{"post":{"operationId":"post-billing-subscribe","summary":"Create (or switch) a subscription to a paid plan. Returns the payment params; then call /pay-tx and /confirm to pay.","tags":["Billing"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingSubscribeResponse"}}}},"400":{"description":"Bad request — malformed mint, query param or body."},"401":{"description":"Unauthorized — missing or invalid x-api-key."}},"security":[{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"plan":{"type":"string","enum":["builder","scale","enterprise"],"description":"The plan to subscribe to."},"coupon":{"type":"string","description":"Promo code — discounts the USDC cycle amount (validate first via GET /v1/billing/coupon/:code)."},"months":{"type":"string","enum":["1","3","6","12"],"description":"Prepay several 30-day cycles in ONE transfer (default 1)."}}}}}}}},"/v1/billing/coupon/{code}":{"get":{"operationId":"get-billing-coupon","summary":"Check a promo code before subscribing: validity and the exact totals it produces for a plan/period.","tags":["Billing"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingCouponResponse"}}}},"400":{"description":"Bad request — malformed mint, query param or body."},"401":{"description":"Unauthorized — missing or invalid x-api-key."}},"security":[{"apiKey":[]}],"parameters":[{"name":"plan","in":"query","required":false,"description":"Plan to price against (default builder).","schema":{"type":"string","enum":["builder","scale","enterprise"]}},{"name":"months","in":"query","required":false,"description":"Prepay length to price (default 1).","schema":{"type":"string","enum":["1","3","6","12"]}}]}},"/v1/billing/pay-tx":{"post":{"operationId":"post-billing-pay-tx","summary":"Returns an UNSIGNED USDC-transfer transaction for your plan's amount, tagged with a tenant-bound reference. Your wallet signs and sends it.","tags":["Billing"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingPayTxResponse"}}}},"400":{"description":"Bad request — malformed mint, query param or body."},"401":{"description":"Unauthorized — missing or invalid x-api-key."}},"security":[{"apiKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"wallet":{"type":"string","description":"The Solana wallet that will pay (base58)."}}}}}}}},"/v1/billing/confirm":{"post":{"operationId":"post-billing-confirm","summary":"Finds your USDC transfer on-chain via the reference, verifies amount + destination (single-use), and activates the plan.","tags":["Billing"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingConfirmResponse"}}}},"400":{"description":"Bad request — malformed mint, query param or body."},"401":{"description":"Unauthorized — missing or invalid x-api-key."}},"security":[{"apiKey":[]}]}},"/v1/billing/subscription":{"get":{"operationId":"get-billing-subscription","summary":"Your current subscription, its status/period, recent events, and the purchasable plans.","tags":["Billing"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingSubscriptionResponse"}}}},"400":{"description":"Bad request — malformed mint, query param or body."},"401":{"description":"Unauthorized — missing or invalid x-api-key."}},"security":[{"apiKey":[]}]}},"/v1/billing/cancel":{"post":{"operationId":"post-billing-cancel","summary":"Stop renewal reminders. You keep access until the end of the current paid period, then lapse to free (nothing is auto-charged either way).","tags":["Billing"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingCancelResponse"}}}},"400":{"description":"Bad request — malformed mint, query param or body."},"401":{"description":"Unauthorized — missing or invalid x-api-key."}},"security":[{"apiKey":[]}]}},"/v1/billing/resume":{"post":{"operationId":"post-billing-resume","summary":"Undo a scheduled cancellation before the period ends (renewing by paying again also clears it).","tags":["Billing"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingResumeResponse"}}}},"400":{"description":"Bad request — malformed mint, query param or body."},"401":{"description":"Unauthorized — missing or invalid x-api-key."}},"security":[{"apiKey":[]}]}},"/v1/replay/tx/{signature}":{"get":{"operationId":"get-replay-tx","summary":"Forensic replay of one transaction: decoded swaps (venue, side, amounts), the programs it touched, fee and slot/blockTime — using the same decode engine as the live indexer. Premium: requires a Scale or Enterprise plan (returns 402 otherwise).","tags":["Forensics"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplayTxResponse"}}}},"400":{"description":"Bad request — malformed mint, query param or body."},"401":{"description":"Unauthorized — missing or invalid x-api-key."}},"security":[{"apiKey":[]}],"parameters":[{"name":"signature","in":"path","required":true,"description":"The transaction signature (base58).","schema":{"type":"string"}}]}},"/v1/replay/slot/{slot}":{"get":{"operationId":"get-replay-slot","summary":"Replay a historical block (“à un moment donné”) from the Ferno archive: every decoded swap in the slot, optionally filtered to one mint with ?mint=. Premium: requires a Scale or Enterprise plan.","tags":["Forensics"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplaySlotResponse"}}}},"400":{"description":"Bad request — malformed mint, query param or body."},"401":{"description":"Unauthorized — missing or invalid x-api-key."}},"security":[{"apiKey":[]}],"parameters":[{"name":"slot","in":"path","required":true,"description":"The slot to replay.","schema":{"type":"number"}},{"name":"mint","in":"query","required":false,"description":"Filter to swaps that touch this mint (base or quote).","schema":{"type":"string"}}]}}},"components":{"securitySchemes":{"apiKey":{"type":"apiKey","in":"header","name":"x-api-key"},"bearer":{"type":"http","scheme":"bearer"}},"schemas":{"TokenMetadataResponse":{"type":"object","properties":{"chain":{"type":"string","description":"Always \"solana\"."},"network":{"type":"string","enum":["mainnet","devnet"]},"symbol":{"type":["string","null"],"description":"Ticker, resolved on-chain (Helius DAS)."},"name":{"type":["string","null"],"description":"Full token name."},"decimals":{"type":["number","null"],"description":"Token decimals."},"logo":{"type":["string","null"],"description":"Logo URI."},"priceUsd":{"type":["number","null"],"description":"Latest reconciled USD price."},"firstSeenSlot":{"type":["string","null"],"description":"Earliest slot we indexed for this mint."},"lastTxAt":{"type":["string","null"],"description":"Time of the last indexed trade (ISO)."}}},"TokenOverviewResponse":{"type":"object","properties":{"chain":{"type":"string","description":"Always \"solana\"."},"network":{"type":"string","enum":["mainnet","devnet"]},"priceUsd":{"type":"number","description":"Latest USD price: our reconciled price for indexed mints, a Jupiter spot quote for unindexed ones (see priceSource)."},"priceSource":{"type":["string","null"],"enum":["quanaris","jupiter"],"description":"quanaris = our trade-reconciled series; jupiter = spot fallback for an unindexed mint (always alongside indexed: false); null = no price at all."},"supply":{"type":"object","properties":{"total":{"type":"number","description":"Total on-chain supply (the honest on-chain figure)."},"circulating":{"type":"string","description":"Always null: we don't track locked/team/treasury supply on-chain yet, so the circulating fraction is unknown. See supplyNote; use supply.total / fdvUsd."}}},"supplyNote":{"type":"string","description":"Explains why supply.circulating is null and points to supply.total / fdvUsd."},"marketCapUsd":{"type":"string","description":"Always null: we don't track locked/team/treasury supply on-chain yet, so a true circulating market cap can't be computed honestly. Use fdvUsd. See marketCapNote."},"marketCapNote":{"type":"string","description":"Explains why marketCapUsd is null and points to fdvUsd."},"fdvUsd":{"type":"number","description":"Fully-diluted value (total supply × price) — the valuation figure we can compute honestly."},"liquidityUsd":{"type":["number","null"],"description":"Liquidity (on-chain for the dominant Raydium pool)."},"liquiditySource":{"type":"string","description":"raydium-onchain · dexscreener · cached."},"pools":{"type":"array","items":{"type":"array","items":{"type":"object","additionalProperties":true},"description":"Pools with { dex, address, tvlUsd }."}},"holders":{"type":"object","properties":{"count":{"type":["number","null"],"description":"Holder count (a lower bound when holders.countIsFloor is true)."},"countIsFloor":{"type":"boolean","description":"true = the bounded holder crawl capped out, so the real count is >= count."},"top":{"type":"array","items":{"type":"array","items":{"type":"object","additionalProperties":true},"description":"Top holders (token accounts) with pct of supply, owner wallet and isPoolVault label."}}}},"priceChange":{"type":"object","additionalProperties":true,"description":"% change over 5m / 1h / 6h / 24h."},"volume":{"type":"object","additionalProperties":true,"description":"USD volume over 5m / 1h / 6h / 24h (the 24h figure equals totalVolumeUsd)."},"totalVolumeUsd":{"type":"number","description":"All priceable swaps over the exact rolling 24h (dust/outliers included)."},"chartedVolumeUsd":{"type":"number","description":"Candle-eligible, bucket-aligned 24h volume — what the chart bars sum to."},"txns24h":{"type":"object","additionalProperties":true,"description":"{ buys, sells } over 24h."},"indexed":{"type":"boolean","description":"Present (false) only when no swaps/candles were ever ingested for this mint — every market figure is empty, see note."},"note":{"type":"string","description":"Honest-empty hint (unindexed mint → register pointer; or the devnet note)."}}},"TokenPriceResponse":{"type":"object","properties":{"chain":{"type":"string","description":"Always \"solana\"."},"network":{"type":"string","enum":["mainnet","devnet"]},"priceUsd":{"type":["string","null"],"description":"Latest USD price: our reconciled price for indexed mints, a Jupiter spot quote for unindexed ones (see source). null only when neither exists."},"source":{"type":"string","enum":["quanaris","jupiter"],"description":"Where the price came from: quanaris = our trade-reconciled series; jupiter = a spot quote for a mint we don't index (always alongside indexed: false). Absent when priceUsd is null."},"updatedAt":{"type":["string","null"],"description":"ISO time of the last update (for source: jupiter, when the spot quote was fetched)."},"indexed":{"type":"boolean","description":"Present (false) only when no trades were ever ingested for this mint — any price shown is a Jupiter spot, not our reconciled series."},"note":{"type":"string","description":"Honest-empty hint (unindexed mint → POST /v1/tokens/register pointer; or the devnet note)."}}},"TokenPriceAtResponse":{"type":"object","properties":{"chain":{"type":"string","description":"Always \"solana\"."},"network":{"type":"string","enum":["mainnet","devnet"]},"requestedTime":{"type":"number","description":"The time you asked for."},"unixTime":{"type":["number","null"],"description":"The candle time we matched (null if before our data)."},"value":{"type":["number","null"],"description":"Close price (USD) at that time."}}},"TokenPriceHistoryResponse":{"type":"object","properties":{"chain":{"type":"string","description":"Always \"solana\"."},"network":{"type":"string","enum":["mainnet","devnet"]},"items":{"type":"array","items":{"type":"object","properties":{"unixTime":{"type":"number","description":"Bucket time (unix seconds)."},"value":{"type":"number","description":"Close price (USD)."}}}},"widened":{"type":"boolean","description":"True if we fell back to the latest N when the window was empty."}}},"TokenOhlcvResponse":{"type":"object","properties":{"chain":{"type":"string","description":"Always \"solana\"."},"network":{"type":"string","enum":["mainnet","devnet"]},"data":{"type":"array","items":{"type":"object","properties":{"t":{"type":"number","description":"Candle open time (unix seconds)."},"o":{"type":"string","description":"Open, high, low, close (USD)."},"h":{"type":"string","description":"Open, high, low, close (USD)."},"l":{"type":"string","description":"Open, high, low, close (USD)."},"c":{"type":"string","description":"Open, high, low, close (USD)."},"v":{"type":"string","description":"Quote volume in USD."},"trades":{"type":"number","description":"Swap count in the bucket."},"confirmed":{"type":"boolean","description":"True once reconciled vs the archive."}}}},"indexed":{"type":"boolean","description":"Present (false) only when data is empty because the mint was never indexed (vs an indexed mint with an empty window)."},"note":{"type":"string","description":"Honest-empty hint (unindexed mint → POST /v1/tokens/register pointer; or the devnet note)."}}},"TokenPriceByDexResponse":{"type":"object","properties":{"chain":{"type":"string","description":"Always \"solana\"."},"network":{"type":"string","enum":["mainnet","devnet"]},"mint":{"type":"string","description":"The queried mint (echoed as mint, like coverage)."},"type":{"type":"string","description":"The effective bucket interval (after plan gating)."},"series":{"type":"array","items":{"type":"object","properties":{"dex":{"type":"string","description":"Venue: raydium / orca / meteora."},"points":{"type":"array","items":{"type":"object","properties":{"t":{"type":"number","description":"Bucket open time (unix seconds)."},"c":{"type":"string","description":"Close price (USD) on that venue in the bucket."},"v":{"type":"string","description":"That venue's USD volume in the bucket."}}}}}}},"windowClamped":{"type":"boolean","description":"True if `from` was lifted to your plan's history floor."},"granularityClamped":{"type":"boolean","description":"True if a sub-minute `type` was coarsened to 1m."}}},"TokenTradesResponse":{"type":"object","properties":{"chain":{"type":"string","description":"Always \"solana\"."},"network":{"type":"string","enum":["mainnet","devnet"]},"trades":{"type":"array","items":{"type":"object","properties":{"time":{"type":"number","description":"Block time (unix seconds) — same value the WS trades frame carries."},"signature":{"type":"string","description":"The transaction signature (base58)."},"dex":{"type":"string","description":"Venue: raydium / orca / meteora."},"side":{"type":"string","description":"buy or sell."},"baseAmount":{"type":"number","description":"Token and quote-leg sizes (human units)."},"quoteAmount":{"type":"number","description":"Token and quote-leg sizes (human units)."},"priceUsd":{"type":["number","null"],"description":"Execution price and trade size in USD."},"volumeUsd":{"type":["number","null"],"description":"Execution price and trade size in USD."},"signer":{"type":"string","description":"The wallet (base58)."},"poolAddress":{"type":"string","description":"The pool the swap hit."}}}},"nextCursor":{"type":["string","null"],"description":"Pass as ?cursor= for the next page; null = end."},"windowClamped":{"type":"boolean","description":"Present (true) when a from/to below your plan's history floor was lifted to the floor."},"indexed":{"type":"boolean","description":"Present (false) only when the tape is empty because the mint was never indexed."},"note":{"type":"string","description":"Honest-empty hint (unindexed mint → POST /v1/tokens/register pointer; or the devnet note)."}}},"TokenExportResponse":{"type":"object","properties":{"chain":{"type":"string","description":"Always \"solana\"."},"network":{"type":"string","enum":["mainnet","devnet"]},"kind":{"type":"string","description":"trades or ohlcv (echoes the request)."},"count":{"type":"number","description":"Rows returned."},"truncated":{"type":"boolean","description":"true = the row cap was hit; narrow the from/to to get the rest."},"windowClamped":{"type":"boolean","description":"Present (true) when from was lifted to your plan's history floor."},"granularityClamped":{"type":"boolean","description":"Present (true) when a sub-minute interval was coarsened to 1m for your plan (ohlcv only)."},"items":{"type":"array","items":{"type":"array","items":{"type":"object","additionalProperties":true},"description":"trades: the same trade shape as /trades; ohlcv: the same candle shape as /ohlcv."}}}},"TokenMetricsResponse":{"type":"object","properties":{"chain":{"type":"string","description":"Always \"solana\"."},"network":{"type":"string","enum":["mainnet","devnet"]},"volumeUsd":{"type":"number","description":"Total USD volume in the window."},"trades":{"type":"number","description":"Counts."},"buys":{"type":"number","description":"Counts."},"sells":{"type":"number","description":"Counts."},"buyPressure":{"type":["number","null"],"description":"buyVol / (buyVol + sellVol), 0–1."}}},"TokenTradeDataResponse":{"type":"object","properties":{"chain":{"type":"string","description":"Always \"solana\"."},"network":{"type":"string","enum":["mainnet","devnet"]},"windows":{"type":"object","properties":{},"additionalProperties":{"type":"object","properties":{"trades":{"type":"number","description":"Swap count in the window."},"buys":{"type":"number","description":"Directional counts."},"sells":{"type":"number","description":"Directional counts."},"volumeBuyUsd":{"type":"number","description":"Directional USD volume."},"volumeSellUsd":{"type":"number","description":"Directional USD volume."},"uniqueWallets":{"type":"number","description":"Distinct signers active."},"priceChangePct":{"type":["number","null"],"description":"% price change over the window."},"volumeChangePct":{"type":["number","null"],"description":"% vs the previous equal window."}}}},"lifetime":{"type":"object","additionalProperties":true,"description":"All-time buys/sells/volume/uniqueWallets + first/last trade."}}},"TokenTopTradersResponse":{"type":"object","properties":{"chain":{"type":"string","description":"Always \"solana\"."},"network":{"type":"string","enum":["mainnet","devnet"]},"traders":{"type":"array","items":{"type":"object","properties":{"owner":{"type":"string","description":"The wallet (base58)."},"volumeUsd":{"type":"number","description":"Total USD traded in the window."},"volumeBuyUsd":{"type":"number","description":"Directional volume."},"volumeSellUsd":{"type":"number","description":"Directional volume."},"trades":{"type":"number","description":"Counts."},"buys":{"type":"number","description":"Counts."},"sells":{"type":"number","description":"Counts."},"lastTradeAt":{"type":"string","description":"Their most recent trade (ISO)."}}}}}},"TokenHoldersResponse":{"type":"object","properties":{"chain":{"type":"string","description":"Always \"solana\"."},"network":{"type":"string","enum":["mainnet","devnet"]},"count":{"type":["number","null"],"description":"Holding accounts. When countIsFloor is true this is a LOWER BOUND, not an exact figure."},"countIsFloor":{"type":"boolean","description":"true = the bounded crawl hit its cap, so the real holder count is >= count (mega-caps like wSOL). false = exact."},"top":{"type":"array","items":{"type":"object","properties":{"address":{"type":"string","description":"The largest token ACCOUNT (not the owner wallet)."},"owner":{"type":["string","null"],"description":"The wallet that owns the token account (null while a pre-existing cache entry awaits its refresh)."},"uiAmount":{"type":"number","description":"Tokens held."},"pct":{"type":["number","null"],"description":"% of total supply."},"isPoolVault":{"type":"boolean","description":"true = a known AMM pool vault (dominant-pool vault or Raydium AMM v4 authority owner) — liquidity, not a whale."}}}},"updatedAt":{"type":["string","null"],"description":"When holders were last refreshed (ISO)."}}},"TokenHoldersHistoryResponse":{"type":"object","properties":{"chain":{"type":"string","description":"Always \"solana\"."},"network":{"type":"string","enum":["mainnet","devnet"]},"from":{"type":"number","description":"The resolved window actually queried."},"to":{"type":"number","description":"The resolved window actually queried."},"items":{"type":"array","items":{"type":"object","properties":{"unixTime":{"type":"number","description":"Snapshot time."},"count":{"type":["number","null"],"description":"Holder count at that refresh (a lower bound when countIsFloor is true)."},"countIsFloor":{"type":"boolean","description":"true = the bounded crawl capped at that refresh: the real count was >= count."},"top10OwnersPct":{"type":["number","null"],"description":"Owner-aggregated, vault-excluded top-10 concentration at that refresh (see Security). null = unknown."}}}}}},"TokenSecurityResponse":{"type":"object","properties":{"chain":{"type":"string","description":"Always \"solana\"."},"network":{"type":"string","enum":["mainnet","devnet"]},"mintAuthorityRenounced":{"type":"boolean","description":"true = no more tokens can ever be minted."},"freezeable":{"type":"boolean","description":"true = a freeze authority exists (balances can be frozen)."},"mutableMetadata":{"type":["boolean","null"],"description":"Can the name/logo still be changed (DAS)."},"updateAuthority":{"type":["string","null"],"description":"The metadata update authority."},"isToken2022":{"type":"boolean","description":"Owned by the Token-2022 program."},"transferFee":{"type":["object","null"],"additionalProperties":true,"description":"{ basisPoints, maxFee } for Token-2022 fee tokens, else null."},"nonTransferable":{"type":"boolean","description":"Token-2022 hazards."},"permanentDelegate":{"type":"boolean","description":"Token-2022 hazards."},"supply":{"type":"object","additionalProperties":true,"description":"{ raw, decimals, uiAmount }."},"topHolders":{"type":"object","properties":{"top10AccountsPct":{"type":["number","null"],"description":"% held by the top-10 token ACCOUNTS (incl. LP/burn); null = unknown."},"top10OwnersPct":{"type":["number","null"],"description":"% held by the top-10 OWNER wallets, with identified pool vaults excluded — the cleaner insider-concentration signal. null = unknown."},"top10OwnersBasis":{"type":"string","description":"Always \"owners-excl-pool-vaults\"."}}},"creation":{"type":"object","additionalProperties":true,"description":"{ slot, unixTime, exact, olderThanScan } — only populated when exact=true."}}},"TokenMarketsResponse":{"type":"object","properties":{"chain":{"type":"string","description":"Always \"solana\"."},"network":{"type":"string","enum":["mainnet","devnet"]},"markets":{"type":"array","items":{"type":"object","properties":{"address":{"type":"string","description":"Pool/market address."},"dex":{"type":"string","description":"Venue."},"base":{"type":"object","additionalProperties":true,"description":"{ address, symbol } for each side."},"quote":{"type":"object","additionalProperties":true,"description":"{ address, symbol } for each side."},"liquidityUsd":{"type":["number","null"],"description":"Pool TVL."},"liquiditySource":{"type":["string","null"],"description":"raydium-onchain · dexscreener."},"reserves":{"type":["object","null"],"additionalProperties":true,"description":"Real on-chain depth for the dominant Raydium AMM v4 pool: { base, baseMint, basePriceUsd, quote, quoteMint, quotePriceUsd } (reserve amounts in whole tokens, each leg priced via Jupiter) — size slippage from the actual reserves. null for other pools/venues; never fabricated."},"volume24hUsd":{"type":["number","null"],"description":"OUR 24h volume for the pool (null if we don't index it)."},"createdAt":{"type":["string","null"],"description":"Pool creation time (ISO)."}}}}}},"TokenCoverageResponse":{"type":"object","properties":{"chain":{"type":"string","description":"Always \"solana\"."},"network":{"type":"string","enum":["mainnet","devnet"]},"lastConfirmedSlot":{"type":["number","null"],"description":"Highest slot whose candles are reconciled (confirmed=true)."},"lastReconcileSec":{"type":["number","null"],"description":"Unix time the contiguity reconciler last walked this mint."},"gapWindowsDetected":{"type":"number","description":"Interior gap windows the reconciler has detected."},"gapWindowsRepaired":{"type":"number","description":"Of those, how many a re-walk has back-filled (detected==repaired ⇒ contiguous)."},"unpricedSwapCount":{"type":"number","description":"Swaps held but not priceable to USD (excluded from candles)."},"earliestSwapSec":{"type":["number","null"],"description":"Unix time of the oldest swap we hold for this mint."},"note":{"type":["string","null"],"description":"Present (and figures zeroed) for non-mainnet networks we don't index."}}},"PriceMultiResponse":{"type":"object","properties":{"chain":{"type":"string","description":"Always \"solana\"."},"network":{"type":"string","enum":["mainnet","devnet"]},"data[mint]":{"type":"object","properties":{"priceUsd":{"type":["number","null"],"description":"Latest price."},"source":{"type":["string","null"],"description":"indexed (our reconciled price) or jupiter (spot fallback)."},"symbol":{"type":["string","null"],"description":"Ticker."},"updatedAt":{"type":["string","null"],"description":"Last update time."}}}}},"TokensBatchResponse":{"type":"object","properties":{"chain":{"type":"string","description":"Always \"solana\"."},"network":{"type":"string","enum":["mainnet","devnet"]},"endpoint":{"type":"string","description":"The read that was fanned out."},"count":{"type":"number","description":"Number of mints resolved (after dedupe + cap)."},"truncated":{"type":"boolean","description":"Present (true) when the list exceeded the 25-mint cap."},"data":{"type":"object","properties":{},"additionalProperties":{"type":"object","properties":{}}}}},"PlatformStatsResponse":{"type":"object","properties":{"chain":{"type":"string","description":"Always \"solana\"."},"network":{"type":"string","enum":["mainnet","devnet"]},"tokensIndexed":{"type":"number","description":"Tokens in our registry (exact)."},"swapsIngested":{"type":"number","description":"Approximate total swaps indexed (catalog statistics, not COUNT(*))."},"earliestSwapAt":{"type":["string","null"],"description":"Oldest indexed swap (ISO time); null before any swap."},"latestSwapAt":{"type":["string","null"],"description":"Newest indexed swap (ISO time)."},"freshnessSec":{"type":["number","null"],"description":"Seconds since the newest indexed swap."},"asOf":{"type":"string","description":"When this snapshot was computed (cached up to 60s)."}}},"PairOverviewResponse":{"type":"object","properties":{"chain":{"type":"string","description":"Always \"solana\"."},"network":{"type":"string","enum":["mainnet","devnet"]},"dex":{"type":"string","description":"Venue (raydium / orca / meteora)."},"base":{"type":"object","additionalProperties":true,"description":"{ address, symbol } for each side."},"quote":{"type":"object","additionalProperties":true,"description":"{ address, symbol } for each side."},"priceUsd":{"type":["number","null"],"description":"Latest swap price in the pool."},"liquidityUsd":{"type":["number","null"],"description":"Pool TVL."},"liquiditySource":{"type":["string","null"],"description":"raydium-onchain · dexscreener."},"volume24hUsd":{"type":"number","description":"OUR 24h activity for this pool."},"trades24h":{"type":"number","description":"OUR 24h activity for this pool."},"uniqueWallets24h":{"type":"number","description":"OUR 24h activity for this pool."},"totalTrades":{"type":"number","description":"All swaps we've indexed for the pool."},"createdAt":{"type":["string","null"],"description":"Pool creation time (DexScreener), if known."}}},"PairTradesResponse":{"type":"object","properties":{"chain":{"type":"string","description":"Always \"solana\"."},"network":{"type":"string","enum":["mainnet","devnet"]},"trades":{"type":"array","items":{"type":"object","properties":{"time":{"type":"number","description":"Block time (unix seconds)."},"side":{"type":"string","description":"buy or sell."},"baseMint":{"type":"string","description":"The traded token."},"dex":{"type":"string","description":"Venue."},"baseAmount":{"type":"number","description":"Token and quote-leg sizes."},"quoteAmount":{"type":"number","description":"Token and quote-leg sizes."},"priceUsd":{"type":["number","null"],"description":"Execution price and size."},"volumeUsd":{"type":["number","null"],"description":"Execution price and size."},"signer":{"type":"string","description":"The wallet and the pool."},"poolAddress":{"type":"string","description":"The wallet and the pool."}}}},"nextCursor":{"type":["string","null"],"description":"Pass as ?cursor= for the next page."}}},"PairOhlcvResponse":{"type":"object","properties":{"chain":{"type":"string","description":"Always \"solana\"."},"network":{"type":"string","enum":["mainnet","devnet"]},"data":{"type":"array","items":{"type":"object","properties":{"t":{"type":"number","description":"Candle open time (unix seconds)."},"o":{"type":"string","description":"Open, high, low, close (USD)."},"h":{"type":"string","description":"Open, high, low, close (USD)."},"l":{"type":"string","description":"Open, high, low, close (USD)."},"c":{"type":"string","description":"Open, high, low, close (USD)."},"v":{"type":"string","description":"USD volume in the bucket."},"trades":{"type":"number","description":"Swap count in the bucket."}}}}}},"WalletPortfolioResponse":{"type":"object","properties":{"chain":{"type":"string","description":"Always \"solana\"."},"network":{"type":"string","enum":["mainnet","devnet"]},"totalUsd":{"type":"number","description":"Sum of all valued holdings."},"tokenCount":{"type":"number","description":"Number of holdings (incl. native SOL)."},"items":{"type":"array","items":{"type":"object","properties":{"mint":{"type":"string","description":"The held token."},"symbol":{"type":"string","description":"The held token."},"uiAmount":{"type":"number","description":"Balance held."},"priceUsd":{"type":["number","null"],"description":"Unit price and position value."},"valueUsd":{"type":["number","null"],"description":"Unit price and position value."},"priceSource":{"type":["string","null"],"description":"indexed (our price) or jupiter (spot)."},"isNative":{"type":"boolean","description":"True for the native SOL row."}}}}}},"WalletTokenResponse":{"type":"object","properties":{"chain":{"type":"string","description":"Always \"solana\"."},"network":{"type":"string","enum":["mainnet","devnet"]},"uiAmount":{"type":"number","description":"Balance held (summed across token accounts)."},"priceUsd":{"type":["number","null"],"description":"Unit price and position value."},"valueUsd":{"type":["number","null"],"description":"Unit price and position value."},"priceSource":{"type":["string","null"],"description":"indexed or jupiter."}}},"WalletTradesResponse":{"type":"object","properties":{"chain":{"type":"string","description":"Always \"solana\"."},"network":{"type":"string","enum":["mainnet","devnet"]},"trades":{"type":"array","items":{"type":"object","properties":{"time":{"type":"number","description":"Block time (unix seconds)."},"side":{"type":"string","description":"buy or sell."},"baseMint":{"type":"string","description":"The token traded."},"dex":{"type":"string","description":"Venue."},"baseAmount":{"type":"number","description":"Token and quote-leg sizes."},"quoteAmount":{"type":"number","description":"Token and quote-leg sizes."},"priceUsd":{"type":["number","null"],"description":"Execution price and size."},"volumeUsd":{"type":["number","null"],"description":"Execution price and size."},"signer":{"type":"string","description":"The wallet (= this address) and the pool."},"poolAddress":{"type":"string","description":"The wallet (= this address) and the pool."}}}},"nextCursor":{"type":["string","null"],"description":"Pass as ?cursor= for the next page."}}},"WalletPnlResponse":{"type":"object","properties":{"chain":{"type":"string","description":"Always \"solana\"."},"network":{"type":"string","enum":["mainnet","devnet"]},"basis":{"type":"string","enum":["avgcost","fifo"],"description":"Cost-basis method used for this response."},"gasIncluded":{"type":"boolean","description":"true when realized PnL is gas-inclusive (gas=on with a configured per-swap estimate)."},"summary":{"type":"object","properties":{"realizedPnlUsd":{"type":"number","description":"Aggregate PnL across indexed tokens. When summaryComplete is false, totalPnlUsd is a FLOOR estimate (unpriced open positions contribute $0)."},"unrealizedPnlUsd":{"type":"number","description":"Aggregate PnL across indexed tokens. When summaryComplete is false, totalPnlUsd is a FLOOR estimate (unpriced open positions contribute $0)."},"totalPnlUsd":{"type":"number","description":"Aggregate PnL across indexed tokens. When summaryComplete is false, totalPnlUsd is a FLOOR estimate (unpriced open positions contribute $0)."},"roiPct":{"type":["number","null"],"description":"totalPnl / total invested, %."},"winRate":{"type":["number","null"],"description":"% of closed positions (those with a sell) that were profitable."},"totalInvestedUsd":{"type":"number","description":"USD bought / USD sold / total traded."},"totalProceedsUsd":{"type":"number","description":"USD bought / USD sold / total traded."},"totalVolumeUsd":{"type":"number","description":"USD bought / USD sold / total traded."},"tokensTraded":{"type":"number","description":"Counts (openPositions = tokens still held; pricedOpenPositions = those with a current price)."},"tradeCount":{"type":"number","description":"Counts (openPositions = tokens still held; pricedOpenPositions = those with a current price)."},"openPositions":{"type":"number","description":"Counts (openPositions = tokens still held; pricedOpenPositions = those with a current price)."},"pricedOpenPositions":{"type":"number","description":"Counts (openPositions = tokens still held; pricedOpenPositions = those with a current price)."},"basis":{"type":"string","description":"Cost-basis method used (avgcost or fifo)."},"totalGasUsd":{"type":"number","description":"Total estimated gas subtracted from realized PnL (0 unless gas=on)."},"nonTradeInflowTokens":{"type":"number","description":"Tokens whose sold quantity exceeded their bought quantity (likely transfer/airdrop inflows)."},"reconciled":{"type":"boolean","description":"true when positions were verified against on-chain balances; false when reconcile=false or the RPC read failed/timed out."},"balanceMismatchTokens":{"type":"number","description":"Tokens whose replay position disagreed with the on-chain balance (dust-tolerant)."},"summaryComplete":{"type":"boolean","description":"false when any open position lacks a current price — summary totals are then a floor estimate."},"unpricedOpenPositions":{"type":"number","description":"Open positions with no current price, and the cost basis sitting in them (excluded from unrealized PnL)."},"unpricedCostBasisUsd":{"type":"number","description":"Open positions with no current price, and the cost basis sitting in them (excluded from unrealized PnL)."},"priceCapExceeded":{"type":"boolean","description":"true when the wallet traded more distinct mints than the price-lookup cap — mints beyond it have no current price."},"stalePriceMints":{"type":"number","description":"Open priced positions whose price was last observed more than 10 minutes ago."}}},"truncated":{"type":"boolean","description":"true when swap history hit the replay cap (oldest swaps kept for cost-basis correctness) — later activity is NOT reflected."},"truncatedAt":{"type":["string","null"],"description":"Timestamp (ISO) of the last swap included when truncated; null otherwise."},"unindexedHoldings":{"type":"array","items":{"type":"object","properties":{"mint":{"type":"string","description":"A chain holding with zero swaps in our index — listed with no PnL claims. The array itself is null when reconciliation was skipped or failed."},"uiAmount":{"type":"number","description":"On-chain balance of that holding (ui units; native SOL is folded into wSOL)."}}}},"tokens":{"type":"array","items":{"type":"object","properties":{"realizedPnlUsd":{"type":"number","description":"Per-token realized PnL (gas-inclusive when gas=on)."},"unrealizedPnlUsd":{"type":["number","null"],"description":"Per-token unrealized / total PnL — null when an open position can't be priced."},"totalPnlUsd":{"type":["number","null"],"description":"Per-token unrealized / total PnL — null when an open position can't be priced."},"avgBuyPriceUsd":{"type":["number","null"],"description":"Weighted average entry / exit price."},"avgSellPriceUsd":{"type":["number","null"],"description":"Weighted average entry / exit price."},"heldQty":{"type":"number","description":"Open position size (replay) and its remaining cost basis."},"costBasisUsd":{"type":"number","description":"Open position size (replay) and its remaining cost basis."},"heldValueUsd":{"type":["number","null"],"description":"Value of the open position — null when unpriced; clamped to the chain balance when the replay over-states it."},"partial":{"type":"boolean","description":"true if the wallet sold more than we saw it buy (incomplete pre-index history)."},"coverage":{"type":["number","null"],"description":"Fraction of sold quantity with a swap-derived cost basis, in [0,1]; null when nothing was sold."},"nonTradeInflow":{"type":"boolean","description":"true when part of the position arrived off-book (transfer/airdrop) — sold more than bought, or the chain holds more than the replay accounts for."},"gasUsd":{"type":"number","description":"Estimated gas (USD) already subtracted from realizedPnlUsd (0 unless gas=on)."},"chainBalance":{"type":["object","null"],"additionalProperties":true,"description":"The wallet's actual on-chain balance ({ amountRaw, uiAmount }; native SOL folded into wSOL); null when reconciliation skipped/failed."},"balanceMismatch":{"type":"boolean","description":"balanceMismatch: replay vs chain disagree beyond dust. clampedUnrealized: the replay held MORE than the chain (a sell happened off our index) — the valued quantity was clamped and the un-held portion's outcome left out rather than guessed."},"clampedUnrealized":{"type":"boolean","description":"balanceMismatch: replay vs chain disagree beyond dust. clampedUnrealized: the replay held MORE than the chain (a sell happened off our index) — the valued quantity was clamped and the un-held portion's outcome left out rather than guessed."},"priceAsOf":{"type":["string","null"],"description":"When the current price was last observed (ISO) — staleness disclosure for unrealized PnL."},"indexedSince":{"type":["string","null"],"description":"Earliest swap we hold for this mint — \"all-time\" PnL starts here, not at the token's launch."},"note":{"type":["string","null"],"description":"Per-token caveat — e.g. the native-SOL read failed so wSOL was excluded from balance reconciliation this response. null otherwise."}}}}}},"RegisterResponse":{"type":"object","properties":{"chain":{"type":"string","description":"Always \"solana\"."},"network":{"type":"string","enum":["mainnet","devnet"]},"status":{"type":"string","description":"live (mainnet) / pending."},"subscription":{"type":"object","additionalProperties":true,"description":"{ created, novel, lockedUntil }."},"backfill":{"type":"object","additionalProperties":true,"description":"{ scheduled, chunks } or a reason it wasn't."},"usage":{"type":"object","additionalProperties":true,"description":"Slot usage after the change."},"statusUrl":{"type":"string","description":"Poll this for backfill progress."}}},"UnsubscribeResponse":{"type":"object","properties":{"chain":{"type":"string","description":"Always \"solana\"."},"network":{"type":"string","enum":["mainnet","devnet"]},"released":{"type":"boolean","description":"Whether the slot was freed."},"rotated":{"type":"boolean","description":"Whether a rotation was spent."},"usage":{"type":"object","additionalProperties":true,"description":"Slot usage after the change."}}},"MyMintsResponse":{"type":"object","properties":{"chain":{"type":"string","description":"Always \"solana\"."},"network":{"type":"string","enum":["mainnet","devnet"]},"tokens":{"type":"array","items":{"type":"array","items":{"type":"object","additionalProperties":true},"description":"Each: mint, network, symbol/name/logo, status, backfill progress, lockedUntil."}},"usage":{"type":"object","additionalProperties":true,"description":"Slot usage (activeSlots, includedMints, maxMints)."},"estimate":{"type":"object","additionalProperties":true,"description":"Estimated monthly cost (USDC)."}}},"BackfillStatusResponse":{"type":"object","properties":{"chain":{"type":"string","description":"Always \"solana\"."},"network":{"type":"string","enum":["mainnet","devnet"]},"status":{"type":"string","description":"The mint's tracking status."},"backfill":{"type":"object","additionalProperties":true,"description":"{ state, slotsTotal, slotsDone, swapsIngested }."}}},"HistoryFetchResponse":{"type":"object","properties":{"chain":{"type":"string","description":"Always \"solana\"."},"network":{"type":"string","enum":["mainnet","devnet"]},"enqueued":{"type":"boolean","description":"True when a backfill was queued; false when already indexed (see reason)."},"reason":{"type":"string","description":"When enqueued=false: already_indexed | invalid / why nothing was queued."},"statusUrl":{"type":"string","description":"Poll this (GET /v1/token/:mint/backfill) for progress."}}},"MeResponse":{"type":"object","properties":{"chain":{"type":"string","description":"Always \"solana\"."},"network":{"type":"string","enum":["mainnet","devnet"]},"plan":{"type":"string","description":"Your plan id."},"limits":{"type":"object","additionalProperties":true,"description":"The limits enforced for your plan (mint slots, quotas, rate limits, history window)."},"usage":{"type":"object","additionalProperties":true,"description":"Slots used, included mints, max mints, backfills used."},"estimate":{"type":"object","additionalProperties":true,"description":"Estimated monthly cost (USDC)."}}},"KeysResponse":{"type":"object","properties":{"chain":{"type":"string","description":"Always \"solana\"."},"network":{"type":"string","enum":["mainnet","devnet"]},"keys":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Key id (for revocation)."},"prefix":{"type":"string","description":"Masked display (the secret is shown only at creation)."},"lastFour":{"type":"string","description":"Masked display (the secret is shown only at creation)."},"lastUsedAt":{"type":["string","null"],"description":"Last time the key was used."}}}}}},"BillingSubscribeResponse":{"type":"object","properties":{"chain":{"type":"string","description":"Always \"solana\"."},"network":{"type":"string","enum":["mainnet","devnet"]},"subscription":{"type":"object","properties":{"status":{"type":"string","description":"incomplete until a USDC transfer is confirmed."},"amountUsdc":{"type":"number","description":"USDC to transfer for the period (months × cycle price, after any coupon)."},"coupon":{"type":["object","null"],"additionalProperties":true,"description":"{ code, cyclesRemaining } when a coupon is attached."}}},"payment":{"type":"object","additionalProperties":true,"description":"{ kind:'usdc-transfer', treasury, mint, amountUsdc, status } — what you'll pay, where. With a 100%-off coupon: { required: false, kind: 'free-cycle' } — just call /confirm."}}},"BillingCouponResponse":{"type":"object","properties":{"chain":{"type":"string","description":"Always \"solana\"."},"network":{"type":"string","enum":["mainnet","devnet"]},"valid":{"type":"boolean","description":"Whether the code can be redeemed right now (false → reason)."},"kind":{"type":"string","description":"percent (1-100) or fixed (USDC off per cycle)."},"value":{"type":"string","description":"percent (1-100) or fixed (USDC off per cycle)."},"durationCycles":{"type":["number","null"],"description":"How many cycles stay discounted (null = every cycle)."},"discountedCycleUsdc":{"type":"number","description":"One cycle's price with the coupon applied."},"totalUsdc":{"type":"number","description":"Exact total for the requested months (discounted + full cycles mixed)."}}},"BillingPayTxResponse":{"type":"object","properties":{"chain":{"type":"string","description":"Always \"solana\"."},"network":{"type":"string","enum":["mainnet","devnet"]},"tx":{"type":"string","description":"Base64 unsigned VersionedTransaction — deserialize and signAndSend with your wallet."},"amountUsdc":{"type":"number","description":"USDC the transfer moves to the treasury."},"reference":{"type":"string","description":"Solana-Pay reference key embedded in the transfer (how /confirm finds it)."},"treasury":{"type":"string","description":"The USDC receiver."},"alreadyPaid":{"type":"boolean","description":"If a prior payment already landed, true — you're activated, no need to pay again."}}},"BillingConfirmResponse":{"type":"object","properties":{"chain":{"type":"string","description":"Always \"solana\"."},"network":{"type":"string","enum":["mainnet","devnet"]},"activated":{"type":"boolean","description":"True once the transfer is verified and the plan is granted."},"receipt":{"type":"string","description":"The on-chain transfer signature (your receipt — explorer-linkable)."},"subscription":{"type":"object","additionalProperties":true,"description":"The updated subscription (status active, currentPeriodEnd = +30d)."}}},"BillingSubscriptionResponse":{"type":"object","properties":{"chain":{"type":"string","description":"Always \"solana\"."},"network":{"type":"string","enum":["mainnet","devnet"]},"plan":{"type":"string","description":"Your active plan (entitlements)."},"subscription":{"type":"object","additionalProperties":true,"description":"{ plan, status, amountUsdc, currentPeriodEnd, graceUntil, cancelAtPeriodEnd, failedAttempts } or null."},"events":{"type":"array","items":{"type":"array","items":{"type":"object","additionalProperties":true},"description":"Recent lifecycle events (created/activated/renewal_*/canceled/downgraded)."}},"plans":{"type":"array","items":{"type":"array","items":{"type":"object","additionalProperties":true},"description":"Purchasable plans with their USDC price."}}}},"BillingCancelResponse":{"type":"object","properties":{"chain":{"type":"string","description":"Always \"solana\"."},"network":{"type":"string","enum":["mainnet","devnet"]},"canceled":{"type":"boolean","description":"Whether the cancellation was scheduled."},"accessUntil":{"type":"string","description":"You keep the plan until this time (current period end)."}}},"BillingResumeResponse":{"type":"object","properties":{"chain":{"type":"string","description":"Always \"solana\"."},"network":{"type":"string","enum":["mainnet","devnet"]},"resumed":{"type":"boolean","description":"Whether the scheduled cancellation was cleared."},"subscription":{"type":"object","additionalProperties":true,"description":"The updated subscription (cancelAtPeriodEnd: false)."}}},"ReplayTxResponse":{"type":"object","properties":{"chain":{"type":"string","description":"Always \"solana\"."},"network":{"type":"string","enum":["mainnet","devnet"]},"slot":{"type":"number","description":"When the transaction landed."},"blockTime":{"type":"number","description":"When the transaction landed."},"feePayer":{"type":["string","null"],"description":"Fee payer, lamport fee, and on-chain error (null if it succeeded)."},"fee":{"type":["string","null"],"description":"Fee payer, lamport fee, and on-chain error (null if it succeeded)."},"err":{"type":["string","null"],"description":"Fee payer, lamport fee, and on-chain error (null if it succeeded)."},"programs":{"type":"array","items":{"type":"array","items":{"type":"object","additionalProperties":true},"description":"Programs the transaction touched (best-effort; ALT-loaded programs may be omitted)."}},"swapCount":{"type":"number","description":"Number of decoded swap legs."},"swaps":{"type":"array","items":{"type":"object","properties":{"dex":{"type":"string","description":"Venue and buy/sell."},"side":{"type":"string","description":"Venue and buy/sell."},"baseMint":{"type":"string","description":"The legs of the swap."},"quoteMint":{"type":"string","description":"The legs of the swap."},"baseAmount":{"type":"string","description":"The legs of the swap."},"quoteAmount":{"type":"string","description":"The legs of the swap."},"poolAddress":{"type":"string","description":"Pool and signer."},"signer":{"type":"string","description":"Pool and signer."}}}}}},"ReplaySlotResponse":{"type":"object","properties":{"chain":{"type":"string","description":"Always \"solana\"."},"network":{"type":"string","enum":["mainnet","devnet"]},"slot":{"type":"number","description":"The block and its time."},"blockTime":{"type":"number","description":"The block and its time."},"txCount":{"type":"number","description":"Transactions in the block."},"swapCount":{"type":"number","description":"Decoded swaps returned (capped at 1000)."},"truncated":{"type":"number","description":"Decoded swaps returned (capped at 1000)."},"swaps":{"type":"array","items":{"type":"object","properties":{"signature":{"type":"string","description":"The tx the swap came from (replay it with /replay/tx/:sig)."},"dex":{"type":"string","description":"Each decoded swap."},"side":{"type":"string","description":"Each decoded swap."},"baseMint":{"type":"string","description":"Each decoded swap."},"quoteMint":{"type":"string","description":"Each decoded swap."},"baseAmount":{"type":"string","description":"Each decoded swap."},"quoteAmount":{"type":"string","description":"Each decoded swap."},"poolAddress":{"type":"string","description":"Each decoded swap."},"signer":{"type":"string","description":"Each decoded swap."}}}}}}}}}