Get Quotes
Get quotes from Jupiter by specifying required parameters.
Request
Method:
GET ./api/v2/raydium/quotes
inToken
string
Symbol of the swap-in token.
outToken
string
Symbol of the swap-out token.
inAmount
number
The amount of token wanted to be swapped from.
slippage
number
The maximum slippage tolerance in percentage.
Request example:
Response:
Fields:
inToken
string
Symbol of the swap-in token.
inTokenAddress
string
The program address for the swap-in token.
outToken
string
Symbol of the swap-out token.
outTokenAddress
string
The program address for the swap-out token.
inAmount
double
The amount of token wanted to be swapped from.
routes
[] RaydiumQuoteRoute
See RaydiumQuoteRoute
for details.
RaydiumQuoteRoute
inAmount
double
Number of the swap-in token.
outAmount
double
Number of the swap-out token.
steps
[]RaydiumQuoteStep
See RaydiumQuoteStep
below for details.
RaydiumQuoteStep
inToken
string
Symbol of the swap-in token for the current step.
inTokenAddress
string
The program address for the swap-in token for the current step.
outToken
string
Symbol of the swap-out token for the current step.
outTokenAddress
string
The program address for the swap-out token for the current step.
inAmount
double
Number of the swap-in token for the current step.
outAmount
double
Number of the swap-out token for the current step.
slippage
double
The maximum slippage tolerance in percentage.
priceImpact
PriceImpactPercentV2
"percent"
Percentage impact on price.
"infinity"
Indicates possible infinity values: INF_NOT
, INF_POSITIVE
, INF_NEGATIVE
. Usually INF_NOT
.
fee
Fee
"amount"
Amount paid to AMM project.
"mint"
Token currency the fee is paid in.
"percent"
Percentage of the swap consumed by the fee.
PriceImpactV2
percent
double
Percentage impact on price.
infinity
string
Indicates possible infinity values: INF_NOT
, INF_POSITIVE
, INF_NEGATIVE
. Usually INF_NOT
.
Fee
amount
float
Amount paid to AMM project
mint
string
Token currency the fee is paid in
percent
float
Percentage of the swap consumed by the fee
Response Example:
Last updated