Skip to main content
POST

Overview

Creates a DCA (Dollar-Cost Averaging) order that automatically executes recurring swaps at specified intervals. Each order is deployed as a dedicated smart contract that manages your funds and executes trades autonomously.

Request

string
required
Address that will own the DCA order
string
required
Token to sell over time
string
required
Total amount to sell across all cycles
string
required
Amount to sell in each cycle
string
required
Token to purchase
string
required
ISO 8601 duration format (e.g., “P1D” for daily, “PT12H” for 12 hours)
  • PT1H - Every hour
  • PT6H - Every 6 hours
  • P1D - Daily
  • P1W - Weekly
  • P1M - Monthly
string
ISO 8601 start date (defaults to now)
object
required
Price constraints for order execution

Response

string
required
Network identifier (e.g., “0x534e5f4d41494e”)
array
required
Array of transaction calls to create the order

Order Calculation

Number of cycles = Total Amount ÷ Amount Per CycleDuration = Number of Cycles × FrequencyExample: 1 ETH total, 0.1 ETH per cycle, daily frequency = 10 days duration