Skip to main content
GET
/
api
/
v1
/
quote
Get swap quote
curl --request GET \
  --url https://api.argyros.xyz/api/v1/quote
{
  "success": true,
  "data": {
    "inputMint": "So11111111111111111111111111111111111111112",
    "outputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amountIn": "1000000000",
    "amountOut": "145320000",
    "priceImpactBps": 25,
    "priceImpactPercent": "0.25%",
    "priceImpactSeverity": "low",
    "feeBps": 25,
    "routes": [
      {
        "poolAddress": "HJPjoWUrhoZzkNfRpHuieeFk9WcZWjwy6PBjZ81ngndJ",
        "poolType": "Raydium",
        "percent": 100,
        "inputMint": "So11111111111111111111111111111111111111112",
        "outputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
      }
    ],
    "routePath": [
      "So11111111111111111111111111111111111111112",
      "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
    ],
    "hopCount": 1,
    "otherAmountThreshold": "144593400",
    "priceImpactWarning": "Price impact is low"
  }
}

Query Parameters

inputMint
string
required

Input token mint address (Solana base58 public key).

Example:

"So11111111111111111111111111111111111111112"

outputMint
string
required

Output token mint address (Solana base58 public key).

Example:

"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"

amount
string
required

Amount in smallest token units (lamports for SOL, base units for SPL tokens). For SOL with 9 decimals: 1000000000 = 1 SOL.

Example:

"1000000000"

swapMode
enum<string>
required

How the amount is interpreted. ExactIn: amount is exact input, output is estimated. ExactOut: amount is exact desired output, input is estimated.

Available options:
ExactIn,
ExactOut
Example:

"ExactIn"

slippageBps
integer
default:50

Slippage tolerance in basis points (1 bps = 0.01%). Defaults to 50 (0.5%). Common values: 10 (0.1%), 50 (0.5%), 100 (1%), 300 (3%).

Example:

50

Response

Quote calculated successfully.

success
boolean
Example:

true

data
object

Swap quote with routing and price impact details.