> 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/stop-loss/stop-loss-id-executions.md).

# /stop-loss/{id}/executions

Get the most recent executions of the stop-loss strategy.

```json
{"openapi":"3.1.0","info":{"title":"Mimic API","version":"0.0.1-rc"},"tags":[{"name":"Stop loss","description":"Monitor a token's exchange rate and swap it once it falls to or below a threshold. Compute EIP-712 data to sign via `POST /stop-loss/prepare`, then submit the signature via `POST /stop-loss/{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."},"StrategyExecution":{"description":"Status of a single execution of a recurring strategy.","allOf":[{"$ref":"#/components/schemas/ExecutionStatus"},{"type":"object","properties":{"costUsd":{"type":"string","description":"Fee actually paid for this execution, in USD, as a decimal string. Omitted while `status` is `pending`."},"swaps":{"type":"array","description":"Single-chain or cross-chain swaps that occurred during this execution.","items":{"$ref":"#/components/schemas/Swap"}}}}]},"ExecutionStatus":{"type":"object","description":"Status of an action execution.","required":["status"],"properties":{"status":{"type":"string","enum":["pending","succeeded","failed","skipped"],"description":"Status of this execution."},"inputs":{"type":"object","description":"Key-value map of the original request parameters."},"timestamp":{"allOf":[{"$ref":"#/components/schemas/Timestamp"}],"description":"Timestamp of the execution."},"logs":{"type":"array","description":"Execution log messages.","items":{"type":"string"}},"error":{"type":"string","description":"Error message. Present only when status is `failed`."}}},"Timestamp":{"type":"integer","title":"Unix timestamp (ms)","description":"Unix timestamp in milliseconds."},"Swap":{"type":"object","description":"Single-chain or cross-chain swap that occurred during an execution.","required":["sourceChain","destinationChain","tokenIn","tokenOut","amountIn","minAmountOut"],"properties":{"sourceChain":{"allOf":[{"$ref":"#/components/schemas/Chain"}],"description":"Chain tokenIn was swapped from."},"destinationChain":{"allOf":[{"$ref":"#/components/schemas/Chain"}],"description":"Chain tokenOut was received on. Equal to sourceChain for a same-chain swap."},"tokenIn":{"allOf":[{"$ref":"#/components/schemas/Address"}],"description":"Token that was spent."},"tokenOut":{"allOf":[{"$ref":"#/components/schemas/Address"}],"description":"Token that was received."},"amountIn":{"type":"string","description":"Amount of tokenIn spent, as a decimal string."},"amountOut":{"type":"string","description":"Actual amount of tokenOut received, as a decimal string. Read from the settlement transaction, so it is omitted until the swap has settled on chain."},"minAmountOut":{"type":"string","description":"Least amount of tokenOut the action would accept, as a decimal string. Derived from `slippageBps` when the action was signed, so it is always present and is a floor the settlement is guaranteed to have met."},"txHash":{"allOf":[{"$ref":"#/components/schemas/HexString"}],"description":"Transaction hash on sourceChain."},"destinationTxHash":{"allOf":[{"$ref":"#/components/schemas/HexString"}],"description":"Transaction hash on destinationChain. Present only when destinationChain differs from sourceChain."}}},"Chain":{"type":"string","description":"Identifier of a chain supported by the API.","pattern":"^[a-z0-9-]+$"},"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"}}}},"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":{"/stop-loss/{id}/executions":{"get":{"tags":["Stop loss"],"description":"Get the most recent executions of the stop-loss strategy.","parameters":[{"$ref":"#/components/parameters/ActionId","description":"ID returned by `POST /stop-loss/prepare`."}],"responses":{"200":{"description":"Most recent executions of the stop-loss strategy.","content":{"application/json":{"schema":{"type":"object","required":["executions"],"properties":{"executions":{"type":"array","description":"Most recent executions, ordered by timestamp descending.","items":{"$ref":"#/components/schemas/StrategyExecution"}}}}}}},"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/stop-loss/stop-loss-id-executions.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.
