{"openapi":"3.1.0","info":{"title":"Crypto Prices","version":"1.0.0","x-guidance":"Every path is payable per request over HTTP 402 in USDG on eip155:4663. GET or POST without credentials to receive the challenge (WWW-Authenticate Payment header, plus the x402 payment-required header). Sign PermitWitnessTransferFrom for the advertised offer (spender is the canonical x402ExactPermit2Proxy) and retry with the payment-signature header. Buyers only need USDG: a one-time sponsored Permit2 approval is available at POST /api/gas/sponsor {\"address\"}."},"x-service-info":{"description":"Token prices across every major chain from the DefiLlama coins index: spot, historical, and chart series by contract address or CoinGecko id. Machine-payable per request."},"paths":{"/chart":{"get":{"summary":"Time-series price points for charting. Append coins to the path, e.g. chart/coingecko:ethereum?period=1d&span=30.","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.010000"},"protocols":[{"mpp":{"method":"evm","intent":"charge","currency":"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168"}},{"x402":{}}],"amount":"10000","currency":"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168","description":"Crypto Prices: Price chart","intent":"charge","method":"evm","recipient":"0xbB818E97E2260904B1D502E154488392ba2Ab5C9","scheme":"exact","network":"eip155:4663","extra":{"assetTransferMethod":"permit2","spender":"0x402085c248EeA27D92E8b30b2C58ed07f9E20001","name":"USDG"}}}},"/current":{"get":{"summary":"Spot prices for one or more tokens. Append coins to the path as comma-separated {chain}:{address} or coingecko:{id}, e.g. current/coingecko:ethereum,base:0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913.","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.010000"},"protocols":[{"mpp":{"method":"evm","intent":"charge","currency":"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168"}},{"x402":{}}],"amount":"10000","currency":"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168","description":"Crypto Prices: Current prices","intent":"charge","method":"evm","recipient":"0xbB818E97E2260904B1D502E154488392ba2Ab5C9","scheme":"exact","network":"eip155:4663","extra":{"assetTransferMethod":"permit2","spender":"0x402085c248EeA27D92E8b30b2C58ed07f9E20001","name":"USDG"}}}},"/historical":{"get":{"summary":"Price at a unix timestamp. Append {timestamp}/{coins} to the path, e.g. historical/1700000000/coingecko:ethereum.","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.010000"},"protocols":[{"mpp":{"method":"evm","intent":"charge","currency":"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168"}},{"x402":{}}],"amount":"10000","currency":"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168","description":"Crypto Prices: Historical price","intent":"charge","method":"evm","recipient":"0xbB818E97E2260904B1D502E154488392ba2Ab5C9","scheme":"exact","network":"eip155:4663","extra":{"assetTransferMethod":"permit2","spender":"0x402085c248EeA27D92E8b30b2C58ed07f9E20001","name":"USDG"}}}}}}