set_trigger
Arm a one-time price trigger to sell a percentage of a token when it rises by a set percentage. The live price at setup becomes the baseline.
Instructions
Arm a standing strategy in plain language: "sell half my FUG if it doubles" = sell_pct 50, price_up_pct 100. The live price right now becomes the baseline; the trigger fires ONCE when the price rises by price_up_pct, selling sell_pct of the token balance into the stable. Firing executes within the trigger's own caps under the user's standing approval from this call. Red-flagged (BLOCKED) tokens cannot be armed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | ||
| sell_pct | Yes | Percent of balance to sell when it fires, e.g. 50 = sell half | |
| trader_id | Yes | ||
| price_up_pct | Yes | Rise from current price that fires it, e.g. 100 = doubles | |
| stable_token | Yes | Stable to sell into (see STABLES in get_started) | |
| stable_symbol | No | USDC | |
| token_address | Yes | Token to watch/sell | |
| stable_decimals | No |