> For the complete documentation index, see [llms.txt](https://documentation.justbeep.it/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.justbeep.it/product-overview/riffs/risk-management.md).

# Risk management

The user sets the limits, and both the guardrail layer and the wallet policies enforce them, so a model can't trade past them.

| Control            | What it does                                                  | Set by         |
| ------------------ | ------------------------------------------------------------- | -------------- |
| Take-profit ladder | Sells into gains at set levels, for example 5%, 15%, 25%, 50% | User           |
| Stop-loss          | Moves the riff to USDC if it falls past the user's limit      | User           |
| Risk level         | Caps leverage and position size (chill, balanced, loud, YOLO) | User           |
| Per-name cap       | Limits how much of a riff one asset can be                    | Riff engine    |
| Rebalancing        | Brings weights back when they drift past a threshold          | User and agent |
| Allowed venues     | Restricts where a riff can trade                              | Wallet policy  |
| Pause and withdraw | Stops the agent or returns funds anytime                      | User           |
