Important: Each id included will be counted towards your request limit when using this method.
Query Parameters
- idsstringREQUIRED
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.
- vsTokenstring
The token to compare price versus (supports symbol or address of a token). The default value is set to USDC
- restrictIntermediateTokensboolean
Default is true. Restrict intermediate tokens to a top token set that has stable liquidity. This will help improve latency on /price requests.
- onlyDirectRoutesboolean
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
- dataobject
The data object which contains the following fields:
- tokenobject
The token object which contains the following fields:
- idstring
The address of a token
- mintSymbolstring
The symbol of id token
- vsTokenstring
The address of vs token
- vsTokenSymbolstring
The symbol of vs token
- pricenumber
The price of the token.
- timeTakennumber
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}