GET
/
v1
/
dex
/
{chain}
/
quote
Dex - Get Quote
curl --request GET \
  --url https://api-dex.chainstream.io/v1/dex/{chain}/quote \
  --header 'Authorization: Bearer <token>'
{
  "amountOut": "1000000000",
  "minAmountOut": "<string>",
  "currentPrice": "<string>",
  "executionPrice": "<string>",
  "priceImpact": "10.5",
  "fee": "1000000000"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

chain
enum<string>
required

A chain name listed in supported networks

Available options:
sol,
base,
bsc,
polygon,
arbitrum,
optimism,
avalanche,
ethereum,
zksync,
sui

Query Parameters

dex
enum<string>
required

DEX protocol type

Available options:
raydium,
pumpfun
Example:

"raydium"

amount
string
required

Trading amount

Example:

"1000000000"

inputMint
string
required

Input token address

Example:

"6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN"

outputMint
string
required

Output token address

Example:

"So11111111111111111111111111111111111111112"

exactIn
boolean
default:true
required

Exact input mode

Example:

true

slippage
number
required

Slippage tolerance

Example:

10

Response

200 - application/json

The response is of type object.