{"api":{"id":"api_372cc3fd18a41d8b10a52a90","slug":"token-prices-by-address","name":"Token Prices by Contract Address","description":"USD prices of crypto tokens by contract address on any chain, or by CoinGecko id, from DefiLlama: the latest price, the price at a past moment or a price history, with the symbol, decimals, when each price was recorded and the source's confidence score.","kind":"ready_made","visibility":"public","domain":"defillama.com","source_url":"https://coins.llama.fi/prices/current/coingecko:bitcoin,ethereum:0xdAC17F958D2ee523a2206206994597C13D831ec7","category":"finance","record_type":"generic","active_version":"1.0","units_per_1k":500,"health":"unknown","auto_repair":false,"last_checked_at":null,"last_run_at":null,"fields_count":11,"created_at":"2026-12-06T03:57:27.714Z","updated_at":"2026-12-06T03:57:27.714Z","runnable":true},"version":"1.0","contract_hash":"89b332cd6e34fed35493b27853e823ad4ffcf68db4ada95a4dd31b67c145f362","fields":[{"name":"token_id","type":"string","description":"The token as asked, such as coingecko:bitcoin or ethereum:0xdAC17F958D2ee523a2206206994597C13D831ec7.","required":true,"coverage":1,"example":"coingecko:bitcoin"},{"name":"chain","type":"string","description":"Chain of a chain:address token, such as ethereum, bsc or solana; empty for CoinGecko ids.","required":false,"coverage":0.5,"example":"ethereum"},{"name":"address","type":"string","description":"Contract address of the token on that chain; empty for CoinGecko ids.","required":false,"coverage":0.5,"example":"0xdAC17F958D2ee523a2206206994597C13D831ec7"},{"name":"coingecko_id","type":"string","description":"CoinGecko id of a coingecko: token, such as bitcoin.","required":false,"coverage":0.5,"example":"bitcoin"},{"name":"symbol","type":"string","description":"Ticker symbol, such as BTC or USDT.","required":false,"coverage":1,"example":"BTC"},{"name":"price_usd","type":"number","description":"Price of one whole token in US dollars.","required":true,"coverage":1,"example":42969.405486},{"name":"decimals","type":"integer","description":"Decimal places of the token contract, such as 6 for USDT; for chain:address tokens.","required":false,"coverage":0.5,"example":6},{"name":"price_at","type":"datetime","description":"When the source recorded this price (UTC), close to the moment asked.","required":true,"coverage":1,"example":"2026-12-05T19:46:19.000Z"},{"name":"timestamp","type":"integer","description":"The same moment as Unix time in seconds.","required":false,"coverage":1,"example":1796499979},{"name":"confidence","type":"number","description":"The source's confidence in the price, from 0 to 1.","required":false,"coverage":1,"example":0.999},{"name":"token_url","type":"url","description":"The token's page on CoinGecko or on its chain's block explorer.","required":false,"coverage":1,"example":"https://www.coingecko.com/en/coins/bitcoin"}],"inputs":[{"name":"coins","type":"array","description":"Coins and tokens as chain:address, such as ethereum:0xdAC17F958D2ee523a2206206994597C13D831ec7 or solana:EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v, or as coingecko:<id>, such as coingecko:bitcoin. Up to 1,000.","example":["coingecko:bitcoin","ethereum:0xdAC17F958D2ee523a2206206994597C13D831ec7"],"required":true},{"name":"timestamp","type":"integer","description":"A past moment as Unix time in seconds, such as 1796500000. Leave empty for the latest prices.","example":1796500000},{"name":"points","type":"integer","description":"For a price history: how many prices per token, spaced by interval and ending at timestamp (or now), up to 500. Leave empty for one price per token.","example":30},{"name":"interval","type":"string","description":"Time between the prices of a history: one hour, four hours, twelve hours, one day or one week.","default":"1d","enum":["1h","4h","12h","1d","1w"]},{"name":"search_width_hours","type":"integer","description":"How many hours before or after each moment a price may come from, 1 to 168. Leave empty for the default: 6 hours for one price, a tenth of the interval for a history.","example":24}],"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":true,"properties":{"address":{"description":"Contract address of the token on that chain; empty for CoinGecko ids.","type":"string"},"chain":{"description":"Chain of a chain:address token, such as ethereum, bsc or solana; empty for CoinGecko ids.","type":"string"},"coingecko_id":{"description":"CoinGecko id of a coingecko: token, such as bitcoin.","type":"string"},"confidence":{"description":"The source's confidence in the price, from 0 to 1.","type":"number"},"decimals":{"description":"Decimal places of the token contract, such as 6 for USDT; for chain:address tokens.","type":"integer"},"price_at":{"description":"When the source recorded this price (UTC), close to the moment asked.","format":"date-time","type":"string"},"price_usd":{"description":"Price of one whole token in US dollars.","type":"number"},"symbol":{"description":"Ticker symbol, such as BTC or USDT.","type":"string"},"timestamp":{"description":"The same moment as Unix time in seconds.","type":"integer"},"token_id":{"description":"The token as asked, such as coingecko:bitcoin or ethereum:0xdAC17F958D2ee523a2206206994597C13D831ec7.","type":"string"},"token_url":{"description":"The token's page on CoinGecko or on its chain's block explorer.","format":"uri","type":"string"}},"required":["token_id","price_usd","price_at"],"title":"Token Prices by Contract Address","type":"object"},"samples":[{"token_id":"coingecko:bitcoin","chain":null,"address":null,"coingecko_id":"bitcoin","symbol":"BTC","price_usd":42969.405486,"decimals":null,"price_at":"2026-12-05T19:46:19.000Z","timestamp":1796499979,"confidence":0.999,"token_url":"https://www.coingecko.com/en/coins/bitcoin"},{"token_id":"ethereum:0xdAC17F958D2ee523a2206206994597C13D831ec7","chain":"ethereum","address":"0xdAC17F958D2ee523a2206206994597C13D831ec7","coingecko_id":null,"symbol":"USDT","price_usd":0.99881,"decimals":6,"price_at":"2026-12-05T19:46:19.000Z","timestamp":1796499979,"confidence":0.999,"token_url":"https://etherscan.io/token/0xdAC17F958D2ee523a2206206994597C13D831ec7"},{"token_id":"solana:EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","chain":"solana","address":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","coingecko_id":null,"symbol":"usdc","price_usd":0.999908691,"decimals":6,"price_at":"2026-12-05T19:46:19.000Z","timestamp":1796499979,"confidence":0.999,"token_url":"https://solscan.io/token/EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"}],"validation":{"checked_at":"2026-12-06T03:57:27.599Z","field_coverage":{"address":0.67,"chain":0.67,"coingecko_id":0.33,"confidence":1,"decimals":0.67,"price_at":1,"price_usd":1,"symbol":1,"timestamp":1,"token_id":1,"token_url":1},"fresh_read":false,"identity_unique":true,"issues":["Imported from a hand-built source. Field names and types come from its published schema; no live read was made for this check."],"level":"preview","pages_checked":0,"passed":true,"records_checked":3},"changelog":[{"version":"1.0","change_kind":"initial","note":"Imported from the ready-made source catalog.","created_at":"2026-12-06T03:57:27.714Z","activated_at":"2026-12-06T03:57:27.714Z","active":true,"contract_hash":"89b332cd6e34fed35493b27853e823ad4ffcf68db4ada95a4dd31b67c145f362","fields_count":11}]}