Bybit spot command cheat sheet
This page lists every Bybit spot order you can place from an Autoview alert, with a copy-ready command for each one. It assumes you already know the shape of an Autoview command. If you don't, read the command reference first. For the full detail, see the Bybit spot command reference. Trading perpetuals instead? Those carry brackets, leverage, and trailing stops on the Bybit perpetuals cheat sheet.
Every command below was resolved through the live Bybit spot zone, and the market orders were placed as real orders on a Bybit testnet account: a buy filled and a sell flattened it. The behavior you read here is what the exchange returned. Nothing is hand-typed.
Spot, not perpetuals
These commands are for a Bybit spot account, where you buy and hold the coin itself. There is no leverage and no position to manage. You own a balance, and you sell it when you want out. Bybit's perpetual side adds brackets, trailing stops, and leverage, and those live on the perpetuals cheat sheet, not here. Conditional entries work on both.
Name the symbol and route
s= is the symbol, one word with no separator: s=BTCUSDT is Bitcoin priced in USDT. e=BYBITSPOT sends the order to the spot 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=BYBITSPOT s=BTCUSDT b=buy t=market q=0.001 |
| Market sell | e=BYBITSPOT s=BTCUSDT b=sell t=market q=0.001 |
| Limit | e=BYBITSPOT s=BTCUSDT b=buy t=limit fp=60000 q=0.001 |
| Immediate or cancel | e=BYBITSPOT s=BTCUSDT b=buy t=ioc fp=60000 q=0.001 |
| Fill or kill | e=BYBITSPOT s=BTCUSDT b=buy t=fok fp=60000 q=0.001 |
| Post-only (maker) | e=BYBITSPOT s=BTCUSDT b=buy t=post fp=60000 q=0.001 |
| Conditional (trigger) | e=BYBITSPOT s=BTCUSDT b=buy t=market fpx=70000 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. fpx= adds a trigger price: the order rests on Bybit, marked Untriggered, and places when the market reaches the trigger. Pair it with t=limit fp= to rest a limit once it fires.
Size in coins
q= is the quantity, and on a spot pair it is an amount of the coin.
q=0.001onBTCUSDTbuys or sells 0.001 BTC.q=50%uses half your available balance, sized at fill time.q=20 u=currencycommits about 20 USDT, converted to the coin quantity at the current price.
Leave q= off and Autoview uses 100% of the balance. On a buy that spends your whole quote balance, on a sell it offloads the entire coin. Set the size you mean on every order. This is the cheapest mistake to avoid and the easiest one to make.
Bybit spot also sets a minimum order value of about 5 USDT. An order worth less comes back rejected, so keep the size above that floor.
Closing out: sell, do not "close"
A spot holding is a balance, not a position, so you exit by selling, not by closing. To get out of a spot trade, place a sell for the amount you hold:
e=BYBITSPOT s=BTCUSDT b=sell t=market q=0.001That is the exit. If you have a resting limit or a waiting conditional to call off, c=order cancels working orders on the symbol without selling anything:
e=BYBITSPOT s=BTCUSDT c=orderc=position is for a perpetual position and returns an error on spot; c=all is not available on Bybit.
What spot quietly ignores
This is the trap when you move a perpetual alert to spot. Some perpetual parameters do not error on spot, they are accepted and then dropped, so the order goes through doing less than you asked.
- Attached stop and target and leverage error out.
fsl=,ftp=, andl=return a clear error on spot. Place a separate order, and use the perpetual side for leverage. - Trailing, reduce-only, and close-on-trigger are accepted then ignored.
fts=,ro=1, andcot=1go through without an error, but the trail is not set and the flags read back as off. On spot, treat them as not available. The spot reference has the detail.
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=BYBITSPOT 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.