# SperaxOS DCA Cancel Position

> SperaxOS DCA Cancel Position 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-11).

Cancels an active DCA (dollar-cost averaging) position on Mean Finance and refunds remaining tokens to a specified wallet address.

## Facts

- Endpoint: POST https://chat.sperax.io/api/x402/tools/dca/cancelPosition?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/speraxos-dca-cancel-position-82689985
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KrsBXxTDH-IRznne_loxU

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-cancel-position-82689985 -d '<json body>'
```

Example prompt: Cancel my active DCA position on Base — the position ID is 0xabc123, and send any refunded tokens back to my wallet 0xdef456.

## When to prefer this

Use this endpoint when a user wants to terminate an active DCA position created via Mean Finance and retrieve any remaining unswapped tokens. Prefer this over other DeFi management endpoints specifically when dealing with Mean Finance position IDs on supported chains. Ideal for agent-driven portfolio management workflows where automated DCA strategies need to be dynamically started and stopped.

## Known failure modes

- Position ID not found or already cancelled — returns error indicating invalid positionId
- Wallet address is invalid or malformed — returns address validation error
- Chain mismatch — position exists on a different chain than specified
- Insufficient payment — USDC payment via x402 not detected or rejected
- Position has already fully executed — no remaining funds to refund
- Network congestion or RPC failure on the specified chain — transaction may time out

## 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 that the DCA position has been cancelled, along with details about the refunded tokens sent back to the specified wallet address. May include transaction hash and amount of tokens returned.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chain": {
   "type": "string",
   "description": "Chain where the position exists."
  },
  "positionId": {
   "type": "string",
   "description": "The Mean Finance position ID to cancel."
  },
  "walletAddress": {
   "type": "string",
   "description": "The user's wallet address to receive refunded tokens. If available, pass from the connected wallet context."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/speraxos-dca-cancel-position-82689985/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)
