> For the complete documentation index, see [llms.txt](https://cetus-1.gitbook.io/cetus-developer-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cetus-1.gitbook.io/cetus-developer-docs/developer/via-sdk-v2/sdk-modules/cetusprotocol-dca-sdk/close-dca-order.md).

# Close DCA order

Cancel one or more DCA orders and return remaining input/output balances:

```typescript
const payload = sdk.Dca.dcaCloseOrderPayload([
  {
    order_id: '0xfc519e9cccf90f4dfdf3008e529...',
    in_coin_type: '0x2::sui::SUI',
    out_coin_type: '0x26b3bc67...::usdc::USDC',
  },
])

const result = await sdk.FullClient.sendTransaction(send_key_pair, payload)
```

| Parameter       | Type     | Description               |
| --------------- | -------- | ------------------------- |
| `order_id`      | `string` | Order object ID to cancel |
| `in_coin_type`  | `string` | Input coin type           |
| `out_coin_type` | `string` | Output coin type          |
