Fetching USD prices for an array of tokens


I am slowly becoming familiar with the REST API for moralis, which I current really like. However currently I’m running into an issue fetching the USD price of all tokens from an address. Right now I use the address balance endpoint to retrieve all the native balances, but haven’t found a great way to convert native balance -> usd price.

I thought of requesting the price of each individual token separately (in a loop), but felt as though requesting hundreds of times (or thousands) would be extremely inefficient. Is there any better way to leverage the moralis api/sdk where I can input an array of token addresses and get their corresponding usd price?

It looks like Moralis doesn’t have this API function now, I moved this thread to Suggestions and Improvements.

1 Like