Get Quotes
Get quotes from Jupiter by specifying required parameters.
This version contains experimental support for Jupiter in the Quotes
endpoint and Prices
stream endpoint. Note that the endpoints in Trader API are powered by Geyser, which is faster but will also result in subtly different state representations than what you'd normally get over Solana RPC. We welcome any feedback you have on these results.
Request
Method:
GET ./api/v2/jupiter/quotes
Parameters:
Parameter | Type | Description |
---|---|---|
| string | Symbol of the swap-in token. |
| string | Symbol of the swap-out token. |
| double | The amount of token wanted to be swapped from. |
| double | The maximum slippage tolerance in percentage. |
| boolean | OPTIONAL. Lower latency option that excludes Raydium Pools. |
Jupiter support for this endpoint is still experimental as we incorporate Geyser streams into Jupiter's aggregation algorithms. We welcome any feedback here.
Request example:
Response:
Fields:
Field | Type | Description |
---|---|---|
| string | Symbol of the swap-in token. |
| string | The program address for the swap-in token. |
| string | Symbol of the swap-out token. |
| string | The program address for the swap-out token. |
| double | The amount of token wanted to be swapped from. |
| [] | See |
ProjectQuote
Field | Type | Description |
---|---|---|
| string | Symbol of the swap-in token. |
| [] | See |
QuoteRoute
Field | Type | Description |
---|---|---|
| double | Number of the swap-in token. |
| double | Number of the swap-out token. |
| [] | See |
QuoteStep
Field | Type | Description |
---|---|---|
| string | Symbol of the swap-in token for the current step. |
| string | The program address for the swap-in token for the current step. |
| string | Symbol of the swap-out token for the current step. |
| string | The program address for the swap-out token for the current step. |
| double | Number of the swap-in token for the current step. |
| double | Number of the swap-out token for the current step. |
| double | The maximum slippage tolerance in percentage. |
|
|
|
| Fee |
|
PriceImpactPercent
Field | Type | Description |
---|---|---|
| number | Percentage impact on price. |
| string | Indicates possible infinity values: |
Fee
Field | Type | Description |
---|---|---|
| number | Amount paid to AMM project |
| string | Token currency the fee is paid in |
| number | Percentage of the swap consumed by the fee |
Response Example:
Last updated