GET /priapi/v1/dx/trade/intent/quote
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/web3okx/priapi/v1/dx/trade/intent/quoteCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freePublic intent swap quote
Parameters
| name | in | type | description | |
|---|---|---|---|---|
userWalletAddress | query | str | required | example: 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 |
chainId | query | str | required | example: 1 |
fromTokenAddress | query | str | required | example: 0x0000000000000000000000000000000000000000 |
toTokenAddress | query | str | required | example: 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 |
amount | query | str | required | example: 1000000000000000000 |
Response
type: object
data key: defiPlatformInfoList
pagination: none
sample: {
"commonDexInfo": "object",
"defiPlatformInfoList": "array[0]",
"intentCode": "str",
"intentInfo": "object",
"isSupportDappTrade": "str",
"newPriorityFeeInfo": "null",
"priorityFeeInfo": "null",
"serviceFeeInfo": "null",
"singleChainSwapInfo": "null",
"snapModeQuote": "null",
"supportSnapMode": "int",
"swapType": "str",
"traceData": "null",
"tradingModeType": "str"
}
Safe request
Reads the credential from API_HUB_KEY; it never appears in the URL.
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/web3okx/priapi/v1/dx/trade/intent/quote?userWalletAddress=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045&chainId=1&fromTokenAddress=0x0000000000000000000000000000000000000000&toTokenAddress=0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2&amount=1000000000000000000"