> 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/withdraw-dca-order.md).

# Withdraw DCA order

Withdraw accumulated **output** coin from an active order without closing it:

```typescript
const payload = await sdk.Dca.withdrawPayload({
  order_id: '0xa60c763185a84b87380a0a1e7e677...',
  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` | On-chain DCA order object ID  |
| `in_coin_type`  | `string` | Input coin type of the order  |
| `out_coin_type` | `string` | Output coin type of the order |

Batch withdraw:

```typescript
const payload = await sdk.Dca.withdrawAll([
  { order_id, in_coin_type, out_coin_type },
  // ...
])
```
