create_dca_order
Set up automated recurring token swaps at fixed intervals by creating a Dollar Cost Averaging order. Returns an unsigned transaction CBOR for wallet signing.
Instructions
Create a Dollar Cost Averaging (DCA) order for automated recurring swaps at specified intervals. Returns an unsigned transaction CBOR to be signed by the wallet.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"walletAddress": "<walletAddress>",
"tokenOut": "<tokenOut>",
"perOrderAmount": "<perOrderAmount>",
"numOrders": "<numOrders>"
},
"name": "create_dca_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tokenIn | No | Input token identifier. Use 'lovelace' for ADA, or token object with policyId/nameHex for native tokens | lovelace |
| maxPrice | No | Maximum price threshold as rational number (optional) | |
| minPrice | No | Minimum price threshold as rational number (optional) | |
| tokenOut | Yes | Output token identifier (string or object with policyId and nameHex) | |
| keeperFee | No | Fee for the keeper bot in lovelace (default: 500000 = 0.5 ADA) | |
| numOrders | Yes | Total number of recurring swap orders to execute | |
| intervalMs | No | Interval between orders in milliseconds (default: 3600000 = 1 hour) | |
| slippageBps | No | Slippage tolerance in basis points (default: 50 = 0.5%) | |
| walletAddress | Yes | Cardano wallet address (bech32 format, starts with 'addr1') | |
| perOrderAmount | Yes | Amount of input token per individual swap order (in smallest unit) | |
| tokenInDecimals | No | Decimal places of the input token (default: 6 for ADA) |