Order types: DCA
What it does
Section titled “What it does”A DCA (dollar-cost averaging) order trades a fixed amount, a slice, at most once per interval, until its slices run out or it expires. One order box holds everything.
- Each slice has its own minimum payout and fills whole or not at all.
- What you buy stays in the order until the end. You’re paid once: at the last slice, when you cancel, or at the refund after expiry.
- The next slice is due one interval after the last fill, not on a fixed calendar. A late fill pushes the schedule back, and missed slices are never bunched together.
When to use it
Section titled “When to use it”- To spread a purchase or sale over days or weeks instead of trading at one price.
- To avoid moving a market with one big trade.
What you pay
Section titled “What you pay”- The order fee on each slice. See fees.
- An execution fee for each slice, within your cap per slice. Kadia’s settler charges only what each fill costs.
- ERG set aside at creation: the execution fee for every slice, the minimum for the final payout box, and one rent cushion for that box. For a 52-slice DCA the cushion is about 0.19 ERG when you’re paid to your wallet. What isn’t used comes back to you at the end.
What can go wrong
Section titled “What can go wrong”- Timing isn’t fair-averaged. Settlers choose when in each interval to fill, so one settler alone doesn’t give you a true time average.
- A slice may wait. Each block lets a market move only a little (about 1.5% of the pool’s reserve, shared with every other order), so a large slice may not fit. Keep slices small next to the pool.
- The order must outlive its last slice. It lives at most a year (262,800 blocks). At its expiry only a final slice can still fill; otherwise it’s refunded.
- To take your proceeds early, cancel and create a new DCA for the remaining slices.
Technical details
Sources: kadia-dex docs/guide/how-it-works.md, docs/guide/fees.md and the order-type decisions in docs/decisions/ at commit 7ce1595 (7ce159587dc8c0bd78d6a5fbe0f7f8e7dde3920e).