dex
Publish Order
This endpoint interacts with the Kyberswap protocol to manage limit orders on the decentralized exchange. It allows you to either create a new limit order or cancel an existing one, based on the parameters provided in your request. A successful call returns detailed information including the order ID, the current order status, and a reference ID for tracking the transaction.
💡 Compute Unit Value: 35 (Fixed)
post/defi/v1/dex/publishorder
Request
- Base URLhttps://svc.blockdaemon.com
- URLhttps://svc.blockdaemon.com/defi/v1/dex/publishorder
- AuthAPI key in header X-API-Key
Request body
Example request
{
"dexId": "2200",
"orderType": "create",
"makerAsset": "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",
"takerAsset": "0xc2132d05d31c914a87c6611c10748aeb04b58e8f",
"from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
"to": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
"amountIn": "1000000000000000000",
"amountOut": "1000000000000000000",
"deadline": "1707313948",
"orderId": "95167",
"salt": "140518201020656697335313758999689041588",
"enableFee": false
}Response
Successful response
Example response
{
"status": 200,
"msg": "success",
"data": {
"orderId": "97837",
"orderStatus": "Succeeded",
"referenceId": "23479c6e906f49b8be4dccd062f69676"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.