{"uid":"cap_KrsBXxTDH-IRznne_loxU","slug":"speraxos-dca-cancel-position-82689985","name":"SperaxOS DCA Cancel Position","description":"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.","url":"https://chat.sperax.io/api/x402/tools/dca/cancelPosition?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_G1vJy9d9RNDvgmhhs0uDM","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0xD74f5255D557944cf7Dd0E45FF521520002D5748","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Cancels an active DCA (dollar-cost averaging) position on Mean Finance and refunds remaining tokens to a specified wallet address.","exampleAgentPrompt":"Cancel my active DCA position on Base — the position ID is 0xabc123, and send any refunded tokens back to my wallet 0xdef456.","exampleUseCases":[{"title":"Stop DCA before market dip","prompt":"I want to cancel my DCA position on Base with ID 0x7f3a9b before the next swap happens — refund whatever's left to my wallet 0x1234abcd."},{"title":"Close completed DCA strategy early","prompt":"Can you stop my Mean Finance DCA position 0xdeadbeef on Arbitrum and send the remaining tokens back to 0x9876fedc? I don't want any more buys to go through."},{"title":"Agent-managed DCA teardown","prompt":"My DCA strategy on Base isn't needed anymore — cancel position 0xcafe1234 and make sure the refund goes to 0xaabbccdd."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T06:33:27.394Z","isFirstParty":false,"canonicalSlug":"speraxos-dca-cancel-position-82689985"}