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

Retrieve the current or historical prices for multiple ERC20 tokens in the blockchain’s native currency and USD. Accepts an array of up to 100 tokens, each requiring token_address and optional fields such as to_block or exchange. Each token returned includes on-chain metadata, as well as off-chain metadata, logos, spam status and more. Additional options to exclude low-liquidity tokens and inactive tokens.

Endpoint only works on the Mainnet chains.

QUERY PARAMS
chainstring
The chain to query
includestring
This parameter is now deprecated as percentage change are included by default
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 Bodyobjectrequired
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' \
--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