Real money
Stopping an agent
How to close a position yourself, what Stop agent does (it closes open positions first), what a paused or braked agent is, and what the platform kill switch does. Exits and withdrawals keep working in every case.
There are four different ways an agent can stop trading. They are easy to mix up, so here they are side by side.
| What | Who or what triggers it | What stops | What keeps working |
|---|---|---|---|
| Stop agent (real money) | You, on Funds, with one wallet approval | The agent's permission to trade is removed on the exchange. It cannot place any order. By default its open positions are closed first. | Withdrawals. Your money stays in the trading account. |
| Paused | You (Pause on a paper agent's page), setup not finished (a new real-money agent starts paused until it is funded), or an operator | No new decisions | Open positions and their exits (see below) |
| Braked | The agent's own limits: daily loss or drawdown (see Risk limits) | New risk (opening or increasing positions) | Exits: stop-loss, take-profit, trailing and reducing orders |
| Kill switch | Tradent, platform-wide, for an incident | New risk for every real-money agent | Exits, owner actions, withdrawals and stopping agents |
Close a position yourself#
You can close any trade of your own agent, paper or real, without waiting for the agent. Each open position on the agent's page, on its card in My agents and, for a live agent, on Funds has a Close button, and there is Close all when there is more than one. The Close button in the owner bar on the agent's page jumps to the position and opens the same dialog.
- Market
- SOL-PERP, long
- Size
- 12.5
- Price now
- 148.20
- Est. PnL
- +$31.40
Closed at the market price, a few seconds after you confirm. The estimate uses the latest price and ignores fees.
- You confirm. The page sends a request: the website never trades and never holds a key.
- Within a few seconds the keeper (the same service that runs your stop-losses) picks it up and sends a reduce-only market order through the normal path: your risk limits' exit rules, the order recorded before it is sent, and for real money the signing service's checks.
- The dialog shows the result: closed at which price with what realized PnL, or the plain reason it could not be closed.
- It shows as yours. The agent's log and the chart marker read "Closed by the owner.", not as the agent's reasoning. Its stop-loss and take-profit for that position are cancelled once it is flat.
- A double click sends one close. Asking again while a close is running returns to the same one.
- It works while the agent is paused or braked, and while the kill switch is on. A close only reduces risk, so it is never blocked by them.
- You can also keep the position and change its exits. Edit exits on the position (stop, take-profits, trailing, ladder, time stop) works the same way: the page records a request, the trading engine applies it, and the agent can only tighten what you set. See exits.
- Closed market. US stocks cannot be closed outside their session. The dialog says so right away, nothing is sent, and the position stays open (its exits are not evaluated either; see Stop-loss, take-profit and trailing). Try again when the market opens.
- Temporary trouble (no fresh price, the exchange busy) is retried for up to 5 minutes. If it still did not run, it is dropped and the position is still open: nothing was sent.
Stop agent#
Stop agent is on each live agent's card on Funds. By default it closes the agent's open positions first, and only when they are closed does it ask you to approve one transaction. That transaction removes the agent's permission to trade on your trading account, on the exchange itself. From that moment even a copy of the agent's key is useless.
- Effect
- Removes the agent's permission to trade. You can start it again later.
- Close open positions first (2)
- On by default: we close them at the market price, then ask you to approve the stop
- Its money
- Stays in its trading account until you withdraw it
Keep trading closes the dialog without doing anything.
- Closing. You see each position close, with its price and realized PnL. The agent keeps trading until you stop it, so close first and stop second is the order that cannot strand a position.
- Approve. Once every position is confirmed closed (or there was nothing open), your wallet asks for the one approval that stops the agent. The server refuses to prepare it while a position is open or a close is still running.
- If something cannot be closed (a stock market that is shut, an exchange problem) you see why and choose: Try again, Stop anyway (the position stays open, see the warning below) or Keep trading.
- Your money stays where it is. It remains in the trading account until you withdraw it or restart the agent.
- Withdrawing still works for a stopped agent. When the stop is done the dialog says @handle is stopped and, if money is free, offers Withdraw $X right there.
- If you close the dialog or the tab while positions are closing, the close keeps going; the agent keeps trading until you come back and approve the stop. The browser warns before you leave while a close is running.
- Restart brings it back: Funds shows a Restart button, which takes you through Go live again (choose the amount, approve once).
- The paper agent is not affected. Only the live copy stops.
Pausing a paper agent#
On a paper agent's page, Pause stops its decisions at once. Close open positions first is ticked by default; the positions are then closed the same way as above, and you see the result. Untick it and the positions stay open with their stop-loss and take-profit working. Resume starts the agent again.
Paused and braked agents#
A paused agent makes no decisions. A braked agent is held back by its own safety limits: after losing more than its daily-loss limit in a UTC day, or after a drawdown beyond its limit, new risk is refused until the condition clears. Exits keep running in both cases, so an agent can always get out of a position it holds. These are trading states: your money and withdrawals are unaffected.
The kill switch#
If something goes wrong on our side (a bug, a venue incident, a suspected key leak), we can flip a platform-wide kill switch. While it is on:
- Real-money agents make no new risk: opens and increases are refused, and the signer refuses any order that is not a reduce-only exit or a cancel.
- Exits still work. Stop-loss, take-profit and trailing exits from the keeper, and reduce-only closes, are never blocked by the kill switch or by pilot caps.
- You can still withdraw and stop agents. Those actions need only your wallet and do not depend on the switch.
When the incident is resolved the switch is turned off and agents resume at their next decision.