Skip to main content
Reduce volatility exposure with automated recurring buy orders executed on-chain.
Recurring Buy is our implementation of Dollar-Cost Averaging (DCA) - a proven investment strategy that reduces timing risk by spreading purchases over regular intervals.

How It Works

Each recurring buy order is a dedicated smart contract that:
  • Is owned by your address
  • Is allowed to spend your sell token
  • Executes swaps at scheduled intervals, directly from your wallet
  • Can be canceled anytime
Sell tokens never leave your wallet, your dedicated DCA smart contract only execute trades directly on your account.

Use Cases

Long-term Accumulation

Buy tokens weekly to average entry price

Treasury Management

Systematic token accumulation for protocols

Volatility Smoothing

Spread large purchases across multiple intervals

Consistent Investing

Invest fixed amounts regardless of price

SDK Methods

Data Fetching

  • getDcaOrders(params) - Fetch user’s recurring buy orders

Simple Integration

  • executeCreateDca(params) - Create recurring buy order with automatic approvals
  • executeCancelDca(params) - Cancel active recurring buy order

Advanced Integration

  • createDcaToCalls(order) - Build recurring buy creation calls for custom execution
  • cancelDcaToCalls(orderAddress) - Build cancellation calls

Parameters

Create Recurring Buy Order

object
required
The recurring buy order configuration object.

Execution Details

Automated execution:
  • avnu executors monitor all active orders
  • Trades execute within 5 minutes of scheduled time
  • Each trade uses solver routing for best price
  • Failed trades are retried automatically
Fully Gas Free: avnu covers all gas fees for recurring buy execution. Users pay 0 gas for their automated purchases. MEV Protection & Safety:
  • Randomized Execution: We introduce randomness in execution triggering to proactively avoid potential MEV attacks.
  • Price Impact Guard: There is a by-design 5% price impact safety limit. If a trade would cause >5% price impact, it will fail to protect the user.
Constraints:
  • Minimum interval: 1 hour
  • Maximum executions: 1000 per order

Examples

Weekly STRK Accumulation

$100 of STRK every week for 12 weeks:

Cancel an Order

Fetch Active Orders

API Reference

REST API Documentation

Complete HTTP endpoint reference and integration guide →

Advanced Features

Integration Guide

Step-by-step production integration