Quickstart
Eight runnable recipes. Pick the one closest to what you're doing and
paste it. Every recipe assumes you already have a focused symbol and an
account selected — run status to
confirm.
First-timer? Flip simulation on for the first hour:
sim on. Every write-op short-circuits without hitting the exchange. Turn it off withsim offwhen you're confident. See Safety → Simulation.
Each recipe links to a deep-dive page with variations, gotchas, and common follow-ups.
1. Bracket order — market entry with attached stop
buy $100 stop -1%
A $100 notional market buy on the focused symbol, with a reduce-only stop
1% below the fill. The stop attaches automatically — no separate
stop command needed.
Variations:
buy $100 at $bid +0.1% stop -1% # post-only entry, same stop
buy 50% stop $entry -2% # size by % balance, stop anchored to entry
2. Chaser — passive limit that re-pegs to top of book
chase buy $500 to 1%
Walks the limit up the bid (or down the ask, for sells) every time the top of book moves. Terminates if the price drifts more than 1% from the starting price.
Variations:
chase sell $200 reduce # reduce-only chaser to close
chase buy WIF,ENA $100 # multi-symbol fan-out
chase cancel keep # stop chasing, leave the order
3. TWAP — spread an order over time
twap chase buy $1000 into 10 over 60
Ten slices of $100 each over 60 minutes, each one fired as a chaser.
Default behavior: if a slice's chaser hasn't filled in 50% of the slice
window, it goes market. Tweak with timeout <pct> <action> and fail <action>.
Variations:
twap buy $500 into 5 over 30 reduce # plain TWAP, reduce-only
twap chase sell $1k into 10 over 60 timeout 30% next fail next
4. Scale ladder — N limits between two prices
scale buy $1000 into 10 from -0.25% to -1%
Ten limit orders spaced evenly between -0.25% and -1% from the last price, totalling $1000 notional.
Variations:
scale sell $2000 into 20 from 50000 to 48500 reduce # absolute prices, reduce-only
scale buy 5 into 10 from 31000 to 32000 ETHUSDT # raw size + explicit symbol
5. Trailing stop — track the high, close when retraced
track max @hi $last
sets @stop @hi -1%
wait @last < @stop
close
Three steps:
track maxratchets@hiupward as$lastmoves up.sets @stopreactively re-computes the stop level as@hi - 1%.waitblocks until the last price drops below the trailing stop, thencloseruns.
echo @hi ratchets the tracker on read; print @hi does not. See
Aliases & user variables.
6. Fan out across symbols
chase buy WIFUSDT,ENAUSDT,DOGEUSDT $100 reduce
Comma-separated symbol list works for buy / sell / chase / close /
last-price / mark-price / index-price. Each symbol fans out into a
separate command with its own size resolution.
loop longs: chase sell 50% reduce # close every long with a chaser
close longs # close every long, market
→ Deep dive: Fan out across symbols
7. Listener — drive the standalone CLI from the web terminal
Inside the standalone REPL:
> # already listening on 127.0.0.1:53219
In the web terminal, set the active CLI tab's target to listener.
The first connection prompts the standalone to approve the browser; after
that every command you type in the web CLI runs in the standalone process
— picking up that machine's accounts, hooks, simulation state, and chasers.
→ Deep dive: Listener from web
8. Webhook from TradingView
Inside the standalone REPL:
> hook create alert "chase sell %all% 20% reduce"
Created hook alert
POST https://your.tunnel/hook/<id>
X-Hook-Token: <secret>
In the TradingView alert dialog, paste the URL into "Webhook URL" and
the header into "Headers" (one per line). TradingView fires → the CLI
executes the command on the account the hook is scoped to. The hook
fires on the listener, not the exchange — see
Hooks & webhooks for the full
fire shape and the listener.remoteExec kill switch.
→ Deep dive: Webhook from TradingView
Where to next
| You want… | Go to |
|---|---|
| One command, every flag | Commands reference |
Math, $entry, inline offsets | Variables & constants |
; / & / loops / wait / if / retry | Workflow |
| Hooks, listener, pairing, recording | Operations |