Stop losses#
A stop loss sells your shares of one outcome when the best bid falls to your trigger. You sign the sell in advance; a stop-loss keeper holds it and submits it unchanged when the trigger is reached. The keeper holds no key and pays nothing, and it cannot change the order you signed.
Stop losses appear in the web and Android apps when the operator enables them and
configures a keeper URL. The same flow is available from the command line with
seesaw stop-loss.
What you sign#
- A durable nonce account owned by your wallet. You have up to 16 of them
(seed
seesaw-stop-<n>); creating one is a paid transaction of about 0.0015 SOL of rent, which comes back when the account is closed. - One transaction, signed but not sent: it advances that nonce and places an IOC sell of your chosen quantity at the floor price, with the floor as both the limit and the worst price, valid until the market closes.
The keeper checks the signed transaction against the market read from the chain before it accepts it.
Choose the trigger and the floor#
- Trigger (
trigger-bps): the keeper acts when the outcome's best bid is at or below it. - Floor (
floor-bps): the lowest price you accept. It must not be above the trigger.
The keeper submits only while the best bid is between the floor and the trigger. If the bid gaps below the floor, the stop waits rather than selling lower. Before sending, the keeper checks that the nonce is unchanged and simulates the transaction, because a durable-nonce transaction that fails on chain still uses up the nonce.
seesaw stop-loss create --market <address> --outcome yes --quantity <atoms> \
--trigger-bps 4000 --floor-bps 3500
The CLI picks the protocol treasury shard of the sell the way the apps do;
--protocol-treasury-index <0-7> overrides it.
List and cancel#
seesaw stop-loss list shows your open stops (never the signed bytes).
seesaw stop-loss cancel <stop-id> first closes the nonce account on chain, so
the held sell can never land, and then tells the keeper to forget it. The nonce
account's rent returns to you.
Limits#
- One open stop per market and outcome, and one per nonce account.
- An active stop expires at its signed execution deadline or at market close, whichever comes first.
- A stop is a sell at your floor or better. It does not guarantee a fill: if no bid at or above the floor remains, the simulation fails and the keeper does not send it.
Related#
- Managing positions
- River conditional and algorithmic orders, for stops enforced by a River gateway instead