just a tiny cli that reads config.yaml, hits a few price feeds, and spits out one blended (median) price as json so you can pipe it wherever.
pnpm installpnpm start BTCorTOKEN=ETH pnpm start
- coinmarketcap
https://pro-api.coinmarketcap.com/v2/cryptocurrency/quotes/latest(needs yourX-CMC_PRO_API_KEY) - coingecko
https://api.coingecko.com/api/v3/simple/priceusing the token map in the config - 1inch
https://api.1inch.dev/pricing/v1.1for on-chain quotes - paraswap
https://apiv5.paraswap.io/prices/with the preset amount + network
tweak stuff in config.yaml/config.example.yaml if you want different tokens, weights, or endpoints.