Bybit DCA bot: setup and first settings

To run a DCA bot on Bybit you need three things: a Bybit API key that can trade but not withdraw, a choice between spot and USDT perpetuals, and a safety-order ladder you can fund to its last order. This guide walks through all three on QuantPhi, with a first ladder priced order by order: 283.75 USDT per deal, reaching 11.2 % below the entry.

In short

  • The key needs reading plus Spot and/or Contract trading on Bybit; Withdrawal stays off. Bybit keys have no passphrase.
  • Spot: the bot buys the coin, no liquidation, long only. USDT perpetual: long or short, leverage, and a liquidation price.
  • The money a deal needs is the whole ladder, not the base order: 283.75 USDT for the example here.
  • A new bot starts paused; read the review, then start it.
  • If the price falls past the last safety order, the deal waits with its money tied up.

What you need before you start

  • A Bybit account with USDT in it. With a Unified Trading Account one balance serves both spot and perpetuals, so there is nothing to move between wallets.
  • A QuantPhi account. The free plan includes DCA bots; create one here.
  • Ten minutes. The bot then runs on QuantPhi’s servers around the clock and trades on your Bybit account through the API key; your funds never leave Bybit.

This guide is about a DCA trading bot: one that adds to a position through safety orders when the price moves against it and closes the whole position at a take profit. If the idea is new, read What is a DCA bot? first.

Step 1: create a trade-only API key on Bybit

  1. On Bybit, open API management and create a new key for the bot (a system-generated key, where you are given the choice).
  2. Give it read permission and the trading you will use: Spot for a spot bot, Contract (derivatives) for a perpetual bot, or both.
  3. Leave Withdrawal and transfers off. A trading bot never needs them.
  4. Copy the API key and the API secret. Bybit shows the secret once. There is no passphrase on Bybit: two fields are all the bot asks for.

Bybit changes its screens and rules from time to time (a key without an IP restriction can expire, for example), so follow the wording on Bybit’s own page. Why withdrawals must stay off, and what a sub-account adds, is in how to connect a trading bot safely.

Step 2: connect the key to QuantPhi

  1. In QuantPhi open Exchange accounts and choose Add account.
  2. Pick Bybit, give the account a name, paste the API key and the API secret.
  3. Press Verify and save. QuantPhi asks Bybit what the key may do and shows it on the account: Spot + futures trading, spot only or futures only, and No withdrawal.

If the account shows “No trading permission”, the key was created read-only: make a new one with trading ticked. A key that can only trade perpetuals cannot run a spot bot, and the other way round; QuantPhi refuses such a bot when you create it instead of letting it fail at its first order.

Want a dry run first? A key from Bybit’s testnet works too: tick Testnet account when adding it. Testnet accounts never spend real funds.

Step 3: spot or USDT perpetual?

A DCA bot on Bybit spot and on Bybit USDT perpetuals
SpotUSDT perpetual
The bot tradesThe coin itself, bought with your USDTA perpetual contract settled in USDT
DirectionLong onlyLong or short
LeverageNoneYou choose it in the bot
LiquidationNone: a deal in loss can waitYes: the exchange can close the position
Money a deal ties upThe whole ladderThe whole ladder divided by the leverage, as margin
Key permission on BybitSpotContract

On perpetuals two account settings on Bybit matter. The margin mode (cross or isolated) is one setting for the whole Unified Trading Account; in QuantPhi it sits on the exchange account and applies to every futures bot on it. The position mode (one-way or hedge) is read from your Bybit account and followed; QuantPhi never switches it. Coin-margined (inverse) contracts are not supported.

For a first bot, spot is the simpler start: there is no liquidation price to watch. Whichever you choose, the ladder is the same.

Step 4: a first ladder, priced order by order

These are the numbers the DCA bot calculator opens with: base order 20 USDT, first safety order 20 USDT, 5 safety orders, price deviation 1.5 %, step scale 1.2, volume scale 1.5, take profit 1.5 %. The entry price is set to 100 so the percentages are easy to read; on a real pair every price scales with the coin’s price.

One long deal, if the price falls through every safety order
OrderFills atSizeTotal in dealAverage entryTake profit atBounce needed
Base100.0020 USDT20 USDT100.00101.501.5 %
Safety 1 (−1.5 %)98.5020 USDT40 USDT99.24100.732.3 %
Safety 2 (−3.3 %)96.7030 USDT70 USDT98.1499.613.0 %
Safety 3 (−5.5 %)94.5445 USDT115 USDT96.7098.153.8 %
Safety 4 (−8.1 %)91.9567.50 USDT182.50 USDT94.8896.314.7 %
Safety 5 (−11.2 %)88.84101.25 USDT283.75 USDT92.6394.025.8 %

Read it from the bottom row. If every order fills, the deal holds 283.75 USDT at an average of 92.63 and closes at 94.02: the price has to come back 5.8 % from the lowest fill, not the 11.2 % it fell. And one deal can use 283.75 USDT, about fourteen times its base order. That is the number to check against your Bybit balance, multiplied by the deals the bot may have open at once: two deals, 567.50 USDT.

On a USDT perpetual the same ladder at 3× leverage ties up 94.58 USDT of margin. The position is still 283.75 USDT: leverage divides the margin, not the risk.

The ladder ends 11.2 % below the entry. If the price falls further, there is nothing left to average with: the deal waits with its money tied up until the price returns, or until a stop loss or a time limit closes it at a loss. A DCA bot does not predict the price and does not guarantee a profit.

Fees and Bybit’s minimum order size per pair are not in the table. QuantPhi rounds each entry up to the pair’s lot size on Bybit, so a deal can use slightly more than the table says. What each field does, and how to widen or shorten the ladder, is in DCA bot settings explained.

Step 5: create the bot and start it

  1. Choose New bot and the DCA strategy.
  2. Pair & capital: your Bybit account, the market (spot or futures), the pairs the bot may trade, the direction, the base order; on futures, the leverage.
  3. Safety orders: the ladder: safety order size, max safety orders, price deviation, step scale, volume scale.
  4. Entry and Exit & limits: how many deals may be open at once (max active deals), the take profit and an optional stop loss.
  5. Review: the form lists every order of the ladder with its price and warns how much each pair needs if the whole ladder fills. Compare that with your balance.
  6. Create the bot. It starts paused; press Start when you are ready. Pause later stops new deals only; open deals run to their end.

Before real money, a backtest replays the same settings on the pair’s Bybit price history, with fees (paid plans and the trial include a daily allowance). The live results page shows how real bots have done, in percent; past results do not guarantee future returns.

If Bybit refuses an order

  • Permission denied, or the key cannot trade: the key is read-only or lacks the market the bot trades. Create a new key with Spot or Contract trading, then use Test connection on the account.
  • Not enough balance: the ladder needs more than the account holds. Lower the order sizes, the number of safety orders or max active deals, and check the money per deal in the calculator.
  • The order is too small: Bybit sets a minimum order size for every pair. Raise the base order and the safety order size.
  • The key stopped working: it was deleted or has expired on Bybit. Deleting the key on Bybit is also how you cut the bot’s access at once.

Questions

Can I connect a third-party DCA bot to Bybit?

Yes, through an API key you create on Bybit: the bot can place and cancel orders on your account with the permissions you tick, and nothing more. Keep withdrawal permission off.

How much money do I need for a DCA bot on Bybit?

The whole ladder of one deal, times the deals open at once. The example ladder here needs 283.75 USDT per deal; smaller orders or fewer safety orders need less, down to Bybit’s minimum order size for the pair.

Should I run a DCA bot on Bybit spot or futures?

Spot has no liquidation and is the simpler start. USDT perpetuals allow shorts and leverage, but a full ladder plus a further move can reach the liquidation price, so keep leverage low.

Which API permissions does a Bybit DCA bot need?

Read, plus Spot trading for a spot bot or Contract trading for a perpetual bot. Never Withdrawal.

Can a DCA bot short on Bybit?

Yes, on USDT perpetuals: the bot sells first, adds as the price rises and buys back at a take profit below the average. Spot bots are long only.

Try it on your own exchange account

QuantPhi runs DCA, grid, rebalance and Hedge Stop bots on Bybit, OKX, Bitget, Binance, BingX, Coinbase and Hyperliquid. There is a free plan; your funds never leave your exchange.

Create a free account

Crypto trading involves risk; past results and backtests do not guarantee future returns. This guide is education, not investment advice.