# Two-step exit

Sell part at a first level and the rest at a higher one.

## Steps

1. Sell 50% when the price rises 15% above the price when you cast.
2. Sell 50% when the price rises 40% above the price when you cast.

| # | Step | Parameters |
| - | - | - |
| 1 | Target | risePct: 15, sizePct: 50 |
| 2 | Target | risePct: 40, sizePct: 50 |

## Spell JSON (schema v1)

```json
{
  "name": "Two-step exit",
  "description": "Sell part at a first level and the rest at a higher one.",
  "steps": [
    {
      "type": "target",
      "params": {
        "risePct": 15,
        "sizePct": 50
      }
    },
    {
      "type": "target",
      "params": {
        "risePct": 40,
        "sizePct": 50
      }
    }
  ],
  "visibility": "public"
}
```

Parameters are relative (percentages), so the spell applies to any token and size. Copying a spell copies these steps only, never anyone's trades or wallet. You approve every step in your wallet. Trading is risky; nothing here is financial advice.

Source: https://0.0.0.0:3000/s/two-step-exit
