> For the complete documentation index, see [llms.txt](https://docs.deryve.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.deryve.xyz/trading/automated-execution.md).

# Automated execution

Deryve agents execute qualifying trades automatically. This is Deryve’s primary trading experience. Users can also place manual orders when they want direct control over an entry or exit.

{% stepper %}
{% step %}

### Configure an agent

Choose an agent model, then set its maximum position size, maximum leverage, risk style, and daily loss limit.
{% endstep %}

{% step %}

### Enable cloud operation

When enabled, the agent runs on Deryve’s cloud infrastructure. It continues analyzing markets while your device is offline.
{% endstep %}

{% step %}

### Execute and manage

The agent evaluates market conditions, selects direction, validates risk, and opens an eligible position. It monitors each open position and applies its exit logic.
{% endstep %}
{% endstepper %}

### Agentic execution behavior

| Action     | Agent behavior                                                 |
| ---------- | -------------------------------------------------------------- |
| Entry      | Opens a qualifying long or short after analysis and validation |
| Protection | Applies stop-loss and take-profit logic                        |
| Management | Monitors position, market regime, and risk boundaries          |
| Exit       | Closes or reduces exposure when an exit condition applies      |

### Position sizing

The agent proposes size and leverage from its confidence and strategy. The risk engine can reduce either value to your configured cap.

```
margin required = position size / leverage
```

Every order must meet the $10 minimum. Fees, funding, and slippage remain execution risks.

### Optional manual trading

Open a market to access the order ticket. Choose a long or short, set a USD position size and leverage, then choose a market or limit order.

Add take profit, stop loss, or reduce-only protection where needed. Review the margin requirement, liquidation estimate, and fees before submitting.

Manual orders execute through the same on-chain venue. They do not disable an enabled agent or alter its configured limits.


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.deryve.xyz/trading/automated-execution.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
