{"openapi":"3.0.0","paths":{"/config/all":{"get":{"operationId":"ConfigApiController_getAllConfig","parameters":[],"responses":{"200":{"description":"All config."}},"tags":["config"]}},"/config/relay/chain-id-map":{"get":{"operationId":"ConfigApiController_getRelayChainIdMap","parameters":[],"responses":{"200":{"description":"Chain id to intent relay chain id map."}},"tags":["config"]}},"/config/spoke/chains":{"get":{"operationId":"ConfigApiController_getChains","parameters":[],"responses":{"200":{"description":"Spoke chain IDs.","content":{"application/json":{"schema":{"type":"array","items":{"type":"string","enum":["0xa86a.avax","0xa4b1.arbitrum","0x2105.base","0x38.bsc","injective-1","sonic","0x1.icon","sui","0xa.optimism","0x89.polygon","solana","stellar","hyper","lightlink","near","ethereum","bitcoin","redbelly","0x2019.kaia","stacks","hedera","tron","robinhood","xrp","monad","ton","zcash","cardano"]}}}}}},"tags":["config"]}},"/config/spoke/all-chains-configs":{"get":{"operationId":"ConfigApiController_getSpokeChainsConfig","parameters":[],"responses":{"200":{"description":"Spoke chains config."}},"tags":["config"]}},"/config/hub/assets":{"get":{"operationId":"ConfigApiController_getHubAssets","parameters":[],"responses":{"200":{"description":"Assets representing spoke tokens on hub (Sonic) chain."}},"tags":["config"]}},"/config/hub/{chainId}/assets":{"get":{"operationId":"ConfigApiController_getHubAssetsByChainId","parameters":[{"name":"chainId","required":true,"in":"path","description":"The spoke chain id to get assets for","schema":{"type":"SpokeChainId","enum":["0xa86a.avax","0xa4b1.arbitrum","0x2105.base","0x38.bsc","injective-1","sonic","0x1.icon","sui","0xa.optimism","0x89.polygon","solana","stellar","hyper","lightlink","near","ethereum","bitcoin","redbelly","0x2019.kaia","stacks","hedera","tron","robinhood","xrp","monad","ton","zcash","cardano"]}}],"responses":{"200":{"description":"Assets representing spoke tokens on hub (Sonic) chain."}},"tags":["config"]}},"/config/swap/tokens":{"get":{"operationId":"ConfigApiController_getSwapTokens","parameters":[],"responses":{"200":{"description":"Tokens supported for swapping.","content":{"application/json":{"schema":{"type":"object","properties":{"0xa86a.avax":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"0xa4b1.arbitrum":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"0x2105.base":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"0x38.bsc":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"injective-1":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"sonic":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"0x1.icon":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"sui":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"0xa.optimism":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"0x89.polygon":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"solana":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"stellar":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"hyper":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"lightlink":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"near":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"ethereum":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"bitcoin":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"redbelly":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"0x2019.kaia":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"stacks":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"hedera":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"tron":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"robinhood":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"xrp":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"monad":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"ton":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"zcash":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"cardano":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}}},"additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}}}}}}},"tags":["config"]}},"/config/swap/{chainId}/tokens":{"get":{"operationId":"ConfigApiController_getSwapTokensByChainId","parameters":[{"name":"chainId","required":true,"in":"path","description":"The spoke chain id to get tokens for","schema":{"type":"SpokeChainId","enum":["0xa86a.avax","0xa4b1.arbitrum","0x2105.base","0x38.bsc","injective-1","sonic","0x1.icon","sui","0xa.optimism","0x89.polygon","solana","stellar","hyper","lightlink","near","ethereum","bitcoin","redbelly","0x2019.kaia","stacks","hedera","tron","robinhood","xrp","monad","ton","zcash","cardano"]}}],"responses":{"200":{"description":"Tokens supported for swapping.","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}}}}},"400":{"description":"Invalid chain id"},"404":{"description":"Chain not found"}},"tags":["config"]}},"/config/money-market/tokens":{"get":{"operationId":"ConfigApiController_getMoneyMarketTokens","parameters":[],"responses":{"200":{"description":"Money market supported spoke token s","content":{"application/json":{"schema":{"type":"object","properties":{"0xa86a.avax":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"0xa4b1.arbitrum":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"0x2105.base":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"0x38.bsc":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"injective-1":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"sonic":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"0x1.icon":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"sui":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"0xa.optimism":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"0x89.polygon":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"solana":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"stellar":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"hyper":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"lightlink":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"near":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"ethereum":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"bitcoin":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"redbelly":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"0x2019.kaia":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"stacks":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"hedera":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"tron":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"robinhood":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"xrp":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"monad":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"ton":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"zcash":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}},"cardano":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}}},"additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}}}}}}},"tags":["config"]}},"/config/money-market/reserve-assets":{"get":{"operationId":"ConfigApiController_getMoneyMarketReserveAssets","parameters":[],"responses":{"200":{"description":"Money market reserve assets.","content":{"application/json":{"schema":{"type":"array"}}}}},"tags":["config"]}},"/config/money-market/{chainId}/tokens":{"get":{"operationId":"ConfigApiController_getMoneyMarketTokensByChainId","parameters":[{"name":"chainId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Money markets supported for swapping.","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TokenDto"}}}}}},"tags":["config"]}},"/v2/config/all":{"get":{"operationId":"ConfigV2Controller_getAllConfig","parameters":[],"responses":{"200":{"description":"Full SODAX config plus its schema version."}},"tags":["config-v2"]}},"/v2/config/spoke/chains":{"get":{"operationId":"ConfigV2Controller_getChains","parameters":[],"responses":{"200":{"description":"Supported spoke chain keys.","content":{"application/json":{"schema":{"type":"array","items":{"type":"string","enum":["0xa86a.avax","0xa4b1.arbitrum","0x2105.base","0x38.bsc","injective-1","sonic","0x1.icon","sui","0xa.optimism","0x89.polygon","solana","stellar","hyper","lightlink","near","ethereum","bitcoin","redbelly","0x2019.kaia","stacks","hedera","tron","robinhood","xrp","monad","ton","zcash","cardano"]}}}}}},"tags":["config-v2"]}},"/v2/config/spoke/all-chains-configs":{"get":{"operationId":"ConfigV2Controller_getSpokeChainConfigs","parameters":[],"responses":{"200":{"description":"Full per-chain spoke config, keyed by chain key."}},"tags":["config-v2"]}},"/v2/config/swap/tokens":{"get":{"operationId":"ConfigV2Controller_getSwapTokens","parameters":[],"responses":{"200":{"description":"Swap-supported tokens, keyed by chain key.","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/XTokenDto"}}}}}}},"tags":["config-v2"]}},"/v2/config/swap/{chainKey}/tokens":{"get":{"operationId":"ConfigV2Controller_getSwapTokensByChain","parameters":[{"name":"chainKey","required":true,"in":"path","description":"Spoke chain key to get swap tokens for.","schema":{"type":"string","enum":["0xa86a.avax","0xa4b1.arbitrum","0x2105.base","0x38.bsc","injective-1","sonic","0x1.icon","sui","0xa.optimism","0x89.polygon","solana","stellar","hyper","lightlink","near","ethereum","bitcoin","redbelly","0x2019.kaia","stacks","hedera","tron","robinhood","xrp","monad","ton","zcash","cardano"]}}],"responses":{"200":{"description":"Swap-supported tokens for one chain.","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/XTokenDto"}}}}},"400":{"description":"Invalid chain key."}},"tags":["config-v2"]}},"/v2/config/money-market/tokens":{"get":{"operationId":"ConfigV2Controller_getMoneyMarketTokens","parameters":[],"responses":{"200":{"description":"Money-market-supported tokens, keyed by chain key.","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/XTokenDto"}}}}}}},"tags":["config-v2"]}},"/v2/config/money-market/reserve-assets":{"get":{"operationId":"ConfigV2Controller_getMoneyMarketReserveAssets","parameters":[],"responses":{"200":{"description":"Hub reserve-asset addresses.","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}}},"tags":["config-v2"]}},"/v2/config/money-market/{chainKey}/tokens":{"get":{"operationId":"ConfigV2Controller_getMoneyMarketTokensByChain","parameters":[{"name":"chainKey","required":true,"in":"path","description":"Spoke chain key to get money-market tokens for.","schema":{"type":"string","enum":["0xa86a.avax","0xa4b1.arbitrum","0x2105.base","0x38.bsc","injective-1","sonic","0x1.icon","sui","0xa.optimism","0x89.polygon","solana","stellar","hyper","lightlink","near","ethereum","bitcoin","redbelly","0x2019.kaia","stacks","hedera","tron","robinhood","xrp","monad","ton","zcash","cardano"]}}],"responses":{"200":{"description":"Money-market-supported tokens for one chain.","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/XTokenDto"}}}}},"400":{"description":"Invalid chain key."}},"tags":["config-v2"]}},"/v2/config/relay/chain-id-map":{"get":{"operationId":"ConfigV2Controller_getRelayChainIdMap","parameters":[],"responses":{"200":{"description":"SpokeChainKey → intent-relay chain id (decimal string on the wire).","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}}},"tags":["config-v2"]}},"/amm/nft-positions":{"get":{"operationId":"AmmController_getNftPositions","parameters":[{"name":"offset","required":false,"in":"query","description":"Offset (default 0)","schema":{"minimum":0,"default":0,"example":0,"type":"number"}},{"name":"limit","required":false,"in":"query","description":"Limit (default 50)","schema":{"minimum":1,"default":50,"example":50,"type":"number"}},{"name":"owner","required":false,"in":"query","description":"Account owner of positions","schema":{"example":"0x123..abc","type":"string"}}],"responses":{"200":{"description":"positions payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/nftPositionsListResponseDto"}}}},"400":{"description":"Invalid user address"}},"summary":"Get AMM NFT pool positions","tags":["AMM"]}},"/amm/volume":{"get":{"operationId":"AmmController_getVolume","parameters":[{"name":"days","required":false,"in":"query","description":"Trailing UTC days (default 7). Mutually exclusive with from/to.","schema":{"minimum":1,"maximum":365,"example":7,"type":"number"}},{"name":"from","required":false,"in":"query","description":"Window start, inclusive (UNIX seconds). Snapped down to the bucket boundary.","schema":{"example":1785283200,"type":"number"}},{"name":"to","required":false,"in":"query","description":"Window end, exclusive (UNIX seconds). Snapped DOWN to the bucket boundary, like from, so adjacent windows tile. Omit it to end at the current bucket.","schema":{"example":1785888000,"type":"number"}},{"name":"interval","required":false,"in":"query","description":"Bucket size. Defaults to 1h for short windows, 1d for wider ones.","schema":{"enum":["1h","1d"],"type":"string"}},{"name":"allTime","required":false,"in":"query","description":"Window from the oldest stored daily candle to now, as 1d buckets. Exclusive with days and from/to.","schema":{"enum":["true","false"],"type":"string"}},{"name":"chainId","required":false,"in":"query","description":"Defaults to this deployment","schema":{"example":146,"type":"number"}},{"name":"limit","required":false,"in":"query","description":"Pools per page (default 50, max 200). Affects pools[] only — summary always covers the whole window.","schema":{"minimum":1,"maximum":200,"example":50,"type":"number"}},{"name":"offset","required":false,"in":"query","description":"Pools to skip (default 0)","schema":{"minimum":0,"maximum":100000,"example":0,"type":"number"}}],"responses":{"200":{"description":"Volume KPIs and per-pool series","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AmmVolumeResponseDto"}}}},"400":{"description":"Invalid parameters — days 1..365, days with from/to, allTime with days/from/to, from >= to, a range narrower than one bucket once aligned, 1h over 31 days, or a window matching over 50000 candles"}},"summary":"USD volume KPIs and per-pool time series for the AMM (single-leg — see summary.volumeUsd)","tags":["AMM"]}},"/amm/pools/{chainId}/{poolId}/candles":{"get":{"operationId":"AmmController_getCandles","parameters":[{"name":"chainId","required":true,"in":"path","description":"Chain ID","schema":{"example":64165,"type":"number"}},{"name":"poolId","required":true,"in":"path","description":"Pool ID (bytes32 hex)","schema":{"example":"0xabc123...","type":"string"}},{"name":"interval","required":true,"in":"query","description":"Candle interval","schema":{"enum":["1m","5m","15m","1h","4h","1d"],"type":"string"}},{"name":"from","required":true,"in":"query","description":"Start time (UNIX seconds)","schema":{"example":1709251200,"type":"number"}},{"name":"to","required":true,"in":"query","description":"End time (UNIX seconds)","schema":{"example":1709337600,"type":"number"}}],"responses":{"200":{"description":"OHLCV candles","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AmmCandlesResponseDto"}}}},"400":{"description":"Invalid parameters"},"404":{"description":"Pool not found or no data available"}},"summary":"Get OHLCV candlestick data for an AMM pool","tags":["AMM"]}},"/oracle/candles":{"get":{"operationId":"OracleController_getCandles","parameters":[{"name":"symbol","required":true,"in":"query","description":"Canonical asset symbol","schema":{"example":"ETH","type":"string"}},{"name":"interval","required":true,"in":"query","description":"Candle interval","schema":{"enum":["1m","5m","1h","1d"],"type":"string"}},{"name":"from","required":true,"in":"query","description":"Start time (UNIX seconds, inclusive)","schema":{"example":1782234000,"type":"number"}},{"name":"to","required":true,"in":"query","description":"End time (UNIX seconds, exclusive)","schema":{"example":1782237600,"type":"number"}}],"responses":{"200":{"description":"USD-quoted OHLC candles (oldest first)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OracleCandlesResponseDto"}}}},"400":{"description":"Invalid parameters"}},"summary":"Get USD-quoted OHLC price candles for a canonical asset","tags":["Oracle"]}},"/oracle/latest":{"get":{"operationId":"OracleController_getLatest","parameters":[],"responses":{"200":{"description":"The raw price feed body as returned by the oracle origin","headers":{"X-Oracle-Fetched-At":{"description":"When this payload was fetched from the origin (ISO 8601)","schema":{"type":"string"}},"X-Oracle-Feed-Updated-At":{"description":"Publisher's freshest price timestamp in this payload (UNIX ms), 0 when unparseable","schema":{"type":"integer"}},"X-Oracle-Age-Ms":{"description":"Age of this payload (ms)","schema":{"type":"integer"}},"X-Oracle-Stale":{"description":"true when the age exceeds 120000ms — a publisher that has stopped moving, since a payload older than that from a failing origin is no longer served at all","schema":{"type":"boolean"}}}},"503":{"description":"The feed is disabled by configuration in this process"}},"summary":"Get the latest solver oracle price feed, verbatim","tags":["Oracle"]}},"/oracle/latest/meta":{"get":{"operationId":"OracleController_getLatestMeta","parameters":[],"responses":{"200":{"description":"Snapshot freshness metadata","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OracleLatestMetaDto"}}}},"503":{"description":"The feed is disabled by configuration in this process"}},"summary":"Freshness of the oracle snapshot held by the answering process","tags":["Oracle"]}},"/oracle/markets":{"get":{"operationId":"OracleController_getMarkets","parameters":[],"responses":{"200":{"description":"Discovery payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OracleMarketsResponseDto"}}}}},"summary":"List supported oracle intervals and candle-backed symbols","tags":["Oracle"]}},"/intent/tx/{txHash}":{"get":{"operationId":"IntentController_getIntentByTxHash","parameters":[{"name":"txHash","required":true,"in":"path","description":"The transaction hash associated with the intent to retrieve","schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{64}$"}}],"responses":{"200":{"description":"Intent by transaction hash.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetIntentByHashResponseDto"}}}},"400":{"description":"Invalid transaction hash"},"404":{"description":"Intent not found for txHash"}},"tags":["intent"]}},"/intent/user/{userAddress}":{"get":{"operationId":"IntentController_getIntentHistoryByUser","parameters":[{"name":"offset","required":false,"in":"query","description":"Pagination offset (default 0)","schema":{"minimum":0,"default":0,"example":0,"type":"number"}},{"name":"limit","required":false,"in":"query","description":"Pagination limit (default 50)","schema":{"minimum":1,"default":50,"example":50,"type":"number"}},{"name":"fromBlock","required":false,"in":"query","description":"Inclusive lower bound on blockNumber (chain-native ordering)","schema":{"minimum":0,"example":1000000,"type":"number"}},{"name":"toBlock","required":false,"in":"query","description":"Inclusive upper bound on blockNumber (chain-native ordering)","schema":{"minimum":0,"example":2000000,"type":"number"}},{"name":"userAddress","required":true,"in":"path","description":"User address associated with the intent (creator, src or dst)","schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}}],"responses":{"200":{"description":"Intent history for the user address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntentHistoryResponseDto"}}}},"400":{"description":"Invalid user address or pagination parameters"}},"tags":["intent"]}},"/intent/{intentHash}":{"get":{"operationId":"IntentController_getIntent","parameters":[{"name":"open","required":false,"in":"query","description":"When `true`, return ONLY the currently-open instance for this intentHash (scopes to the unique `(intentHash, open=true)` instance instead of an arbitrary historical recurrence).","schema":{"type":"boolean"}},{"name":"intentHash","required":true,"in":"path","description":"The hash of the intent to retrieve","schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{64}$"}}],"responses":{"200":{"description":"Intent by intentHash.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetIntentByHashResponseDto"}}}},"400":{"description":"Invalid intent hash"},"404":{"description":"Intent not found for intentHash"}},"tags":["intent"]}},"/solver/orderbook":{"get":{"description":"Returns paginated orderbook entries, newest first. Supports optional filters by chain, token, creator, and deadline.","operationId":"SolverController_getOrderbook","parameters":[{"name":"limit","required":false,"in":"query","description":"Max results (cap 500)","schema":{"minimum":1,"maximum":500,"default":20,"example":20,"type":"number"}},{"name":"offset","required":false,"in":"query","description":"Offset (for simple paging)","schema":{"minimum":0,"default":0,"example":0,"type":"number"}},{"name":"srcChain","required":false,"in":"query","description":"Filter by source chain id","schema":{"example":21,"type":"number"}},{"name":"dstChain","required":false,"in":"query","description":"Filter by destination chain id","schema":{"example":23,"type":"number"}},{"name":"inputToken","required":false,"in":"query","description":"Filter by input token address","schema":{"example":"0x4676b2a551b25c04e235553c1C81019337384673","type":"string"}},{"name":"outputToken","required":false,"in":"query","description":"Filter by output token address","schema":{"example":"0xdB7BdA65c3a1C51D64dC4444e418684677334109","type":"string"}},{"name":"creator","required":false,"in":"query","description":"Filter by creator address","schema":{"example":"0xc2F8215962fa3AB238c96B7E73a17edcE0Cacd31","type":"string"}},{"name":"deadlineBefore","required":false,"in":"query","description":"Only return intents with `deadline < value`. Unit matches the on-chain `deadline` field (Unix seconds — e.g. `Math.floor(Date.now() / 1000)` in JS). Combine with `excludeZeroDeadline=true` to fetch expired intents.","schema":{"minimum":0,"maximum":9007199254740991,"example":1776729600,"type":"number"}},{"name":"deadlineAfter","required":false,"in":"query","description":"Only return intents with `deadline > value` (Unix seconds, matches on-chain unit).","schema":{"minimum":0,"maximum":9007199254740991,"example":1776729600,"type":"number"}},{"name":"excludeZeroDeadline","required":false,"in":"query","description":"Exclude intents where `deadline = 0` (intents without a deadline).","schema":{"default":false,"example":false,"type":"boolean"}}],"responses":{"200":{"description":"Orderbook page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderbookResponseType"}}}},"400":{"description":"Invalid query parameters"}},"summary":"List recent orderbook entries","tags":["Solver"]}},"/solver/volume":{"get":{"description":"Returns filled intent records with filters and keyset pagination. `amount` is a stringified Decimal128. Use `cursor` for the next page.","operationId":"SolverController_listEvents","parameters":[{"name":"chainId","required":false,"in":"query","description":"Chain ID filter","schema":{"example":146,"type":"number"}},{"name":"inputToken","required":false,"in":"query","description":"Filter by input token (fee token)","schema":{"example":"0x13b70564b1ec12876B20FAb5D1Bb630311312f4f","type":"string"}},{"name":"outputToken","required":false,"in":"query","description":"Filter by output token (volume token)","schema":{"example":"0xDcd9578b51EF55239B6e68629D822A8D97C95b86","type":"string"}},{"name":"solver","required":false,"in":"query","description":"Filter by solver address","schema":{"example":"0x0000000000000000000000000000000000000000","type":"string"}},{"name":"fromBlock","required":false,"in":"query","description":"Inclusive block lower bound","schema":{"minimum":0,"example":19553957,"type":"number"}},{"name":"toBlock","required":false,"in":"query","description":"Inclusive block upper bound","schema":{"minimum":0,"example":19590151,"type":"number"}},{"name":"since","required":false,"in":"query","description":"Inclusive start timestamp (ISO 8601)","schema":{"example":"2025-04-11T00:00:00.000Z","type":"string"}},{"name":"until","required":false,"in":"query","description":"Inclusive end timestamp (ISO 8601)","schema":{"example":"2025-04-12T00:00:00.000Z","type":"string"}},{"name":"fromTs","required":false,"in":"query","description":"Inclusive start timestamp in unix seconds (used when since is not provided)","schema":{"minimum":0,"example":1712793600,"type":"number"}},{"name":"toTs","required":false,"in":"query","description":"Inclusive end timestamp in unix seconds (used when until is not provided)","schema":{"minimum":0,"example":1712880000,"type":"number"}},{"name":"sort","required":false,"in":"query","description":"Sort by block/log order","schema":{"default":"desc","type":"string","enum":["asc","desc"]}},{"name":"limit","required":false,"in":"query","description":"Max items to return (cap 500)","schema":{"minimum":1,"default":50,"example":50,"type":"number"}},{"name":"includeData","required":false,"in":"query","description":"Include raw `data` field in results","schema":{"default":false,"example":false,"type":"boolean"}},{"name":"cursor","required":false,"in":"query","description":"Opaque base64 cursor of {\"b\":blockNumber,\"l\":logIndex,\"t\":txHash}","schema":{"pattern":"^[A-Za-z0-9+/=]+$","example":"eyJiIjoxOTU4Nzk2NywibCI6MTMsInQiOiIweGYyMjE3OSJ9","type":"string"}}],"responses":{"200":{"description":"Cursored list of filled intents (solver volume)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListEventsResponseDto"}}}},"400":{"description":"Invalid query parameters"}},"summary":"List solver volume (filled intents), paginated","tags":["Solver"]}},"/solver/volume/stats":{"get":{"description":"Returns the approximate total number of filled-intent records in `solver_volume`. This counts fill documents, not distinct intents: partial fills contribute one record per fill event, and `intentHash` is not unique across time. Backed by `estimatedDocumentCount` (collection-metadata read, no scan — safe to poll); cached 60s.","operationId":"SolverController_getVolumeStats","parameters":[],"responses":{"200":{"description":"Filled-intent count","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolverVolumeStatsResponseDto"}}}}},"summary":"Aggregate solver volume stats (filled-intent count)","tags":["Solver"]}},"/solver/intents/{intentHash}":{"get":{"description":"By default returns the latest filled intent for this hash (handles legacy collisions). If `includeAll=true`, returns all historical docs for that hash.","operationId":"SolverController_getIntent","parameters":[{"name":"intentHash","required":true,"in":"path","description":"Intent hash","schema":{"example":"0xc45dc027b3ed39955b79819e0b3c07c356f6d716b7ccd6afa55d56dc7b54379d","type":"string"}},{"name":"includeAll","required":false,"in":"query","description":"Return all docs with this hash (legacy collisions)","schema":{"default":false,"example":false,"type":"boolean"}}],"responses":{"200":{"description":"Latest intent OR all intent documents depending on `includeAll`","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/LatestIntentResponseDto"},{"$ref":"#/components/schemas/AllIntentDocsResponseDto"}]}}}},"400":{"description":"Invalid path/query parameters"},"404":{"description":"No filled intent found for the given hash"}},"summary":"Get intent by hash","tags":["Solver"]}},"/moneymarket/position/{userAddress}":{"get":{"operationId":"MoneyMarketController_getUserPosition","parameters":[{"name":"userAddress","required":true,"in":"path","description":"User wallet address","schema":{"type":"string"}}],"responses":{"200":{"description":"User position payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetUserPositionResponseDto"}}}},"400":{"description":"Invalid user address"},"404":{"description":"User position not found"}},"summary":"Get user money market position","tags":["Money Market"]}},"/moneymarket/asset/all":{"get":{"operationId":"MoneyMarketController_getAllAssets","parameters":[],"responses":{"200":{"description":"Array of assets","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AssetResponseDto"}}}}}},"summary":"List all money market assets","tags":["Money Market"]}},"/moneymarket/asset/{reserveAddress}":{"get":{"operationId":"MoneyMarketController_getAsset","parameters":[{"name":"reserveAddress","required":true,"in":"path","description":"Reserve token address","schema":{"example":"0xabc..."}}],"responses":{"200":{"description":"Asset payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetResponseDto"}}}},"400":{"description":"Invalid reserve address"},"404":{"description":"Asset not found"}},"summary":"Get asset by reserve address","tags":["Money Market"]}},"/moneymarket/asset/{reserveAddress}/borrowers":{"get":{"operationId":"MoneyMarketController_getBorrowers","parameters":[{"name":"offset","required":false,"in":"query","description":"Offset (default 0)","schema":{"minimum":0,"default":0,"example":0,"type":"number"}},{"name":"limit","required":false,"in":"query","description":"Limit (default 50)","schema":{"minimum":0,"default":0,"example":50,"type":"number"}},{"name":"reserveAddress","required":true,"in":"path","description":"Reserve token address","schema":{"example":"0xabc..."}}],"responses":{"200":{"description":"Borrowers page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BorrowersResultDto"}}}},"400":{"description":"Invalid parameters"}},"summary":"List borrowers for a reserve address","tags":["Money Market"]}},"/moneymarket/asset/{reserveAddress}/suppliers":{"get":{"operationId":"MoneyMarketController_getSuppliers","parameters":[{"name":"offset","required":false,"in":"query","description":"Offset (default 0)","schema":{"minimum":0,"default":0,"example":0,"type":"number"}},{"name":"limit","required":false,"in":"query","description":"Limit (default 50)","schema":{"minimum":0,"default":0,"example":50,"type":"number"}},{"name":"reserveAddress","required":true,"in":"path","description":"Reserve token address","schema":{"example":"0xabc..."}}],"responses":{"200":{"description":"Suppliers page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuppliersResultDto"}}}},"400":{"description":"Invalid parameters"}},"summary":"List suppliers for a reserve address","tags":["Money Market"]}},"/moneymarket/borrowers":{"get":{"operationId":"MoneyMarketController_getAllBorrowers","parameters":[{"name":"offset","required":false,"in":"query","description":"Offset (default 0)","schema":{"minimum":0,"default":0,"example":0,"type":"number"}},{"name":"limit","required":false,"in":"query","description":"Limit (default 50)","schema":{"minimum":0,"default":0,"example":50,"type":"number"}}],"responses":{"200":{"description":"Borrowers page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BorrowersResultDto"}}}},"400":{"description":"Invalid parameters"}},"summary":"List all borrowers (paged)","tags":["Money Market"]}},"/partners":{"get":{"operationId":"PartnersController_list","parameters":[{"name":"chainId","required":false,"in":"query","description":"Chain ID","schema":{"default":146,"example":146,"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnersListResponseDto"}}}},"400":{"description":"Invalid query parameters"}},"tags":["Partners"]}},"/partners/{receiver}/summary":{"get":{"operationId":"PartnersController_summary","parameters":[{"name":"receiver","required":true,"in":"path","description":"Partner address","schema":{"example":"0x0Ab764AB3816cD036Ea951bE973098510D8105A6","type":"string"}},{"name":"chainId","required":false,"in":"query","description":"Chain ID","schema":{"default":146,"example":146,"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerSummaryResponseDto"}}}},"400":{"description":"Invalid receiver address or query"},"404":{"description":"Partner not found on specified chain"}},"tags":["Partners"]}},"/partners/volume":{"get":{"operationId":"PartnersVolumeController_partners","parameters":[{"name":"from","required":false,"in":"query","description":"Start time, UNIX seconds, inclusive. Any value is accepted and is WIDENED down to the 86400s UTC day it falls in, so a range never returns less than asked. The window actually served is echoed back as from/to. Required unless allTime=true.","schema":{"example":1780272000,"type":"number"}},{"name":"to","required":false,"in":"query","description":"End time, UNIX seconds, exclusive. Any value is accepted and is WIDENED up to the next 86400s UTC day boundary. The window actually served is echoed back as from/to — and because BOTH ends widen outwards, two adjacent ranges can overlap by up to a day, so page on the echoed window rather than the one you asked for. Required unless allTime=true.","schema":{"example":1782950400,"type":"number"}},{"name":"receiver","required":false,"in":"query","description":"Filter to one partner (fee receiver wallet), any casing","schema":{"example":"0x0Ab764AB3816cD036Ea951bE973098510D8105A6","type":"string"}},{"name":"token","required":false,"in":"query","description":"Filter to one OUTPUT token (hub asset address), any casing","schema":{"example":"0xc9e4f0B6195F389D9d2b639f2878B7674eB9D8cD","type":"string"}},{"name":"allTime","required":false,"in":"query","description":"Serve the whole history instead of an explicit window — the one sanctioned way past the 365-day cap. Mutually exclusive with from/to.","schema":{"type":"string","enum":["true","false"]}},{"name":"chainId","required":false,"in":"query","description":"Chain ID","schema":{"example":146,"type":"number"}},{"name":"limit","required":false,"in":"query","description":"Page size, 1-500","schema":{"minimum":1,"maximum":500,"example":50,"type":"number"}},{"name":"offset","required":false,"in":"query","description":"Partners to skip, 0-100000","schema":{"minimum":0,"maximum":100000,"example":0,"type":"number"}}],"responses":{"200":{"description":"Per-partner volume totals in range","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnersVolumeResponseDto"}}}},"400":{"description":"Invalid query parameters"}},"tags":["Partners"]}},"/partners/volume/total":{"get":{"operationId":"PartnersVolumeController_total","parameters":[{"name":"from","required":false,"in":"query","description":"Start time, UNIX seconds, inclusive. Any value is accepted and is WIDENED down to the 86400s UTC day it falls in, so a range never returns less than asked. The window actually served is echoed back as from/to. Required unless allTime=true.","schema":{"example":1780272000,"type":"number"}},{"name":"to","required":false,"in":"query","description":"End time, UNIX seconds, exclusive. Any value is accepted and is WIDENED up to the next 86400s UTC day boundary. The window actually served is echoed back as from/to — and because BOTH ends widen outwards, two adjacent ranges can overlap by up to a day, so page on the echoed window rather than the one you asked for. Required unless allTime=true.","schema":{"example":1782950400,"type":"number"}},{"name":"receiver","required":false,"in":"query","description":"Filter to one partner (fee receiver wallet), any casing","schema":{"example":"0x0Ab764AB3816cD036Ea951bE973098510D8105A6","type":"string"}},{"name":"token","required":false,"in":"query","description":"Filter to one OUTPUT token (hub asset address), any casing. Volume attributes to the output leg — see the `amount` field on the token rows.","schema":{"example":"0xc9e4f0B6195F389D9d2b639f2878B7674eB9D8cD","type":"string"}},{"name":"allTime","required":false,"in":"query","description":"Serve the whole history instead of an explicit window — the one sanctioned way past the 365-day cap. Mutually exclusive with from/to.","schema":{"type":"string","enum":["true","false"]}},{"name":"chainId","required":false,"in":"query","description":"Chain ID","schema":{"example":146,"type":"number"}}],"responses":{"200":{"description":"Range-wide volume totals","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnersVolumeTotalResponseDto"}}}},"400":{"description":"Invalid query parameters"}},"tags":["Partners"]}},"/partners/volume/tokens":{"get":{"operationId":"PartnersVolumeController_tokens","parameters":[{"name":"from","required":false,"in":"query","description":"Start time, UNIX seconds, inclusive. Any value is accepted and is WIDENED down to the 86400s UTC day it falls in, so a range never returns less than asked. The window actually served is echoed back as from/to. Required unless allTime=true.","schema":{"example":1780272000,"type":"number"}},{"name":"to","required":false,"in":"query","description":"End time, UNIX seconds, exclusive. Any value is accepted and is WIDENED up to the next 86400s UTC day boundary. The window actually served is echoed back as from/to — and because BOTH ends widen outwards, two adjacent ranges can overlap by up to a day, so page on the echoed window rather than the one you asked for. Required unless allTime=true.","schema":{"example":1782950400,"type":"number"}},{"name":"receiver","required":false,"in":"query","description":"Filter to one partner (fee receiver wallet), any casing","schema":{"example":"0x0Ab764AB3816cD036Ea951bE973098510D8105A6","type":"string"}},{"name":"token","required":false,"in":"query","description":"Filter to one OUTPUT token (hub asset address), any casing. Volume attributes to the output leg — see the `amount` field on the token rows.","schema":{"example":"0xc9e4f0B6195F389D9d2b639f2878B7674eB9D8cD","type":"string"}},{"name":"allTime","required":false,"in":"query","description":"Serve the whole history instead of an explicit window — the one sanctioned way past the 365-day cap. Mutually exclusive with from/to.","schema":{"type":"string","enum":["true","false"]}},{"name":"chainId","required":false,"in":"query","description":"Chain ID","schema":{"example":146,"type":"number"}}],"responses":{"200":{"description":"Per-output-token volume totals in range","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnersVolumeTokensResponseDto"}}}},"400":{"description":"Invalid query parameters"}},"tags":["Partners"]}},"/partners/volume/series":{"get":{"operationId":"PartnersVolumeController_series","parameters":[{"name":"from","required":false,"in":"query","description":"Start time, UNIX seconds, inclusive. Any value is accepted and is WIDENED down to the 86400s UTC day it falls in, so a range never returns less than asked. The window actually served is echoed back as from/to. Required unless allTime=true.","schema":{"example":1780272000,"type":"number"}},{"name":"to","required":false,"in":"query","description":"End time, UNIX seconds, exclusive. Any value is accepted and is WIDENED up to the next 86400s UTC day boundary. The window actually served is echoed back as from/to — and because BOTH ends widen outwards, two adjacent ranges can overlap by up to a day, so page on the echoed window rather than the one you asked for. Required unless allTime=true.","schema":{"example":1782950400,"type":"number"}},{"name":"receiver","required":false,"in":"query","description":"Filter to one partner (fee receiver wallet), any casing","schema":{"example":"0x0Ab764AB3816cD036Ea951bE973098510D8105A6","type":"string"}},{"name":"token","required":false,"in":"query","description":"Filter to one OUTPUT token (hub asset address), any casing","schema":{"example":"0xc9e4f0B6195F389D9d2b639f2878B7674eB9D8cD","type":"string"}},{"name":"allTime","required":false,"in":"query","description":"Serve the whole history instead of an explicit window — the one sanctioned way past the 365-day cap. Mutually exclusive with from/to.","schema":{"type":"string","enum":["true","false"]}},{"name":"chainId","required":false,"in":"query","description":"Chain ID","schema":{"example":146,"type":"number"}},{"name":"interval","required":false,"in":"query","description":"Bucket size: UTC days (default), UTC weeks starting Monday, or UTC calendar months","schema":{"default":"1d","type":"string","enum":["1d","1w","1M"]}}],"responses":{"200":{"description":"Gap-free volume series","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnersVolumeSeriesResponseDto"}}}},"400":{"description":"Invalid query parameters, or a range spanning too many buckets"}},"tags":["Partners"]}},"/sodax/total_supply":{"get":{"operationId":"SodaxController_getTotalSupply","parameters":[],"responses":{"200":{"description":"total supply","content":{"application/json":{"schema":{"type":"string"}}}},"404":{"description":"Sodax supply data not found"}},"summary":"Returns total supply of sodax token","tags":["Sodax Token"]}},"/sodax/circulating_supply":{"get":{"operationId":"SodaxController_getCirculatingSupply","parameters":[],"responses":{"200":{"description":"circulating supply","content":{"application/json":{"schema":{"type":"string"}}}},"404":{"description":"Sodax supply data not found"}},"summary":"Returns circulating supply of sodax token","tags":["Sodax Token"]}},"/sodax/supply":{"get":{"operationId":"SodaxController_getSupply","parameters":[],"responses":{"200":{"description":"sodax supply document","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Sodax supply data not found"}},"summary":"Returns all sodax supply data","tags":["Sodax Token"]}}},"info":{"title":"SODAX Backend API","description":"API documentation for SODAX Backend","version":"1.0","contact":{}},"tags":[],"servers":[{"url":"https://api.sodax.com/v1/be","description":"Main API server"},{"url":"http://localhost:3006","description":"Local dev server"},{"url":"http://localhost:3004","description":"Local prod server"},{"url":"https://apiv1.coolify.iconblockchain.xyz","description":"Secondary API server"}],"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http","in":"header"}},"schemas":{"TokenDto":{"type":"object","properties":{"symbol":{"type":"string"},"name":{"type":"string"},"address":{"type":"string"},"decimals":{"type":"number"}},"required":["symbol","name","address","decimals"]},"XTokenDto":{"type":"object","properties":{"symbol":{"type":"string","example":"USDC"},"name":{"type":"string","example":"USD Coin"},"decimals":{"type":"number","example":6},"address":{"type":"string","example":"0xb44a9b6905af7c801311e8f4e76932ee959c663c","description":"Token address on its spoke chain."},"chainKey":{"type":"string","example":"0xa86a.avax","description":"SODAX spoke chain key."},"hubAsset":{"type":"string","example":"0x...","description":"Corresponding hub-side asset address on Sonic."},"vault":{"type":"string","example":"0x...","description":"Hub vault address that custodies bridged liquidity."},"access":{"type":"string","enum":["withdrawOnly","depositOnly"],"description":"Access restriction; omitted for full access."}},"required":["symbol","name","decimals","address","chainKey","hubAsset","vault"]},"nftPositionResponseDto":{"type":"object","properties":{"tokenId":{"type":"string","description":"The NFT position token id","example":"12345"},"owner":{"type":"string","description":"The owner address","example":"0x76c9dffff4cbac4f5e5d13f7f5f5c78df5475bc1"},"poolId200":{"type":"object","description":"Top 200 bits of the pool id","example":"0x1234567890abcdef","nullable":true},"currency0":{"type":"object","description":"First currency (token address) of the pool","example":"0x4effb5813271699683c25c734f4dabc45b363709","nullable":true},"currency1":{"type":"object","description":"Second currency (token address) of the pool","example":"0x9cecb9acec7ddb602024a789c7831e1b197cf369","nullable":true}},"required":["tokenId","owner","poolId200","currency0","currency1"]},"nftPositionsPaginationDto":{"type":"object","properties":{"offset":{"type":"number"},"limit":{"type":"number"},"returned":{"type":"number"},"hasMore":{"type":"boolean"},"nextOffset":{"type":"object","nullable":true}},"required":["offset","limit","returned","hasMore","nextOffset"]},"nftPositionsListResponseDto":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/nftPositionResponseDto"}},"pagination":{"$ref":"#/components/schemas/nftPositionsPaginationDto"}},"required":["items","pagination"]},"AmmVolumeSummaryDto":{"type":"object","properties":{"tradeCount":{"type":"number","description":"Swaps in the window, priced or not.","example":1985},"usdPricedTrades":{"type":"object","description":"Swaps whose USD value is included in volumeUsd. Less than tradeCount ⇒ partial coverage. NULL — not 0 — when no bucket in scope carries a count at all, i.e. nothing here has ever been through USD pricing.","example":592,"nullable":true},"usdPricedFrom":{"type":"object","description":"Earliest bucket carrying a USD figure (UNIX seconds), or null when nothing is priced. Anything before it is unpriced, not zero — render the boundary rather than a flat line.","example":1785283200,"nullable":true},"volumeUsd":{"type":"object","description":"Total USD volume across all pools. ONE leg per swap — a swap values the token in and the token out, so summing both would double-count every trade. Null when nothing in the window is priced. ⚠️ Each deployment prices a swap once, at ingest, from what it knew at that instant, and production runs two independent stacks behind a round-robin — so two identical requests may return slightly different figures for the same window until the re-derive in #1264 lands. tradeCount and the volumes are NOT affected; this applies to the USD figures only.","example":1284302.55,"nullable":true},"poolCount":{"type":"number","description":"Pools that traded in the window","example":5},"unpricedPools":{"type":"number","description":"Of those, how many have no USD at all. Their trades are in tradeCount but contribute nothing to volumeUsd. This number does NOT say WHY, and the causes are indistinguishable once stored: the candle predates USD pricing entirely (the dominant cause over any window reaching back before it, including allTime), the token address is absent from the @sodax/types hub-asset catalog, the catalog symbol is unmapped in oracle_tracked_assets, no oracle candle covers the bucket, or the price store was unreachable when the batch was priced. Do not read this as a mapping gap.","example":1},"avgTradeSizeUsd":{"type":"object","description":"volumeUsd ÷ usdPricedTrades — averaged over PRICED trades only, since the unpriced ones contributed no USD. Null when nothing is priced.","example":646.99,"nullable":true}},"required":["tradeCount","usdPricedTrades","volumeUsd","poolCount","unpricedPools","avgTradeSizeUsd"]},"AmmVolumePointDto":{"type":"object","properties":{"timestamp":{"type":"number","description":"Bucket start, UTC (UNIX seconds)","example":1785283200},"volumeUsd":{"type":"object","description":"USD volume for the bucket, or null when it could not be priced. Never 0 for \"unknown\".","example":120345,"nullable":true},"tradeCount":{"type":"number","description":"Swaps in the bucket","example":214},"usdPricedTrades":{"type":"object","description":"Swaps in the bucket included in volumeUsd. Null when the bucket carries no count — a candle written before USD pricing existed, which is NOT the same as a bucket the pricer ran on and priced nothing (that is 0).","example":214,"nullable":true}},"required":["timestamp","volumeUsd","tradeCount","usdPricedTrades"]},"AmmVolumePoolDto":{"type":"object","properties":{"tradeCount":{"type":"number","description":"Swaps in the window, priced or not.","example":1985},"usdPricedTrades":{"type":"object","description":"Swaps whose USD value is included in volumeUsd. Less than tradeCount ⇒ partial coverage. NULL — not 0 — when no bucket in scope carries a count at all, i.e. nothing here has ever been through USD pricing.","example":592,"nullable":true},"usdPricedFrom":{"type":"object","description":"Earliest bucket carrying a USD figure (UNIX seconds), or null when nothing is priced. Anything before it is unpriced, not zero — render the boundary rather than a flat line.","example":1785283200,"nullable":true},"poolId":{"type":"string","description":"Pool ID (bytes32 hex)","example":"0x33c032fb4172..."},"symbol0":{"type":"object","description":"token0 symbol, null when unresolved on-chain","example":"waLocETH","nullable":true},"symbol1":{"type":"object","description":"token1 symbol, null when unresolved on-chain","example":"bnUSD","nullable":true},"symbol0Source":{"type":"string","enum":["catalog","onchain"],"description":"Where symbol0 came from. 'catalog' = the curated @sodax/types hub-asset record for this address. 'onchain' = the token's own symbol() string, which is whatever its deployer chose — anyone can create a pool, so treat it as a claim, not an identity. Null when no label resolved.","example":"catalog","nullable":true},"symbol1Source":{"type":"string","enum":["catalog","onchain"],"description":"Where symbol1 came from — see symbol0Source.","example":"onchain","nullable":true},"volumeUsd":{"type":"object","description":"Total USD volume for the pool over the window; null when the pool has no priced bucket. One valuation per swap, chosen at ingest (token0, falling back to token1 where token0 is unpriceable).","example":842190.1,"nullable":true},"points":{"description":"One entry per bucket in the window that the pool traded on, oldest first. Bucket size is the response `interval`. Buckets with no swaps are absent, not zero-filled.","type":"array","items":{"$ref":"#/components/schemas/AmmVolumePointDto"}}},"required":["tradeCount","usdPricedTrades","poolId","volumeUsd","points"]},"AmmVolumePaginationDto":{"type":"object","properties":{"offset":{"type":"number","description":"Pools skipped","example":0},"limit":{"type":"number","description":"Page size applied after clamping","example":50},"hasMore":{"type":"boolean","description":"Whether more pools follow this page","example":false},"returned":{"type":"number","description":"Pools in this page","example":5},"nextOffset":{"type":"object","description":"Offset for the next page, or null at the end","example":null,"nullable":true}},"required":["offset","limit","hasMore","returned"]},"AmmVolumeResponseDto":{"type":"object","properties":{"chainId":{"type":"number","description":"Chain ID","example":146},"from":{"type":"number","description":"Window start, inclusive (UNIX seconds), aligned DOWN to the bucket boundary","example":1785283200},"to":{"type":"number","description":"Window end, exclusive (UNIX seconds), aligned DOWN to the bucket boundary — like from, so two adjacent windows never share a bucket. Echoed because it may differ from the requested value.","example":1785888000},"interval":{"type":"string","enum":["1h","1d"],"description":"Bucket size the per-pool series was rolled up to — echoed because it may be derived from the window rather than requested.","example":"1d"},"summary":{"$ref":"#/components/schemas/AmmVolumeSummaryDto"},"pools":{"description":"One PAGE of the pools that traded in the window, highest USD volume first; unpriced pools last. See pagination — summary covers every pool, paged or not.","type":"array","items":{"$ref":"#/components/schemas/AmmVolumePoolDto"}},"pagination":{"$ref":"#/components/schemas/AmmVolumePaginationDto"},"excludedPools":{"description":"Pool IDs filtered out of this response entirely — the scan, the KPI row and the allTime anchor alike. Surfaced because their trades are absent from tradeCount, which otherwise shows as an unexplained gap when reconciling against /revenue/swap. Empty when nothing is filtered.","example":[],"type":"array","items":{"type":"string"}}},"required":["chainId","from","to","interval","summary","pools","pagination","excludedPools"]},"AmmCandleItemDto":{"type":"object","properties":{"timestamp":{"type":"number","description":"Bucket start time (UNIX seconds)","example":1709251200},"open":{"type":"string","description":"Opening price","example":"0.00012340"},"high":{"type":"string","description":"Highest price in bucket","example":"0.00012900"},"low":{"type":"string","description":"Lowest price in bucket","example":"0.00012000"},"close":{"type":"string","description":"Closing price","example":"0.00012500"},"volume0":{"type":"string","description":"Total volume of token0 (absolute, as string)","example":"1000000000000000000"},"volume1":{"type":"string","description":"Total volume of token1 (absolute, as string)","example":"125000000"},"tradeCount":{"type":"number","description":"Number of swaps in this bucket","example":7}},"required":["timestamp","open","high","low","close","volume0","volume1","tradeCount"]},"AmmCandlesResponseDto":{"type":"object","properties":{"poolId":{"type":"string","description":"Pool ID","example":"0xabc123..."},"chainId":{"type":"number","description":"Chain ID","example":64165},"interval":{"type":"string","enum":["1m","5m","15m","1h","4h","1d"],"description":"Candle interval"},"from":{"type":"number","description":"Query start time","example":1709251200},"to":{"type":"number","description":"Query end time","example":1709337600},"candles":{"type":"array","items":{"$ref":"#/components/schemas/AmmCandleItemDto"}}},"required":["poolId","chainId","interval","from","to","candles"]},"OracleCandleItemDto":{"type":"object","properties":{"timestamp":{"type":"number","description":"Bucket start time (UNIX seconds)","example":1782234000},"open":{"type":"string","description":"Opening price (USD, decimal string)","example":"1665.57"},"high":{"type":"string","description":"Highest price in bucket (USD, decimal string)","example":"1666.22"},"low":{"type":"string","description":"Lowest price in bucket (USD, decimal string)","example":"1663.01"},"close":{"type":"string","description":"Closing price (USD, decimal string)","example":"1665.02"},"final":{"type":"boolean","description":"Present and false only on the still-forming current bucket; omitted on closed candles","example":false}},"required":["timestamp","open","high","low","close"]},"OracleCandlesResponseDto":{"type":"object","properties":{"symbol":{"type":"string","description":"Canonical asset symbol","example":"ETH"},"quote":{"type":"string","description":"Quote currency (always USD)","example":"USD"},"interval":{"type":"string","enum":["1m","5m","1h","1d"],"description":"Candle interval"},"candles":{"description":"Candles, oldest first","type":"array","items":{"$ref":"#/components/schemas/OracleCandleItemDto"}}},"required":["symbol","quote","interval","candles"]},"OracleLatestMetaDto":{"type":"object","properties":{"feedUpdatedAt":{"type":"number","description":"Publisher's freshest price timestamp in the snapshot (UNIX ms), 0 when unparseable","example":1786009302137},"fetchedAt":{"type":"string","description":"When this process last fetched the feed (ISO 8601)"},"ageMs":{"type":"number","description":"Age of the snapshot (ms)","example":840},"stale":{"type":"boolean","description":"True when ageMs exceeds 120000ms — the publisher has stopped moving, since a payload that old because OUR fetches are failing is no longer served","example":false},"entryCount":{"type":"number","description":"Number of price entries in the snapshot","example":461}},"required":["feedUpdatedAt","fetchedAt","ageMs","stale","entryCount"]},"OracleMarketIntervalDto":{"type":"object","properties":{"key":{"type":"string","enum":["1m","5m","1h","1d"],"description":"Interval key","example":"1h"},"label":{"type":"string","description":"Human-readable label","example":"1 hour"},"seconds":{"type":"number","description":"Seconds per bucket","example":3600}},"required":["key","label","seconds"]},"OracleMarketsResponseDto":{"type":"object","properties":{"quote":{"type":"string","description":"Quote currency (always USD)","example":"USD"},"intervals":{"description":"Supported intervals","type":"array","items":{"$ref":"#/components/schemas/OracleMarketIntervalDto"}},"symbols":{"description":"Enabled tracked symbols that have at least one candle (sorted)","example":["BTC","ETH"],"type":"array","items":{"type":"string"}}},"required":["quote","intervals","symbols"]},"IntentDetailsDto":{"type":"object","properties":{"intentId":{"type":"string"},"creator":{"type":"string"},"inputToken":{"type":"string"},"outputToken":{"type":"string"},"inputAmount":{"type":"string","description":"wei amount as string","example":"100000000"},"minOutputAmount":{"type":"string","description":"wei amount as string","example":"367817"},"deadline":{"type":"string","description":"unix or block deadline as string","example":"0"},"allowPartialFill":{"type":"boolean"},"srcChain":{"type":"number"},"dstChain":{"type":"number"},"srcAddress":{"type":"string"},"dstAddress":{"type":"string"},"solver":{"type":"string"},"data":{"type":"string"}},"required":["intentId","creator","inputToken","outputToken","inputAmount","minOutputAmount","deadline","allowPartialFill","srcChain","dstChain","srcAddress","dstAddress","solver","data"]},"IntentEventStateDto":{"type":"object","properties":{"exists":{"type":"boolean"},"remainingInput":{"type":"string","description":"wei as string","example":"100000000"},"receivedOutput":{"type":"string","description":"wei as string","example":"0"},"pendingPayment":{"type":"boolean"}},"required":["exists","remainingInput","receivedOutput","pendingPayment"]},"IntentEventDto":{"type":"object","properties":{"eventType":{"type":"string","example":"intent-filled"},"txHash":{"type":"string"},"logIndex":{"type":"number"},"blockNumber":{"type":"number"},"intentState":{"$ref":"#/components/schemas/IntentEventStateDto"}},"required":["eventType","txHash","logIndex","blockNumber","intentState"]},"PacketDataDto":{"type":"object","properties":{"src_chain_id":{"type":"number"},"src_tx_hash":{"type":"string"},"src_address":{"type":"string"},"status":{"type":"string","enum":["pending","validating","executing","executed"]},"dst_chain_id":{"type":"number"},"conn_sn":{"type":"number"},"dst_address":{"type":"string"},"dst_tx_hash":{"type":"string","description":"Destination chain tx hash — proof the funds were delivered."},"signatures":{"type":"array","items":{"type":"string"}},"payload":{"type":"string"}},"required":["src_chain_id","src_tx_hash","src_address","status","dst_chain_id","conn_sn","dst_address","dst_tx_hash","signatures","payload"]},"GetIntentByHashResponseDto":{"type":"object","properties":{"intentHash":{"type":"string","description":"The hash of the intent.","example":"0xca5df1302c1b2b1ad43254fbabcbc5bbd68609171a06c84aeb3b84bef5da69f2"},"txHash":{"type":"string","description":"The tx hash of the intent.","example":"0x964013e2dd8d8b7dcdb7f4d9f75bf116430163e95b105847fe0fa26b15f48e3a"},"logIndex":{"type":"number","description":"Transaction log index","example":3},"chainId":{"type":"number","description":"Unique ID of the chain","example":146},"blockNumber":{"type":"number","description":"Block number","example":455932},"open":{"type":"boolean","description":"Is the intent currently open","example":false},"intent":{"description":"The intent details.","example":{"intentId":"1531193960...","creator":"0xc2F8215962fa3AB238c96B7E73a17edcE0Cacd31","inputToken":"0x4676b2a5...","outputToken":"0xdB7BdA65...","inputAmount":"100000000","minOutputAmount":"367817","deadline":"0","allowPartialFill":false,"srcChain":21,"dstChain":23,"srcAddress":"0xb4e5d56c1503...","dstAddress":"0x75f6d018319d...","solver":"0x0000000000000000000000000000000000000000","data":"0x"},"allOf":[{"$ref":"#/components/schemas/IntentDetailsDto"}]},"events":{"description":"Events related to the intent (INTENT_FILLED, INTENT_CANCELLED).","example":[{"eventType":"intent-filled","txHash":"0x7decb21e84f49a162b55...","logIndex":9,"blockNumber":42787604,"intentState":{"exists":true,"remainingInput":"100000000","receivedOutput":"0","pendingPayment":false}}],"type":"array","items":{"$ref":"#/components/schemas/IntentEventDto"}},"packetData":{"description":"Cross-chain delivery proof from the relayer. Present once the fill has been delivered to the destination spoke chain. Absent for hub-only fills (no relay involved) and for fills not yet delivered.","allOf":[{"$ref":"#/components/schemas/PacketDataDto"}]}},"required":["intentHash","txHash","logIndex","chainId","blockNumber","open","intent","events"]},"IntentHistoryItemDto":{"type":"object","properties":{"intentHash":{"type":"string","description":"The hash of the intent.","example":"0xca5df1302c1b2b1ad43254fbabcbc5bbd68609171a06c84aeb3b84bef5da69f2"},"txHash":{"type":"string","description":"The tx hash of the intent.","example":"0x964013e2dd8d8b7dcdb7f4d9f75bf116430163e95b105847fe0fa26b15f48e3a"},"logIndex":{"type":"number","description":"Transaction log index","example":3},"chainId":{"type":"number","description":"Unique ID of the chain","example":146},"blockNumber":{"type":"number","description":"Block number","example":455932},"open":{"type":"boolean","description":"Is the intent currently open","example":false},"intent":{"description":"The intent details.","example":{"intentId":"1531193960...","creator":"0xc2F8215962fa3AB238c96B7E73a17edcE0Cacd31","inputToken":"0x4676b2a5...","outputToken":"0xdB7BdA65...","inputAmount":"100000000","minOutputAmount":"367817","deadline":"0","allowPartialFill":false,"srcChain":21,"dstChain":23,"srcAddress":"0xb4e5d56c1503...","dstAddress":"0x75f6d018319d...","solver":"0x0000000000000000000000000000000000000000","data":"0x"},"allOf":[{"$ref":"#/components/schemas/IntentDetailsDto"}]},"events":{"description":"Events related to the intent (INTENT_FILLED, INTENT_CANCELLED).","example":[{"eventType":"intent-filled","txHash":"0x7decb21e84f49a162b55...","logIndex":9,"blockNumber":42787604,"intentState":{"exists":true,"remainingInput":"100000000","receivedOutput":"0","pendingPayment":false}}],"type":"array","items":{"$ref":"#/components/schemas/IntentEventDto"}},"packetData":{"description":"Cross-chain delivery proof from the relayer. Present once the fill has been delivered to the destination spoke chain. Absent for hub-only fills (no relay involved) and for fills not yet delivered.","allOf":[{"$ref":"#/components/schemas/PacketDataDto"}]},"createdAt":{"type":"string","description":"Creation timestamp of the intent journal entry","example":"2025-12-08T20:15:06.153Z"}},"required":["intentHash","txHash","logIndex","chainId","blockNumber","open","intent","events","createdAt"]},"IntentHistoryResponseDto":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/IntentHistoryItemDto"}},"total":{"type":"number","description":"Total intents that match the user"},"offset":{"type":"number","description":"Offset applied to the query","example":0},"limit":{"type":"number","description":"Limit applied to the query","example":50}},"required":["items","total","offset","limit"]},"SolverVolumeEventDto":{"type":"object","properties":{"chainId":{"type":"number","example":146},"blockNumber":{"type":"number","example":19590151},"logIndex":{"type":"number","example":3},"txHash":{"type":"string","example":"0x1e68359c3b541ac4aa0239bdfed9356f79969392d7893b44d206d1f408be4fe9"},"intentHash":{"type":"string","example":"0xc45dc027b3ed39955b79819e0b3c07c356f6d716b7ccd6afa55d56dc7b54379d"},"solver":{"type":"string","example":"0x0000000000000000000000000000000000000000"},"inputToken":{"type":"string","example":"0x13b70564b1ec12876B20FAb5D1Bb630311312f4f"},"outputToken":{"type":"string","example":"0xDcd9578b51EF55239B6e68629D822A8D97C95b86"},"amount":{"type":"string","description":"Stringified Decimal128","example":"369447814555514"},"timestamp":{"type":"string","format":"date-time","example":"2025-04-11T13:20:47.000Z"},"data":{"type":"string","description":"Raw event `data` (present if includeData=true)","example":"0x"}},"required":["chainId","blockNumber","logIndex","txHash","intentHash","solver","inputToken","outputToken","amount","timestamp"]},"ListEventsResponseDto":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/SolverVolumeEventDto"}},"nextCursor":{"type":"object","nullable":true,"example":"eyJiIjoxOTU4Nzk2NywibCI6MTMsInQiOiIweGYyMjE3OSJ9"},"hasMore":{"type":"boolean","example":true}},"required":["items","nextCursor","hasMore"]},"LatestIntentResponseDto":{"type":"object","properties":{"chainId":{"type":"number","example":146},"blockNumber":{"type":"number","example":19590151},"logIndex":{"type":"number","example":3},"txHash":{"type":"string","example":"0x1e68359c3b541ac4aa0239bdfed9356f79969392d7893b44d206d1f408be4fe9"},"intentHash":{"type":"string","example":"0xc45dc027b3ed39955b79819e0b3c07c356f6d716b7ccd6afa55d56dc7b54379d"},"solver":{"type":"string","example":"0x0000000000000000000000000000000000000000"},"inputToken":{"type":"string","example":"0x13b70564b1ec12876B20FAb5D1Bb630311312f4f"},"outputToken":{"type":"string","example":"0xDcd9578b51EF55239B6e68629D822A8D97C95b86"},"amount":{"type":"string","description":"Stringified Decimal128","example":"369447814555514"},"timestamp":{"type":"string","format":"date-time","example":"2025-04-11T13:20:47.000Z"},"data":{"type":"string","description":"Raw event `data` (present if includeData=true)","example":"0x"}},"required":["chainId","blockNumber","logIndex","txHash","intentHash","solver","inputToken","outputToken","amount","timestamp"]},"AllIntentDocsResponseDto":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/SolverVolumeEventDto"}},"count":{"type":"number","example":3}},"required":["items","count"]},"OrderbookItemDto":{"type":"object","properties":{}},"OrderbookListResponseDto":{"type":"object","properties":{"total":{"type":"number","example":1234},"data":{"type":"array","items":{"$ref":"#/components/schemas/OrderbookItemDto"}}},"required":["total","data"]},"SolverVolumeStatsResponseDto":{"type":"object","properties":{"filledCount":{"type":"number","description":"Approximate total number of filled-intent records (fill documents) in solver_volume, from collection metadata. Counts fill events, not distinct intents — see endpoint description.","example":12345}},"required":["filledCount"]},"OrderbookResponseType":{"type":"object","properties":{"total":{"type":"number","description":"Total number of items matching the query (for pagination)","example":1234},"data":{"description":"Serialized Orderbook document without _id/__v/createdAt/updatedAt","example":[{"intentState":{"exists":true,"remainingInput":"100000000","receivedOutput":"0","pendingPayment":false},"intentData":{"intentId":"15311939600721246520566887474460565335831363157061921559896269766074023061406","creator":"0xc2F8215962fa3AB238c96B7E73a17edcE0Cacd31","inputToken":"0x4676b2a551b25c04e235553c1C81019337384673","outputToken":"0xdB7BdA65c3a1C51D64dC4444e418684677334109","inputAmount":"100000000","minOutputAmount":"367817","deadline":"0","allowPartialFill":false,"srcChain":21,"dstChain":23,"srcAddress":"0xb4e5d56c15032aad5920384d3f84bcdf3da7a4dca4eb108d21119223c0184cf6","dstAddress":"0x75f6d018319dd5dc2cb1c3f2fa4ad161765a9b5a","solver":"0x0000000000000000000000000000000000000000","data":"0x","intentHash":"0x99a9d5a4d36a5a49871a4d17cae76b01b52ca530ceef7f0c25ba7489edc396c1","txHash":"0x7decb21e84f49a162b553db3bb7e1fbb8dcdff3e3c1958a5973f7fbbe2e617e0","blockNumber":42787604,"logIndex":2}}],"type":"array","items":{"type":"string"}}},"required":["total","data"]},"GetUserPositionResponseDto":{"type":"object","properties":{"userAddress":{"type":"string","description":"The user address","example":"0x76c9dffff4cbac4f5e5d13f7f5f5c78df5475bc1"},"positions":{"description":"The list of user positions","default":[],"example":[{"reserveAddress":"0x4effb5813271699683c25c734f4dabc45b363709","aTokenAddress":"0x9cecb9acec7ddb602024a789c7831e1b197cf369","variableDebtTokenAddress":"0x6934f5a466ceb55f2ced1af2192990e18ff44644","blockNumber":30070971,"aTokenBalance":"74996885005653281","variableDebtTokenBalance":"0"}],"type":"array","items":{"type":"string"}}},"required":["userAddress","positions"]},"AssetResponseDto":{"type":"object","properties":{"reserveAddress":{"type":"string","description":"address of the reserve","example":"0x14238d267557e9d799016ad635b53cd15935d290"},"aTokenAddress":{"type":"string","description":"address of the aToken","example":"0x5c50cf875aebad8d5ba548f229960c90b1c1f8c3"},"variableDebtTokenAddress":{"type":"string","description":"address of the variable debt token","example":"0x96a4197803ac8b21a1b7aefe72e565c71a91a40f"},"totalATokenBalance":{"type":"number","description":"Total amount supplied of asset","example":"1030076208703749226496"},"totalVariableDebtTokenBalance":{"type":"number","description":"Total amount borrowed of asset","example":"1095895701977565440"},"totalBorrowers":{"type":"number","description":"Amount of borrowers","example":"10321"},"totalSuppliers":{"type":"number","description":"Amount of suppliers","example":"1011"},"liquidityRate":{"type":"number","description":"Liquidity rate of the asset","example":"3037832265732083490630037"},"variableBorrowRate":{"type":"number","description":"Variable borrow rate of the asset","example":"3037832265732083490630037"},"stableBorrowRate":{"type":"number","description":"Stable borrow rate of the asset","example":"2545692664119433460630037"},"liquidityIndex":{"type":"number","description":"Liquidity index of the asset","example":"1000263086051900113294766727"},"variableBorrowIndex":{"type":"number","description":"Variable borrow index of the asset","example":"1002392186003005314762682909"},"blockNumber":{"type":"number","description":"The block number of the last update","example":"46458200"},"symbol":{"type":"string","description":"The symbol of the asset","example":"sodaAVAX"},"isActive":{"type":"boolean","description":"Whether the reserve is active (Aave config bit 56). false means the reserve is fully disabled.","example":true},"isFrozen":{"type":"boolean","description":"Whether the reserve is frozen (Aave config bit 57). A deliberate freeze: no new supply/borrow, but repay/withdraw remain allowed.","example":false},"isBorrowingEnabled":{"type":"boolean","description":"Whether borrowing is enabled for the reserve (Aave config bit 58).","example":true},"isPaused":{"type":"boolean","description":"Whether the reserve is paused (Aave config bit 60). An emergency pause: all interactions with the reserve are halted.","example":false}},"required":["reserveAddress","aTokenAddress","variableDebtTokenAddress","totalATokenBalance","totalVariableDebtTokenBalance","totalBorrowers","totalSuppliers","liquidityRate","variableBorrowRate","stableBorrowRate","liquidityIndex","variableBorrowIndex","blockNumber","symbol","isActive","isFrozen","isBorrowingEnabled","isPaused"]},"BorrowersResultDto":{"type":"object","properties":{"borrowers":{"description":"Array of borrower addresses","example":["0x73135d19c488ea5b002e0e07135d992ff7e6f070","0xf754037f99af3d90a4db611d74966729b81a8a96","0x6d7b6956589c17b2755193a67bf2d4b68827e58a"],"type":"array","items":{"type":"string"}},"total":{"type":"number","description":"The total number of borrowers","example":"5"},"offset":{"type":"number","description":"The offset of results","example":"0"},"limit":{"type":"number","description":"The limit of results","example":"50"}},"required":["borrowers","total","offset","limit"]},"SuppliersResultDto":{"type":"object","properties":{"suppliers":{"description":"Array of supplier addresses","example":["0x73135d19c488ea5b002e0e07135d992ff7e6f070","0xf754037f99af3d90a4db611d74966729b81a8a96","0x6d7b6956589c17b2755193a67bf2d4b68827e58a"],"type":"array","items":{"type":"string"}},"total":{"type":"number","description":"The total number of suppliers","example":"5"},"offset":{"type":"number","description":"The offset of results","example":"0"},"limit":{"type":"number","description":"The limit of results","example":"50"}},"required":["suppliers","total","offset","limit"]},"PartnersListResponseDto":{"type":"object","properties":{"partners":{"description":"List of partner addresses","example":["0x0Ab764AB3816cD036Ea951bE973098510D8105A6","0x75F6D018319Dd5Dc2Cb1c3f2FA4Ad161765a9b5A","0x93D5CE288b3BF6b33F913b98FD1fA844Acc462d4","0xAf3C63D376e4CEd7156df8938502C73464162E80","0xB67e39bF9306728D326f7C560159974208748C87"],"type":"array","items":{"type":"string"}}},"required":["partners"]},"PartnerSummaryResponseDto":{"type":"object","properties":{"receiver":{"type":"string","description":"Partner address","example":"0x0Ab764AB3816cD036Ea951bE973098510D8105A6"},"chainId":{"type":"number","description":"Chain ID","example":146,"default":146},"feeByInputToken":{"type":"object","description":"Total fees earned by the partner (in base token)","example":{"0xc9e4f0B6195F389D9d2b639f2878B7674eB9D8cD":"3700000000000000","0x4676b2a551b25c04e235553c1C81019337384673":"166200000"}},"volumeByOutputToken":{"type":"object","description":"Total volume generated by the partner (in base token)","example":{"0x0c09e69a4528945de6d16c7E469deA6996Fdf636":"2103794","0xc9e4f0B6195F389D9d2b639f2878B7674eB9D8cD":"276515234481140672"}}},"required":["receiver","feeByInputToken","volumeByOutputToken"]},"VolumeCoverageDto":{"type":"object","properties":{"pricedFills":{"type":"number","description":"Fills whose output-leg value is included in volumeUsd","example":980},"noCoverageFills":{"type":"number","description":"Fills the oracle determinately cannot value (closed windows). Not recoverable.","example":3},"unavailableFills":{"type":"number","description":"Fills not valued for a recoverable reason — untracked symbol, a bucket that may yet price, or a token absent from the hub-asset catalog. See #1292.","example":104},"unstampedFills":{"type":"number","description":"Fills the valuation sweep has not reached yet. Transient: drains as the backfill runs. Not a pricing failure.","example":0},"feeDeclaredFills":{"type":"number","description":"Fills that declared a partner fee (the denominator for feePricedFills)","example":950},"feePricedFills":{"type":"number","description":"Of those, how many carry a USD value and are inside feeUsd","example":940},"usdCoverage":{"type":"object","description":"pricedFills ÷ intentsFilled, 0–1. Null when the range holds no fills at all.","example":0.48,"nullable":true},"pricedFrom":{"type":"object","description":"Timestamp of the earliest PRICED fill in range (UNIX seconds) — where USD actually begins for this query, which may be later than `from`. Null when nothing in range is priced.","example":1780272000,"nullable":true}},"required":["pricedFills","noCoverageFills","unavailableFills","unstampedFills","feeDeclaredFills","feePricedFills","usdCoverage","pricedFrom"]},"VolumeTotalsDto":{"type":"object","properties":{"intentsFilled":{"type":"number","description":"Fills in range (after filters), priced or not","example":200},"volumeUsd":{"type":"object","description":"Value-at-time USD volume of the output leg, priced fills only. Null when nothing in range is priced — never 0, which would claim the fills were worthless. ⚠️ Each deployment values a fill once, from what its batch knew at that moment, and production runs two independent stacks behind a round-robin — so two identical requests may return slightly different USD for the same window, with no mechanism that converges them. intentsFilled and the raw token amounts are NOT affected.","example":87880.5,"nullable":true},"feeUsd":{"type":"object","description":"Value-at-time USD of DECLARED partner fees, priced fee legs only. Null when none priced. A declared fee is owed in full only when its intent closes fully filled — this is not realized revenue.","example":86.46,"nullable":true},"avgIntentUsd":{"type":"object","description":"volumeUsd ÷ pricedFills — averaged over PRICED fills only, since unpriced ones contributed no USD. Null when nothing is priced.","example":1273.62,"nullable":true},"avgFeeUsd":{"type":"object","description":"feeUsd ÷ feePricedFills — averaged over the fee legs that actually priced. Null when none did.","example":1.25,"nullable":true},"coverage":{"$ref":"#/components/schemas/VolumeCoverageDto"}},"required":["intentsFilled","volumeUsd","feeUsd","avgIntentUsd","avgFeeUsd","coverage"]},"PartnerVolumeRowDto":{"type":"object","properties":{"receiver":{"type":"string","description":"Partner (fee receiver) address, lowercased — the form the collection stores","example":"0x0ab764ab3816cd036ea951be973098510d8105a6"},"intentsFilled":{"type":"number","description":"Intents filled in range that declared this receiver","example":69},"volumeUsd":{"type":"object","description":"Value-at-time USD volume of priced fills; null when none priced","example":87880.5,"nullable":true},"feeUsd":{"type":"object","description":"Value-at-time USD of declared fees that priced; null when none","example":86.46,"nullable":true},"coverage":{"$ref":"#/components/schemas/VolumeCoverageDto"}},"required":["receiver","intentsFilled","volumeUsd","feeUsd","coverage"]},"PartnersVolumePaginationDto":{"type":"object","properties":{"offset":{"type":"number","description":"Partners skipped","example":0},"limit":{"type":"number","description":"Page size applied after clamping","example":50},"hasMore":{"type":"boolean","description":"Whether more partners follow this page","example":false},"returned":{"type":"number","description":"Partners in this page","example":12},"nextOffset":{"type":"object","description":"Offset for the next page, or null at the end","example":null,"nullable":true}},"required":["offset","limit","hasMore","returned"]},"PartnersVolumeResponseDto":{"type":"object","properties":{"from":{"type":"number","example":1780272000},"to":{"type":"number","example":1782950400},"quote":{"type":"string","example":"USD"},"receiver":{"type":"string","description":"Echo of the receiver filter (lowercased), when given"},"orgId":{"type":"string","description":"Echo of the organisation, on the admin org-scoped routes"},"totals":{"description":"Range-wide totals over the same filters, NOT just this page","allOf":[{"$ref":"#/components/schemas/VolumeTotalsDto"}]},"partners":{"description":"Per-partner totals, volumeUsd desc","type":"array","items":{"$ref":"#/components/schemas/PartnerVolumeRowDto"}},"pagination":{"$ref":"#/components/schemas/PartnersVolumePaginationDto"}},"required":["from","to","quote","totals","partners","pagination"]},"PartnersVolumeTotalResponseDto":{"type":"object","properties":{"from":{"type":"number","example":1780272000},"to":{"type":"number","example":1782950400},"quote":{"type":"string","example":"USD"},"receiver":{"type":"string","description":"Echo of the receiver filter (lowercased), when given"},"orgId":{"type":"string","description":"Echo of the organisation, on the admin org-scoped routes"},"totals":{"$ref":"#/components/schemas/VolumeTotalsDto"}},"required":["from","to","quote","totals"]},"TokenVolumeRowDto":{"type":"object","properties":{"token":{"type":"string","description":"Output token address, lowercased for grouping stability","example":"0xc9e4f0b6195f389d9d2b639f2878b7674eb9d8cd"},"intentsFilled":{"type":"number","description":"Intents filled in range that DELIVERED this token","example":14},"amount":{"type":"string","description":"Total output delivered in RAW base units of this token (integer string; scale by the token decimals client-side). The ONLY raw amount in these responses — additive within one token, never across tokens, which is why every cross-token figure is USD. Summed via a quotient/remainder pair recombined as BigInt, which is exact for any total below ~1e52 raw units — roughly 1e34 whole units of an 18-decimal token, far beyond any real supply. Past that the high limb's own sum outgrows Decimal128 and rounds; no finite number of limbs removes the bound, because a single stored value may carry an arbitrarily large exponent.","example":"2726551230000000000000000"},"volumeUsd":{"type":"object","description":"Value-at-time USD volume of priced fills; null when none priced","example":81650.25,"nullable":true},"feeUsd":{"type":"object","description":"Value-at-time USD of declared fees that priced; null when none","example":81.74,"nullable":true},"coverage":{"$ref":"#/components/schemas/VolumeCoverageDto"}},"required":["token","intentsFilled","amount","volumeUsd","feeUsd","coverage"]},"PartnersVolumeTokensResponseDto":{"type":"object","properties":{"from":{"type":"number","example":1780272000},"to":{"type":"number","example":1782950400},"quote":{"type":"string","example":"USD"},"receiver":{"type":"string","description":"Echo of the receiver filter (lowercased), when given"},"orgId":{"type":"string","description":"Echo of the organisation, on the admin org-scoped routes"},"totals":{"description":"Range-wide totals over the same filters","allOf":[{"$ref":"#/components/schemas/VolumeTotalsDto"}]},"tokens":{"description":"Per-output-token totals, volumeUsd desc","type":"array","items":{"$ref":"#/components/schemas/TokenVolumeRowDto"}}},"required":["from","to","quote","totals","tokens"]},"VolumeSeriesBucketDto":{"type":"object","properties":{"timestamp":{"type":"number","description":"UTC bucket start (day or month), UNIX seconds","example":1780272000},"intentsFilled":{"type":"number","example":42},"volumeUsd":{"type":"object","example":4120993.1,"nullable":true},"feeUsd":{"type":"object","example":8241.98,"nullable":true},"partnerIntents":{"type":"number","description":"Fills in bucket that declared a partner (fee receiver)","example":30},"partnerVolumeUsd":{"type":"object","description":"USD of partner-attributed fills; null when none priced","example":3100000,"nullable":true},"nonPartnerVolumeUsd":{"type":"object","description":"USD of fills with NO declared partner; null when none priced","example":1020993.1,"nullable":true},"coverage":{"$ref":"#/components/schemas/VolumeCoverageDto"}},"required":["timestamp","intentsFilled","volumeUsd","feeUsd","partnerIntents","partnerVolumeUsd","nonPartnerVolumeUsd","coverage"]},"PartnersVolumeSeriesResponseDto":{"type":"object","properties":{"from":{"type":"number","example":1780272000},"to":{"type":"number","example":1782950400},"interval":{"type":"string","example":"1d"},"quote":{"type":"string","example":"USD"},"receiver":{"type":"string","description":"Echo of the receiver filter (lowercased), when given"},"orgId":{"type":"string","description":"Echo of the organisation, on the admin org-scoped routes"},"totals":{"description":"Range-wide totals over the same filters","allOf":[{"$ref":"#/components/schemas/VolumeTotalsDto"}]},"series":{"description":"Gap-free UTC buckets (days or calendar months per `interval`), oldest first; empty buckets carry zeros. The gap-fill starts at the LATER of `from` and the earliest bucket holding data, so an all-time request never manufactures pre-genesis zeros.","type":"array","items":{"$ref":"#/components/schemas/VolumeSeriesBucketDto"}}},"required":["from","to","interval","quote","totals","series"]}}}}