Conversation

Today we are releasing our token price API, which we've been developing and using internally for months This API aims to price all tokens, including exotic ones that don't get directly traded such as curve LPs Thread on how it works, how to use it and why we built it
Image
63
1,239
At defillama we kept finding ourselves having to price exotic tokens such as LPs that never get traded and thus: - can't be priced through cex/dex - dont get listed on coingecko/cmc because no user is interested in trading them That's why we built our own price API
2
45
Our API works by: 1. Getting prices from coingecko as a base 2. Finding all bridged assets and pricing them as the original asset (fantom usdc = mainnet usdc) 3. Pricing all kinds of LPs (yearn, curve, uniswap, aave, balancer, compound, euler, glp...) by underlying
2
50
4. For missing tokens we price them using DEX markets from uniswap, curve and serum For these we provide a confidence score based on how much liquidity is in each market (eg: can you trade $1M at this price?) API users can then choose their own confidence threshold
3
42
Replying to
Nice job! 🙂 Is there a way to fetch daily candles of a coin e.g for a full month with one api request? similar to CMC. I know I could send the daily-00:00-timestamp in the historical endpoint. (= 30 requests for a full month)
1
Show additional replies, including those that may contain offensive content
Show