Bybit perpetuals command cheat sheet
This page lists the Bybit perpetual orders you can place from an Autoview alert, with a copy-ready command for each. It assumes you already know the shape of an Autoview command. If you don't, read the command reference first. For the full parameter-by-parameter detail behind these lines, see the Bybit perpetuals command reference. Trading spot instead? Use the Bybit spot cheat sheet.
Every command below was resolved through the live Bybit zone, and a representative set was placed as real orders on a Bybit testnet account, including a fill with leverage applied and a stop and target attached to the live position. The behavior you read here is what the exchange returned. Nothing is hand-typed.
Name the symbol and route
s= is the symbol, written as one word with no separator: s=BTCUSDT is the USDT linear perpetual. e=BYBIT sends the order to the perpetual side of your connected Bybit account. Every example below starts with both.
The order types
Pick a row, copy the command, change the symbol and size to yours. t= sets the order type and defaults to limit, so a market order sets it explicitly.
| Order | Command |
|---|---|
| Market buy | e=BYBIT s=BTCUSDT b=buy t=market q=0.001 |
| Market sell | e=BYBIT s=BTCUSDT b=sell t=market q=0.001 |
| Limit | e=BYBIT s=BTCUSDT b=buy t=limit fp=60000 q=0.001 |
| Immediate or cancel | e=BYBIT s=BTCUSDT b=buy t=ioc fp=60000 q=0.001 |
| Fill or kill | e=BYBIT s=BTCUSDT b=buy t=fok fp=60000 q=0.001 |
| Post-only (maker) | e=BYBIT s=BTCUSDT b=buy t=post fp=60000 q=0.001 |
fp= is the fixed limit price a limit order rests at; a market order takes no price, so leave it off. t=ioc fills what it can at once and cancels the rest; t=fok fills in full or not at all; t=post joins the book as a maker and is rejected rather than crossing the spread.
The one-order bracket
This is the Bybit feature worth learning. A stop-loss and a take-profit ride along on the entry order itself, on the same order, with the side unchanged. One command opens the position and arms both protections.
| Order | Command |
|---|---|
| Buy with attached stop | e=BYBIT s=BTCUSDT b=buy t=market fsl=50000 q=0.001 |
| Buy with attached target | e=BYBIT s=BTCUSDT b=buy t=market ftp=70000 q=0.001 |
| Buy with both (full bracket) | e=BYBIT s=BTCUSDT b=buy t=market fsl=50000 ftp=70000 q=0.001 |
On Bybit the bracket stays on your side; it does not flip. If you have used Kraken, that is the opposite of what you know, where the same fsl= and ftp= become separate orders on the other side. Run a new bracket with d=1 once to see the resolved order before you trust it live.
Conditional, trailing, and leverage
| Order | Command |
|---|---|
| Conditional entry (arms at a trigger) | e=BYBIT s=BTCUSDT b=buy t=market fpx=70000 q=0.001 |
| Trailing stop (distance behind price) | e=BYBIT s=BTCUSDT b=buy t=market fts=500 q=0.001 |
| Set leverage on the order | e=BYBIT s=BTCUSDT b=buy t=market q=0.001 l=5 |
fpx= holds the order until the price reaches the trigger, keeping your side. fts= sets a trailing-stop distance. l=5 sets the position to 5x; Bybit applies it through a separate call, so it governs the position rather than showing on the order. The full reference covers the trigger price source, activation price, hedge mode, and reduce-only.
Size in coins
q= is the quantity, in the base coin (the BTC in BTCUSDT).
q=0.001is 0.001 BTC.q=50%uses half your available balance, sized at fill time.q=100 u=currencycommits about 100 USDT, converted to the base quantity at the current price.
Leave q= off and Autoview uses 100% of the balance. Set the size you mean on every order. This is the cheapest mistake to avoid and the easiest one to make.
Closing out
Cancel resting orders with c=order, and close an open position with c=position.
e=BYBIT s=BTCUSDT c=positionThere is no c=all on Bybit. Cancel orders with c=order and close the position with c=position.
Test before you go live
Append d=1 to any command and Autoview parses it, reports what it would have done, and places nothing:
e=BYBIT s=BTCUSDT b=buy t=market q=0.001 d=1Read the log, confirm the symbol, side, and size are what you meant, then drop d=1 and let it fill. For more on reading the log, see test and debug your setup.