Skip to main content
GET
/
erc20
/
{address}
/
price
Get ERC20 token price
curl --request GET \
  --url https://deep-index.moralis.io/api/v2.2/erc20/{address}/price \
  --header 'X-API-Key: <api-key>'
{
  "usdPrice": 19.722370676,
  "possibleSpam": "false",
  "verifiedContract": true,
  "tokenName": "Kylin Network",
  "tokenSymbol": "KYL",
  "tokenLogo": "https://cdn.moralis.io/eth/0x67b6d479c7bb412c54e03dca8e1bc6740ce6b99c.png",
  "tokenDecimals": "18",
  "nativePrice": {
    "value": "8409770570506626",
    "decimals": 18,
    "name": "Ether",
    "symbol": "ETH",
    "address": "<string>"
  },
  "usdPriceFormatted": "19.722370676",
  "24hrPercentChange": "-0.8842730258590583",
  "exchangeAddress": "0x1f98431c8ad98523631ae4a59f267346ea31f984",
  "exchangeName": "Uniswap v3",
  "tokenAddress": "0x67b6d479c7bb412c54e03dca8e1bc6740ce6b99c",
  "toBlock": "16314545",
  "pairAddress": "0x1f98431c8ad98523631ae4a59f267346ea31f984",
  "pairTotalLiquidityUsd": "123.45",
  "usdPrice24h": 1,
  "usdPrice24hrUsdChange": -0.00008615972490000345,
  "usdPrice24hrPercentChange": -0.008615972490000345,
  "securityScore": 1
}
Endpoint cost: CUs. Learn more about compute units.

Authorizations

X-API-Key
string
header
default:test
required

Path Parameters

address
string
required

The address of the token contract

Example:

"0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0"

Query Parameters

chain
enum<string>
default:eth

The chain to query

Available options:
eth,
0x1,
sepolia,
0xaa36a7,
polygon,
0x89,
bsc,
0x38,
bsc testnet,
0x61,
avalanche,
0xa86a,
fantom,
0xfa,
cronos,
0x19,
arbitrum,
0xa4b1,
chiliz,
0x15b38,
chiliz testnet,
0x15b32,
gnosis,
0x64,
gnosis testnet,
0x27d8,
base,
0x2105,
base sepolia,
0x14a34,
optimism,
0xa,
polygon amoy,
0x13882,
linea,
0xe708,
moonbeam,
0x504,
moonriver,
0x505,
moonbase,
0x507,
linea sepolia,
0xe705,
flow,
0x2eb,
flow-testnet,
0x221,
ronin,
0x7e4,
ronin-testnet,
0x7e5,
lisk,
0x46f,
lisk-sepolia,
0x106a,
pulse,
0x171,
sei-testnet,
0x530,
sei,
0x531,
monad,
0x8f
Example:

"eth"

exchange
string

The factory name or address of the token exchange

to_block
integer

The block number from which the token price should be checked

Required range: x >= 0
include
enum<string>
default:""

This parameter is now deprecated as percentage change are included by default

Available options:
percent_change
Example:

""

max_token_inactivity
number

Exclude tokens inactive for more than the given amount of days

min_pair_side_liquidity_usd
number

Exclude tokens with liquidity less than the specified amount in USD. This parameter refers to the liquidity on a single side of the pair.

Response

200 - application/json

Returns the price denominated in the blockchain's native token and USD for a given token contract address

usdPrice
number<double>
required

The price in USD for the token

Example:

19.722370676

possibleSpam
boolean
required

Indicates if a contract is possibly a spam contract

Example:

"false"

verifiedContract
boolean
required

Indicates if the contract is verified

Example:

true

tokenName
string

The name of the token

Example:

"Kylin Network"

tokenSymbol
string

The symbol of the token

Example:

"KYL"

The logo of the token

Example:

"https://cdn.moralis.io/eth/0x67b6d479c7bb412c54e03dca8e1bc6740ce6b99c.png"

tokenDecimals
string

The number of decimals of the token

Example:

"18"

nativePrice
object
usdPriceFormatted
string

The price in USD for the token in string format

Example:

"19.722370676"

24hrPercentChange
string

The 24hr percent change of the token

Example:

"-0.8842730258590583"

exchangeAddress
string

The address of the exchange used to calculate the price

Example:

"0x1f98431c8ad98523631ae4a59f267346ea31f984"

exchangeName
string

The name of the exchange used to calculate the price

Example:

"Uniswap v3"

tokenAddress
string

The address of the token

Example:

"0x67b6d479c7bb412c54e03dca8e1bc6740ce6b99c"

toBlock
string

toBlock

Example:

"16314545"

pairAddress
string

The address of the pair

Example:

"0x1f98431c8ad98523631ae4a59f267346ea31f984"

pairTotalLiquidityUsd
string

The total liquidity in USD of the pair

Example:

"123.45"

usdPrice24h
number

The USD price 24 hours ago

Example:

1

usdPrice24hrUsdChange
number

The USD change in price over the last 24 hours

Example:

-0.00008615972490000345

usdPrice24hrPercentChange
number

The percent change in USD price over the last 24 hours

Example:

-0.008615972490000345

securityScore
number

A number between 0 and 100 that defines the trust level of this specific token

Example:

1