Skip to main content

Don't have an API key yet?

Sign-up to Moralis to get your free API key and start building today.

Get Your Free API Key

Get Multiple ERC20 Token Prices

POSThttps://deep-index.moralis.io/api/v2.2/erc20/prices

Returns an array of token prices denominated in the blockchain's native token and USD for a given token contract address

QUERY PARAMS
chainstring
The chain to query
includestring
If the result should contain the 24hr percent change
max_token_inactivitynumber
Exclude tokens inactive for more than the given amount of days
min_pair_side_liquidity_usdnumber
Exclude tokens with liquidity less than the specified amount in USD. This parameter refers to the liquidity on a single side of the pair.
BODY PARAM
Request Bodyobject
Body
Responses
200Returns an array of token prices denominated in the blockchain's native token and USD for a given token contract address
400Bad Request
404Not Found
429Too Many Requests
500Internal Server Error
API KEY
curl --request POST \
--url 'https://deep-index.moralis.io/api/v2.2/erc20/prices?chain=eth&include=percent_change' \
--header 'accept: application/json' \
--header 'X-API-Key: YOUR_API_KEY' \
--header 'content-type: application/json' \
--data '
{
"tokens": [
{
"token_address": "0xdac17f958d2ee523a2206206994597c13d831ec7"
},
{
"token_address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
}
]
}
'
Response Example
Empty