POST /priapi/v6/dx/trade/multi/quote
POST /run/okxwallet/priapi/v6/dx/trade/multi/quoteCache executed live on every call — a read-only POST answer is never cachedCost free · weight 0 · standard rate classSource billing freeSwap route quote for the registered wallet
Routes live in defiPlatformInfoList[].dexRouterList[] (venue hops with pool addresses and splits); quote totals in commonDexInfo. accountInfo.accountId, tradeMode, liquidityConfig, slippageConfig and preSetConfig are injected by the client; caller keys win. Empty routes with code 0 mean the registered identity or the size gate (10098 JUMP_TO_DAPP) rejected the quote. Use EIP-7528 0xEeee...EEeE for native tokens; a native-token corridor spelled with the EVM zero address is rejected locally with HTTP 400 (logical 10056 body). Upstream HTTP 200 logical code 10056 (insufficient liquidity / no route) maps to HTTP 400 no_route at the gateway.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
chainId | body | int | required | example: 1 |
fromTokenAddress | body | str | required | example: 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE |
toTokenAddress | body | str | required | example: 0xdAC17F958D2ee523a2206206994597C13D831ec7 |
amount | body | str | required | Human units, not atomic example: 0.001 |
slippage | body | str | optional | default: 0.01example: 0.01 |
userWalletAddress | body | str | optional | Defaults to the registered wallet address example: 0x1111111111111111111111111111111111111111 |
Response
type: object
data key: defiPlatformInfoList
pagination: none
sample: {
"commonDexInfo": "object{code,fromToken,fromTokenAmount,fromTokenValue,nativeTokenPrice,realSlippage,toToken}",
"defiPlatformInfoList": "array[1] object{defiPlatformId,dexRouterList:array[1] object{dexPairInfo:object{dexName,percent,poolAddress},fromIndex,percent,toIndex},autoSlippageInfo:object}",
"networkFeeInfo": "object",
"swapType": "int"
}
Safe request
Reads the credential from API_HUB_KEY; it never appears in the URL.
curl -sX POST "https://openapihub.dev/run/okxwallet/priapi/v6/dx/trade/multi/quote" \
-H "X-Hub-Key: $API_HUB_KEY" -H "Content-Type: application/json" \
-d '{"chainId": 1, "fromTokenAddress": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", "toTokenAddress": "0xdAC17F958D2ee523a2206206994597C13D831ec7", "amount": "0.001", "slippage": "0.01", "userWalletAddress": "0x1111111111111111111111111111111111111111"}'