> 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/limit-order/limit-order-id.md).

# /limit-order/{id}

Get the status of the limit order.

```json
{"openapi":"3.1.0","info":{"title":"Mimic API","version":"0.0.1-rc"},"tags":[{"name":"Limit order","description":"Swap a fixed amount of `tokenIn` for `tokenOut` once the market rate reaches or exceeds the requested `limitRate`. Compute EIP-712 data to sign via `POST /limit-order/prepare`, then submit the signature via `POST /limit-order/{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."},"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."},"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":{"/limit-order/{id}":{"get":{"tags":["Limit order"],"description":"Get the status of the limit order.","parameters":[{"$ref":"#/components/parameters/ActionId","description":"ID returned by `POST /limit-order/prepare`."}],"responses":{"200":{"description":"Status of the limit order.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/StrategyStatus"},{"type":"object","properties":{"portfolio":{"allOf":[{"$ref":"#/components/schemas/PortfolioSnapshot"},{"type":"object","properties":{"currentRate":{"type":"string","description":"Current amount of tokenOut received per unit of tokenIn."},"limitRate":{"type":"string","description":"Amount of tokenOut received per unit of tokenIn at or above which the order executes."}}}]}}}]}}}},"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/limit-order/limit-order-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.
