Important: Each id included will be counted towards your request limit when using this method.
Query Parameters
Supports symbol or address of a token. You can also pass in an array of ids with a comma as a separator. Address and symbol modes both are case-sensitive. Each id included will be counted towards your request limit.
The token to compare price versus (supports symbol or address of a token). The default value is set to USDC
Default is true. Restrict intermediate tokens to a top token set that has stable liquidity. This will help improve latency on /price requests.
Default is false. If true, only direct routes will be used when determining the price via single hop routes only. This will help improve latency on /price requests.
Returns
The data object which contains the following fields:
The token object which contains the following fields:
The address of a token
The symbol of id token
The address of vs token
The symbol of vs token
The price of the token.
The API internal compute response time
1{2"data": {3"SOL": {4"id": "So11111111111111111111111111111111111111112",5"mintSymbol": "SOL",6"price": 149.98326539218897,7"vsToken": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",8"vsTokenSymbol": "USDC"9}10},11"timeTaken": 0.02296584312}
1{2"data": {3"SOL": {4"id": "So11111111111111111111111111111111111111112",5"mintSymbol": "SOL",6"price": 149.98326539218897,7"vsToken": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",8"vsTokenSymbol": "USDC"9}10},11"timeTaken": 0.02296584312}