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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"trader_id": "<trader_id>",
"chain": "<chain>",
"token_address": "<token_address>",
"sell_pct": "<sell_pct>",
"price_up_pct": "<price_up_pct>",
"stable_token": "<stable_token>"
},
"name": "set_trigger"
}
}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 |