Cancel an order

1

Build a cancel order transaction

To build a cancel order transaction, simply include its order's ID in the path param payload.

For in-depth API details Build cancel Order Transaction

curl --location --request DELETE 'https://api-staging.deltadefi.io/order/fdcd1b64-504f-4504-8000-61b3306f345b/build' \
--header 'x-api-key: <your_api_key>' \
--data ''

2

Submit a cancel order transaction

With the returned tx_hex from step 1, you will need to sign it before submitting it.

For in-depth API details Submit cancel order transaction

curl --location --request DELETE 'https://api-staging.deltadefi.io/order/submit' \
--header 'x-api-key: <your_api_key>' \
--header 'Content-Type: application/json' \
--data '{
    "signed_tx": "<your_api_key>"
}'

Last updated