DefiLlama API
What is DefiLlama API?
DefiLlama offers a range of APIs designed to provide users with comprehensive access to our data and infrastructure. Our APIs include all of our data, as well as infrastructure APIs that we have built internally and run for the community. These APIs are all open source and include tools such as our ABI decoder and token price API.
API works by utilizing a three-step pricing process. First, we obtain pricing data from CoinGecko as a base. Next, we identify all bridged assets and price them according to the original asset (e.g., Fantom USDC = Mainnet USDC). Finally, we price all types of LPs, including those from Yearn, Curve, Uniswap, Aave, Balancer, Compound, Euler, GLP, and others, based on their underlying assets.