GET
/
v1
/
dex
/
{chain}
/
quote
Dex - 获取报价
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

支持网络中列出的区块链名称

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

Query Parameters

dex
enum<string>
required

DEX协议类型

Available options:
raydium,
pumpfun
Example:

"raydium"

amount
string
required

交易数量

Example:

"1000000000"

inputMint
string
required

输入代币地址

Example:

"6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN"

outputMint
string
required

输出代币地址

Example:

"So11111111111111111111111111111111111111112"

exactIn
boolean
default:true
required

精确输入模式

Example:

true

slippage
number
required

滑点容忍度

Example:

10

Response

200 - application/json

The response is of type object.