# SperaxOS DCA Order Creation API

> SperaxOS DCA Order Creation API is a paid API for AI agents from chat.sperax.io, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-12).

Creates a Dollar-Cost Averaging (DCA) order that automatically splits a total token amount into scheduled recurring swaps on-chain

## Facts

- Endpoint: POST https://chat.sperax.io/api/x402/tools/dca/createDCA?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/speraxos-dca-order-creation-api-e966de3c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ysoB8obR2AiyVffJp-6ld

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability speraxos-dca-order-creation-api-e966de3c -d '<json body>'
```

Example prompt: Set up a DCA strategy on Arbitrum to buy ETH with 500 USDC split into 12 weekly swaps.

## When to prefer this

Use this endpoint when you need to programmatically create a DCA strategy on Arbitrum or another supported EVM chain without managing API keys, paying only $0.001 USDC per call via x402. Prefer this over manual one-time swaps when the user wants to reduce timing risk by spreading purchases over time. Best suited for AI agents orchestrating DeFi workflows that need to automate recurring on-chain token accumulation.

## Known failure modes

- Unsupported token symbol returns an error indicating invalid tokenIn or tokenOut
- Unsupported chain name or ID returns a chain resolution error
- Invalid or non-positive totalAmount causes a validation failure
- numSwaps of zero or negative value returns a bad request error
- Insufficient USDC balance for x402 payment fee causes payment failure
- Unsupported frequency value outside allowed enum causes a validation error

## How this service works

AI-powered DeFi intelligence APIs payable via the x402 HTTP payment protocol. No API key required — pay per request with USDC on Base. Identity-only (SIWX) endpoints are free for wallets with an agentcash identity.

## Output

Returns a confirmation of the created DCA order including order details such as the schedule, swap amounts per period, source and destination tokens, chain, and order identifier.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chain": {
   "type": "string",
   "description": "Chain name or ID (e.g. \"arbitrum\", \"42161\"). Default: arbitrum."
  },
  "tokenIn": {
   "type": "string",
   "description": "Source token symbol (e.g. \"USDC\", \"USDs\", \"DAI\")."
  },
  "numSwaps": {
   "type": "number",
   "description": "Number of individual swaps to split the total amount into (e.g. 12 for 12 weekly buys)."
  },
  "tokenOut": {
   "type": "string",
   "description": "Destination token symbol (e.g. \"ETH\", \"ARB\", \"SPA\")."
  },
  "frequency": {
   "type": "string",
   "description": "How often each swap executes: \"daily\", \"weekly\", \"biweekly\", or \"monthly\"."
  },
  "totalAmount": {
   "type": "string",
   "description": "Total amount to DCA (human-readable, e.g. \"500\" for 500 USDC)."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/speraxos-dca-order-creation-api-e966de3c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from chat.sperax.io](https://www.zero.xyz/host/chat.sperax.io/llms.txt)
