Stop Loss and Take Profit Agent: Let Your AI Set Exits on Solana Tokens
Type this: Set a stop loss at -20% and take profit at +50% on my JUP. The agent reads your position with get_my_position and places one bracket order with create_order, order_type sl_and_tp. You list the orders with get_my_orders and cancel them with cancel_order, from the agent or from your phone.
Moby attaches no stop loss or take profit to a buy. The agent places them when you ask, or after each buy if your trading profile asks it to. That is not the default.
What a stop loss and take profit are
A stop loss sells a token you hold if the price falls to a level you set. A take profit sells that token if the price rises to a level you set. You hold JUP and ask for a stop at -20% and a take profit at +50%. The stop is the down level. The take profit is the up level. The agent places both on the JUP you already hold.
A buy does not come with those orders. You ask for them, or your trading profile asks the agent to place them after each buy. Orders are real money when they fire.
How the agent does it
The agent uses the tools in agents.md. You run it from your phone with your agent key. Trading is Solana only, and the wallet is funded in USDC.
- Read the position.
get_my_positionreads your position in that token. - Place the bracket.
create_orderwithorder_typesl_and_tpplaces the stop loss and the take profit in one order. Moby does not attach that order to the buy. - List them.
get_my_orderslists open orders. - Cancel one.
cancel_ordercancels an order. You can also cancel it in the app.
Buy orders are checked against max per trade and the daily buy limit. Allowed order types and pause state come from the Guardrails you set in the app. The agent reads them with get_my_guardrails. If the agent is paused, a new order is rejected. Reads can still work.
Three prompts you can type:
Set a stop loss at -20% and take profit at +50% on my JUP
The agent reads the JUP position with get_my_position, then places the bracket with create_order and order_type sl_and_tp.
Move my WIF stop to break-even
The agent reads the open WIF order with get_my_orders. The tool list has no edit call for this order, so it cancels that order with cancel_order and places a new stop with create_order.
Cancel my open orders on BONK
The agent finds those orders with get_my_orders and cancels them with cancel_order. You can cancel the same orders in the app.
Set it up
You manage the orders from your phone. Start at Moby Agents, connect Codex or Claude Code (CLI), and add the Moby MCP connector. The same agent key works on Grok CLI and Gemini CLI (with a paid Gemini API key or enterprise access). ChatGPT works on Business, Enterprise and Edu workspaces that allow custom MCP servers (web).
- Set up the agent. Set up a Moby Agent with its own wallet and your spending guardrails, then connect it with your agent key. You manage the orders from your phone.
- Set guardrails. You set your agent's limits on max per trade, daily buy limit and market-cap range from the Moby app, and Moby checks them server-side on every buy your agent makes. Allowed order types and pause state come from those Guardrails. The agent reads them with get_my_guardrails.
- Fund the wallet in USDC. Fund the agent wallet in USDC. The agent trades Solana tokens only.
- Place the bracket. Hold the token, then ask for the stop loss and take profit. The agent reads the position with get_my_position and places one bracket with create_order and order_type sl_and_tp.
- List or cancel. List open orders with get_my_orders. Cancel one with cancel_order, or cancel it in the app.
Risks
- The fill can be worse than the trigger. A stop loss can fill worse than the trigger in a fast market. Thin liquidity on a memecoin can widen that gap.
- Real money. Orders are real money when they fire. The fill sells the token you hold.
- Ask first while you learn. Keep Ask before every trade on while you are learning. On, the agent names the token, the contract, the amount and the price, then waits for your yes.
- A paused agent does not place a new order. If the agent is paused, a new order is rejected. Reads can still work, so open orders stay visible.
A 0.75% swap fee (minimum $0.90 per swap), plus onchain fees.
Trading crypto and tokenized stocks is risky and you can lose money. Nothing on this page is investment advice.
Stop loss vs limit orders vs DCA
These are three different orders. A stop loss and a take profit close a token you already hold. A limit order waits for a price. A DCA splits one USDC budget into equal buys on a timer, and it has no price.
| Stop loss and take profit | Limit order | DCA | |
|---|---|---|---|
| What you set | Levels on a token you already hold. create_order with order_type sl_and_tp places both in one order. | A target price. limit_buy or limit_sell. A limit buy is a resting order paid in USDC that fills only if the price reaches your target. | A USDC budget, order_count, and interval_seconds. No price. |
| When it runs | When the price reaches a level you set. A stop loss can fill worse than the trigger in a fast market. | When the price reaches your target. | On the gap you set, not when a price hits. |
| Where to read it | This page | Agentic trading describes the resting limit buy. | DCA agent |
Launch buys are a different plan. Read the memecoin sniper agent before you use one. How to choose the size of a loss is on AI trading risk management.
Frequently asked questions
Does Moby set a stop loss automatically?
No. Moby attaches no stop loss or take profit to a buy. The agent places them when you ask, or after each buy if your trading profile asks it to.
Can my AI agent cancel a stop loss?
Yes. The agent lists open orders with get_my_orders and cancels one with cancel_order. You can also cancel the order in the app.
Is a stop loss guaranteed to fill at my price?
No. A stop loss can fill worse than the trigger in a fast market.
Which tokens can I use?
Solana tokens you hold, inside the market-cap range in your Guardrails. The agent wallet is funded in USDC.
Can I do this on Jupiter instead?
Yes. You can place a stop loss and a take profit on Jupiter as well, and this page is how a Moby Agent does it when you ask.
Try it with a Moby Agent
Set up a Moby Agent with its own wallet and your spending guardrails, then connect it to the AI you use.
You set your agent's limits on max per trade, daily buy limit and market-cap range from the Moby app, and Moby checks them server-side on every buy your agent makes.
The orders sell a Solana token you hold. The wallet is funded in USDC. You manage them from your phone with your agent key.
Connect it from Codex, Claude Code (CLI), Gemini CLI (with a paid Gemini API key or enterprise access), Grok CLI, or ChatGPT on Business, Enterprise and Edu workspaces that allow custom MCP servers (web).
Trading crypto and tokenized stocks is risky and you can lose money. Nothing on this page is investment advice.
Read Moby Agents for the setup, and agentic trading for how the agent sits next to trades you place yourself.