Skip to main content

/price REST API Endpoint - Swap API

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

Updated on
Aug 09, 2026
Please note that this method is only available for paid subscribers of Swap API.
Solana Kit includes the ability to customize RPC methods and transports, allowing you to seamlessly integrate Quicknode add-ons into your applications. For more information on how to use Quicknode add-ons with Solana Kit, check out these guides: How to Use Quicknode Add-ons using Solana Kit (Part 1) and How to Use Quicknode Add-ons using Solana Kit (Part 2)

Important: Each id included will be counted towards your request limit when using this method.

Query Parameters

ids
string
REQUIRED

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.

vsToken
string

The token to compare price versus (supports symbol or address of a token). The default value is set to USDC

restrictIntermediateTokens
boolean

Default is true. Restrict intermediate tokens to a top token set that has stable liquidity. This will help improve latency on /price requests.

onlyDirectRoutes
boolean

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

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 price of the token.

timeTaken
number

The API internal compute response time

Request
Response
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.022965843
12
}
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.022965843
12
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free