Get Quotes

Get quotes from Jupiter by specifying required parameters.

Request

Method:

GET ./api/v2/raydium/quotes

ParameterTypeDescription

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:

curl --header "Authorization: $AUTH_HEADER" \
"https://ny.solana.dex.blxrbdn.com/api/v2/raydium/quotes?inToken=SOL&outToken=USDC&inAmount=0.1&slippage=0.1" 

Response:

Fields:

FieldTypeDescription

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

FieldTypeDescription

inAmount

double

Number of the swap-in token.

outAmount

double

Number of the swap-out token.

steps

[]RaydiumQuoteStep

See RaydiumQuoteStepbelow for details.

RaydiumQuoteStep

FieldTypeDescription

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

FieldTypeDescription

percent

double

Percentage impact on price.

infinity

string

Indicates possible infinity values: INF_NOT, INF_POSITIVE, INF_NEGATIVE. Usually INF_NOT.

Fee

FieldTypeDescription

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:

{
    "inToken": "SOL",
    "inTokenAddress": "So11111111111111111111111111111111111111112",
    "outToken": "USDC",
    "outTokenAddress": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "inAmount": 0.1,
    "routes": [...
    ]
}

Last updated