Skip to main content

/price REST API Endpoint

Returns the precise and real-time pricing for all SPL tokens.

Updated on
Apr 17, 2024

/price REST API Endpoint

Please note that this method is only available for paid subscribers of Metis - Jupiter V6 Swap API.

Query Parameters

ids
string
REQUIRED
Supports symbol or address of a token. You can also pass in an array of ids to with , as separator. Address and Symbol modes both are case-sensitive
vsToken
string
The token to compare price versus (supports symbol or address of a token). The default value is set to USDC

Returns

data
object
The data object which contains the following fields:
token
object
The token object which contains the following fields:
id
string
The address of a token
mintSymbol
string
The symbol of id token
vsToken
string
The address of vs token
vsTokenSymbol
string
The symbol of vs token
price
number
The prive of the token.
timeTaken
number
The API internal compute response time
Request
1
curl --location 'https://docs-demo.solana-mainnet.quiknode.pro/price?ids=SOL'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free