Place limit, stop-loss, take-profit or DCA order (real money)
create_orderPlace a limit buy or sell, take-profit, stop-loss, bracket (SL + TP), trigger buy or DCA on a Solana token. Real money when it fires. Buy orders are checked against app-set limits. ⚠️ SPENDS REAL MONEY from the user's agent wallet; cannot be undone. Get an explicit yes on the exact amount and token BEFORE calling. It can fire later: read back the type, token, amount and every price first.
Trade limits: SELL orders never count toward or get blocked by maxTradeUsd / dailyVolumeUsd. A BUY is checked against both and reserves its USD value in the daily volume; the unfilled part comes back if it is cancelled, expires or fails.
A timeout or order_in_flight is NOT a failure: the order may be live. Retry only with the same arguments and client_order_id (the error names it), never as a new order.
order_type selects what to place and which price arguments it needs:
limit_buy/limit_sell— buy when the price falls to, or sell when it rises to,limit_price. Needslimit_price.tp_only— sell when the price rises totake_profit_price. Needs it.sl_only— sell when the price falls tostop_loss_price. Needs it.trigger_buy— buy when the price DROPS to the trigger, which goes instop_loss_price; no other price.sl_and_tp— a BRACKET: stop loss AND take profit on one position in one call. Needs both prices; both legs coveramount. When one fills, Moby cancels the other. It places TWO orders, listed inlegs(order_id+order_type; alsostop_loss_order_id/take_profit_order_id). If ONE leg could not be placed,failed_leg/failed_leg_errorsay which and why: the other leg is LIVE, so place only the missing one withsl_only/tp_only, never the bracket again.dca_buy/dca_sell—order_countequal slicesinterval_secondsapart. Needs both, NO price.tp_onlyandsl_onlyas two calls protect both sides too, but cancelling one does NOT cancel the other. When a fill sells the whole position, Moby cancels your remaining exits on that token within a minute or two (get_my_ordersstatus="terminal",cancel_reason); after a PARTIAL exit the other stays live.trailing_stop— sell at market when the price fallstrail_pct% from its high (the high only moves up). Needs a position you already hold: buy first. Needstrail_pct(0.5 to 50), no other price; optionalactivation_pricearms it once the price reaches it. No edit: cancel and recreate.trailing.watermark_price/watermark_updated_atmove ONLY on a new high (flat or falling = unchanged, not stale). All prices are USD prices of the token.amountis always what the user SPENDS: the funding asset on a buy, the token itself on a sell. Refusals that are NOT argument problems:no_market(no sell route yet: retry the same call later) andstop_above_market/tp_below_market(price already past the trigger: re-check it and pick a new one). Moby does not retry or re-arm for you. To CLOSE or trim at market now usequick_sell, not an order. EXITS ARE YOURS: Moby attaches no automatic TP/SL to your buys, so place them here after the buy. SOL positions: use quick_sell; TP/SL on SOL is not supported.
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": {
"order_type": "<order_type>",
"token_address": "<token_address>",
"amount": "<amount>"
},
"name": "create_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | How much to SPEND, in whole token units: the funding asset on a buy, the held token on a sell. | |
| levels | No | Optional. Your chart levels as numbers; images are not accepted. Stored with the trade and shown back to you. | |
| thesis | No | Optional. Your own note on this trade, 2–4 lines: why this coin, why now, what breaks it. Stored with the trade and shown back to you; ≤500 chars. | |
| dry_run | No | Check the order against Moby's rules without placing it; returns would_succeed and the refusal reason. | |
| trail_pct | No | Trailing stop only. Percent below the high since arming at which to sell at market, 0.5 to 50. | |
| confidence | No | Optional. How sure you are. | |
| order_type | Yes | Order kind; the tool description says what each needs. | |
| limit_price | No | USD limit price. Required for `limit_buy` and `limit_sell`. | |
| order_count | No | How many DCA slices to split the amount into. Required for `dca_buy` and `dca_sell`. | |
| expected_hold | No | Optional. How long you expect to hold. | |
| token_address | Yes | Contract address of the token the order is about. | |
| client_order_id | No | Optional idempotency key (omit it and Moby makes one). To retry after `order_in_flight` or a timeout, resend the SAME arguments with the SAME `client_order_id`: nothing is placed twice. | |
| stop_loss_price | No | USD price at which to stop out. Required for `sl_only` and `sl_and_tp`; for `trigger_buy` it is the price the buy fires at when the price drops to it. | |
| activation_price | No | Trailing stop only, optional. USD price at which the trail arms; omitted = arms now. | |
| interval_seconds | No | Seconds between DCA slices. Required for `dca_buy` and `dca_sell`. | |
| take_profit_price | No | USD price at which to take profit. Required for `tp_only` and `sl_and_tp`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||