Dune tracks USD prices from coinpaprika and coingecko. If you want to add an asset to prices.usd or prices.layer1_usd follow these steps and open a PR:
- Find the asset on coinpaprika. Note the symbol
- Note the ID of the asset from coinpaprikas URL. In https://coinpaprika.com/coin/dmg-dmm-governance/
dmg-dmm-governanceis the ID. - If the asset is a token on Ethereum, find the contract address and number of decimals e.g. through etherscan.
- The last step is to add an entry to
prices/ethereum/coinpaprika.yamlwith the following format (Without comments)
- name: dmg_dmm_governance id: dmg-dmm-governance # the id from above symbol: DMG # the asset ticker address: 0xdeadbeef # the contract address decimals: 18 # the number of decimals the token contract usesWhen the PR is merged we will deploy the changes and you will soon see USD prices for your asset.
- Find the asset on coingecko.
- Go the page for the given coin. Under the
Infosection there should be a field calledAPI id. This it theid - The last step is to add an entry to
prices/polygon/coingecko.yamlwith the following format (Without comments)
- id: dmg-dmm-governance # the id from aboveNOTE: For coingecko only the id is required. All other fields will be generated when the feed begins.