> 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.md).

# /dca/{id}

Get the status of the DCA strategy.

```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."},"DcaStrategy":{"description":"A DCA strategy and its current status.","allOf":[{"$ref":"#/components/schemas/StrategyStatus"},{"type":"object","properties":{"inputs":{"$ref":"#/components/schemas/DcaInputs"}}}]},"StrategyStatus":{"type":"object","description":"Status of a recurring assets management strategy.","required":["id","status","maxUsdPerExecution"],"properties":{"id":{"allOf":[{"$ref":"#/components/schemas/UUID"}],"description":"ID of this strategy."},"status":{"type":"string","enum":["pending","stale","active","stopped","ended"],"description":"Status of this strategy."},"inputs":{"type":"object","description":"Key-value map of the original request parameters."},"nextExecution":{"allOf":[{"$ref":"#/components/schemas/Timestamp"}],"description":"Timestamp of the next scheduled execution. Omitted when `status` is not `active`."},"portfolio":{"allOf":[{"$ref":"#/components/schemas/PortfolioSnapshot"}],"description":"Current balances and information relevant to this strategy."},"maxUsdPerExecution":{"allOf":[{"$ref":"#/components/schemas/MaxFeeUsd"}],"description":"Maximum fee applied per execution, derived by `POST /{action}/prepare`. An execution whose fee would exceed this value is skipped."}}},"Timestamp":{"type":"integer","title":"Unix timestamp (ms)","description":"Unix timestamp in milliseconds."},"PortfolioSnapshot":{"type":"object","description":"Snapshot of token balances relevant to a strategy and their USD value.","required":["timestamp","totalValueUsd","balances"],"properties":{"timestamp":{"allOf":[{"$ref":"#/components/schemas/Timestamp"}],"description":"Timestamp the snapshot was taken."},"totalValueUsd":{"type":"string","description":"Total USD value of balances, as a decimal string."},"balances":{"type":"array","description":"Balance of each token relevant to the strategy.","items":{"type":"object","required":["token","amount","valueUsd"],"properties":{"token":{"allOf":[{"$ref":"#/components/schemas/Address"}],"description":"Token address. Use `0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE` for native token."},"amount":{"type":"string","description":"Token balance, as a decimal string."},"valueUsd":{"type":"string","description":"USD value of the balance, as a decimal string."}}}}}},"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)."},"MaxFeeUsd":{"type":"string","description":"Maximum fee to cover the cost of each on-chain transaction, in USD, as a decimal string. A transaction whose fee would exceed this value is not executed."},"DcaInputs":{"type":"object","description":"Parameters that define a DCA strategy.","required":["chain","tokenIn","tokenOut","amount","wallet","slippageBps","schedule"],"properties":{"chain":{"allOf":[{"$ref":"#/components/schemas/Chain"}],"description":"Chain where the swap is executed."},"tokenIn":{"allOf":[{"$ref":"#/components/schemas/Address"}],"description":"Token spent on each execution."},"tokenOut":{"allOf":[{"$ref":"#/components/schemas/Address"}],"description":"Token accumulated."},"amount":{"type":"string","description":"Amount of tokenIn spent per execution, as a decimal string."},"wallet":{"allOf":[{"$ref":"#/components/schemas/Address"}],"description":"Address the funds are pulled from."},"slippageBps":{"$ref":"#/components/schemas/SlippageBps"},"schedule":{"allOf":[{"$ref":"#/components/schemas/CronExpression"}],"description":"How often the DCA swap executes."},"maxTotalAmount":{"type":"string","description":"Maximum cumulative amount of tokenIn the strategy may spend across all executions, as a decimal string. The strategy stops after the last execution that fits within this limit. Omit for no limit."},"recipient":{"allOf":[{"$ref":"#/components/schemas/Address"}],"description":"Address that receives the tokenOut. Defaults to `wallet`."}}},"Chain":{"type":"string","description":"Identifier of a chain supported by the API.","pattern":"^[a-z0-9-]+$"},"SlippageBps":{"type":"integer","description":"Maximum slippage to accept on the amount received, in basis points (e.g. 50 = 0.50%).","minimum":0,"maximum":10000},"CronExpression":{"type":"string","title":"Cron expression (UTC)","description":"A standard 5-field cron expression, in order: minute, hour, day of month, month, day of week. Evaluated in UTC."},"Error":{"type":"object","properties":{"message":{"type":"string"}}}},"responses":{"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"}}}}}},"paths":{"/dca/{id}":{"get":{"tags":["DCA"],"description":"Get the status of the DCA strategy.","parameters":[{"$ref":"#/components/parameters/ActionId","description":"ID returned by `POST /dca/prepare`."}],"responses":{"200":{"description":"Status of the DCA strategy.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/DcaStrategy"},{"type":"object","properties":{"portfolio":{"allOf":[{"$ref":"#/components/schemas/PortfolioSnapshot"},{"type":"object","properties":{"totalSell":{"type":"string","description":"Total amount of tokenIn spent across all executions, as a decimal string."},"totalBuy":{"type":"string","description":"Total amount of tokenOut received across all executions, as a decimal string."},"averagePrice":{"type":"string","description":"Average USD price paid per unit of tokenOut across all executions, as a decimal string."}}}]}}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"}}}}}}
```


---

# 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.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.
