Skip to main content
POST
/
dca
/
v3
/
orders
/
{address}
/
cancel
curl -X POST "https://starknet.api.avnu.fi/dca/v3/orders/0x0a1b2c3d.../cancel"
{
  "chainId": "0x534e5f4d41494e",
  "calls": [
    {
      "contractAddress": "0x0a1b2c3d4e5f6789abcdef0123456789abcdef0123456789abcdef0123456789",
      "entrypoint": "cancel_order",
      "calldata": []
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.avnu.fi/llms.txt

Use this file to discover all available pages before exploring further.

Overview

Cancels an active DCA order and returns any remaining funds to the trader. This endpoint generates the calldata needed to execute the cancellation on-chain.

Request

address
string
required
DCA order contract address to cancel

Response

chainId
string
required
Network identifier (e.g., “0x534e5f4d41494e”)
calls
array
required
Array of transaction calls to cancel the order
curl -X POST "https://starknet.api.avnu.fi/dca/v3/orders/0x0a1b2c3d.../cancel"
{
  "chainId": "0x534e5f4d41494e",
  "calls": [
    {
      "contractAddress": "0x0a1b2c3d4e5f6789abcdef0123456789abcdef0123456789abcdef0123456789",
      "entrypoint": "cancel_order",
      "calldata": []
    }
  ]
}