{"openapi":"3.1.0","info":{"title":"Alcor API","version":"1","description":"\nAlcor's public read-only API: tokens and prices, AMM pools, positions, orderbook markets, charts, analytics,\nfarms, staking and OTC on wax, telos, eos, volta, xpr. No key is needed.\n\nBase URL `https://api.alcor.exchange`. Every route except /healthz and /chains sits under `/:chain`.\nGuide: https://docs.alcor.exchange/api. The old API on each chain's host (`<chain>.alcor.exchange/api/...`) is\ndeprecated: https://docs.alcor.exchange/api/legacy.\n\nConventions:\n- Amounts named `*_raw` or `*_amount` are integers in the token's smallest units, as strings: divide by 10^decimals.\n  Position `state` amounts are the exception: they are already decimal.\n- int64 values (block numbers, counters) are strings.\n- Times are ISO 8601 UTC. The `from`, `to` and `before` query params take ms since epoch.\n- Token ids are `<symbol>-<contract>` with a lowercase symbol, e.g. `usdt-tethertether`.\n- Errors are `{ \"error\": \"...\" }`: 400 for an invalid parameter (with `issues`), 404 when the thing does not exist.\n- Requests are rate-limited per IP address: over the limit the answer is 429.\n\nLive updates come as Server-Sent Events from `GET /:chain/events`. That route lists the channels and event types;\neach event's payload is a schema under components (`SwapEvent`, `PositionUpdatedEvent`, ...).\n"},"components":{"schemas":{"Error":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false},"Market":{"type":"object","properties":{"market_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"ticker_id":{"type":["string","null"]},"base_token_id":{"type":"string"},"base_token_contract":{"type":"string"},"base_token_symbol":{"type":"string"},"base_token_precision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"quote_token_id":{"type":"string"},"quote_token_contract":{"type":"string"},"quote_token_symbol":{"type":"string"},"quote_token_precision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Orderbook market row: fee, frozen, min_buy, min_sell"}},"required":["market_id","ticker_id","base_token_id","base_token_contract","base_token_symbol","base_token_precision","quote_token_id","quote_token_contract","quote_token_symbol","quote_token_precision","meta"],"additionalProperties":false,"description":"An orderbook market"},"Pool":{"type":"object","properties":{"pool_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"token_a_id":{"type":"string"},"token_a_contract":{"type":"string"},"token_a_symbol":{"type":"string"},"token_a_decimals":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"token_a_has_logo":{"type":"boolean","description":"GET /<chain>/tokens/:id/logo answers with an image; no need to ask for one otherwise"},"token_b_id":{"type":"string"},"token_b_contract":{"type":"string"},"token_b_symbol":{"type":"string"},"token_b_decimals":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"token_b_has_logo":{"type":"boolean","description":"GET /<chain>/tokens/:id/logo answers with an image; no need to ask for one otherwise"},"fee_tier":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Fee in hundredths of a basis point: 3000 = 0.3%"},"tick_spacing":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"active":{"type":"boolean"},"sqrt_price_x64":{"type":["string","null"]},"tick":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"liquidity":{"description":"Liquidity in range","type":["string","null"]},"reserve_a":{"anyOf":[{"type":"string","description":"Decimal token amount, e.g. \"12.3450\""},{"type":"null"}]},"reserve_b":{"anyOf":[{"type":"string","description":"Decimal token amount, e.g. \"12.3450\""},{"type":"null"}]},"price_a":{"description":"Token A priced in token B","type":["number","null"]},"price_b":{"description":"Token B priced in token A","type":["number","null"]},"tvl_usd":{"description":"Without self-valuation: the side whose price is of the pool's best tier (strong or thin, db/pool-sql.ts) at its price, at most the depth of its price; the other side at its own price but at most as much, as much again without a price; null when neither side's price is strong or thin","type":["number","null"]},"tvl_estimated":{"type":"boolean","description":"No side has a strong price: tvl_usd is an estimate from thin prices ($100 to $1,000 of depth), counted in no statistics (chain, token and farm TVL, TVL history, LP totals)"},"volume_usd_24h":{"type":"number"},"volume_usd_7d":{"type":"number"},"volume_usd_30d":{"type":"number"},"volume_usd_90d":{"type":"number"},"volume_usd_all":{"type":"number"},"swaps_24h":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"swaps_7d":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"swaps_30d":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"swaps_90d":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"swaps_all":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"change_24h":{"description":"Price change, percent; 0 without a swap in the window, null when the pool never traded or not before the window","type":["number","null"]},"change_7d":{"type":["number","null"]},"state_block_num":{"anyOf":[{"type":"string","description":"int64 as string"},{"type":"null"}],"description":"Block the state is as of"}},"required":["pool_id","token_a_id","token_a_contract","token_a_symbol","token_a_decimals","token_a_has_logo","token_b_id","token_b_contract","token_b_symbol","token_b_decimals","token_b_has_logo","fee_tier","tick_spacing","active","sqrt_price_x64","tick","liquidity","reserve_a","reserve_b","price_a","price_b","tvl_usd","tvl_estimated","volume_usd_24h","volume_usd_7d","volume_usd_30d","volume_usd_90d","volume_usd_all","swaps_24h","swaps_7d","swaps_30d","swaps_90d","swaps_all","change_24h","change_7d","state_block_num"],"additionalProperties":false,"description":"A swap.alcor pool with its live state (kept equal to the contract: pool.updated on pool:<id> and pools:all when it changes). Volumes, swaps and changes are from hourly and daily candles, refreshed every minute. Price is token A in token B."},"HolderStats":{"type":"object","properties":{"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"change1h":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"change6h":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"change24h":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"at":{"type":"string","description":"Time of the latest sample"}},"required":["count","change1h","change6h","change24h","at"],"additionalProperties":false,"description":"Holder count, sampled every 30 minutes, and its change"},"Token":{"type":"object","properties":{"token_id":{"type":"string"},"contract":{"type":"string"},"symbol":{"type":"string"},"decimals":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"trusted":{"type":"boolean"},"tracked":{"type":"boolean","description":"Balances and holders are indexed"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"price_usd":{"description":"null: no price known","type":["number","null"]},"source":{"anyOf":[{"type":"string","enum":["derived","anchor","external","bridged","orderbook"],"description":"'derived' (from pools), 'anchor' (stablecoins), 'external' (CoinGecko), 'bridged' (a wrap.alcor token at the price of the asset it stands for on another chain), 'orderbook' (book.alcor's last trade, for a token no pool prices)"},{"type":"null"}],"description":"Where price_usd comes from"},"price_reliable":{"type":"boolean","description":"Strong or thin (db/pool-sql.ts priceTier). Strong: an anchor, CoinGecko or book price, one derived from $1,000 or more of liquidity, or a bridged one from a strong price. Thin: derived or bridged from $100 to $1,000; it counts in TVL only in a pool with a strong side, and at most as much as that side"},"price_depth_usd":{"description":"USD liquidity a derived price stands on (a bridged one: its original's); null for an anchor, CoinGecko or book price","type":["number","null"]},"score":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Token Score v1, 0..100, recomputed every 15 minutes; null until the first run after the token appeared"},"scam":{"type":"boolean","description":"The token or its contract is on the scam list"},"has_logo":{"type":"boolean","description":"GET /<chain>/tokens/:id/logo answers with an image; no need to ask for one otherwise"},"holders":{"anyOf":[{"$ref":"#/components/schemas/HolderStats"},{"type":"null"}]}},"required":["token_id","contract","symbol","decimals","trusted","tracked","meta","price_usd","source","price_reliable","price_depth_usd","score","scam","has_logo","holders"],"additionalProperties":false},"FarmIncentiveOfPosition":{"type":"object","properties":{"incentiveId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rewardTokenId":{"type":"string"},"rewardSymbol":{"type":"string"},"rewardDecimals":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rewardHasLogo":{"type":"boolean","description":"GET /<chain>/tokens/:id/logo answers with an image; no need to ask for one otherwise"},"rewardPerDay":{"type":"string","description":"What the whole incentive pays per day; \"0\" once finished"},"periodFinish":{"type":"string","format":"date-time"},"finished":{"type":"boolean"},"aprPct":{"description":"Yearly reward over the USD value staked in the incentive; null when finished, nothing is staked or a price is missing","type":["number","null"]},"stake":{"anyOf":[{"type":"object","properties":{"sharePct":{"type":"number","description":"The position's share of the incentive's staking weight"},"rewardPerDay":{"type":"string","description":"What the position gets per day at its share"},"earned":{"type":"string","description":"Rewards to claim now"},"earnedUsd":{"type":["number","null"]}},"required":["sharePct","rewardPerDay","earned","earnedUsd"],"additionalProperties":false},{"type":"null"}],"description":"null: the position is not staked in this incentive"}},"required":["incentiveId","rewardTokenId","rewardSymbol","rewardDecimals","rewardHasLogo","rewardPerDay","periodFinish","finished","aprPct","stake"],"additionalProperties":false,"description":"A farm incentive on the position's pool, with the position's stake in it"},"PositionState":{"type":"object","properties":{"inRange":{"type":"boolean"},"price":{"type":"number","description":"Current pool price, token A in token B"},"tokenA":{"type":"object","properties":{"contract":{"type":"string"},"symbol":{"type":"string"},"decimals":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"amount":{"type":"string","description":"In the position at the current price"},"fees":{"type":"string","description":"Fees owed"},"priceUsd":{"type":["number","null"]},"reliable":{"type":"boolean","description":"The side counts at priceUsd in this pool: a strong or thin price, not derived from this pool, in a pool with a strong side; false in a pool valued as an estimate (valueEstimated)"},"valueUsd":{"description":"The side's part of valueUsd under the same rule (the two add up to it); null when the position can't be valued","type":["number","null"]},"feesUsd":{"description":"The side's part of feesUsd, likewise","type":["number","null"]}},"required":["contract","symbol","decimals","amount","fees","priceUsd","reliable","valueUsd","feesUsd"],"additionalProperties":false},"tokenB":{"type":"object","properties":{"contract":{"type":"string"},"symbol":{"type":"string"},"decimals":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"amount":{"type":"string","description":"In the position at the current price"},"fees":{"type":"string","description":"Fees owed"},"priceUsd":{"type":["number","null"]},"reliable":{"type":"boolean","description":"The side counts at priceUsd in this pool: a strong or thin price, not derived from this pool, in a pool with a strong side; false in a pool valued as an estimate (valueEstimated)"},"valueUsd":{"description":"The side's part of valueUsd under the same rule (the two add up to it); null when the position can't be valued","type":["number","null"]},"feesUsd":{"description":"The side's part of feesUsd, likewise","type":["number","null"]}},"required":["contract","symbol","decimals","amount","fees","priceUsd","reliable","valueUsd","feesUsd"],"additionalProperties":false},"valueUsd":{"type":"number","description":"Valued as the pool's TVL is: the side of the pool's best price tier at its price, the other at its own price but at most as much (as much without a price), 0 when neither side's price is strong or thin"},"feesUsd":{"type":"number","description":"Fees owed, USD, valued the same way"},"valueEstimated":{"type":"boolean","description":"No side of the pool has a strong price: valueUsd and feesUsd are estimates from thin prices, left out of every total (positions summary, LP leaderboard), as the pool's tvl_estimated"},"poolSharePct":{"type":"number","description":"Share of the pool's liquidity in range; 0 out of range"},"estimatedFees24hUsd":{"type":"number","description":"The pool's fees over the last 24h at this share"},"estimatedFees7dUsd":{"type":"number","description":"The pool's fees over the last 7 days at this share"},"apr":{"type":"object","properties":{"periodDays":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Days of pool volume the fee APR looks at"},"fee":{"type":"number","description":"Percent: estimatedFees7dUsd over valueUsd, a year of it"},"farm":{"type":"number","description":"Percent: sum of aprPct of the running incentives the position is staked in"},"total":{"type":"number"}},"required":["periodDays","fee","farm","total"],"additionalProperties":false,"description":"Percent a year"},"pnl":{"anyOf":[{"type":"object","properties":{"mintedUsd":{"type":"number","description":"USD put in, at the time of each mint"},"burnedUsd":{"type":"number","description":"USD taken out, at the time of each burn"},"collectedUsd":{"type":"number","description":"Fees collected, USD at the time"},"usd":{"type":"number","description":"valueUsd + feesUsd + burnedUsd + collectedUsd - mintedUsd"}},"required":["mintedUsd","burnedUsd","collectedUsd","usd"],"additionalProperties":false},{"type":"null"}],"description":"null when the history has no mint (a position received by transfer), an action without a USD value, or a side of the pool without a reliable price now"},"farm":{"type":"object","properties":{"status":{"anyOf":[{"type":"string","enum":["staked","partiallyStaked","notStaked"]},{"type":"null"}],"description":"Over the running incentives; null when the pool has none"},"incentives":{"type":"array","items":{"$ref":"#/components/schemas/FarmIncentiveOfPosition"},"description":"The pool's running incentives and the finished ones the position is still staked in"}},"required":["status","incentives"],"additionalProperties":false}},"required":["inRange","price","tokenA","tokenB","valueUsd","feesUsd","valueEstimated","poolSharePct","estimatedFees24hUsd","estimatedFees7dUsd","apr","pnl","farm"],"additionalProperties":false,"description":"Live state computed from the pool on chain (cached 5s per pool)"},"Position":{"type":"object","properties":{"position_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pool_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"owner":{"type":"string"},"token_a_id":{"type":["string","null"]},"token_b_id":{"type":["string","null"]},"token_a_has_logo":{"type":"boolean","description":"GET /<chain>/tokens/:id/logo answers with an image; no need to ask for one otherwise"},"token_b_has_logo":{"type":"boolean","description":"GET /<chain>/tokens/:id/logo answers with an image; no need to ask for one otherwise"},"tick_lower":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"tick_upper":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"price_lower":{"description":"Lower end of the range, token A in token B; 0 for a range open below","type":["number","null"]},"price_upper":{"description":"Upper end of the range, token A in token B; null for a range open above (∞)","type":["number","null"]},"liquidity":{"type":"string"},"fee_growth_inside_a_last_x64":{"type":["string","null"]},"fee_growth_inside_b_last_x64":{"type":["string","null"]},"fees_a":{"anyOf":[{"type":"string","description":"Decimal token amount, e.g. \"12.3450\""},{"type":"null"}],"description":"Fees owed at the last action on the position (state.tokenA.fees is up to date)"},"fees_b":{"anyOf":[{"type":"string","description":"Decimal token amount, e.g. \"12.3450\""},{"type":"null"}]},"locked_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Its liquidity cannot be withdrawn or transferred before this time; null: never locked"},"opened_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"closed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"last_block_num":{"type":"string","description":"int64 as string"},"fee_tier":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"state":{"anyOf":[{"$ref":"#/components/schemas/PositionState"},{"type":"null"}],"description":"null for a closed position, or when it could not be computed"},"state_error":{"description":"Why `state` is null for an open position","type":"string"}},"required":["position_id","pool_id","owner","token_a_id","token_b_id","token_a_has_logo","token_b_has_logo","tick_lower","tick_upper","price_lower","price_upper","liquidity","fee_growth_inside_a_last_x64","fee_growth_inside_b_last_x64","fees_a","fees_b","locked_until","opened_at","closed_at","last_block_num","fee_tier","state"],"additionalProperties":false,"description":"A position as in the swap.alcor positions table"},"PositionsSummary":{"type":"object","properties":{"positions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Open positions with a state"},"valueUsd":{"type":"number"},"feesUsd":{"type":"number"},"estimatedFees24hUsd":{"type":"number"},"estimatedFees7dUsd":{"type":"number"},"pnlUsd":{"type":"number","description":"Sum over the positions whose pnl is known"},"apr":{"type":"object","properties":{"periodDays":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"fee":{"type":"number","description":"Percent: estimatedFees7dUsd over valueUsd, a year of it"},"fee24h":{"type":"number","description":"Percent: estimatedFees24hUsd over valueUsd, a year of it"},"farm":{"type":"number","description":"Farm APR of the positions weighted by value"},"total":{"type":"number","description":"fee + farm"}},"required":["periodDays","fee","fee24h","farm","total"],"additionalProperties":false},"inRange":{"type":"object","properties":{"positions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"valueUsd":{"type":"number"},"valuePct":{"type":"number","description":"Share of valueUsd in range, percent"}},"required":["positions","valueUsd","valuePct"],"additionalProperties":false}},"required":["positions","valueUsd","feesUsd","estimatedFees24hUsd","estimatedFees7dUsd","pnlUsd","apr","inRange"],"additionalProperties":false,"description":"Totals over a set of positions"},"AmmCandle":{"type":"object","properties":{"t":{"type":"string","description":"Bucket start"},"o":{"type":"number"},"h":{"type":"number"},"l":{"type":"number"},"c":{"type":"number"},"v":{"description":"Volume, USD","type":["number","null"]},"n":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Swaps"}},"required":["t","o","h","l","c","v","n"],"additionalProperties":false},"OrderbookCandle":{"type":"object","properties":{"t":{"type":"string","description":"Bucket start"},"o":{"type":"number"},"h":{"type":"number"},"l":{"type":"number"},"c":{"type":"number"},"vBid":{"type":"number","description":"Base token volume, raw units"},"vAsk":{"type":"number","description":"Quote token volume, raw units"},"n":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Fills"}},"required":["t","o","h","l","c","vBid","vAsk","n"],"additionalProperties":false},"SwapEvent":{"type":"object","properties":{"chain":{"type":"string"},"poolId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"time":{"type":"string","description":"Block time, ISO 8601 UTC"},"price":{"type":"number","description":"Token A priced in token B after the swap"},"sender":{"type":["string","null"]},"recipient":{"type":["string","null"]},"volumeUsd":{"type":["number","null"]},"trxId":{"description":"Transaction id","type":["string","null"]},"blockNum":{"type":"string","description":"Block number (int64 as string)"}},"required":["chain","poolId","time","price","sender","recipient","volumeUsd","trxId","blockNum"],"additionalProperties":false,"description":"A swap on an AMM pool. Channels: pool:<id>, account:<sender>, account:<recipient>."},"TransferEvent":{"type":"object","properties":{"chain":{"type":"string"},"tokenId":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"},"amount":{"type":"string","description":"Raw integer units"},"memo":{"type":["string","null"]},"time":{"type":"string","description":"Block time, ISO 8601 UTC"},"trxId":{"description":"Transaction id","type":["string","null"]},"blockNum":{"type":"string","description":"Block number (int64 as string)"}},"required":["chain","tokenId","from","to","amount","memo","time","trxId","blockNum"],"additionalProperties":false,"description":"A transfer of a tracked token. Channels: token:<id>, account:<from>, account:<to>."},"BalanceEvent":{"type":"object","properties":{"chain":{"type":"string"},"tokenId":{"type":"string"},"account":{"type":"string"},"balance":{"type":"string","description":"New balance, raw integer units"},"blockNum":{"type":"string","description":"Block number (int64 as string)"}},"required":["chain","tokenId","account","balance","blockNum"],"additionalProperties":false,"description":"An account's balance of a tracked token was re-read from chain after a transfer. Channels: account:<account>, token:<id>."},"TokenPriceEvent":{"type":"object","properties":{"chain":{"type":"string"},"tokenId":{"type":"string"},"priceUsd":{"type":"number"},"source":{"type":"string","description":"'derived' (from pools), 'anchor', 'external', 'bridged' (the original's price), 'orderbook' (book.alcor's last trade)"},"viaPool":{"description":"Busiest pool of those the derived price came from","anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["chain","tokenId","priceUsd","source"],"additionalProperties":false,"description":"A token USD price changed. Channel: token:<id>."},"TokensPricesEvent":{"type":"object","properties":{"chain":{"type":"string"},"at":{"type":"string","description":"When the pricing pass ended, ISO 8601 UTC"},"prices":{"type":"object","propertyNames":{"type":"string","description":"Token id"},"additionalProperties":{"type":"object","properties":{"usd":{"description":"null: the token no longer has a price","type":["number","null"]},"system":{"description":"In the chain's system token (WAX, XPR, EOS, TLOS)","type":["number","null"]},"source":{"anyOf":[{"type":"string","enum":["derived","anchor","external","bridged","orderbook"]},{"type":"null"}]}},"required":["usd","system","source"],"additionalProperties":false},"description":"Only the tokens whose USD or system price moved by 0.1% or more, got a price or lost it"}},"required":["chain","at","prices"],"additionalProperties":false,"description":"The prices that changed in one pass of the pricing job (about every 30 s). Channel: tokens:all."},"LaunchpadToken":{"type":"object","properties":{"token_id":{"type":"string"},"chain":{"type":"string"},"symbol":{"type":"string"},"name":{"description":"The chain registry's name (token.proton on XPR)","type":["string","null"]},"contract":{"type":"string"},"decimals":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"has_logo":{"type":"boolean","description":"GET /<chain>/tokens/:id/logo answers with an image"},"status":{"type":"string","enum":["LAUNCH","GRADUATED"],"description":"GRADUATED at $250k of liquidity or $500k of volume in 24h"},"created_at":{"description":"First trade on Alcor, ms","type":["number","null"]},"updated_at":{"type":"number","description":"ms"},"quote_token_id":{"type":"string","description":"The chain's coin"},"pool_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Its deepest pool against the coin"},"price_quote":{"type":"number","description":"In the coin"},"price_base":{"type":"number","description":"In the coin (the same as price_quote)"},"price_usd":{"type":"number"},"market_cap":{"description":"Supply × price_usd","type":["number","null"]},"fdv":{"type":["number","null"]},"supply":{"type":["number","null"]},"liquidity":{"type":"object","properties":{"base":{"type":"number","description":"The coin in its deepest pool"},"usd":{"type":"number","description":"That pool's TVL, without self-valuation"}},"required":["base","usd"],"additionalProperties":false},"volume":{"type":"object","properties":{"m5":{"type":"number"},"h1":{"type":"number"},"h24":{"type":"number"}},"required":["m5","h1","h24"],"additionalProperties":false,"description":"In the coin, over all its pools"},"volume_usd":{"type":"object","properties":{"m5":{"type":"number"},"h1":{"type":"number"},"h24":{"type":"number"}},"required":["m5","h1","h24"],"additionalProperties":false},"price_change_pct":{"type":"object","properties":{"m5":{"type":"number"},"h1":{"type":"number"},"h24":{"type":"number"}},"required":["m5","h1","h24"],"additionalProperties":false,"description":"In its deepest pool against the coin"},"trades_count":{"type":"object","properties":{"m5":{"type":"number"},"h1":{"type":"number"},"h24":{"type":"number"}},"required":["m5","h1","h24"],"additionalProperties":false},"last_trade":{"anyOf":[{"type":"object","properties":{"ts":{"type":"number"},"price":{"type":"number","description":"In the coin"},"amount":{"type":"number","description":"Of the token"},"side":{"type":"string","enum":["buy","sell"]},"tx_id":{"type":"string"}},"required":["ts","price","amount","side","tx_id"],"additionalProperties":false},{"type":"null"}]},"rank":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Trending rank; null for a scam-listed token or one under $100 of liquidity"},"score":{"type":"number","description":"Trending score"},"organic_rank":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"organic_score":{"type":"number"}},"required":["token_id","chain","symbol","name","contract","decimals","has_logo","status","created_at","updated_at","quote_token_id","pool_id","price_quote","price_base","price_usd","market_cap","fdv","supply","liquidity","volume","volume_usd","price_change_pct","trades_count","last_trade","rank","score","organic_rank","organic_score"],"additionalProperties":false,"description":"A token of the meme terminal: its last 5 minutes, hour and day"},"LaunchpadTokensEvent":{"type":"object","properties":{"chain":{"type":"string"},"at":{"type":"string"},"tokens":{"type":"array","items":{"$ref":"#/components/schemas/LaunchpadToken"}}},"required":["chain","at","tokens"],"additionalProperties":false,"description":"The terminal cards that changed in one pricing pass (about every 30 s). Channel: launchpad:all."},"PoolCreatedEvent":{"type":"object","properties":{"chain":{"type":"string"},"poolId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"tokenA":{"type":"object","properties":{"contract":{"type":"string"},"symbol":{"type":"string"},"decimals":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["contract","symbol","decimals"],"additionalProperties":false},"tokenB":{"type":"object","properties":{"contract":{"type":"string"},"symbol":{"type":"string"},"decimals":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["contract","symbol","decimals"],"additionalProperties":false},"feeTier":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["chain","poolId","tokenA","tokenB","feeTier"],"additionalProperties":false,"description":"A new AMM pool. Channels: pool:<id>, token:<tokenA id>, token:<tokenB id>."},"PoolUpdatedEvent":{"type":"object","properties":{"chain":{"type":"string"},"poolId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"active":{"type":"boolean"},"sqrtPriceX64":{"type":"string"},"tick":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"liquidity":{"type":"string","description":"Liquidity in range"},"reserveA":{"type":"string","description":"Decimal token amount"},"reserveB":{"type":"string","description":"Decimal token amount"},"priceA":{"type":"number","description":"Token A priced in token B"},"priceB":{"description":"Token B priced in token A; null while priceA is 0","type":["number","null"]},"blockNum":{"type":"string","description":"Block number (int64 as string)"}},"required":["chain","poolId","active","sqrtPriceX64","tick","liquidity","reserveA","reserveB","priceA","priceB","blockNum"],"additionalProperties":false,"description":"A pool's new state: after the block's swaps on it (once per block), or about a second after a mint, burn, collect or lockpool, re-read from the contract; after a mint or a burn the pool's ticks are re-read first, so GET /pools/:id/liquidity is up to date when it arrives. The same as GET /pools/:id. Channels: pool:<id>, pools:all."},"BookMatchEvent":{"type":"object","properties":{"chain":{"type":"string"},"marketId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"time":{"type":"string","description":"Block time, ISO 8601 UTC"},"type":{"type":"string","enum":["buymatch","sellmatch"],"description":"buymatch: the taker bought the quote token"},"unitPrice":{"type":"number","description":"Base token (the price currency) per quote token"},"base":{"type":"string","description":"Decimal amount of the base token"},"quote":{"type":"string","description":"Decimal amount of the quote token"},"bidder":{"type":"string"},"asker":{"type":"string"},"trxId":{"description":"Transaction id","type":["string","null"]},"globalSequence":{"type":"string"}},"required":["chain","marketId","time","type","unitPrice","base","quote","bidder","asker","trxId","globalSequence"],"additionalProperties":false,"description":"A fill on the v1 orderbook. Channels: book:<marketId>, account:<bidder>, account:<asker>."},"BookLevelsEvent":{"type":"object","properties":{"chain":{"type":"string"},"marketId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"side":{"type":"string","enum":["buy","sell"]},"update":{"type":"array","items":{"type":"array","prefixItems":[{"type":"string"},{"type":"string"},{"type":"string"}],"items":false,"minItems":3,"maxItems":3},"description":"Levels that changed: [unit_price × 10^8, bid, ask] raw; a level gone is [unit_price, \"0\", \"0\"]"},"blockNum":{"anyOf":[{"type":"string","description":"Block number (int64 as string)"},{"type":"null"}]}},"required":["chain","marketId","side","update","blockNum"],"additionalProperties":false,"description":"A v1 orderbook side's levels that changed when it was re-read from the contract. Channel: book:<marketId>."},"BookOrderEvent":{"type":"object","properties":{"chain":{"type":"string"},"marketId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"action":{"type":"string","enum":["buyreceipt","sellreceipt","cancelbuy","cancelsell"],"description":"An order placed (receipt) or cancelled"},"account":{"type":"string","description":"The order's owner; for a cancel, who cancelled it"},"time":{"type":"string","description":"Block time, ISO 8601 UTC"},"trxId":{"description":"Transaction id","type":["string","null"]},"blockNum":{"type":"string","description":"Block number (int64 as string)"}},"required":["chain","marketId","action","account","time","trxId","blockNum"],"additionalProperties":false,"description":"An order placed or cancelled on the v1 orderbook. Channels: book:<marketId>, account:<account>."},"PositionActionEvent":{"type":"object","properties":{"chain":{"type":"string"},"positionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"poolId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"owner":{"type":"string"},"type":{"type":"string","enum":["mint","burn","collect","lock"]},"liquidity":{"type":"string","description":"Liquidity of the action (mint: added, burn: removed)"},"time":{"type":"string","description":"Block time, ISO 8601 UTC"},"trxId":{"description":"Transaction id","type":["string","null"]},"blockNum":{"type":"string","description":"Block number (int64 as string)"}},"required":["chain","positionId","poolId","owner","type","liquidity","time","trxId","blockNum"],"additionalProperties":false,"description":"A swap.alcor position log: liquidity added (mint), removed (burn), fees collected (collect), locked (lock). Channels: position:<id>, pool:<id>, account:<owner>."},"PositionTransferEvent":{"type":"object","properties":{"chain":{"type":"string"},"poolId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"from":{"type":"string"},"to":{"type":"string"},"fromPositionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"toPositionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"time":{"type":"string","description":"Block time, ISO 8601 UTC"},"trxId":{"description":"Transaction id","type":["string","null"]},"blockNum":{"type":"string","description":"Block number (int64 as string)"}},"required":["chain","poolId","from","to","fromPositionId","toPositionId","time","trxId","blockNum"],"additionalProperties":false,"description":"A position changed hands: the source position closes, the target one opens. Channels: position:<from id>, position:<to id>, pool:<id>, account:<from>, account:<to>."},"PositionUpdatedEvent":{"type":"object","properties":{"chain":{"type":"string"},"positionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"poolId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"owner":{"description":"null only for a position the indexer never had","type":["string","null"]},"liquidity":{"type":"string"},"closed":{"type":"boolean","description":"true when the position is gone from the contract"},"blockNum":{"type":"string","description":"Block number (int64 as string)"}},"required":["chain","positionId","poolId","owner","liquidity","closed","blockNum"],"additionalProperties":false,"description":"The indexer re-read the position from the contract, with its lock and farm stakes, after any position or farm event on it (about a second later): GET /positions/:id now returns the new state. closed=true means it was removed. Channels: position:<id>, pool:<id>, account:<owner>."},"FarmEvent":{"type":"object","properties":{"chain":{"type":"string"},"incentiveId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"-1 when the action does not name the incentive (newincentive)"},"poolId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"null for a position the indexer does not have"},"owner":{"type":["string","null"]},"positionId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"time":{"type":"string","description":"Block time, ISO 8601 UTC"},"trxId":{"description":"Transaction id","type":["string","null"]},"blockNum":{"type":"string","description":"Block number (int64 as string)"}},"required":["chain","incentiveId","poolId","owner","positionId","time","trxId","blockNum"],"additionalProperties":false,"description":"A farm action. Channels: incentive:<id>, pool:<id>, account:<owner>, position:<id>."},"StakingEvent":{"type":"object","properties":{"chain":{"type":"string"},"type":{"type":"string","enum":["withdraw-request","claim","batch-unstake","exchange-rate","config"]},"account":{"type":["string","null"]},"withdrawId":{"type":["string","null"]},"requestAmount":{"description":"Raw integer units","type":["string","null"]},"withdrawAmount":{"description":"Raw integer units","type":["string","null"]},"time":{"type":"string","description":"Block time, ISO 8601 UTC"},"trxId":{"description":"Transaction id","type":["string","null"]},"blockNum":{"type":"string","description":"Block number (int64 as string)"}},"required":["chain","type","account","withdrawId","requestAmount","withdrawAmount","time","trxId","blockNum"],"additionalProperties":false,"description":"A liquid.alcor staking action. Channels: staking:all, account:<account>."},"FarmIncentive":{"type":"object","properties":{"incentive_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pool_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"creator":{"type":"string"},"reward_token_id":{"type":"string"},"reward_token_contract":{"type":"string"},"reward_token_symbol":{"type":"string"},"reward_token_decimals":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"reward_token_has_logo":{"type":"boolean","description":"GET /<chain>/tokens/:id/logo answers with an image; no need to ask for one otherwise"},"reward_quantity":{"type":"string","description":"Everything deposited into the incentive over all its periods, as an asset string, e.g. \"730000.00000000 AUBAR\""},"period_reward":{"type":"string","description":"The current period's budget: reward rate × duration"},"reward_rate_e18":{"type":"string","description":"Reward per second, scaled by 1e18"},"rewards_duration_s":{"type":"string","description":"Duration, seconds"},"period_finish":{"type":"string","format":"date-time"},"reward_per_token_stored":{"type":["string","null"]},"total_staking_weight":{"type":["string","null"]},"last_update_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"number_of_stakes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"created_at":{"type":"string","format":"date-time"},"refreshed_at":{"description":"When the indexer last read the incentive from chain","type":"string","format":"date-time"},"finished":{"type":"boolean"},"days_remain":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Days to period_finish, rounded up; 0 when finished"},"reward_per_day":{"type":"string","description":"What the incentive pays a day; 0 when finished"},"reward_per_day_usd":{"description":"null when the reward token has no price","type":["number","null"]},"reward_token_price_usd":{"type":["number","null"]},"staked_positions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Positions staked in the incentive"},"staked_tvl_usd":{"type":"number","description":"Value of the staked positions, counted as the pool's TVL is (no self-valuation) and at most it; refreshed every minute"},"utilization_pct":{"description":"staked_tvl_usd over the pool's TVL, percent, at most 100; null when the pool has no TVL","type":["number","null"]},"apr":{"description":"reward_per_day_usd × 365 over staked_tvl_usd, percent; null when finished, without a reward price or under $1 staked","type":["number","null"]},"pool":{"type":"object","properties":{"pool_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"fee_tier":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Fee in hundredths of a basis point: 3000 = 0.3%"},"token_a":{"type":"object","properties":{"id":{"type":"string"},"contract":{"type":"string"},"symbol":{"type":"string"},"decimals":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"has_logo":{"type":"boolean","description":"GET /<chain>/tokens/:id/logo answers with an image; no need to ask for one otherwise"},"reserve":{"type":"string","description":"Decimal token amount, e.g. \"12.3450\""}},"required":["id","contract","symbol","decimals","has_logo","reserve"],"additionalProperties":false},"token_b":{"type":"object","properties":{"id":{"type":"string"},"contract":{"type":"string"},"symbol":{"type":"string"},"decimals":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"has_logo":{"type":"boolean","description":"GET /<chain>/tokens/:id/logo answers with an image; no need to ask for one otherwise"},"reserve":{"type":"string","description":"Decimal token amount, e.g. \"12.3450\""}},"required":["id","contract","symbol","decimals","has_logo","reserve"],"additionalProperties":false},"price_a":{"description":"Token A priced in token B","type":["number","null"]},"price_b":{"type":["number","null"]},"change_24h":{"description":"Price change over 24h, percent","type":["number","null"]},"tvl_usd":{"description":"Without self-valuation: a side whose price is reliable and not derived from this pool at that price, at most the depth of its price; the other side as much again; null when neither side is reliable","type":["number","null"]},"volume_usd":{"type":"number","description":"USD volume over the window"},"swaps":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Swaps over the window"}},"required":["pool_id","fee_tier","token_a","token_b","price_a","price_b","change_24h","tvl_usd","volume_usd","swaps"],"additionalProperties":false}},"required":["incentive_id","pool_id","creator","reward_token_id","reward_token_contract","reward_token_symbol","reward_token_decimals","reward_token_has_logo","reward_quantity","period_reward","reward_rate_e18","rewards_duration_s","period_finish","reward_per_token_stored","total_staking_weight","last_update_time","number_of_stakes","created_at","refreshed_at","finished","days_remain","reward_per_day","reward_per_day_usd","reward_token_price_usd","staked_positions","staked_tvl_usd","utilization_pct","apr","pool"],"additionalProperties":false,"description":"A farm incentive on a pool: the contract state, what it pays and its APR, and the pool"},"PoolCard":{"type":"object","properties":{"pool_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"fee_tier":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Fee in hundredths of a basis point: 3000 = 0.3%"},"active":{"type":"boolean"},"token_a":{"type":"object","properties":{"id":{"type":"string"},"contract":{"type":"string"},"symbol":{"type":"string"},"decimals":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"has_logo":{"type":"boolean","description":"GET /<chain>/tokens/:id/logo answers with an image; no need to ask for one otherwise"},"reserve":{"type":"string","description":"Decimal token amount, e.g. \"12.3450\""}},"required":["id","contract","symbol","decimals","has_logo","reserve"],"additionalProperties":false},"token_b":{"type":"object","properties":{"id":{"type":"string"},"contract":{"type":"string"},"symbol":{"type":"string"},"decimals":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"has_logo":{"type":"boolean","description":"GET /<chain>/tokens/:id/logo answers with an image; no need to ask for one otherwise"},"reserve":{"type":"string","description":"Decimal token amount, e.g. \"12.3450\""}},"required":["id","contract","symbol","decimals","has_logo","reserve"],"additionalProperties":false},"price_a":{"description":"Token A priced in token B","type":["number","null"]},"price_b":{"type":["number","null"]},"change_24h":{"description":"Price change, percent","type":["number","null"]},"change_7d":{"type":["number","null"]},"tvl_usd":{"description":"Without self-valuation: the side whose price is of the pool's best tier (strong or thin, db/pool-sql.ts) at its price, at most the depth of its price; the other side at its own price but at most as much, as much again without a price; null when neither side's price is strong or thin","type":["number","null"]},"tvl_estimated":{"type":"boolean","description":"No side has a strong price: tvl_usd is an estimate from thin prices ($100 to $1,000 of depth), counted in no statistics (chain, token and farm TVL, TVL history, LP totals)"},"volume_usd":{"type":"number","description":"USD volume over the window"},"swaps":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Swaps over the window"},"apr":{"type":"object","properties":{"period_days":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"fee":{"type":"number","description":"7 days' volume × fee over TVL, a year of it, percent"},"farm":{"type":"number","description":"Sum of the running incentives' APRs"},"total":{"type":"number"}},"required":["period_days","fee","farm","total"],"additionalProperties":false,"description":"Percent"},"incentives":{"description":"Running incentives; with include=incentives, and always on one pool","type":"array","items":{"$ref":"#/components/schemas/FarmIncentive"}}},"required":["pool_id","fee_tier","active","token_a","token_b","price_a","price_b","change_24h","change_7d","tvl_usd","tvl_estimated","volume_usd","swaps","apr"],"additionalProperties":false,"description":"A pool with its stats over a window"},"TokenCard":{"type":"object","properties":{"token_id":{"type":"string"},"contract":{"type":"string"},"symbol":{"type":"string"},"decimals":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"trusted":{"type":"boolean"},"scam":{"type":"boolean"},"price_usd":{"type":["number","null"]},"price_source":{"anyOf":[{"type":"string","enum":["derived","anchor","external","bridged","orderbook"],"description":"'derived' (from pools), 'anchor' (stablecoins), 'external' (CoinGecko), 'bridged' (a wrap.alcor token at the price of the asset it stands for on another chain), 'orderbook' (book.alcor's last trade, for a token no pool prices)"},{"type":"null"}]},"price_reliable":{"type":"boolean","description":"Strong or thin (db/pool-sql.ts priceTier). Strong: an anchor, CoinGecko or book price, one derived from $1,000 or more of liquidity, or a bridged one from a strong price. Thin: derived or bridged from $100 to $1,000; it counts in TVL only in a pool with a strong side, and at most as much as that side"},"price_depth_usd":{"description":"USD liquidity a derived price stands on (a bridged one: its original's); null for an anchor, CoinGecko or book price","type":["number","null"]},"change_24h":{"description":"USD price change, percent: through the pool its price comes from, with the other token's change","type":["number","null"]},"change_7d":{"type":["number","null"]},"change_30d":{"type":["number","null"]},"change_90d":{"type":["number","null"]},"pools":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"swap.alcor pools the token is in"},"reserve":{"type":"string","description":"What those pools hold of it"},"tvl_usd":{"type":"number","description":"Its side of each of its pools, as the pools' TVL counts it: no pool values itself"},"locked":{"type":"object","properties":{"amount":{"type":"number","description":"Of the token, in positions locked in its pools, at their prices now"},"usd":{"type":"number","description":"At the token's price where that side of the pool is reliable, else 0"},"positions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"share":{"type":"number","description":"Percent of the token's TVL"},"next_unlock_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"last_unlock_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["amount","usd","positions","share","next_unlock_at","last_unlock_at"],"additionalProperties":false,"description":"Liquidity that cannot be withdrawn until its lock ends"},"markets":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"book.alcor markets the token is in"},"volume_usd":{"type":"object","properties":{"amm":{"type":"number"},"book":{"type":"number"},"total":{"type":"number"}},"required":["amm","book","total"],"additionalProperties":false,"description":"USD volume over the window: its pools' (amm), its book.alcor markets' (book, at the quote's price as each trade was read)"},"trades":{"type":"object","properties":{"amm":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"book":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["amm","book","total"],"additionalProperties":false,"description":"Its pools' swaps and its book.alcor markets' trades over the window"},"holders":{"anyOf":[{"$ref":"#/components/schemas/HolderStats"},{"type":"null"}]},"score":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Token Score v1"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When it first traded on Alcor: swap.alcor, a v1 pair or the old orderbook"},"has_logo":{"type":"boolean","description":"GET /<chain>/tokens/:id/logo answers with an image; no need to ask for one otherwise"}},"required":["token_id","contract","symbol","decimals","trusted","scam","price_usd","price_source","price_reliable","price_depth_usd","change_24h","change_7d","change_30d","change_90d","pools","reserve","tvl_usd","locked","markets","volume_usd","trades","holders","score","created_at","has_logo"],"additionalProperties":false,"description":"A token with its stats over a window"},"BookMarketCard":{"type":"object","properties":{"market_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"paused":{"type":"boolean"},"base":{"type":"object","properties":{"id":{"type":"string"},"contract":{"type":"string"},"symbol":{"type":"string"},"decimals":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"has_logo":{"type":"boolean","description":"GET /<chain>/tokens/:id/logo answers with an image; no need to ask for one otherwise"}},"required":["id","contract","symbol","decimals","has_logo"],"additionalProperties":false},"quote":{"type":"object","properties":{"id":{"type":"string"},"contract":{"type":"string"},"symbol":{"type":"string"},"decimals":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"has_logo":{"type":"boolean","description":"GET /<chain>/tokens/:id/logo answers with an image; no need to ask for one otherwise"}},"required":["id","contract","symbol","decimals","has_logo"],"additionalProperties":false},"last_price":{"description":"Quote per base at the last trade","type":["number","null"]},"change_24h":{"description":"Percent: 0 without a trade in the window, null without one before it","type":["number","null"]},"change_7d":{"type":["number","null"]},"volume_usd":{"type":"number","description":"Over the window"},"trades":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"fees_usd":{"type":"number"}},"required":["market_id","paused","base","quote","last_price","change_24h","change_7d","volume_usd","trades","fees_usd"],"additionalProperties":false,"description":"A book.alcor (orderbook v2) market with its stats over a window"},"ChartPoint":{"type":"object","properties":{"t":{"description":"Start of the bucket","type":"string","format":"date-time"},"tvl_usd":{"description":"The last TVL at or before the bucket; null before the first one (2026-11-01)","type":["number","null"]},"volume_usd":{"type":"number"},"fees_usd":{"type":"number","description":"Volume × each pool's fee"},"swaps":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["t","tvl_usd","volume_usd","fees_usd","swaps"],"additionalProperties":false},"LpAccount":{"type":"object","properties":{"account":{"type":"string"},"claimed_usd":{"type":"object","properties":{"24h":{"type":"number"},"7d":{"type":"number"},"30d":{"type":"number"},"all":{"type":"number"}},"required":["24h","7d","30d","all"],"additionalProperties":false,"description":"Fees collected: USD at claim time when both pool prices are reliable now, else the amounts at reliable prices"},"unclaimed_usd":{"type":"number","description":"Open positions' fees not collected yet"},"total_fees_usd":{"type":"number","description":"claimed_usd.all + unclaimed_usd"},"tvl_usd":{"type":"number","description":"Open positions, valued as pool TVL is (no self-valuation)"},"estimated_fees_24h_usd":{"type":"number","description":"Expected over the next 24 hours: the pools' 7-day volume pace × fee × the positions' share"},"apr":{"type":"object","properties":{"24h":{"type":["number","null"]},"7d":{"type":["number","null"]},"30d":{"type":["number","null"]},"estimated":{"description":"From estimated_fees_24h_usd over tvl_usd: the current pace","type":["number","null"]}},"required":["24h","7d","30d","estimated"],"additionalProperties":false},"positions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Open positions"},"pools":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"collects":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"last_collect_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"top_pools":{"type":"array","items":{"type":"object","properties":{"pool_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"fee_tier":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"token_a":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"symbol":{"type":"string"},"contract":{"type":"string"},"has_logo":{"type":"boolean","description":"GET /<chain>/tokens/:id/logo answers with an image; no need to ask for one otherwise"}},"required":["id","symbol","contract","has_logo"],"additionalProperties":false},{"type":"null"}]},"token_b":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"symbol":{"type":"string"},"contract":{"type":"string"},"has_logo":{"type":"boolean","description":"GET /<chain>/tokens/:id/logo answers with an image; no need to ask for one otherwise"}},"required":["id","symbol","contract","has_logo"],"additionalProperties":false},{"type":"null"}]},"claimed_usd":{"type":"object","properties":{"24h":{"type":"number"},"7d":{"type":"number"},"30d":{"type":"number"},"all":{"type":"number"}},"required":["24h","7d","30d","all"],"additionalProperties":false},"unclaimed_usd":{"type":"number"},"tvl_usd":{"type":"number"},"estimated_fees_24h_usd":{"type":"number"},"positions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["pool_id","fee_tier","token_a","token_b","claimed_usd","unclaimed_usd","tvl_usd","estimated_fees_24h_usd","positions"],"additionalProperties":false}}},"required":["account","claimed_usd","unclaimed_usd","total_fees_usd","tvl_usd","estimated_fees_24h_usd","apr","positions","pools","collects","last_collect_at","top_pools"],"additionalProperties":false,"description":"A liquidity provider's fees, value and pace"},"OtcOrder":{"type":"object","properties":{"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maker":{"type":"string"},"sell":{"type":"object","properties":{"token_id":{"type":"string"},"symbol":{"type":"string"},"contract":{"type":"string"},"has_logo":{"type":"boolean","description":"GET /<chain>/tokens/:id/logo answers with an image; no need to ask for one otherwise"},"quantity":{"type":"string","description":"As the contract holds it, e.g. \"601.00000000 WAX\""},"amount":{"type":"number"}},"required":["token_id","symbol","contract","has_logo","quantity","amount"],"additionalProperties":false,"description":"What the maker gives"},"buy":{"type":"object","properties":{"token_id":{"type":"string"},"symbol":{"type":"string"},"contract":{"type":"string"},"has_logo":{"type":"boolean","description":"GET /<chain>/tokens/:id/logo answers with an image; no need to ask for one otherwise"},"quantity":{"type":"string","description":"As the contract holds it, e.g. \"601.00000000 WAX\""},"amount":{"type":"number"}},"required":["token_id","symbol","contract","has_logo","quantity","amount"],"additionalProperties":false,"description":"What the maker wants"},"price":{"type":"number","description":"buy.amount per one sell token"},"scam":{"type":"boolean","description":"A side is on the scam list"}},"required":["id","maker","sell","buy","price","scam"],"additionalProperties":false},"OtcFill":{"type":"object","properties":{"time":{"type":"string","format":"date-time"},"order_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maker":{"type":"string"},"buyer":{"type":"string"},"sell":{"type":"object","properties":{"token_id":{"type":"string"},"symbol":{"type":"string"},"contract":{"type":"string"},"has_logo":{"type":"boolean","description":"GET /<chain>/tokens/:id/logo answers with an image; no need to ask for one otherwise"},"quantity":{"type":"string","description":"As the contract holds it, e.g. \"601.00000000 WAX\""},"amount":{"type":"number"}},"required":["token_id","symbol","contract","has_logo","quantity","amount"],"additionalProperties":false},"buy":{"type":"object","properties":{"token_id":{"type":"string"},"symbol":{"type":"string"},"contract":{"type":"string"},"has_logo":{"type":"boolean","description":"GET /<chain>/tokens/:id/logo answers with an image; no need to ask for one otherwise"},"quantity":{"type":"string","description":"As the contract holds it, e.g. \"601.00000000 WAX\""},"amount":{"type":"number"}},"required":["token_id","symbol","contract","has_logo","quantity","amount"],"additionalProperties":false},"price":{"type":"number"},"scam":{"type":"boolean"},"trx_id":{"type":"string"}},"required":["time","order_id","maker","buyer","sell","buy","price","scam","trx_id"],"additionalProperties":false},"PoolStats":{"type":"object","properties":{"chain":{"type":"string","enum":["wax","telos","eos","volta","xpr"],"description":"Chain"},"poolId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"price":{"description":"Price after the latest swap; null when the pool never traded","type":["number","null"]},"change24":{"description":"Price change over 24h, percent","type":["number","null"]},"high24":{"type":["number","null"]},"low24":{"type":["number","null"]},"volume24":{"description":"USD","type":["number","null"]},"swaps24":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"reserveA":{"anyOf":[{"type":"string","description":"Decimal token amount, e.g. \"12.3450\""},{"type":"null"}],"description":"After the latest swap"},"reserveB":{"anyOf":[{"type":"string","description":"Decimal token amount, e.g. \"12.3450\""},{"type":"null"}]},"tvlUsd":{"type":["number","null"]}},"required":["chain","poolId","price","change24","high24","low24","volume24","swaps24","reserveA","reserveB","tvlUsd"],"additionalProperties":false},"PoolLiquidity":{"type":"object","properties":{"chain":{"type":"string","enum":["wax","telos","eos","volta","xpr"],"description":"Chain"},"poolId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"inverted":{"type":"boolean"},"price":{"type":"number","description":"Pool price now, in the orientation of invert"},"minPrice":{"type":"number"},"maxPrice":{"type":"number"},"bins":{"type":"array","items":{"type":"object","properties":{"priceLower":{"type":"number"},"priceUpper":{"type":"number"},"liquidity":{"type":"string","description":"Liquidity in range across the bin, as an integer (u128): the running sum of liquidityNet of the ticks below each price, averaged over the bin by width"}},"required":["priceLower","priceUpper","liquidity"],"additionalProperties":false},"description":"Equal width, by ascending price"}},"required":["chain","poolId","inverted","price","minPrice","maxPrice","bins"],"additionalProperties":false,"description":"A pool's liquidity across prices, from its ticks"},"TokenHolders":{"type":"object","properties":{"chain":{"type":"string","enum":["wax","telos","eos","volta","xpr"],"description":"Chain"},"tokenId":{"type":"string"},"stats":{"anyOf":[{"$ref":"#/components/schemas/HolderStats"},{"type":"null"}]},"supply":{"anyOf":[{"type":"string","description":"Decimal token amount, e.g. \"12.3450\""},{"type":"null"}],"description":"The contract's supply; null when the chain has no such token"},"burned":{"type":"string","description":"Held by burn accounts"},"live_supply":{"anyOf":[{"type":"string","description":"Decimal token amount, e.g. \"12.3450\""},{"type":"null"}],"description":"Supply minus burned"},"is_system_token":{"type":"boolean"},"verdict":{"anyOf":[{"type":"string","enum":["highly_concentrated","concentrated","moderate","well_distributed"]},{"type":"null"}],"description":"From the top 10 wallets' share: 70% and over, 45%, 25%, below; null for the system token and when the supply is unknown"},"top_ten_wallet_share":{"description":"Top 10 wallets' percent of the supply held in wallets (live supply minus pools, protocols, exchanges)","type":["number","null"]},"segments":{"anyOf":[{"type":"object","properties":{"pool":{"type":"object","properties":{"amount":{"type":"string","description":"Decimal token amount, e.g. \"12.3450\""},"share":{"type":"number","description":"Percent of the live supply"}},"required":["amount","share"],"additionalProperties":false},"protocol":{"type":"object","properties":{"amount":{"type":"string","description":"Decimal token amount, e.g. \"12.3450\""},"share":{"type":"number","description":"Percent of the live supply"}},"required":["amount","share"],"additionalProperties":false},"exchange":{"type":"object","properties":{"amount":{"type":"string","description":"Decimal token amount, e.g. \"12.3450\""},"share":{"type":"number","description":"Percent of the live supply"}},"required":["amount","share"],"additionalProperties":false},"top_wallet":{"type":"object","properties":{"amount":{"type":"string","description":"Decimal token amount, e.g. \"12.3450\""},"share":{"type":"number","description":"Percent of the live supply"}},"required":["amount","share"],"additionalProperties":false},"wallets_2_to_10":{"type":"object","properties":{"amount":{"type":"string","description":"Decimal token amount, e.g. \"12.3450\""},"share":{"type":"number","description":"Percent of the live supply"}},"required":["amount","share"],"additionalProperties":false},"wallets_11_to_50":{"type":"object","properties":{"amount":{"type":"string","description":"Decimal token amount, e.g. \"12.3450\""},"share":{"type":"number","description":"Percent of the live supply"}},"required":["amount","share"],"additionalProperties":false},"rest":{"type":"object","properties":{"amount":{"type":"string","description":"Decimal token amount, e.g. \"12.3450\""},"share":{"type":"number","description":"Percent of the live supply"}},"required":["amount","share"],"additionalProperties":false,"description":"Everything else: wallets past the 50th"}},"required":["pool","protocol","exchange","top_wallet","wallets_2_to_10","wallets_11_to_50","rest"],"additionalProperties":false},{"type":"null"}],"description":"Disjoint, adding up to the live supply; null when it is unknown or 0"},"holders":{"type":"array","items":{"type":"object","properties":{"account":{"type":"string"},"kind":{"type":"string","enum":["pool","protocol","exchange","burn","wallet"],"description":"Who the balance belongs to: only a wallet is somebody's own"},"balance_raw":{"type":"string","description":"Integer in the token's smallest units"},"amount":{"type":"string","description":"Decimal token amount, e.g. \"12.3450\""},"share":{"description":"Percent of the live supply; null for a burn account and when the supply is unknown","type":["number","null"]},"last_time":{"type":"string","format":"date-time"}},"required":["account","kind","balance_raw","amount","share","last_time"],"additionalProperties":false},"description":"Largest first, every kind"}},"required":["chain","tokenId","stats","supply","burned","live_supply","is_system_token","verdict","top_ten_wallet_share","segments","holders"],"additionalProperties":false,"description":"A token's largest holders and how its supply splits"},"ActivityItem":{"oneOf":[{"type":"object","properties":{"time":{"type":"string","format":"date-time"},"kind":{"type":"string","const":"swap"},"data":{"type":"object","properties":{"poolId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"price":{"type":"number"},"sender":{"type":["string","null"]},"recipient":{"type":["string","null"]},"tokenAAmount":{"anyOf":[{"type":"string","description":"Decimal token amount, e.g. \"12.3450\""},{"type":"null"}],"description":"Into the pool (+) or out of it (-)"},"tokenBAmount":{"anyOf":[{"type":"string","description":"Decimal token amount, e.g. \"12.3450\""},{"type":"null"}]},"volumeUsd":{"type":["number","null"]},"trxId":{"type":["string","null"]},"blockNum":{"anyOf":[{"type":"string","description":"int64 as string"},{"type":"null"}]}},"required":["poolId","price","sender","recipient","tokenAAmount","tokenBAmount","volumeUsd","trxId","blockNum"],"additionalProperties":false}},"required":["time","kind","data"],"additionalProperties":false},{"type":"object","properties":{"time":{"type":"string","format":"date-time"},"kind":{"type":"string","const":"transfer"},"data":{"type":"object","properties":{"tokenId":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"},"amount":{"type":"string","description":"Decimal token amount, e.g. \"12.3450\""},"memo":{"type":["string","null"]},"trxId":{"type":["string","null"]},"blockNum":{"type":"string","description":"int64 as string"}},"required":["tokenId","from","to","amount","memo","trxId","blockNum"],"additionalProperties":false}},"required":["time","kind","data"],"additionalProperties":false},{"type":"object","properties":{"time":{"type":"string","format":"date-time"},"kind":{"type":"string","const":"position"},"data":{"type":"object","properties":{"positionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"poolId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"type":{"type":"string","enum":["mint","burn","collect","lock","transfer"]},"tokenA":{"type":"string","description":"Decimal token amount, e.g. \"12.3450\""},"tokenB":{"type":"string","description":"Decimal token amount, e.g. \"12.3450\""},"totalUsdValue":{"description":"null when a token the action moved had no USD price","type":["number","null"]},"liquidityDelta":{"type":["string","null"]},"trxId":{"type":["string","null"]},"blockNum":{"anyOf":[{"type":"string","description":"int64 as string"},{"type":"null"}]}},"required":["positionId","poolId","type","tokenA","tokenB","totalUsdValue","liquidityDelta","trxId","blockNum"],"additionalProperties":false}},"required":["time","kind","data"],"additionalProperties":false}]},"PoolLiquidityAction":{"type":"object","properties":{"time":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["mint","burn","collect","lock","transfer"]},"owner":{"type":"string"},"position_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"token_a":{"type":"string","description":"Decimal token amount, e.g. \"12.3450\""},"token_b":{"type":"string","description":"Decimal token amount, e.g. \"12.3450\""},"token_a_usd_price":{"type":["number","null"]},"token_b_usd_price":{"type":["number","null"]},"total_usd_value":{"description":"null when a token the action moved had no USD price","type":["number","null"]},"liquidity_delta":{"type":["string","null"]},"trx_id":{"type":["string","null"]},"block_num":{"anyOf":[{"type":"string","description":"int64 as string"},{"type":"null"}]}},"required":["time","type","owner","position_id","token_a","token_b","token_a_usd_price","token_b_usd_price","total_usd_value","liquidity_delta","trx_id","block_num"],"additionalProperties":false},"StakingWithdraw":{"type":"object","properties":{"withdraw_id":{"type":"string","description":"int64 as string"},"request_token_id":{"type":"string"},"request_amount_raw":{"type":"string","description":"Integer in the token's smallest units"},"withdraw_token_id":{"type":"string"},"withdraw_amount_raw":{"type":"string","description":"Integer in the token's smallest units"},"request_time":{"type":"string","format":"date-time"},"claimed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"null while pending"},"claim_trx_id":{"type":["string","null"]},"message":{"type":["string","null"]}},"required":["withdraw_id","request_token_id","request_amount_raw","withdraw_token_id","withdraw_amount_raw","request_time","claimed_at","claim_trx_id","message"],"additionalProperties":false,"description":"A liquid.alcor withdraw request"}}},"paths":{"/healthz":{"get":{"tags":["meta"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"],"additionalProperties":false}}}}}}},"/chains":{"get":{"tags":["meta"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"chains":{"type":"array","items":{"type":"string","enum":["wax","telos","eos","volta","xpr"]}}},"required":["chains"],"additionalProperties":false}}}}}}},"/{chain}/markets":{"get":{"summary":"All orderbook markets","tags":["markets"],"parameters":[{"schema":{"type":"string","enum":["wax","telos","eos","volta","xpr"]},"in":"path","name":"chain","required":true,"description":"Chain"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string","enum":["wax","telos","eos","volta","xpr"],"description":"Chain"},"markets":{"type":"array","items":{"$ref":"#/components/schemas/Market"}}},"required":["chain","markets"],"additionalProperties":false}}}}}}},"/{chain}/markets/{marketId}":{"get":{"summary":"One orderbook market","tags":["markets"],"parameters":[{"schema":{"type":"string","enum":["wax","telos","eos","volta","xpr"]},"in":"path","name":"chain","required":true,"description":"Chain"},{"schema":{"type":"integer","minimum":0,"maximum":9007199254740991},"in":"path","name":"marketId","required":true,"description":"Market id"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Market"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{chain}/pools":{"get":{"summary":"AMM pools, with their live state, volumes and price changes","tags":["pools"],"description":"All of them, or with `token` / `tokens` those of a token / a pair.","parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"query","name":"token","required":false,"description":"Only the pools with this token"},{"schema":{"type":"string"},"in":"query","name":"tokens","required":false,"description":"Two token ids, comma-separated: only the pools of this pair, any fee tier, either order"},{"schema":{"type":"string","enum":["wax","telos","eos","volta","xpr"]},"in":"path","name":"chain","required":true,"description":"Chain"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string","enum":["wax","telos","eos","volta","xpr"],"description":"Chain"},"pools":{"type":"array","items":{"$ref":"#/components/schemas/Pool"}}},"required":["chain","pools"],"additionalProperties":false}}}}}}},"/{chain}/pools/{poolId}":{"get":{"summary":"One AMM pool, with its live state, volumes and price changes","tags":["pools"],"parameters":[{"schema":{"type":"string","enum":["wax","telos","eos","volta","xpr"]},"in":"path","name":"chain","required":true,"description":"Chain"},{"schema":{"type":"integer","minimum":0,"maximum":9007199254740991},"in":"path","name":"poolId","required":true,"description":"Pool id"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Pool"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{chain}/pools/{poolId}/liquidity":{"get":{"summary":"Liquidity across prices, for the pool's liquidity histogram","tags":["pools"],"description":"From the pool's ticks, which the indexer re-reads after every mint and burn before it sends pool.updated: refetch on pool.updated. A pool without liquidity has bins of \"0\".","parameters":[{"schema":{"default":"false","type":"string","enum":["true","false"]},"in":"query","name":"invert","required":false,"description":"false: token A priced in token B; true: token B priced in token A"},{"schema":{"default":300,"type":"integer","exclusiveMinimum":0,"maximum":1000},"in":"query","name":"bins","required":false,"description":"Bins, at most 1000"},{"schema":{"type":"number","exclusiveMinimum":0},"in":"query","name":"min_price","required":false,"description":"Lower end, in the orientation of invert; default the price now ÷ 10"},{"schema":{"type":"number","exclusiveMinimum":0},"in":"query","name":"max_price","required":false,"description":"Upper end, in the orientation of invert; default the price now × 10"},{"schema":{"type":"string","enum":["wax","telos","eos","volta","xpr"]},"in":"path","name":"chain","required":true,"description":"Chain"},{"schema":{"type":"integer","minimum":0,"maximum":9007199254740991},"in":"path","name":"poolId","required":true,"description":"Pool id"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PoolLiquidity"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{chain}/pools/{poolId}/stats":{"get":{"summary":"Price, 24h change, high/low, volume and TVL of a pool","tags":["pools"],"parameters":[{"schema":{"type":"string","enum":["wax","telos","eos","volta","xpr"]},"in":"path","name":"chain","required":true,"description":"Chain"},{"schema":{"type":"integer","minimum":0,"maximum":9007199254740991},"in":"path","name":"poolId","required":true,"description":"Pool id"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PoolStats"}}}}}}},"/{chain}/pools/{poolId}/trades":{"get":{"summary":"Swaps on a pool, newest first","tags":["pools"],"description":"The whole history: what the indexer saw live and the old backend's record before it. Page with `before`: pass the previous page's `nextBefore`; live swaps come on pool:<id>.","parameters":[{"schema":{"default":100,"type":"integer","exclusiveMinimum":0,"maximum":1000},"in":"query","name":"limit","required":false,"description":"Page size, at most 1000"},{"schema":{"type":"string","pattern":"^\\d+$"},"in":"query","name":"before","required":false,"description":"Cursor: `nextBefore` of the previous page"},{"schema":{"type":"string","enum":["wax","telos","eos","volta","xpr"]},"in":"path","name":"chain","required":true,"description":"Chain"},{"schema":{"type":"integer","minimum":0,"maximum":9007199254740991},"in":"path","name":"poolId","required":true,"description":"Pool id"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string","enum":["wax","telos","eos","volta","xpr"],"description":"Chain"},"poolId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"trades":{"type":"array","items":{"type":"object","properties":{"time":{"type":"string","format":"date-time"},"price":{"type":"number"},"sender":{"type":["string","null"]},"recipient":{"type":["string","null"]},"token_a_amount":{"anyOf":[{"type":"string","description":"Decimal token amount, e.g. \"12.3450\""},{"type":"null"}],"description":"Token A into the pool (+) or out of it (-)"},"token_b_amount":{"anyOf":[{"type":"string","description":"Decimal token amount, e.g. \"12.3450\""},{"type":"null"}],"description":"Token B into the pool (+) or out of it (-)"},"volume_usd":{"type":["number","null"]},"trx_id":{"type":["string","null"]},"block_num":{"anyOf":[{"type":"string","description":"int64 as string"},{"type":"null"}]}},"required":["time","price","sender","recipient","token_a_amount","token_b_amount","volume_usd","trx_id","block_num"],"additionalProperties":false}},"nextBefore":{"description":"Cursor for the next page (µs since epoch); null on the last page","type":["string","null"]}},"required":["chain","poolId","trades","nextBefore"],"additionalProperties":false}}}}}}},"/{chain}/accounts/{account}/positions":{"get":{"summary":"An account's positions, with live amounts, fees, APR, PnL and farms, and their totals","tags":["positions"],"description":"Kept equal to the swap.alcor positions table: an action on a position re-reads its row about a second later and sends position.updated on account:<owner>. `summary` covers the open positions in the answer. Newest first; `offset` pages past `limit`.","parameters":[{"schema":{"default":100,"type":"integer","exclusiveMinimum":0,"maximum":1000},"in":"query","name":"limit","required":false,"description":"Page size, at most 1000"},{"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"in":"query","name":"offset","required":false,"description":"Positions to skip"},{"schema":{"default":"false","type":"string","enum":["true","false"]},"in":"query","name":"include_closed","required":false,"description":"Include closed positions"},{"schema":{"type":"string","enum":["wax","telos","eos","volta","xpr"]},"in":"path","name":"chain","required":true,"description":"Chain"},{"schema":{"type":"string","minLength":1,"maxLength":13},"in":"path","name":"account","required":true,"description":"Account name"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string","enum":["wax","telos","eos","volta","xpr"],"description":"Chain"},"account":{"type":"string"},"positions":{"type":"array","items":{"$ref":"#/components/schemas/Position"}},"summary":{"$ref":"#/components/schemas/PositionsSummary"}},"required":["chain","account","positions","summary"],"additionalProperties":false}}}}}}},"/{chain}/positions/{positionId}":{"get":{"summary":"One position, with live amounts, fees, APR, PnL and farms","tags":["positions"],"parameters":[{"schema":{"type":"string","enum":["wax","telos","eos","volta","xpr"]},"in":"path","name":"chain","required":true,"description":"Chain"},{"schema":{"type":"integer","minimum":0,"maximum":9007199254740991},"in":"path","name":"positionId","required":true,"description":"Position id"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Position"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{chain}/pools/{poolId}/positions":{"get":{"summary":"A pool's open positions, with live state","tags":["positions"],"description":"Every open position is computed to sort them; `total` counts them all.","parameters":[{"schema":{"default":"value","type":"string","enum":["value","fees","pnl","share"]},"in":"query","name":"sort","required":false,"description":"valueUsd, feesUsd, pnl.usd or poolSharePct"},{"schema":{"default":"desc","type":"string","enum":["asc","desc"]},"in":"query","name":"order","required":false},{"schema":{"default":100,"type":"integer","exclusiveMinimum":0,"maximum":500},"in":"query","name":"limit","required":false,"description":"Page size, at most 500"},{"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"in":"query","name":"offset","required":false},{"schema":{"type":"string","enum":["wax","telos","eos","volta","xpr"]},"in":"path","name":"chain","required":true,"description":"Chain"},{"schema":{"type":"integer","minimum":0,"maximum":9007199254740991},"in":"path","name":"poolId","required":true,"description":"Pool id"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string","enum":["wax","telos","eos","volta","xpr"],"description":"Chain"},"poolId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"positions":{"type":"array","items":{"$ref":"#/components/schemas/Position"}}},"required":["chain","poolId","total","positions"],"additionalProperties":false}}}}}}},"/{chain}/positions/{positionId}/events":{"get":{"summary":"History of a position, oldest first","tags":["positions"],"parameters":[{"schema":{"default":100,"type":"integer","exclusiveMinimum":0,"maximum":1000},"in":"query","name":"limit","required":false,"description":"Page size, at most 1000"},{"schema":{"type":"string","enum":["wax","telos","eos","volta","xpr"]},"in":"path","name":"chain","required":true,"description":"Chain"},{"schema":{"type":"integer","minimum":0,"maximum":9007199254740991},"in":"path","name":"positionId","required":true,"description":"Position id"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string","enum":["wax","telos","eos","volta","xpr"],"description":"Chain"},"positionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"events":{"type":"array","items":{"type":"object","properties":{"time":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["mint","burn","collect","lock","transfer"]},"token_a":{"type":"string","description":"Token A amount of the action"},"token_b":{"type":"string","description":"Token B amount of the action"},"token_a_usd_price":{"type":["number","null"]},"token_b_usd_price":{"type":["number","null"]},"total_usd_value":{"description":"null when a token the action moved had no USD price","type":["number","null"]},"liquidity_delta":{"type":["string","null"]},"trx_id":{"type":["string","null"]},"block_num":{"anyOf":[{"type":"string","description":"int64 as string"},{"type":"null"}]}},"required":["time","type","token_a","token_b","token_a_usd_price","token_b_usd_price","total_usd_value","liquidity_delta","trx_id","block_num"],"additionalProperties":false}}},"required":["chain","positionId","events"],"additionalProperties":false}}}}}}},"/{chain}/tokens":{"get":{"summary":"All known tokens, with prices, scores, and holder counts where tracked","tags":["tokens"],"description":"Every side of a swap.alcor pool, an old orderbook market or a book.alcor market; a new one is listed within a minute.","parameters":[{"schema":{"default":"false","type":"string","enum":["true","false"]},"in":"query","name":"hide_scam","required":false,"description":"Leave out the tokens on the scam list"},{"schema":{"type":"string","enum":["wax","telos","eos","volta","xpr"]},"in":"path","name":"chain","required":true,"description":"Chain"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string","enum":["wax","telos","eos","volta","xpr"],"description":"Chain"},"tokens":{"type":"array","items":{"$ref":"#/components/schemas/Token"}}},"required":["chain","tokens"],"additionalProperties":false}}}}}}},"/{chain}/tokens/{tokenId}":{"get":{"summary":"One token","tags":["tokens"],"parameters":[{"schema":{"type":"string","enum":["wax","telos","eos","volta","xpr"]},"in":"path","name":"chain","required":true,"description":"Chain"},{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"tokenId","required":true,"description":"Token id: `<symbol>-<contract>`, lowercase symbol, e.g. `wax-eosio.token`"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Token"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{chain}/tokens/{tokenId}/logo":{"get":{"summary":"The token's logo","tags":["tokens"],"description":"The token's logo as an image (PNG, JPEG, WebP or GIF, cached for a day): Alcor's own, else the copy Alcor downloaded of the one its registry or eoscafe's eos-airdrops list gives (token.proton and simplelaunch on XPR; checked hourly). Never a redirect. 404 when there is none, for a token on the scam list, or for a token that copies another's symbol.","parameters":[{"schema":{"type":"string","enum":["wax","telos","eos","volta","xpr"]},"in":"path","name":"chain","required":true,"description":"Chain"},{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"tokenId","required":true,"description":"Token id: `<symbol>-<contract>`, lowercase symbol, e.g. `wax-eosio.token`"}],"responses":{"200":{"description":"The image","content":{"application/json":{"schema":{"description":"The image"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{chain}/tokens/{tokenId}/price":{"get":{"summary":"USD price of a token and where it comes from","tags":["tokens"],"parameters":[{"schema":{"type":"string","enum":["wax","telos","eos","volta","xpr"]},"in":"path","name":"chain","required":true,"description":"Chain"},{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"tokenId","required":true,"description":"Token id: `<symbol>-<contract>`, lowercase symbol, e.g. `wax-eosio.token`"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string","enum":["wax","telos","eos","volta","xpr"],"description":"Chain"},"tokenId":{"type":"string"},"price_usd":{"type":"number"},"source":{"type":"string","enum":["derived","anchor","external","bridged","orderbook"],"description":"'derived' (from pools), 'anchor' (stablecoins), 'external' (CoinGecko), 'bridged' (a wrap.alcor token at the price of the asset it stands for on another chain), 'orderbook' (book.alcor's last trade, for a token no pool prices)"},"via_pool":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Pool a derived price came from"},"updated_at":{"type":"string","format":"date-time"}},"required":["chain","tokenId","price_usd","source","via_pool","updated_at"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{chain}/tokens/{tokenId}/holders":{"get":{"summary":"Largest holders of a tracked token, and how its supply splits between pools, protocols, exchanges and wallets","tags":["tokens"],"description":"Every balance is the indexer's (`token_balances`, tracked tokens only); the supply is the contract's, read from the chain every 10 minutes. Accounts are sorted into kinds by the chain's lists of Alcor pools, protocol contracts, exchanges and burn accounts; anyone else is a wallet. Custody segments sum every listed account, not only those in `holders`.","parameters":[{"schema":{"default":100,"type":"integer","exclusiveMinimum":0,"maximum":1000},"in":"query","name":"limit","required":false,"description":"Page size, at most 1000"},{"schema":{"type":"string","enum":["wax","telos","eos","volta","xpr"]},"in":"path","name":"chain","required":true,"description":"Chain"},{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"tokenId","required":true,"description":"Token id: `<symbol>-<contract>`, lowercase symbol, e.g. `wax-eosio.token`"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenHolders"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{chain}/accounts/{account}/balances":{"get":{"summary":"An account's balances of tracked tokens","tags":["accounts"],"parameters":[{"schema":{"type":"string","enum":["wax","telos","eos","volta","xpr"]},"in":"path","name":"chain","required":true,"description":"Chain"},{"schema":{"type":"string","minLength":1,"maxLength":13},"in":"path","name":"account","required":true,"description":"Account name"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string","enum":["wax","telos","eos","volta","xpr"],"description":"Chain"},"account":{"type":"string"},"balances":{"type":"array","items":{"type":"object","properties":{"token_id":{"type":"string"},"balance_raw":{"type":"string","description":"Integer in the token's smallest units"},"last_time":{"type":"string","format":"date-time"},"symbol":{"type":["string","null"]},"decimals":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["token_id","balance_raw","last_time","symbol","decimals"],"additionalProperties":false}}},"required":["chain","account","balances"],"additionalProperties":false}}}}}}},"/{chain}/accounts/{account}/transfers":{"get":{"summary":"An account's transfers of tracked tokens, newest first","tags":["accounts"],"parameters":[{"schema":{"default":100,"type":"integer","exclusiveMinimum":0,"maximum":1000},"in":"query","name":"limit","required":false,"description":"Page size, at most 1000"},{"schema":{"type":"string","enum":["wax","telos","eos","volta","xpr"]},"in":"path","name":"chain","required":true,"description":"Chain"},{"schema":{"type":"string","minLength":1,"maxLength":13},"in":"path","name":"account","required":true,"description":"Account name"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string","enum":["wax","telos","eos","volta","xpr"],"description":"Chain"},"account":{"type":"string"},"transfers":{"type":"array","items":{"type":"object","properties":{"time":{"type":"string","format":"date-time"},"token_id":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"},"amount_raw":{"type":"string","description":"Integer in the token's smallest units"},"memo":{"type":["string","null"]},"trx_id":{"type":["string","null"]}},"required":["time","token_id","from","to","amount_raw","memo","trx_id"],"additionalProperties":false}}},"required":["chain","account","transfers"],"additionalProperties":false}}}}}}},"/{chain}/accounts/{account}/activity":{"get":{"summary":"An account's swaps, transfers and position actions in one timeline, newest first","tags":["accounts"],"description":"Swaps and position actions over the whole history; transfers of tracked tokens since the indexer runs. Page with `before`: pass the previous page's `nextBefore`.","parameters":[{"schema":{"default":100,"type":"integer","exclusiveMinimum":0,"maximum":500},"in":"query","name":"limit","required":false,"description":"Page size, at most 500"},{"schema":{"type":"string","pattern":"^\\d+$"},"in":"query","name":"before","required":false,"description":"Cursor: `nextBefore` of the previous page"},{"schema":{"default":"swap,transfer,position","type":"string"},"in":"query","name":"kinds","required":false,"description":"Kinds of items: comma-separated, of swap, transfer, position; default swap,transfer,position"},{"schema":{"default":"mint,burn,collect,lock,transfer","type":"string"},"in":"query","name":"types","required":false,"description":"Position actions, for kind position: comma-separated, of mint, burn, collect, lock, transfer; default mint,burn,collect,lock,transfer"},{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"query","name":"search","required":false,"description":"A pool id, or a token id, symbol or contract: the swaps and position actions on its pools, the transfers of it"},{"schema":{"type":"string","enum":["wax","telos","eos","volta","xpr"]},"in":"path","name":"chain","required":true,"description":"Chain"},{"schema":{"type":"string","minLength":1,"maxLength":13},"in":"path","name":"account","required":true,"description":"Account name"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string","enum":["wax","telos","eos","volta","xpr"],"description":"Chain"},"account":{"type":"string"},"items":{"type":"array","items":{"$ref":"#/components/schemas/ActivityItem"}},"nextBefore":{"description":"Cursor for the next page (µs since epoch); null on the last page","type":["string","null"]}},"required":["chain","account","items","nextBefore"],"additionalProperties":false}}}}}}},"/{chain}/pools/{poolId}/activity":{"get":{"summary":"Liquidity actions on a pool, newest first","tags":["pools"],"description":"Every position's mints, burns and fees collected, over the whole history. Page with `before`: pass the previous page's `nextBefore`; live actions come on pool:<id> (position.*).","parameters":[{"schema":{"default":100,"type":"integer","exclusiveMinimum":0,"maximum":500},"in":"query","name":"limit","required":false,"description":"Page size, at most 500"},{"schema":{"type":"string","pattern":"^\\d+$"},"in":"query","name":"before","required":false,"description":"Cursor: `nextBefore` of the previous page"},{"schema":{"default":"mint,burn,collect","type":"string"},"in":"query","name":"types","required":false,"description":"Actions: comma-separated, of mint, burn, collect, lock, transfer; default mint,burn,collect"},{"schema":{"type":"string","enum":["wax","telos","eos","volta","xpr"]},"in":"path","name":"chain","required":true,"description":"Chain"},{"schema":{"type":"integer","minimum":0,"maximum":9007199254740991},"in":"path","name":"poolId","required":true,"description":"Pool id"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string","enum":["wax","telos","eos","volta","xpr"],"description":"Chain"},"poolId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"actions":{"type":"array","items":{"$ref":"#/components/schemas/PoolLiquidityAction"}},"nextBefore":{"description":"Cursor for the next page (µs since epoch); null on the last page","type":["string","null"]}},"required":["chain","poolId","actions","nextBefore"],"additionalProperties":false}}}}}}},"/{chain}/search":{"get":{"summary":"Search tokens, pools and markets","tags":["search"],"description":"Matches symbols, token ids and contracts. Best matches first.","parameters":[{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"query","name":"q","required":true,"description":"Search text"},{"schema":{"default":20,"type":"integer","exclusiveMinimum":0,"maximum":50},"in":"query","name":"limit","required":false,"description":"Page size, at most 50"},{"schema":{"type":"string","enum":["wax","telos","eos","volta","xpr"]},"in":"path","name":"chain","required":true,"description":"Chain"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string","enum":["wax","telos","eos","volta","xpr"],"description":"Chain"},"q":{"type":"string"},"results":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["token","pool","market"]},"id":{"type":"string","description":"token_id, pool id or market id"},"symbol":{"type":"string","description":"Token symbol, or A/B for a pool or market"},"contract":{"type":"string","description":"Token contract; empty for pools and markets"},"extra":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"token: decimals, trusted; pool: tokenAId, tokenBId, feeTier; market: tickerId"},"score":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Match quality: exact symbol > prefix > substring"}},"required":["kind","id","symbol","contract","extra","score"],"additionalProperties":false}}},"required":["chain","q","results"],"additionalProperties":false}}}}}}},"/{chain}/farms":{"get":{"summary":"Farm incentives as a catalog: filtered, sorted and paged","tags":["farms"],"description":"Cards without a value for the sort (no APR, no reward price) come last in either order. `total` counts every card that passed the filters.","parameters":[{"schema":{"default":"24h","type":"string","enum":["24h","7d","30d","90d","all"]},"in":"query","name":"window","required":false,"description":"Window of volumes and swaps"},{"schema":{"default":"active","type":"string","enum":["active","finished","all"]},"in":"query","name":"status","required":false},{"schema":{"default":"apr","type":"string","enum":["apr","rewards","tvl","staked","remaining","utilization","volume"]},"in":"query","name":"sort","required":false},{"schema":{"default":"desc","type":"string","enum":["asc","desc"]},"in":"query","name":"order","required":false},{"schema":{"default":1,"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"in":"query","name":"page","required":false,"description":"Page, from 1"},{"schema":{"default":50,"type":"integer","exclusiveMinimum":0,"maximum":500},"in":"query","name":"limit","required":false,"description":"Page size, at most 500"},{"schema":{"default":"false","type":"string","enum":["true","false"]},"in":"query","name":"hide_scam","required":false,"description":"Leave out farms on a pool with a scam-listed token"},{"schema":{"type":"string","maxLength":100},"in":"query","name":"search","required":false,"description":"Space-separated terms, all of which are in the reward token, the pool tokens or the pool id"},{"schema":{"type":"number","minimum":0},"in":"query","name":"min_pool_tvl","required":false,"description":"USD"},{"schema":{"type":"number","minimum":0},"in":"query","name":"min_staked_tvl","required":false,"description":"USD"},{"schema":{"type":"string","enum":["wax","telos","eos","volta","xpr"]},"in":"path","name":"chain","required":true,"description":"Chain"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string","enum":["wax","telos","eos","volta","xpr"],"description":"Chain"},"window":{"default":"24h","description":"Window of volumes and swaps","type":"string","enum":["24h","7d","30d","90d","all"]},"page":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"items":{"type":"array","items":{"$ref":"#/components/schemas/FarmIncentive"}}},"required":["chain","window","page","limit","total","items"],"additionalProperties":false}}}}}}},"/{chain}/farms/{incentiveId}":{"get":{"summary":"One farm incentive","tags":["farms"],"parameters":[{"schema":{"default":"24h","type":"string","enum":["24h","7d","30d","90d","all"]},"in":"query","name":"window","required":false,"description":"Window of volumes and swaps"},{"schema":{"type":"string","enum":["wax","telos","eos","volta","xpr"]},"in":"path","name":"chain","required":true,"description":"Chain"},{"schema":{"type":"integer","minimum":0,"maximum":9007199254740991},"in":"path","name":"incentiveId","required":true,"description":"Incentive id"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FarmIncentive"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{chain}/farms/{incentiveId}/events":{"get":{"summary":"Actions on a farm incentive, newest first","tags":["farms"],"parameters":[{"schema":{"default":100,"type":"integer","exclusiveMinimum":0,"maximum":500},"in":"query","name":"limit","required":false,"description":"Page size, at most 500"},{"schema":{"type":"string","enum":["wax","telos","eos","volta","xpr"]},"in":"path","name":"chain","required":true,"description":"Chain"},{"schema":{"type":"integer","minimum":0,"maximum":9007199254740991},"in":"path","name":"incentiveId","required":true,"description":"Incentive id"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string","enum":["wax","telos","eos","volta","xpr"],"description":"Chain"},"incentiveId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"events":{"type":"array","items":{"type":"object","properties":{"time":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["new","stake","unstake","reward"]},"pool_id":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"position_id":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"reward_claimed":{"type":["string","null"]},"trx_id":{"type":["string","null"]},"block_num":{"type":"string","description":"int64 as string"},"owner":{"type":["string","null"]}},"required":["time","type","pool_id","position_id","reward_claimed","trx_id","block_num","owner"],"additionalProperties":false}}},"required":["chain","incentiveId","events"],"additionalProperties":false}}}}}}},"/{chain}/accounts/{account}/farms":{"get":{"summary":"An account's farm actions, newest first","tags":["farms"],"parameters":[{"schema":{"default":100,"type":"integer","exclusiveMinimum":0,"maximum":500},"in":"query","name":"limit","required":false,"description":"Page size, at most 500"},{"schema":{"type":"string","enum":["wax","telos","eos","volta","xpr"]},"in":"path","name":"chain","required":true,"description":"Chain"},{"schema":{"type":"string","minLength":1,"maxLength":13},"in":"path","name":"account","required":true,"description":"Account name"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string","enum":["wax","telos","eos","volta","xpr"],"description":"Chain"},"account":{"type":"string"},"events":{"type":"array","items":{"type":"object","properties":{"time":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["new","stake","unstake","reward"]},"pool_id":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"position_id":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"reward_claimed":{"type":["string","null"]},"trx_id":{"type":["string","null"]},"block_num":{"type":"string","description":"int64 as string"},"incentive_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["time","type","pool_id","position_id","reward_claimed","trx_id","block_num","incentive_id"],"additionalProperties":false}}},"required":["chain","account","events"],"additionalProperties":false}}}}}}},"/{chain}/staking/system":{"get":{"summary":"liquid.alcor staking settings","tags":["staking"],"description":"WAX only; 404 on other chains.","parameters":[{"schema":{"type":"string","enum":["wax","telos","eos","volta","xpr"]},"in":"path","name":"chain","required":true,"description":"Chain"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string","enum":["wax","telos","eos","volta","xpr"],"description":"Chain"},"active":{"type":"boolean"},"auto_stake":{"type":"boolean"},"auto_unstake":{"type":"boolean"},"fee_pct":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"withdraw_counter":{"type":"string","description":"int64 as string"},"updated_at":{"type":"string","format":"date-time"}},"required":["chain","active","auto_stake","auto_unstake","fee_pct","withdraw_counter","updated_at"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{chain}/staking/withdraws":{"get":{"summary":"Withdraw requests, newest first","tags":["staking"],"parameters":[{"schema":{"default":100,"type":"integer","exclusiveMinimum":0,"maximum":500},"in":"query","name":"limit","required":false,"description":"Page size, at most 500"},{"schema":{"default":"false","type":"string","enum":["true","false"]},"in":"query","name":"pending_only","required":false,"description":"Only withdraws not claimed yet"},{"schema":{"type":"string","enum":["wax","telos","eos","volta","xpr"]},"in":"path","name":"chain","required":true,"description":"Chain"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string","enum":["wax","telos","eos","volta","xpr"],"description":"Chain"},"withdraws":{"type":"array","items":{"type":"object","properties":{"withdraw_id":{"type":"string","description":"int64 as string"},"request_token_id":{"type":"string"},"request_amount_raw":{"type":"string","description":"Integer in the token's smallest units"},"withdraw_token_id":{"type":"string"},"withdraw_amount_raw":{"type":"string","description":"Integer in the token's smallest units"},"request_time":{"type":"string","format":"date-time"},"claimed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"null while pending"},"claim_trx_id":{"type":["string","null"]},"message":{"type":["string","null"]},"account":{"type":"string"}},"required":["withdraw_id","request_token_id","request_amount_raw","withdraw_token_id","withdraw_amount_raw","request_time","claimed_at","claim_trx_id","message","account"],"additionalProperties":false}}},"required":["chain","withdraws"],"additionalProperties":false}}}}}}},"/{chain}/accounts/{account}/staking/withdraws":{"get":{"summary":"An account's withdraw requests, newest first","tags":["staking"],"parameters":[{"schema":{"default":100,"type":"integer","exclusiveMinimum":0,"maximum":500},"in":"query","name":"limit","required":false,"description":"Page size, at most 500"},{"schema":{"default":"false","type":"string","enum":["true","false"]},"in":"query","name":"pending_only","required":false,"description":"Only withdraws not claimed yet"},{"schema":{"type":"string","enum":["wax","telos","eos","volta","xpr"]},"in":"path","name":"chain","required":true,"description":"Chain"},{"schema":{"type":"string","minLength":1,"maxLength":13},"in":"path","name":"account","required":true,"description":"Account name"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string","enum":["wax","telos","eos","volta","xpr"],"description":"Chain"},"account":{"type":"string"},"withdraws":{"type":"array","items":{"$ref":"#/components/schemas/StakingWithdraw"}}},"required":["chain","account","withdraws"],"additionalProperties":false}}}}}}},"/{chain}/accounts/{account}/staking/events":{"get":{"summary":"An account's staking actions, newest first","tags":["staking"],"parameters":[{"schema":{"default":100,"type":"integer","exclusiveMinimum":0,"maximum":500},"in":"query","name":"limit","required":false,"description":"Page size, at most 500"},{"schema":{"type":"string","enum":["wax","telos","eos","volta","xpr"]},"in":"path","name":"chain","required":true,"description":"Chain"},{"schema":{"type":"string","minLength":1,"maxLength":13},"in":"path","name":"account","required":true,"description":"Account name"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string","enum":["wax","telos","eos","volta","xpr"],"description":"Chain"},"account":{"type":"string"},"events":{"type":"array","items":{"type":"object","properties":{"time":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["withdraw-request","claim","batch-unstake","exchange-rate","config"]},"withdraw_id":{"anyOf":[{"type":"string","description":"int64 as string"},{"type":"null"}]},"request_amount_raw":{"anyOf":[{"type":"string","description":"Integer in the token's smallest units"},{"type":"null"}]},"withdraw_amount_raw":{"anyOf":[{"type":"string","description":"Integer in the token's smallest units"},{"type":"null"}]},"message":{"type":["string","null"]},"trx_id":{"type":["string","null"]},"block_num":{"type":"string","description":"int64 as string"}},"required":["time","type","withdraw_id","request_amount_raw","withdraw_amount_raw","message","trx_id","block_num"],"additionalProperties":false}}},"required":["chain","account","events"],"additionalProperties":false}}}}}}},"/{chain}/charts/orderbook/{marketId}":{"get":{"summary":"Candles of an orderbook market","tags":["charts"],"description":"Open is the first fill of the bucket and close the last; buckets without fills are absent.","parameters":[{"schema":{"default":"1m","type":"string","enum":["1m","5m","15m","30m","1h","4h","1d","1w","1M"]},"in":"query","name":"resolution","required":false,"description":"Candle size. 1m holds the last 7 days and 5m the last 30; 15m and up hold the whole history. Weeks start on Monday, months on the 1st, UTC."},{"schema":{"type":"integer","minimum":0,"maximum":9007199254740991},"in":"query","name":"from","required":false,"description":"Start of the range, ms since epoch"},{"schema":{"type":"integer","minimum":0,"maximum":9007199254740991},"in":"query","name":"to","required":false,"description":"End of the range, ms since epoch"},{"schema":{"default":1000,"type":"integer","exclusiveMinimum":0,"maximum":10000},"in":"query","name":"limit","required":false,"description":"Candles, at most 10000: the first ones from `from`, or without `from` the latest ones. Always oldest first."},{"schema":{"type":"string","enum":["wax","telos","eos","volta","xpr"]},"in":"path","name":"chain","required":true,"description":"Chain"},{"schema":{"type":"integer","minimum":0,"maximum":9007199254740991},"in":"path","name":"marketId","required":true,"description":"Market id"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string","enum":["wax","telos","eos","volta","xpr"],"description":"Chain"},"marketId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"resolution":{"default":"1m","description":"Candle size. 1m holds the last 7 days and 5m the last 30; 15m and up hold the whole history. Weeks start on Monday, months on the 1st, UTC.","type":"string","enum":["1m","5m","15m","30m","1h","4h","1d","1w","1M"]},"candles":{"type":"array","items":{"$ref":"#/components/schemas/OrderbookCandle"}}},"required":["chain","marketId","resolution","candles"],"additionalProperties":false}}}}}}},"/{chain}/charts/pair":{"get":{"summary":"Candles of a token pair over all its pools","tags":["charts"],"description":"One chart over all pools of the pair (its fee tiers). Per bucket the close is from the pool that traded last, high/low are the extremes, volume and swaps are summed. Pools with under 5% of their span's volume by daily candles over the range, taken at least 30 days back from its end (or the span's end, if earlier), are left out: a near-empty fee tier's swaps sit off the price. Price is quote per base. Candles open at the previous close (an AMM price only moves on a swap), and high/low take that open in, so the series has no gaps. The last candle is the one being formed.\n\nWith `predecessors=true` a token that replaced another (on WAX, USDC on wrap.alcor took over from WAXUSDC on eth.token on 2026-10-01) brings the history of the one it replaced: before the replacement the chart is made of the old token's pools. `pools` says which pool covers which span. A bucket belongs to the span it starts in.\n\nLive swaps come on the pool:<id> channels of the pools in `pools` whose `activeTo` is null, priced the pool's way: take 1/price where `inverted` is true. Live updates: subscribe to pool:<poolId> on GET /{chain}/events. A swap event updates the candle of its bucket (its `time` floored to the resolution): close = price, high/low extended, v += volumeUsd, n += 1; a swap past the last bucket opens a new candle at the last close and takes its price as close. After a reconnect, fetch again from the last candle.","parameters":[{"schema":{"default":"1m","type":"string","enum":["1m","5m","15m","30m","1h","4h","1d","1w","1M"]},"in":"query","name":"resolution","required":false,"description":"Candle size. 1m holds the last 7 days and 5m the last 30; 15m and up hold the whole history. Weeks start on Monday, months on the 1st, UTC."},{"schema":{"type":"integer","minimum":0,"maximum":9007199254740991},"in":"query","name":"from","required":false,"description":"Start of the range, ms since epoch"},{"schema":{"type":"integer","minimum":0,"maximum":9007199254740991},"in":"query","name":"to","required":false,"description":"End of the range, ms since epoch"},{"schema":{"default":1000,"type":"integer","exclusiveMinimum":0,"maximum":10000},"in":"query","name":"limit","required":false,"description":"Candles, at most 10000: the first ones from `from`, or without `from` the latest ones. Always oldest first."},{"schema":{"default":"raw","type":"string","enum":["raw","clipped"]},"in":"query","name":"wicks","required":false,"description":"clipped: trim wicks far beyond the neighbouring candles (a thin pool sent 60× away and back within seconds): each wick is capped at 3 × the median wick of the 20 candles on either side, at least 3%. A candle with under $2 of volume also has its open and close clamped between those candles' median low and median high, widened the same way, and the next candle opens at its new close. Volume and swaps don't change."},{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"query","name":"base","required":true,"description":"Token id: `<symbol>-<contract>`, lowercase symbol, e.g. `wax-eosio.token`"},{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"query","name":"quote","required":true,"description":"Token id: `<symbol>-<contract>`, lowercase symbol, e.g. `wax-eosio.token`"},{"schema":{"default":"false","type":"string","enum":["true","false"]},"in":"query","name":"predecessors","required":false,"description":"Include the history of tokens that base or quote replaced"},{"schema":{"type":"string","enum":["wax","telos","eos","volta","xpr"]},"in":"path","name":"chain","required":true,"description":"Chain"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string","enum":["wax","telos","eos","volta","xpr"],"description":"Chain"},"base":{"type":"string"},"quote":{"type":"string"},"predecessors":{"type":"boolean"},"resolution":{"default":"1m","description":"Candle size. 1m holds the last 7 days and 5m the last 30; 15m and up hold the whole history. Weeks start on Monday, months on the 1st, UTC.","type":"string","enum":["1m","5m","15m","30m","1h","4h","1d","1w","1M"]},"pools":{"type":"array","items":{"type":"object","properties":{"poolId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"feeTier":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"base":{"type":"string","description":"The pool's token standing for `base` over its span"},"quote":{"type":"string","description":"The pool's token standing for `quote` over its span"},"inverted":{"type":"boolean","description":"The pool lists the tokens the other way: its own price is 1/price of the chart"},"activeFrom":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Span start; null: from the beginning"},"activeTo":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Span end; null: now"},"share":{"type":"number","description":"Share of its span's volume by daily candles over the range, taken at least 30 days back from its end (or the span's end, if earlier), 0..1"}},"required":["poolId","feeTier","base","quote","inverted","activeFrom","activeTo","share"],"additionalProperties":false},"description":"Pools used, by span, largest share first"},"candles":{"type":"array","items":{"$ref":"#/components/schemas/AmmCandle"}}},"required":["chain","base","quote","predecessors","resolution","pools","candles"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{chain}/charts/amm/{poolId}":{"get":{"summary":"Candles of one AMM pool","tags":["charts"],"description":"Price is token A in token B, as the pool lists them. Candles open at the previous close (an AMM price only moves on a swap), and high/low take that open in, so the series has no gaps. The last candle is the one being formed. Live updates: subscribe to pool:<poolId> on GET /{chain}/events. A swap event updates the candle of its bucket (its `time` floored to the resolution): close = price, high/low extended, v += volumeUsd, n += 1; a swap past the last bucket opens a new candle at the last close and takes its price as close. After a reconnect, fetch again from the last candle.","parameters":[{"schema":{"default":"1m","type":"string","enum":["1m","5m","15m","30m","1h","4h","1d","1w","1M"]},"in":"query","name":"resolution","required":false,"description":"Candle size. 1m holds the last 7 days and 5m the last 30; 15m and up hold the whole history. Weeks start on Monday, months on the 1st, UTC."},{"schema":{"type":"integer","minimum":0,"maximum":9007199254740991},"in":"query","name":"from","required":false,"description":"Start of the range, ms since epoch"},{"schema":{"type":"integer","minimum":0,"maximum":9007199254740991},"in":"query","name":"to","required":false,"description":"End of the range, ms since epoch"},{"schema":{"default":1000,"type":"integer","exclusiveMinimum":0,"maximum":10000},"in":"query","name":"limit","required":false,"description":"Candles, at most 10000: the first ones from `from`, or without `from` the latest ones. Always oldest first."},{"schema":{"default":"raw","type":"string","enum":["raw","clipped"]},"in":"query","name":"wicks","required":false,"description":"clipped: trim wicks far beyond the neighbouring candles (a thin pool sent 60× away and back within seconds): each wick is capped at 3 × the median wick of the 20 candles on either side, at least 3%. A candle with under $2 of volume also has its open and close clamped between those candles' median low and median high, widened the same way, and the next candle opens at its new close. Volume and swaps don't change."},{"schema":{"type":"string","enum":["wax","telos","eos","volta","xpr"]},"in":"path","name":"chain","required":true,"description":"Chain"},{"schema":{"type":"integer","minimum":0,"maximum":9007199254740991},"in":"path","name":"poolId","required":true,"description":"Pool id"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string","enum":["wax","telos","eos","volta","xpr"],"description":"Chain"},"poolId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"resolution":{"default":"1m","description":"Candle size. 1m holds the last 7 days and 5m the last 30; 15m and up hold the whole history. Weeks start on Monday, months on the 1st, UTC.","type":"string","enum":["1m","5m","15m","30m","1h","4h","1d","1w","1M"]},"candles":{"type":"array","items":{"$ref":"#/components/schemas/AmmCandle"}}},"required":["chain","poolId","resolution","candles"],"additionalProperties":false}}}}}}},"/{chain}/analytics/overview":{"get":{"summary":"The chain's analytics at a glance","tags":["analytics"],"description":"TVL; the pools' (amm) and book.alcor's (book) volume, fees and trades over the window and their change against the window before; accounts active a day (over the last 24 hours for 24h, else the average of the window's whole days: whoever sent a swap or made or took a book trade); pool and market counts; the chain chart at a resolution that fits the window; the top 5 pools and tokens by volume and markets by volume. Cached for a minute.","parameters":[{"schema":{"default":"24h","type":"string","enum":["24h","7d","30d","90d","all"]},"in":"query","name":"window","required":false,"description":"Window of volumes and swaps"},{"schema":{"default":"false","type":"string","enum":["true","false"]},"in":"query","name":"hide_scam","required":false,"description":"Leave scam-listed tokens, and pools with one, out of the top lists"},{"schema":{"type":"string","enum":["wax","telos","eos","volta","xpr"]},"in":"path","name":"chain","required":true,"description":"Chain"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string","enum":["wax","telos","eos","volta","xpr"],"description":"Chain"},"window":{"default":"24h","description":"Window of volumes and swaps","type":"string","enum":["24h","7d","30d","90d","all"]},"stats":{"type":"object","properties":{"tvl_usd":{"type":["number","null"]},"tvl_change":{"description":"Percent against the TVL when the window started; null before TVL history (2026-11-15 21:00 UTC)","type":["number","null"]},"amm":{"type":"object","properties":{"volume_usd":{"type":"number"},"fees_usd":{"type":"number"},"trades":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Swaps for amm, trades for book"},"volume_change":{"description":"Percent against the window before; null for all or without volume before","type":["number","null"]},"fees_change":{"type":["number","null"]},"trades_change":{"type":["number","null"]}},"required":["volume_usd","fees_usd","trades","volume_change","fees_change","trades_change"],"additionalProperties":false},"book":{"type":"object","properties":{"volume_usd":{"type":"number"},"fees_usd":{"type":"number"},"trades":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Swaps for amm, trades for book"},"volume_change":{"description":"Percent against the window before; null for all or without volume before","type":["number","null"]},"fees_change":{"type":["number","null"]},"trades_change":{"type":["number","null"]}},"required":["volume_usd","fees_usd","trades","volume_change","fees_change","trades_change"],"additionalProperties":false},"active_accounts":{"type":["number","null"]},"active_accounts_change":{"type":["number","null"]},"pools":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pools_with_tvl":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"markets":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"book.alcor markets"}},"required":["tvl_usd","tvl_change","amm","book","active_accounts","active_accounts_change","pools","pools_with_tvl","markets"],"additionalProperties":false},"resolution":{"type":"string","enum":["1h","4h","1d","1w"]},"points":{"type":"array","items":{"type":"object","properties":{"t":{"description":"Start of the bucket","type":"string","format":"date-time"},"tvl_usd":{"description":"The last TVL at or before the bucket; null before the first one (2026-11-01)","type":["number","null"]},"volume_usd":{"type":"number"},"fees_usd":{"type":"number","description":"Volume × each pool's fee"},"swaps":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"book_volume_usd":{"type":"number","description":"book.alcor's USD volume"},"book_fees_usd":{"type":"number"},"book_trades":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["t","tvl_usd","volume_usd","fees_usd","swaps","book_volume_usd","book_fees_usd","book_trades"],"additionalProperties":false}},"top_pools":{"type":"array","items":{"$ref":"#/components/schemas/PoolCard"}},"top_tokens":{"type":"array","items":{"$ref":"#/components/schemas/TokenCard"}},"top_markets":{"type":"array","items":{"$ref":"#/components/schemas/BookMarketCard"}}},"required":["chain","window","stats","resolution","points","top_pools","top_tokens","top_markets"],"additionalProperties":false}}}}}}},"/{chain}/analytics/markets":{"get":{"summary":"book.alcor's markets with their stats over a window, by volume","tags":["analytics"],"parameters":[{"schema":{"default":"24h","type":"string","enum":["24h","7d","30d","90d","all"]},"in":"query","name":"window","required":false,"description":"Window of volumes and swaps"},{"schema":{"type":"string","enum":["wax","telos","eos","volta","xpr"]},"in":"path","name":"chain","required":true,"description":"Chain"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string","enum":["wax","telos","eos","volta","xpr"],"description":"Chain"},"window":{"default":"24h","description":"Window of volumes and swaps","type":"string","enum":["24h","7d","30d","90d","all"]},"items":{"type":"array","items":{"$ref":"#/components/schemas/BookMarketCard"}}},"required":["chain","window","items"],"additionalProperties":false}}}}}}},"/{chain}/analytics/charts":{"get":{"summary":"The chain's TVL, its pools' volume, fees and swaps, and book.alcor's volume, fees and trades over time","tags":["analytics"],"description":"Buckets on a grid of the resolution (weeks start on Monday), at most 1000: past that it answers 400. Volume and swaps come from hourly candles for 1h and 4h, daily ones for 1d and 1w.","parameters":[{"schema":{"default":"7d","type":"string","enum":["24h","7d","30d","90d","all"]},"in":"query","name":"window","required":false,"description":"Ignored when `from` is given"},{"schema":{"default":"1h","type":"string","enum":["1h","4h","1d","1w"]},"in":"query","name":"resolution","required":false},{"schema":{"type":"integer","minimum":0,"maximum":9007199254740991},"in":"query","name":"from","required":false,"description":"ms since epoch"},{"schema":{"type":"integer","minimum":0,"maximum":9007199254740991},"in":"query","name":"to","required":false,"description":"ms since epoch; now by default"},{"schema":{"type":"string","enum":["wax","telos","eos","volta","xpr"]},"in":"path","name":"chain","required":true,"description":"Chain"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string","enum":["wax","telos","eos","volta","xpr"],"description":"Chain"},"window":{"type":"string","enum":["24h","7d","30d","90d","all"]},"resolution":{"type":"string","enum":["1h","4h","1d","1w"]},"points":{"type":"array","items":{"type":"object","properties":{"t":{"description":"Start of the bucket","type":"string","format":"date-time"},"tvl_usd":{"description":"The last TVL at or before the bucket; null before the first one (2026-11-01)","type":["number","null"]},"volume_usd":{"type":"number"},"fees_usd":{"type":"number","description":"Volume × each pool's fee"},"swaps":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"book_volume_usd":{"type":"number","description":"book.alcor's USD volume"},"book_fees_usd":{"type":"number"},"book_trades":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["t","tvl_usd","volume_usd","fees_usd","swaps","book_volume_usd","book_fees_usd","book_trades"],"additionalProperties":false}}},"required":["chain","window","resolution","points"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{chain}/analytics/pools/{poolId}/charts":{"get":{"summary":"A pool's TVL, volume, fees and swaps over time","tags":["analytics"],"description":"Buckets on a grid of the resolution (weeks start on Monday), at most 1000: past that it answers 400. Volume and swaps come from hourly candles for 1h and 4h, daily ones for 1d and 1w.","parameters":[{"schema":{"default":"7d","type":"string","enum":["24h","7d","30d","90d","all"]},"in":"query","name":"window","required":false,"description":"Ignored when `from` is given"},{"schema":{"default":"1h","type":"string","enum":["1h","4h","1d","1w"]},"in":"query","name":"resolution","required":false},{"schema":{"type":"integer","minimum":0,"maximum":9007199254740991},"in":"query","name":"from","required":false,"description":"ms since epoch"},{"schema":{"type":"integer","minimum":0,"maximum":9007199254740991},"in":"query","name":"to","required":false,"description":"ms since epoch; now by default"},{"schema":{"type":"string","enum":["wax","telos","eos","volta","xpr"]},"in":"path","name":"chain","required":true,"description":"Chain"},{"schema":{"type":"integer","minimum":0,"maximum":9007199254740991},"in":"path","name":"poolId","required":true,"description":"Pool id"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string","enum":["wax","telos","eos","volta","xpr"],"description":"Chain"},"pool_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"window":{"type":"string","enum":["24h","7d","30d","90d","all"]},"resolution":{"type":"string","enum":["1h","4h","1d","1w"]},"fee_rate":{"type":"number","description":"0.003 = 0.3%"},"points":{"type":"array","items":{"$ref":"#/components/schemas/ChartPoint"}}},"required":["chain","pool_id","window","resolution","fee_rate","points"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{chain}/analytics/pools":{"get":{"summary":"Pools as cards: filtered, sorted and paged","tags":["analytics"],"description":"Cards without a value for the sort come last in either order. `total` counts every card that passed the filters.","parameters":[{"schema":{"default":"24h","type":"string","enum":["24h","7d","30d","90d","all"]},"in":"query","name":"window","required":false,"description":"Window of volumes and swaps"},{"schema":{"default":"desc","type":"string","enum":["asc","desc"]},"in":"query","name":"order","required":false},{"schema":{"default":1,"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"in":"query","name":"page","required":false,"description":"Page, from 1"},{"schema":{"default":50,"type":"integer","exclusiveMinimum":0,"maximum":500},"in":"query","name":"limit","required":false,"description":"Page size, at most 500"},{"schema":{"type":"string","maxLength":100},"in":"query","name":"search","required":false,"description":"Space-separated terms, all of which are in a symbol, a contract, a token id or the pool id"},{"schema":{"default":"false","type":"string","enum":["true","false"]},"in":"query","name":"hide_scam","required":false,"description":"Leave out scam-listed tokens, or pools with one"},{"schema":{"type":"number","minimum":0},"in":"query","name":"min_tvl","required":false,"description":"USD"},{"schema":{"default":"volume","type":"string","enum":["volume","tvl","fee","apr","change","swaps"]},"in":"query","name":"sort","required":false},{"schema":{"type":"string","enum":["incentives"]},"in":"query","name":"include","required":false,"description":"incentives: each card carries its running incentives"},{"schema":{"type":"string","minLength":1,"maxLength":13},"in":"query","name":"account","required":false,"description":"Only pools where the account has an open position"},{"schema":{"type":"string","enum":["wax","telos","eos","volta","xpr"]},"in":"path","name":"chain","required":true,"description":"Chain"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string","enum":["wax","telos","eos","volta","xpr"],"description":"Chain"},"window":{"default":"24h","description":"Window of volumes and swaps","type":"string","enum":["24h","7d","30d","90d","all"]},"page":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"items":{"type":"array","items":{"$ref":"#/components/schemas/PoolCard"}}},"required":["chain","window","page","limit","total","items"],"additionalProperties":false}}}}}}},"/{chain}/analytics/pools/{poolId}":{"get":{"summary":"One pool as a card, with its running incentives","tags":["analytics"],"parameters":[{"schema":{"default":"24h","type":"string","enum":["24h","7d","30d","90d","all"]},"in":"query","name":"window","required":false,"description":"Window of volumes and swaps"},{"schema":{"type":"string","enum":["wax","telos","eos","volta","xpr"]},"in":"path","name":"chain","required":true,"description":"Chain"},{"schema":{"type":"integer","minimum":0,"maximum":9007199254740991},"in":"path","name":"poolId","required":true,"description":"Pool id"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PoolCard"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{chain}/analytics/tokens":{"get":{"summary":"Tokens as cards: filtered, sorted and paged","tags":["analytics"],"description":"Cards without a value for the sort come last in either order. `total` counts every card that passed the filters.","parameters":[{"schema":{"default":"24h","type":"string","enum":["24h","7d","30d","90d","all"]},"in":"query","name":"window","required":false,"description":"Window of volumes and swaps"},{"schema":{"default":"desc","type":"string","enum":["asc","desc"]},"in":"query","name":"order","required":false},{"schema":{"default":1,"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"in":"query","name":"page","required":false,"description":"Page, from 1"},{"schema":{"default":50,"type":"integer","exclusiveMinimum":0,"maximum":500},"in":"query","name":"limit","required":false,"description":"Page size, at most 500"},{"schema":{"type":"string","maxLength":100},"in":"query","name":"search","required":false,"description":"Space-separated terms, all of which are in a symbol, a contract, a token id or the pool id"},{"schema":{"default":"false","type":"string","enum":["true","false"]},"in":"query","name":"hide_scam","required":false,"description":"Leave out scam-listed tokens, or pools with one"},{"schema":{"type":"number","minimum":0},"in":"query","name":"min_tvl","required":false,"description":"USD"},{"schema":{"default":"score","type":"string","enum":["score","volume","tvl","price","holders","age","tx","change"]},"in":"query","name":"sort","required":false},{"schema":{"default":"false","type":"string","enum":["true","false"]},"in":"query","name":"has_logo","required":false,"description":"Only tokens with a logo"},{"schema":{"type":"string","enum":["wax","telos","eos","volta","xpr"]},"in":"path","name":"chain","required":true,"description":"Chain"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string","enum":["wax","telos","eos","volta","xpr"],"description":"Chain"},"window":{"default":"24h","description":"Window of volumes and swaps","type":"string","enum":["24h","7d","30d","90d","all"]},"page":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"items":{"type":"array","items":{"$ref":"#/components/schemas/TokenCard"}}},"required":["chain","window","page","limit","total","items"],"additionalProperties":false}}}}}}},"/{chain}/analytics/tokens/{tokenId}":{"get":{"summary":"One token as a card, with its pools by TVL","tags":["analytics"],"parameters":[{"schema":{"default":"24h","type":"string","enum":["24h","7d","30d","90d","all"]},"in":"query","name":"window","required":false,"description":"Window of volumes and swaps"},{"schema":{"type":"string","enum":["wax","telos","eos","volta","xpr"]},"in":"path","name":"chain","required":true,"description":"Chain"},{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"tokenId","required":true,"description":"Token id: `<symbol>-<contract>`, lowercase symbol, e.g. `wax-eosio.token`"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"token_id":{"type":"string"},"contract":{"type":"string"},"symbol":{"type":"string"},"decimals":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"trusted":{"type":"boolean"},"scam":{"type":"boolean"},"price_usd":{"type":["number","null"]},"price_source":{"anyOf":[{"type":"string","enum":["derived","anchor","external","bridged","orderbook"],"description":"'derived' (from pools), 'anchor' (stablecoins), 'external' (CoinGecko), 'bridged' (a wrap.alcor token at the price of the asset it stands for on another chain), 'orderbook' (book.alcor's last trade, for a token no pool prices)"},{"type":"null"}]},"price_reliable":{"type":"boolean","description":"Strong or thin (db/pool-sql.ts priceTier). Strong: an anchor, CoinGecko or book price, one derived from $1,000 or more of liquidity, or a bridged one from a strong price. Thin: derived or bridged from $100 to $1,000; it counts in TVL only in a pool with a strong side, and at most as much as that side"},"price_depth_usd":{"description":"USD liquidity a derived price stands on (a bridged one: its original's); null for an anchor, CoinGecko or book price","type":["number","null"]},"change_24h":{"description":"USD price change, percent: through the pool its price comes from, with the other token's change","type":["number","null"]},"change_7d":{"type":["number","null"]},"change_30d":{"type":["number","null"]},"change_90d":{"type":["number","null"]},"pools":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"swap.alcor pools the token is in"},"reserve":{"type":"string","description":"What those pools hold of it"},"tvl_usd":{"type":"number","description":"Its side of each of its pools, as the pools' TVL counts it: no pool values itself"},"locked":{"type":"object","properties":{"amount":{"type":"number","description":"Of the token, in positions locked in its pools, at their prices now"},"usd":{"type":"number","description":"At the token's price where that side of the pool is reliable, else 0"},"positions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"share":{"type":"number","description":"Percent of the token's TVL"},"next_unlock_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"last_unlock_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["amount","usd","positions","share","next_unlock_at","last_unlock_at"],"additionalProperties":false,"description":"Liquidity that cannot be withdrawn until its lock ends"},"markets":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"book.alcor markets the token is in"},"volume_usd":{"type":"object","properties":{"amm":{"type":"number"},"book":{"type":"number"},"total":{"type":"number"}},"required":["amm","book","total"],"additionalProperties":false,"description":"USD volume over the window: its pools' (amm), its book.alcor markets' (book, at the quote's price as each trade was read)"},"trades":{"type":"object","properties":{"amm":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"book":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["amm","book","total"],"additionalProperties":false,"description":"Its pools' swaps and its book.alcor markets' trades over the window"},"holders":{"anyOf":[{"$ref":"#/components/schemas/HolderStats"},{"type":"null"}]},"score":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Token Score v1"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"When it first traded on Alcor: swap.alcor, a v1 pair or the old orderbook"},"has_logo":{"type":"boolean","description":"GET /<chain>/tokens/:id/logo answers with an image; no need to ask for one otherwise"},"pool_list":{"type":"array","items":{"$ref":"#/components/schemas/PoolCard"}},"market_list":{"type":"array","items":{"$ref":"#/components/schemas/BookMarketCard"},"description":"Its book.alcor markets, by volume over the window"},"fundamental":{"anyOf":[{"type":"object","properties":{"name":{"type":["string","null"]},"website":{"anyOf":[{"type":"object","properties":{"link":{"type":"string"},"name":{"type":"string"}},"required":["link","name"],"additionalProperties":false},{"type":"null"}]},"tags":{"type":"array","items":{"type":"string"}},"socials":{"type":"array","items":{"type":"string"}},"github":{"type":["string","null"]},"description":{"type":["string","null"]},"source":{"type":"string","description":"'alcor' (Alcor's own list), 'token.proton' (XPR's registry), or both joined by +"}},"required":["name","website","tags","socials","github","description","source"],"additionalProperties":false},{"type":"null"}],"description":"What is known of the project: Alcor's own list first, the chain's token registry where it says nothing"},"score_details":{"anyOf":[{"type":"object","properties":{"score":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"components":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"},"description":"Points by component; they add up to the score before caps and floor"},"caps":{"type":"array","items":{"type":"string"},"description":"Caps that held the score down"},"metrics":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"The inputs: traders, volume, liquidity, holders, trades, drawdown, age…"},"updated_at":{"type":"string","format":"date-time"}},"required":["score","components","caps","metrics","updated_at"],"additionalProperties":false},{"type":"null"}]}},"required":["token_id","contract","symbol","decimals","trusted","scam","price_usd","price_source","price_reliable","price_depth_usd","change_24h","change_7d","change_30d","change_90d","pools","reserve","tvl_usd","locked","markets","volume_usd","trades","holders","score","created_at","has_logo","pool_list","market_list","fundamental","score_details"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{chain}/analytics/lp-leaderboard":{"get":{"summary":"Liquidity providers by fees, value or pace","tags":["analytics"],"description":"From a snapshot taken every 30 minutes (`updated_at`); 503 until the first one. Accounts without a value for the sort come last.","parameters":[{"schema":{"default":"7d","type":"string","enum":["24h","7d","30d","all"]},"in":"query","name":"window","required":false,"description":"Of claimed fees and APR (APR over all takes 30 days)"},{"schema":{"default":"total","type":"string","enum":["claimed","unclaimed","total","tvl","estimated","apr","apr_estimated"]},"in":"query","name":"sort","required":false},{"schema":{"default":"desc","type":"string","enum":["asc","desc"]},"in":"query","name":"order","required":false},{"schema":{"default":1,"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"in":"query","name":"page","required":false,"description":"Page, from 1"},{"schema":{"default":50,"type":"integer","exclusiveMinimum":0,"maximum":200},"in":"query","name":"limit","required":false,"description":"Page size, at most 200"},{"schema":{"type":"string","maxLength":13},"in":"query","name":"search","required":false,"description":"Part of an account name"},{"schema":{"type":"string","enum":["wax","telos","eos","volta","xpr"]},"in":"path","name":"chain","required":true,"description":"Chain"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string","enum":["wax","telos","eos","volta","xpr"],"description":"Chain"},"window":{"type":"string","enum":["24h","7d","30d","all"]},"updated_at":{"type":"string","format":"date-time"},"totals":{"type":"object","properties":{"accounts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"positions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"claimed_usd":{"type":"object","properties":{"24h":{"type":"number"},"7d":{"type":"number"},"30d":{"type":"number"},"all":{"type":"number"}},"required":["24h","7d","30d","all"],"additionalProperties":false},"unclaimed_usd":{"type":"number"},"tvl_usd":{"type":"number"},"estimated_fees_24h_usd":{"type":"number"}},"required":["accounts","positions","claimed_usd","unclaimed_usd","tvl_usd","estimated_fees_24h_usd"],"additionalProperties":false},"page":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Accounts that passed the search"},"items":{"type":"array","items":{"$ref":"#/components/schemas/LpAccount"}}},"required":["chain","window","updated_at","totals","page","limit","total","items"],"additionalProperties":false}}}},"503":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{chain}/analytics/lp-leaderboard/{account}":{"get":{"summary":"One liquidity provider's card","tags":["analytics"],"parameters":[{"schema":{"type":"string","enum":["wax","telos","eos","volta","xpr"]},"in":"path","name":"chain","required":true,"description":"Chain"},{"schema":{"type":"string","minLength":1,"maxLength":13},"in":"path","name":"account","required":true,"description":"Account name"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string","enum":["wax","telos","eos","volta","xpr"],"description":"Chain"},"updated_at":{"type":"string","format":"date-time"},"item":{"$ref":"#/components/schemas/LpAccount"}},"required":["chain","updated_at","item"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{chain}/otc/orders":{"get":{"summary":"Open OTC orders","tags":["otc"],"parameters":[{"schema":{"default":100,"type":"integer","exclusiveMinimum":0,"maximum":1000},"in":"query","name":"limit","required":false},{"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"in":"query","name":"offset","required":false},{"schema":{"default":"desc","type":"string","enum":["asc","desc"]},"in":"query","name":"order","required":false},{"schema":{"default":"true","type":"string","enum":["true","false"]},"in":"query","name":"hide_scam","required":false,"description":"Leave out orders with a scam-listed side (default true)"},{"schema":{"type":"string","maxLength":100},"in":"query","name":"search","required":false,"description":"Space-separated terms: accounts, symbols, contracts, token ids"},{"schema":{"default":"id","type":"string","enum":["id","price","buy","sell","maker"]},"in":"query","name":"sort","required":false},{"schema":{"type":"string","minLength":1,"maxLength":13},"in":"query","name":"maker","required":false,"description":"Account name"},{"schema":{"type":"string","maxLength":64},"in":"query","name":"token","required":false,"description":"Token id on either side"},{"schema":{"type":"string","maxLength":64},"in":"query","name":"sell_token","required":false,"description":"Token id the maker gives"},{"schema":{"type":"string","maxLength":64},"in":"query","name":"buy_token","required":false,"description":"Token id the maker wants"},{"schema":{"type":"string","enum":["wax","telos","eos","volta","xpr"]},"in":"path","name":"chain","required":true,"description":"Chain"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string","enum":["wax","telos","eos","volta","xpr"],"description":"Chain"},"items":{"type":"array","items":{"$ref":"#/components/schemas/OtcOrder"}},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"has_more":{"type":"boolean"}},"required":["chain","items","total","limit","offset","has_more"],"additionalProperties":false}}}}}}},"/{chain}/otc/orders/{orderId}":{"get":{"summary":"One open OTC order, read from the contract","tags":["otc"],"parameters":[{"schema":{"type":"string","enum":["wax","telos","eos","volta","xpr"]},"in":"path","name":"chain","required":true,"description":"Chain"},{"schema":{"type":"integer","minimum":0,"maximum":9007199254740991},"in":"path","name":"orderId","required":true,"description":"Order id"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OtcOrder"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{chain}/otc/tokens":{"get":{"summary":"Tokens on either side of an open OTC order","tags":["otc"],"parameters":[{"schema":{"default":"true","type":"string","enum":["true","false"]},"in":"query","name":"hide_scam","required":false,"description":"Leave out orders with a scam-listed side (default true)"},{"schema":{"type":"string","enum":["wax","telos","eos","volta","xpr"]},"in":"path","name":"chain","required":true,"description":"Chain"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string","enum":["wax","telos","eos","volta","xpr"],"description":"Chain"},"tokens":{"type":"array","items":{"type":"object","properties":{"token_id":{"type":"string"},"symbol":{"type":"string"},"contract":{"type":"string"},"has_logo":{"type":"boolean","description":"GET /<chain>/tokens/:id/logo answers with an image; no need to ask for one otherwise"}},"required":["token_id","symbol","contract","has_logo"],"additionalProperties":false}}},"required":["chain","tokens"],"additionalProperties":false}}}}}}},"/{chain}/otc/history":{"get":{"summary":"OTC fills, newest first by default","tags":["otc"],"description":"Amounts the order traded. The desk takes no fee since its 2026-11 deploy; an earlier fill is shown before its 0.25% fee, as /api/v2/otc/history showed it (the record holds it after the fee).","parameters":[{"schema":{"default":50,"type":"integer","exclusiveMinimum":0,"maximum":1000},"in":"query","name":"limit","required":false},{"schema":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"in":"query","name":"offset","required":false},{"schema":{"default":"desc","type":"string","enum":["asc","desc"]},"in":"query","name":"order","required":false},{"schema":{"default":"true","type":"string","enum":["true","false"]},"in":"query","name":"hide_scam","required":false,"description":"Leave out orders with a scam-listed side (default true)"},{"schema":{"type":"string","maxLength":100},"in":"query","name":"search","required":false,"description":"Space-separated terms: accounts, symbols, contracts, token ids"},{"schema":{"default":"time","type":"string","enum":["time","price","buy","sell"]},"in":"query","name":"sort","required":false},{"schema":{"type":"string","enum":["wax","telos","eos","volta","xpr"]},"in":"path","name":"chain","required":true,"description":"Chain"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string","enum":["wax","telos","eos","volta","xpr"],"description":"Chain"},"items":{"type":"array","items":{"$ref":"#/components/schemas/OtcFill"}},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offset":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"has_more":{"type":"boolean"}},"required":["chain","items","total","limit","offset","has_more"],"additionalProperties":false}}}}}}},"/{chain}/launchpad/tokens":{"get":{"summary":"The meme terminal's tokens: a list, sorted and paged","tags":["launchpad"],"description":"trending and organic rank by their scores (scam-listed tokens out), new is first traded within 7 days, graduated has $250k of liquidity or $500k of 24h volume. Items without a value for the sort come last.","parameters":[{"schema":{"default":"trending","type":"string","enum":["trending","organic","all","new","graduated"]},"in":"query","name":"list","required":false},{"schema":{"default":"score","type":"string","enum":["score","age","vol24h","liq","mcap"]},"in":"query","name":"sort","required":false},{"schema":{"default":"desc","type":"string","enum":["asc","desc"]},"in":"query","name":"dir","required":false},{"schema":{"default":50,"type":"integer","exclusiveMinimum":0,"maximum":200},"in":"query","name":"limit","required":false},{"schema":{"type":"integer","minimum":0,"maximum":9007199254740991},"in":"query","name":"cursor","required":false,"description":"Offset the previous page gave as next_cursor"},{"schema":{"type":"string","maxLength":64},"in":"query","name":"search","required":false,"description":"Part of a symbol, contract or token id"},{"schema":{"default":"true","type":"string","enum":["true","false"]},"in":"query","name":"hide_scam","required":false},{"schema":{"type":"string","maxLength":4000},"in":"query","name":"token_ids","required":false,"description":"Comma-separated: only these tokens (a watchlist)"},{"schema":{"type":"string","enum":["wax","telos","eos","volta","xpr"]},"in":"path","name":"chain","required":true,"description":"Chain"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"meta":{"type":"object","properties":{"chain":{"type":"string","enum":["wax","telos","eos","volta","xpr"],"description":"Chain"},"ts":{"type":"number"},"list":{"type":"string"},"sort":{"type":"string"},"dir":{"type":"string"},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cursor":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"search":{"type":["string","null"]}},"required":["chain","ts","list","sort","dir","limit","cursor","search"],"additionalProperties":false},"items":{"type":"array","items":{"$ref":"#/components/schemas/LaunchpadToken"}},"next_cursor":{"type":["string","null"]},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["meta","items","next_cursor","total"],"additionalProperties":false}}}}}}},"/{chain}/launchpad/token/{tokenId}/summary":{"get":{"summary":"One token's terminal card","tags":["launchpad"],"parameters":[{"schema":{"type":"string","enum":["wax","telos","eos","volta","xpr"]},"in":"path","name":"chain","required":true,"description":"Chain"},{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"tokenId","required":true,"description":"Token id: `<symbol>-<contract>`, lowercase symbol, e.g. `wax-eosio.token`"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LaunchpadToken"}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{chain}/launchpad/token/{tokenId}/trades":{"get":{"summary":"A token's swaps over all its pools, newest first","tags":["launchpad"],"description":"From its 20 busiest pools over 30 days, the 30 days before the cursor.","parameters":[{"schema":{"default":100,"type":"integer","exclusiveMinimum":0,"maximum":500},"in":"query","name":"limit","required":false},{"schema":{"type":"integer","minimum":0,"maximum":9007199254740991},"in":"query","name":"cursor","required":false,"description":"ms: trades before it (next_cursor of the previous page)"},{"schema":{"type":"string","enum":["wax","telos","eos","volta","xpr"]},"in":"path","name":"chain","required":true,"description":"Chain"},{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"tokenId","required":true,"description":"Token id: `<symbol>-<contract>`, lowercase symbol, e.g. `wax-eosio.token`"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"meta":{"type":"object","properties":{"chain":{"type":"string","enum":["wax","telos","eos","volta","xpr"],"description":"Chain"},"token_id":{"type":"string"},"limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["chain","token_id","limit"],"additionalProperties":false},"items":{"type":"array","items":{"type":"object","properties":{"chain":{"type":"string"},"token_id":{"type":"string"},"pool_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"ts":{"type":"number","description":"ms"},"price":{"type":"number","description":"In the chain's coin"},"amount":{"type":"number","description":"Of the token"},"side":{"type":"string","enum":["buy","sell"],"description":"buy: the pool gave the token out"},"tx_id":{"type":"string"},"account":{"type":["string","null"]},"sender":{"type":["string","null"]},"recipient":{"type":["string","null"]},"quote_token_id":{"type":"string"},"volume_quote":{"type":"number"},"volume_usd":{"type":"number"}},"required":["chain","token_id","pool_id","ts","price","amount","side","tx_id","account","sender","recipient","quote_token_id","volume_quote","volume_usd"],"additionalProperties":false}},"next_cursor":{"type":["number","null"]}},"required":["meta","items","next_cursor"],"additionalProperties":false}}}}}}},"/{chain}/launchpad/token/{tokenId}/holders":{"get":{"summary":"A token's largest holders","tags":["launchpad"],"description":"type: contract for pools, protocols, exchanges and burn accounts (chain-accounts), whale for a wallet with 5% or more, else holder. share is percent of the supply. For the supply split, see /tokens/:id/holders.","parameters":[{"schema":{"default":100,"type":"integer","exclusiveMinimum":0,"maximum":500},"in":"query","name":"limit","required":false},{"schema":{"type":"string","enum":["wax","telos","eos","volta","xpr"]},"in":"path","name":"chain","required":true,"description":"Chain"},{"schema":{"type":"string","minLength":1,"maxLength":64},"in":"path","name":"tokenId","required":true,"description":"Token id: `<symbol>-<contract>`, lowercase symbol, e.g. `wax-eosio.token`"}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"chain":{"type":"string","enum":["wax","telos","eos","volta","xpr"],"description":"Chain"},"token_id":{"type":"string"},"items":{"type":"array","items":{"type":"object","properties":{"account":{"type":"string"},"amount":{"type":"number"},"share":{"type":"number"},"type":{"type":"string","enum":["whale","contract","holder"]},"kind":{"type":"string","enum":["pool","protocol","exchange","burn","wallet"],"description":"As /tokens/:id/holders gives it"}},"required":["account","amount","share","type","kind"],"additionalProperties":false}}},"required":["chain","token_id","items"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/{chain}/events":{"get":{"summary":"Live events (Server-Sent Events)","tags":["events"],"description":"\nServer-Sent Events. One connection per client; subscribe to any number of channels.\n\nChannels (`channels` query, comma-separated):\n- `pool:<poolId>`: swaps, position and farm actions on the pool, its new state, a new pool\n- `pools:all`: `pool.updated` of every pool on the chain, at most one per pool per block (a swap page keeping its pools current)\n- `account:<name>`: the account's swaps, transfers, balance changes, position, farm and staking actions\n- `token:<tokenId>`: transfers, balance changes and USD price changes of the token\n- `tokens:all`: `tokens.prices`, the prices that changed in each pass of the pricing job (a token list keeping its prices current)\n- `launchpad:all`: `launchpad.tokens`, the meme terminal's cards that changed in each pricing pass\n- `position:<positionId>`: actions on the position and its refresh\n- `incentive:<incentiveId>`: farm actions on the incentive\n- `staking:all`: every liquid.alcor staking action\n- `book:<marketId>`: fills on the v1 orderbook market and its levels that changed\n- `all`: everything on the chain (debugging only)\n\nEach message is `event: <type>` and `data: <JSON>`. Types and the component schema of their data:\n\n| event | data |\n|---|---|\n| `swap` | SwapEvent |\n| `transfer` | TransferEvent |\n| `balance` | BalanceEvent |\n| `token.price` | TokenPriceEvent |\n| `tokens.prices` | TokensPricesEvent |\n| `launchpad.tokens` | LaunchpadTokensEvent |\n| `pool.created` | PoolCreatedEvent |\n| `pool.updated` | PoolUpdatedEvent |\n| `book.match` | BookMatchEvent |\n| `book.levels` | BookLevelsEvent |\n| `book.order` | BookOrderEvent |\n| `position.mint` | PositionActionEvent |\n| `position.burn` | PositionActionEvent |\n| `position.collect` | PositionActionEvent |\n| `position.lock` | PositionActionEvent |\n| `position.transfer` | PositionTransferEvent |\n| `position.updated` | PositionUpdatedEvent |\n| `farm.new` | FarmEvent |\n| `farm.stake` | FarmEvent |\n| `farm.unstake` | FarmEvent |\n| `farm.reward` | FarmEvent |\n| `staking.withdraw-request` | StakingEvent |\n| `staking.claim` | StakingEvent |\n| `staking.batch-unstake` | StakingEvent |\n| `staking.exchange-rate` | StakingEvent |\n| `staking.config` | StakingEvent |\n\nA position change shows up as its action (`position.mint`, `position.burn`, ...) and, about a second later, as\n`position.updated` once the indexer has re-read the position from the contract; `closed: true` there means\nthe position was removed. Re-fetch `GET /:chain/positions/:id` or `/:chain/accounts/:account/positions` on it.\n\nA comment line `: ping` comes every 15 s. Events missed while disconnected are not replayed: after a reconnect,\nre-read what you show over REST.\n","parameters":[{"schema":{"type":"string","minLength":1,"maxLength":2048},"in":"query","name":"channels","required":true,"description":"Comma-separated channel keys, e.g. pool:9148,account:avral,token:usdt-tethertether"},{"schema":{"type":"string","enum":["wax","telos","eos","volta","xpr"]},"in":"path","name":"chain","required":true,"description":"Chain"}],"responses":{"200":{"description":"text/event-stream","content":{"text/event-stream":{"schema":{"type":"string"}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"servers":[{"url":"https://api.alcor.exchange"}],"externalDocs":{"description":"Guide","url":"https://docs.alcor.exchange/api"}}