> For the complete documentation index, see [llms.txt](https://mimic-api.gitbook.io/mimic-api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mimic-api.gitbook.io/mimic-api-docs/swap/dca/dca-id-stop-execute.md).

# /dca/{id}/stop/execute

Submit the signature of the data obtained from `POST /dca/{id}/stop/prepare` to stop the DCA strategy, optionally along with a signature for each `revocations` entry it returned. Once stopped, `GET /dca/{id}` reports `status` as `stopped`.

```json
{"openapi":"3.1.0","info":{"title":"Mimic API","version":"0.0.1-rc"},"tags":[{"name":"DCA","description":"Recurring dollar-cost averaging strategy. Compute EIP-712 data to sign via `POST /dca/prepare`, which also returns an `id`, then submit the signature via `POST /dca/{id}/execute`."}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-Api-Key","description":"API key for your Mimic account. Required for every operation except the public reference-data endpoints."}},"parameters":{"ActionId":{"name":"id","in":"path","required":true,"description":"ID returned by `POST /{action}/prepare`.","schema":{"$ref":"#/components/schemas/UUID"}}},"schemas":{"UUID":{"type":"string","format":"uuid","description":"Identifier for an action request, returned by `POST /{action}/prepare` and used to submit its signature and track its status."},"DeactivateTriggersSignature":{"type":"object","description":"An EIP-712 signature over a DeactivateTriggersSignaturePayload, submitted to authorize stopping a strategy.","required":["typedData","sig","signer"],"properties":{"typedData":{"type":"object","required":["types","values"],"properties":{"types":{"$ref":"#/components/schemas/DeactivateTriggersTypes"},"values":{"$ref":"#/components/schemas/DeactivateTriggersValues"}}},"sig":{"allOf":[{"$ref":"#/components/schemas/Signature"}],"description":"EIP-712 signature over `typedData` by `signer`."},"signer":{"$ref":"#/components/schemas/Address"}}},"DeactivateTriggersTypes":{"type":"object","description":"EIP-712 type definitions for the deactivation typed data.","required":["DeactivateTriggers"],"properties":{"DeactivateTriggers":{"type":"array","items":{"$ref":"#/components/schemas/TypedDataField"}}}},"TypedDataField":{"type":"object","required":["name","type"],"properties":{"name":{"type":"string"},"type":{"type":"string","description":"Solidity type or a custom type (`Token`, `TokenAmount`)."}}},"DeactivateTriggersValues":{"type":"object","required":["triggerSigs"],"properties":{"triggerSigs":{"type":"array","description":"Signatures identifying the triggers to deactivate. Contains the signature of the single strategy addressed by the request path.","minItems":1,"items":{"$ref":"#/components/schemas/Signature"}}}},"Signature":{"type":"string","description":"A 65-byte hex-encoded ECDSA signature (130 hex chars + 0x prefix)."},"Address":{"type":"string","description":"A valid address on the relevant chain. Format depends on the chain: 0x-prefixed 20-byte hex for EVM chains, base58 for other chains (e.g. Solana, Tron)."},"HexString":{"type":"string","description":"An arbitrary 0x-prefixed hex string."},"Error":{"type":"object","properties":{"message":{"type":"string"}}}},"requestBodies":{"StopSignatureSubmission":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["signature"],"properties":{"signature":{"$ref":"#/components/schemas/DeactivateTriggersSignature"},"signedRevocations":{"type":"array","description":"Signed and RLP-encoded `approve()` transactions setting the settler's allowance back to zero, matching the `revocations` entries in the `/stop/prepare` response. Optional: the strategy stops either way, and omitting them leaves the existing allowance in place.","items":{"$ref":"#/components/schemas/HexString"}}}}}}}},"responses":{"StopSignatureSubmitted":{"description":"Signature submitted, with the outcome of any revocations that came with it.","content":{"application/json":{"schema":{"type":"object","required":["revocations"],"properties":{"revocations":{"type":"array","description":"Outcome of each entry submitted in `signedRevocations`, in the same order. Empty when none were submitted. The strategy is stopped regardless of what these report, so a `failed` or `skipped` entry leaves the allowance in place without affecting the stop itself.","items":{"type":"object","required":["status"],"properties":{"status":{"type":"string","enum":["succeeded","failed","skipped"],"description":"Outcome of this revocation."},"txHash":{"allOf":[{"$ref":"#/components/schemas/HexString"}],"description":"Transaction hash. Absent when status is `skipped`, since nothing was broadcast."}}}}}}}}},"BadRequest":{"description":"Bad request — invalid parameters or body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unauthorized":{"description":"Unauthorized — missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NothingToStopConflict":{"description":"Conflict — the strategy has not been executed yet, so there is nothing to stop.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/dca/{id}/stop/execute":{"post":{"tags":["DCA"],"description":"Submit the signature of the data obtained from `POST /dca/{id}/stop/prepare` to stop the DCA strategy, optionally along with a signature for each `revocations` entry it returned. Once stopped, `GET /dca/{id}` reports `status` as `stopped`.","parameters":[{"$ref":"#/components/parameters/ActionId","description":"ID returned by `POST /dca/prepare`."}],"requestBody":{"$ref":"#/components/requestBodies/StopSignatureSubmission"},"responses":{"200":{"$ref":"#/components/responses/StopSignatureSubmitted"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/NothingToStopConflict"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://mimic-api.gitbook.io/mimic-api-docs/swap/dca/dca-id-stop-execute.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
