API ReferencePrice APIToken PricesGet ERC20 token priceVersion: 2.2Get ERC20 Token PriceGEThttps://deep-index.moralis.io/api/v2.2/erc20/:address/priceGet the token price denominated in the blockchain's native token and USD. View supported exchanges herePATH PARAMSaddressstringrequiredThe address of the token contractQUERY PARAMSchainstringThe chain to queryeth0x1polygon0x89bsc0x38avalanche0xa86afantom0xfapalm0x2a15c308dcronos0x19arbitrum0xa4b1gnosis0x64chiliz0x15b38base0x2105optimism0xalinea0xe705moonbeam0x504moonriver0x505moonbase0x507includestringIf the result should contain the 24hr percent changepercent_changeexchangestringThe factory name or address of the token exchange. View supported exchanges hereuniswapv2uniswapv3sushiswapv2pancakeswapv1pancakeswapv2pancakeswapv3quickswapquickswapv2traderjoepangolinspookyswapvvsmm financecrodexcamelotv2to_blocknumberThe block number from which the token price should be checkedResponses200 Returns the price denominated in the blockchain's native token and USD for a given token contract addressobjectAPI KEYTest Live APINode.jsPythoncURLGoPHPimport Moralis from 'moralis';try { await Moralis.start({ apiKey: "YOUR_API_KEY" }); const response = await Moralis.EvmApi.token.getTokenPrice({ "chain": "0x1", "include": "percent_change", "address": "0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0" }); console.log(response.raw);} catch (e) { console.error(e);}from moralis import evm_apiapi_key = "YOUR_API_KEY"params = { "chain": "eth", "include": "percent_change", "address": "0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0"}result = evm_api.token.get_token_price( api_key=api_key, params=params,)print(result)curl --request GET \ --url 'https://deep-index.moralis.io/api/v2.2/erc20/0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0/price?chain=eth&include=percent_change' \ --header 'accept: application/json' \ --header 'X-API-Key: YOUR_API_KEY' package mainimport ( "fmt" "net/http" "io/ioutil")func main() { url := "https://deep-index.moralis.io/api/v2.2/erc20/0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0/price?chain=eth&include=percent_change" req, _ := http.NewRequest("GET", url, payload) req.Header.Add("Accept", "application/json") req.Header.Add("X-API-Key", "YOUR_API_KEY") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body))}<?php// Dependencies to install:// $ composer require guzzlehttp/guzzlerequire_once('vendor/autoload.php');$client = new \GuzzleHttp\Client();$response = $client->request('GET', 'https://deep-index.moralis.io/api/v2.2/erc20/0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0/price?chain=eth&include=percent_change', [ 'headers' => [ 'Accept' => 'application/json', 'X-API-Key' => 'YOUR_API_KEY', ],]);echo $response->getBody();Response Example200 Returns the price denominated in the blockchain's native token and USD for a given token contract address{ "tokenName": "Kylin Network", "tokenSymbol": "KYL", "tokenLogo": "https://cdn.moralis.io/eth/0x67b6d479c7bb412c54e03dca8e1bc6740ce6b99c.png", "tokenDecimals": "18", "usdPrice": 19.722370676, "usdPriceFormatted": "19.722370676", "24hrPercentChange": "-0.8842730258590583", "exchangeAddress": "0x1f98431c8ad98523631ae4a59f267346ea31f984", "exchangeName": "Uniswap v3", "tokenAddress": "0x67b6d479c7bb412c54e03dca8e1bc6740ce6b99c", "toBlock": "16314545", "possibleSpam": "false", "verifiedContract": true, "pairAddress": "0x1f98431c8ad98523631ae4a59f267346ea31f984", "pairTotalLiquidityUsd": "123.45"}