mirror of
https://github.com/luxfi/dex.git
synced 2026-09-24 00:26:31 +00:00
A chain's pools say what a pair trades at and nothing about what is listed on it: an AMM has no list. Our own chains have an indexer that keeps one, and every other chain had nothing — so an interface switched to Ethereum asked for nothing at all and drew an empty table, which is exactly what a reader has been looking at. The hosted API would answer and refuses without a contract. CoinGecko publishes both halves openly: a per-chain token list with names, decimals and logos, and a price by contract address with the day's change and volume. No key, no account; a key only raises the rate limit. Measured on the open endpoints: 5,821 tokens on Ethereum, 4,214 on BNB, 2,679 on Base, every one with a logo. The lists are large and change slowly, so they are held for six hours; a price is a reading of a market and is held for a minute. Both are held in the gateway rather than in a browser, so a thousand readers are one request to a service that asks nothing of us. A token it does not price is absent from the answer rather than present at zero — a screen can draw a dash, and it cannot un-draw a wrong number. One batch refused is not every price unknown. Measured through the running binary: /v1/trade/tokens?chainId=1 answers WETH, USDC, 1INCH, AAVE with logos; a search for USDC returns USD Coin alone; and the price still comes from our own pool read — WETH at 2474.5369 via uniswap_v3 against USDC — with this provider supplying only what the pool cannot. Co-authored-by: Hanzo Dev <[email protected]>