# DCA Trading

DCA Swap allows users to sell one token at regular intervals and continuously buy a target token.\
Once the plan is created:

* Funds are allocated in a smart contract
* The system executes swaps automatically based on your chosen frequency
* Tokens purchased in each execution are immediately transferred to your wallet

You retain full visibility and control over active and completed orders

Creating a DCA Order

Follow the process below or watch this [tutorial video](https://x.com/astros_ag/status/2004128446126133471?s=20) to set up a DCA plan:&#x20;

### 1. Select Sell Token

Choose the token you want to sell and enter the total amount you want to allocate.

* Minimum order size: ≥ $50\
  (to prevent gas farming or abuse)

### 2. Select Buy Token

Choose the token you want to accumulate.

* Batch buying will be available in a future version.

### 3. Set Execution Frequency

Define how often the system will execute your DCA plan.

Supported intervals:

* Minutes
* Hourly
* Daily
* Weekly
* Monthly

Additional rules:

* Minimum total executions: ≥ 2

Example: 2 times per hour, 1 time per day, etc.\
Set Price Range (Optional)

You may choose to set a custom min or max price to control execution conditions.

* Displayed market price helps set reference
* One-click option to use current price as max price
* Supports up to 8 decimals
* Max price must be ≥ min price

If the market price is outside your range at the scheduled time, that execution may be skipped.

### 5. Price Impact Protection

* First DCA order: Users can choose whether to place orders based on the current estimated price impact
* Subsequent orders: System automatically applies 5% price impact protection

### 6. Confirm Fees

Astros charges a small service fee (see “Fee Structure” below).\
A portion of the fee is converted into SUI for gas fees.

### 7. Confirm Estimated End Date

The system will calculate the estimated completion date of your DCA plan based on:

* Total amount
* Interval
* Number of scheduled executions
* Start time

Times are displayed in your local timezone.

### 8. Confirm & Allocate Funds

Once confirmed:

* Funds are allocated to the smart contract for order execution
* Users can cancel at any time and withdraw unused funds
* Idle yield on unspent funds is not supported in v1

Your DCA plan is now active.

***

## Managing Your DCA Orders

### Active Orders

Under the “Active Orders” section, you can view:

* Your selected price range
* Estimated completion time
* Execution history
* Filled amount vs. total
* Tx hashes for each execution
* Current order status

***

### Receive Purchased Tokens Automatically

Each time the system executes your DCA order:

* Swapped tokens are immediately sent to your wallet
* You do not need to claim anything manually

***

### Cancel an Active Order

You may cancel your active DCA plan at any time.

* All unused funds will be fully refunded
* Completed executions remain valid, and already-delivered tokens stay in your wallet

***

### Completed or Cancelled Orders

This section displays:

* Total filled size (e.g., 100/100 tokens)
* All execution timestamps
* Execution details & Tx hashes

Final status: Completed or Cancelled

* <br>

***

### Fee Structure

Astros adopts a transparent fee model.\
A small service fee is deducted using a slippage-based mechanism, and part of the fee is converted into SUI to cover gas for order execution.

***

### Service Fee Table

| Order Size (USD) | Service Fee | Example Order | Fee (USD) |
| ---------------- | ----------- | ------------- | --------- |
| $3 – $249        | 0.10%       | $3            | $0.003    |
| $250 – $999      | 0.06%       | $250          | $0.15     |
| $1,000 – $4,999  | 0.04%       | $1,000        | $0.40     |
| $5,000 – $9,999  | 0.03%       | $5,000        | $1.50     |
| $10,000+         | Fixed $5.00 | $10,000       | $5.00     |

Notes:

* For orders above $10k, the fee dynamically adjusts to maintain a maximum service fee of $5.
