{"openapi":"3.1.0","info":{"title":"Jellysium API","version":"1.0.0","description":"Read-only Uniswap V3/V4 liquidity data for Elysium and HyperEVM. Metrics are returned in the pool's quote token units. See README for coverage and methodology."},"servers":[{"url":"/"}],"security":[{"ApiKey":[]}],"paths":{"/health":{"get":{"operationId":"health","summary":"Process liveness","security":[],"responses":{"200":{"description":"Process is listening.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Health"}}}}}}},"/v1/chains":{"get":{"operationId":"listChains","summary":"Supported networks and official token address","responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Chains"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"404":{"$ref":"#/components/responses/Error404"},"422":{"$ref":"#/components/responses/Error422"},"429":{"$ref":"#/components/responses/Error429"},"500":{"$ref":"#/components/responses/Error500"},"503":{"$ref":"#/components/responses/Error503"}}}},"/v1/pools":{"get":{"operationId":"listPools","summary":"Discover pools and check index coverage","parameters":[{"in":"query","name":"chainId","description":"Elysium or HyperEVM chain ID.","required":true,"schema":{"type":"integer","enum":[99901,999]}},{"in":"query","name":"token","description":"Exact token contract address. Exclusive with q.","required":false,"schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"}},{"in":"query","name":"q","description":"Search by pair label, pool ID or pool address.","required":false,"schema":{"type":"string","maxLength":80}},{"in":"query","name":"protocol","description":"Uniswap version.","required":false,"schema":{"type":"string","enum":["all","v3","v4"],"default":"all"}},{"in":"query","name":"sort","description":"Catalogue sort.","required":false,"schema":{"type":"string","enum":["activity","liquidity","volume","fee"],"default":"activity"}},{"in":"query","name":"limit","description":"Maximum pools per page.","required":false,"schema":{"type":"integer","minimum":1,"maximum":50,"default":20}},{"in":"query","name":"cursor","description":"Use nextCursor verbatim with the same filters. A symbol-candidate page can be empty and still have a cursor.","required":false,"schema":{"type":"string","pattern":"^[is]:[0-9]+$"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PoolList"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"404":{"$ref":"#/components/responses/Error404"},"422":{"$ref":"#/components/responses/Error422"},"429":{"$ref":"#/components/responses/Error429"},"500":{"$ref":"#/components/responses/Error500"},"503":{"$ref":"#/components/responses/Error503"}}}},"/v1/pools/{poolId}":{"get":{"operationId":"getPool","summary":"Pool state and attributed valuation","parameters":[{"in":"path","name":"poolId","description":"Full canonical ID from GET /v1/pools.","required":true,"schema":{"type":"string","pattern":"^(99901|999):(v3|v4):0x[0-9a-fA-F]{40}:0x([0-9a-fA-F]{40}|[0-9a-fA-F]{64})$"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Pool"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"404":{"$ref":"#/components/responses/Error404"},"422":{"$ref":"#/components/responses/Error422"},"429":{"$ref":"#/components/responses/Error429"},"500":{"$ref":"#/components/responses/Error500"},"503":{"$ref":"#/components/responses/Error503"}}}},"/v1/pools/{poolId}/swaps":{"get":{"operationId":"listSwaps","summary":"Recent indexed swap observations, newest first","parameters":[{"in":"path","name":"poolId","description":"Full canonical ID from GET /v1/pools.","required":true,"schema":{"type":"string","pattern":"^(99901|999):(v3|v4):0x[0-9a-fA-F]{40}:0x([0-9a-fA-F]{40}|[0-9a-fA-F]{64})$"}},{"in":"query","name":"limit","description":"Maximum swaps per page.","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"in":"query","name":"before","description":"Exclusive cursor from nextCursor, within the latest 500 indexed samples.","required":false,"schema":{"type":"string","pattern":"^[0-9]+:[0-9]+$"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Swaps"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"404":{"$ref":"#/components/responses/Error404"},"422":{"$ref":"#/components/responses/Error422"},"429":{"$ref":"#/components/responses/Error429"},"500":{"$ref":"#/components/responses/Error500"},"503":{"$ref":"#/components/responses/Error503"}}}},"/v1/pools/{poolId}/depth":{"get":{"operationId":"getPoolDepth","summary":"Read two-sided marginal price depth before fees","parameters":[{"in":"path","name":"poolId","description":"Full canonical ID from GET /v1/pools.","required":true,"schema":{"type":"string","pattern":"^(99901|999):(v3|v4):0x[0-9a-fA-F]{40}:0x([0-9a-fA-F]{40}|[0-9a-fA-F]{64})$"}},{"in":"query","name":"bps","description":"Band width on each side of spot, in basis points.","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":100}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Depth"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"404":{"$ref":"#/components/responses/Error404"},"422":{"$ref":"#/components/responses/Error422"},"429":{"$ref":"#/components/responses/Error429"},"500":{"$ref":"#/components/responses/Error500"},"503":{"$ref":"#/components/responses/Error503"}}}}},"components":{"securitySchemes":{"ApiKey":{"type":"apiKey","in":"header","name":"X-API-Key"}},"responses":{"Error400":{"description":"Invalid query or identifier","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Error401":{"description":"Missing or invalid API key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Error404":{"description":"Endpoint or canonical pool not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Error422":{"description":"Unavailable token metadata in legacy lookup","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Error429":{"description":"Per-key rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Error500":{"description":"Unexpected server failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Error503":{"description":"Upstream or API capacity unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"schemas":{"Health":{"type":"object","properties":{"status":{"type":"string","enum":["ok"]}},"required":["status"]},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"}},"required":["code","message","requestId"]}},"required":["error"]},"Chains":{"type":"object","properties":{"chains":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"integer","enum":[99901,999]},"name":{"type":"string"},"protocols":{"type":"array","items":{"type":"string","enum":["v3","v4"]}},"jellyToken":{"type":"string","pattern":"^0x[0-9a-f]{40}$"}},"required":["chainId","name","protocols"]}}},"required":["chains"]},"Token":{"type":"object","properties":{"address":{"type":"string","pattern":"^0x[0-9a-f]{40}$"},"symbol":{"type":"string"},"decimals":{"type":"integer","minimum":0,"maximum":255}},"required":["address","symbol","decimals"]},"Pool":{"type":"object","properties":{"id":{"type":"string","pattern":"^(99901|999):(v3|v4):0x[0-9a-fA-F]{40}:0x([0-9a-fA-F]{40}|[0-9a-fA-F]{64})$"},"chainId":{"type":"integer","enum":[99901,999]},"protocol":{"type":"string","enum":["v3","v4"]},"poolRef":{"anyOf":[{"type":"string","pattern":"^0x[0-9a-f]{40}$"},{"type":"string","pattern":"^0x[0-9a-f]{64}$"}]},"manager":{"type":"string","pattern":"^0x[0-9a-f]{40}$"},"token0":{"$ref":"#/components/schemas/Token"},"token1":{"$ref":"#/components/schemas/Token"},"baseToken":{"type":"string","pattern":"^0x[0-9a-f]{40}$"},"quoteToken":{"type":"string","pattern":"^0x[0-9a-f]{40}$"},"fee":{"type":"integer","minimum":0},"tickSpacing":{"type":"integer","minimum":0},"hooks":{"anyOf":[{"type":"string","pattern":"^0x[0-9a-f]{40}$"},{"type":"null"}]},"feeMode":{"type":"string","enum":["static","dynamic"]},"priceQuotePerBase":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"currentLpFee":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]},"tick":{"type":"integer"},"sqrtPriceX96":{"type":"string","pattern":"^[0-9]+$"},"activeLiquidity":{"type":"string","pattern":"^[0-9]+$"},"tvl":{"type":"object","properties":{"quoteValue":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"quoteToken":{"type":"string","pattern":"^0x[0-9a-f]{40}$"},"method":{"anyOf":[{"type":"string","enum":["indexed-position-principal","pool-contract-balances"]},{"type":"null"}]},"blockNumber":{"anyOf":[{"type":"string","pattern":"^[0-9]+$"},{"type":"null"}]},"balance0Raw":{"anyOf":[{"type":"string","pattern":"^[0-9]+$"},{"type":"null"}]},"balance1Raw":{"anyOf":[{"type":"string","pattern":"^[0-9]+$"},{"type":"null"}]},"status":{"type":"string","enum":["block-unknown","attributed"]}},"required":["quoteValue","quoteToken","method","blockNumber","balance0Raw","balance1Raw","status"]},"source":{"type":"object","properties":{"name":{"type":"string","enum":["jellysium-liquidity"]},"blockNumber":{"type":"string","pattern":"^[0-9]+$"},"observedAt":{"type":"string","format":"date-time"},"freshness":{"type":"string","enum":["recent","stale"]}},"required":["name","blockNumber","observedAt","freshness"]}},"required":["id","chainId","protocol","poolRef","manager","token0","token1","baseToken","quoteToken","fee","tickSpacing","hooks","feeMode","priceQuotePerBase","currentLpFee","tick","sqrtPriceX96","activeLiquidity","tvl","source"]},"PoolList":{"type":"object","properties":{"chainId":{"type":"integer","enum":[99901,999]},"total":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]},"nextCursor":{"anyOf":[{"type":"string","pattern":"^[is]:[0-9]+$"},{"type":"null"}]},"pools":{"type":"array","items":{"$ref":"#/components/schemas/Pool"}},"source":{"type":"object","properties":{"name":{"type":"string","enum":["jellysium-liquidity"]},"observedAt":{"type":"string","format":"date-time"},"freshness":{"type":"string","enum":["recent","stale"]},"coverage":{"type":"string","enum":["indexed","symbol-candidates"]},"indexing":{"type":"object","properties":{"v3":{"anyOf":[{"type":"string","pattern":"^[0-9]+$"},{"type":"null"}]},"v4":{"anyOf":[{"type":"string","pattern":"^[0-9]+$"},{"type":"null"}]},"target":{"anyOf":[{"type":"string","pattern":"^[0-9]+$"},{"type":"null"}]},"status":{"type":"string","enum":["current","catching-up","unknown"]}},"required":["v3","v4","target","status"]}},"required":["name","observedAt","freshness","coverage","indexing"]}},"required":["chainId","total","nextCursor","pools","source"]},"Swap":{"type":"object","properties":{"blockNumber":{"type":"string","pattern":"^[0-9]+$"},"logIndex":{"type":"integer","minimum":0},"timestamp":{"type":"string","format":"date-time"},"transactionHash":{"type":"string","pattern":"^0x[0-9a-f]{64}$"},"priceQuotePerBase":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"volumeQuote":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]}},"required":["blockNumber","logIndex","timestamp","transactionHash","priceQuotePerBase","volumeQuote"]},"Swaps":{"type":"object","properties":{"chainId":{"type":"integer","enum":[99901,999]},"poolId":{"type":"string","pattern":"^(99901|999):(v3|v4):0x[0-9a-fA-F]{40}:0x([0-9a-fA-F]{40}|[0-9a-fA-F]{64})$"},"quoteToken":{"type":"string","pattern":"^0x[0-9a-f]{40}$"},"swaps":{"type":"array","items":{"$ref":"#/components/schemas/Swap"}},"nextCursor":{"anyOf":[{"type":"string","pattern":"^[0-9]+:[0-9]+$"},{"type":"null"}]},"source":{"type":"object","properties":{"name":{"type":"string","enum":["jellysium-liquidity"]},"retrievedAt":{"type":"string","format":"date-time"},"coverage":{"type":"string","enum":["recent-indexed-sample"]},"maxSamples":{"type":"integer","minimum":0},"sampled":{"type":"integer","minimum":0},"dropped":{"type":"integer","minimum":0},"newestIndexedSwapBlock":{"anyOf":[{"type":"string","pattern":"^[0-9]+$"},{"type":"null"}]},"oldestIndexedSwapBlock":{"anyOf":[{"type":"string","pattern":"^[0-9]+$"},{"type":"null"}]},"indexedThroughBlock":{"anyOf":[{"type":"string","pattern":"^[0-9]+$"},{"type":"null"}]}},"required":["name","retrievedAt","coverage","maxSamples","sampled","dropped","newestIndexedSwapBlock","oldestIndexedSwapBlock","indexedThroughBlock"]}},"required":["chainId","poolId","quoteToken","swaps","nextCursor","source"]},"DepthSide":{"type":"object","properties":{"baseAmountRaw":{"type":"string","pattern":"^[0-9]+$"},"quoteAmountRaw":{"type":"string","pattern":"^[0-9]+$"},"reachedTarget":{"type":"boolean"},"endSqrtPriceX96":{"type":"string","pattern":"^[0-9]+$"},"targetSqrtPriceX96":{"type":"string","pattern":"^[0-9]+$"}},"required":["baseAmountRaw","quoteAmountRaw","reachedTarget","endSqrtPriceX96","targetSqrtPriceX96"]},"Depth":{"oneOf":[{"type":"object","properties":{"status":{"type":"string","enum":["unsupported"]},"poolId":{"type":"string","pattern":"^(99901|999):(v3|v4):0x[0-9a-fA-F]{40}:0x([0-9a-fA-F]{40}|[0-9a-fA-F]{64})$"},"bandBps":{"type":"integer","minimum":0},"reason":{"type":"string","enum":["V4_HOOK_OR_DYNAMIC_FEE","UNINITIALIZED","PRICE_RANGE_OUT_OF_BOUNDS"]}},"required":["status","poolId","bandBps","reason"]},{"type":"object","properties":{"status":{"type":"string","enum":["available"]},"poolId":{"type":"string","pattern":"^(99901|999):(v3|v4):0x[0-9a-fA-F]{40}:0x([0-9a-fA-F]{40}|[0-9a-fA-F]{64})$"},"bandBps":{"type":"integer","minimum":0},"method":{"type":"string","enum":["concentrated-liquidity-curve-before-fees"]},"baseToken":{"type":"string","pattern":"^0x[0-9a-f]{40}$"},"quoteToken":{"type":"string","pattern":"^0x[0-9a-f]{40}$"},"spotSqrtPriceX96":{"type":"string","pattern":"^[0-9]+$"},"sellBase":{"$ref":"#/components/schemas/DepthSide"},"buyBase":{"$ref":"#/components/schemas/DepthSide"},"source":{"type":"object","properties":{"name":{"type":"string","enum":["chain-rpc"]},"blockNumber":{"type":"string","pattern":"^[0-9]+$"},"blockHash":{"type":"string","pattern":"^0x[0-9a-f]{64}$"},"blockTimestamp":{"type":"string","format":"date-time"},"observedAt":{"type":"string","format":"date-time"},"freshness":{"type":"string","enum":["recent","stale"]}},"required":["name","blockNumber","blockHash","blockTimestamp","observedAt","freshness"]}},"required":["status","poolId","bandBps","method","baseToken","quoteToken","spotSqrtPriceX96","sellBase","buyBase","source"]}]}}}}