How can I get the USD price for multiple assets at the same time?
You can do so by using our /v1/assets endpoint as the output includes price_usd data, using the filter_asset_id parameter, and separating the assets with a semicolon (;). Here are some examples:
To get the actual USD price for both BTC and ETH:
https://rest.coinapi.io/v1/assets?filter_asset_id=BTC;ETH
To get the actual USD price for XRP, LINK, MATIC, QNT and MANA:
https://rest.coinapi.io/v1/assets?filter_asset_id=XRP;LINK;MATIC;QNT;MANA
To learn more, please refer to our documentation: https://docs.coinapi.io/market-data/rest-api/metadata#list-all-assets-get
Was this section helpful?