Skip to content

Partial fills and remainders ​

A trade is rarely filled in one move. An entry may be filled not at once but in parts, the targets close the position in parts, and sometimes the position is reduced by the exchange or by you. The bot watches the actual volume on the exchange and after each such event recalculates the take-profits and the stop for the remainder.

Where it is in the bot ​

🏠 Home → 💼 Trades → the trade. In the card:

  • “Entries: 1 of 3 filled” — some of several entries are filled; “⏳ The entry has not been filled yet.” — nothing has been bought yet;
  • “PnL now” — calculated on the actual volume of the position;
  • “Targets: 1 of 3 hit · stop …” — how many take-profits have been filled and where the stop is now;
  • the state of every order (filled, partially filled, placed) and the remaining position — in the app: 📊 Chart and details → Orders and General.

The events arrive as separate messages in the notification bot.

How it works ​

An entry is filled partly or in full ​

Every entry is a separate order, and all the entries are placed on the exchange at once. While an entry is filled only partly (the order book had volume for only a part of it), the bot places the stop for what was bought and adjusts it to the volume on every further fill of this entry — without separate messages. There are no take-profits yet, and the other entries keep waiting for their price. The status is “Position building, some entries already filled”.

As soon as one entry is filled in full, the bot places the stop for the whole position, cancels the other entries — building the position ends here, and they will not be filled even if the price reaches them later — and places the take-profits for the whole position. If the entry was filled in full at once, all of this arrives as one message “🟢 Entry filled, stop and targets placed”: the entry line (the actual average fill price and the bought size in the coin), the stop, the targets with their shares and, below, the cancelled entries (“⚪ Entry removed”). If the entry was filled in parts (the stop was already set for the bought part) or not everything is in place within 5 seconds, the messages arrive separately: “🟢 Entry filled” with the line “Price … · …”, the stop recalculation (“Reason: position increased, SL recalculated for new volume.”), the cancelled entries and, for each take-profit, “✅ Take-profit placed” with the price, the share and the size in the coin.

While placing the entries the bot sends “📥 Entry order placement:” — “✅ success”, “❌ error” or “⚠️ partial” if the exchange accepted only some of the entry orders, and in brackets — how many were placed. If all entries are placed and the entry fills at once (at market), this message does not arrive separately: everything is in one “🟢 Entry filled, stop and targets placed”. The “✅ success” message about limit entries waiting for their price arrives a couple of seconds after the placement; “❌ error” and “⚠️ partial” — at once.

An entry is cancelled after part of it was filled ​

The bot cancels an entry itself: when the trade moves to the take-profits (another entry was filled in full), when you cancel the entry or the whole trade, when the stop is hit. By that moment part of the entry may already be bought. What was bought stays in the trade's position and counts in the summary and the PnL; the take-profits and the stop are recalculated for the whole position. The bot does not buy the rest of the entry — neither at market nor with a new order. It does the same if the entry was cancelled not by the bot but by the exchange or by you in the exchange app.

When the trade ends (the stop, the last target, cancelling the trade), the bot also cancels partially filled orders — after the close they buy nothing.

If a take-profit or stop is filled only partly and the rest is cancelled not by the bot — by the exchange (the order book did not have enough volume) or by you in the exchange app — the bot sells the rest at market: the position has to be closed. The sold part counts in the trade summary. If the exchange cancelled the order by itself because there is no position left under it (you closed it on the exchange), there is nothing to sell — the bot only counts what was filled. This works the same on spot and futures.

If it happened while the bot was restarting ​

After a restart the bot reconciles trades with the exchange and counts everything filled in the meantime as if it had learned about it right away:

  • an entry cancelled after a partial fill — what was bought is in the position, the trade moves to the take-profits, take-profits and the stop are placed for it, the rest is not bought;
  • filled orders get into the trade summary together with their value — the PnL is correct;
  • if an entry was filled already at the take-profit stage (for example, a DCA averaging order), take-profits and the stop are rebuilt for the whole position;
  • a spot trade closed by the take-profits is finished and the remaining stop is cancelled;
  • if the stop was hit but sold only part of the position, the trade number comes in the summary "🔄 Sync after reconnection completed" in the line "ℹ️ Needs review": close the rest or set a stop manually.

Part of the targets is hit ​

Every target closes its own share of the position, and the bot sends “🟢 Take-profit 1 of 2 filled” with the line “Closed … at … · …” — the closed size, the actual average price and the result of this part (from the average entry price, without fees). The bot reduces the stop to the remainder by itself, without a separate message. If the trailing stop-loss is on and the stop is moved after the take-profit, the same message has “🛡 Stop moved: … → …” below, with the reason in words (for example, “To breakeven after take-profit 1”) and the line “Stop size: … → …”. The trade stays open until the last target or the stop.

After the last target two messages arrive: “🟢 Take-profit 3 of 3 filled” and the trade result. The bot cancels the remaining orders (for example, the stop) itself; if the exchange removed them at once, there is no separate list — in the result they are marked with ⬜.

The position got smaller without the bot ​

EventWhat the bot sends
You sold part of the position on the exchange“✂️ Detected a manual position reduction on the exchange: 1.0 → 0.6 BTC. The bot is recalculating protection for the actual remaining position.”
The exchange force-closed part of the position“💥 The exchange forcibly closed PART of the position (partial liquidation or ADL auto-deleveraging): 1.0 → 0.6 BTC. The trade continues on the remainder, the bot is recalculating protection for it. ⚠️ Check your free margin…”
A target was hit while the connection was down“✅ Take-Profit filled on the exchange during the disconnection. Position reduced to 0.5. The trade has been reconciled with the exchange.”
Part of the position was closed outside the bot“🧾 The close of 0.4 BTC at ~61000 (manually on the exchange) has been accounted in the trade PnL.”

The bot takes the size, price and fee of such a close from the exchange's execution history. On futures — only the part that reduced the trade's position: your new position in the other direction (or on the other side in Hedge mode) does not go into the trade's result.

The leftover “tail” ​

If after the partial closes the remainder of the position is below the minimum order of the exchange, it cannot be sold separately: “⚠️ BTC/USDT: position remainder 0.0004 is below the exchange minimum order size. This dust cannot be closed with a separate order — it will remain until the trade fully closes. No action needed.” Such a remainder is closed together with the whole position. If it is left after a trade is closed on spot, it is “dust”, see Dust on spot.

Example with a calculation ​

A LONG of 1,000 USDT without leverage, the entries 1) 100 - 50% and 2) 95 - 50%, the targets 1) 110 - 50% and 2) 120 - 50%, the stop 1) 90 - 100%.

The first entry gets 500 USDT / 100 = 5 coins, the second one 500 USDT / 95 ≈ 5.26 coins.

  1. The price reached 100, but there were sellers for only a part: the first entry is filled partly, 2 coins bought (200 USDT). The bot places the stop on 2 coins, there are no take-profits yet. The rest of the entry — 3 coins — waits for the price of 100, the second entry waits for 95. The status is “Position building, some entries already filled”.
  2. The first entry is filled in full: the position is 5 coins at 100 (500 USDT). The stop is recalculated for 5 coins, the bot cancelled the second entry (95) — the other 500 USDT will not go into the trade, even if the price drops to 95 later. The bot moved to the take-profits: the targets are on 2.5 and 2.5 coins. The status is “Entries filled, awaiting exit/stop-loss”.
  3. The first target is hit: 2.5 coins sold at 110, 2.5 × (110 − 100) = +25 USDT locked in. The stop is reduced to 2.5 coins.
  4. Then one of two things happens: the second target brings another 2.5 × (120 − 100) = +50 USDT, +75 USDT in total; or the stop closes the remainder at a loss of 2.5 × (90 − 100) = −25 USDT, 0 in total (fees not included).

If the first entry is filled in full at once, there is no step 1: the bot goes straight to step 2.

Limits and allowed values ​

ParameterValue
The minimum order of the exchange≈5 USDT (≈5 USDC for USDC pairs); a smaller remainder is not closed separately
A manual partial closeOnly with an open position; the remainder is not below the minimum order
Changing a filled orderNot possible — “Order already filled.”

Common errors and what the bot says ​

  • “⚠️ Failed to update Stop Loss after partial TP. Please check protective orders manually.” — the target was hit but the stop was not moved to the remainder; check the stop in the exchange app or move it in the Sync app (✏️ Stop in the trade card).
  • “⚠️ Failed to rebuild Take Profit after additional entry. Please check TP orders manually.” — the entry was filled but the targets were not updated for the new volume.
  • “⚠️ The position on the exchange got smaller, but the Stop-Loss could not be updated to the new size automatically. Please check your protective orders on the exchange!” — the protection may not cover the remainder.
  • “⚠️ The exchange rejected re-placement of a partially-filled order. Please check manually.” — the bot was selling at market the rest of a take-profit or stop that was filled only partly, and the exchange refused; reconcile the orders on the exchange.
  • “⚠️ An entry order was partially filled after the trade's position had already been closed: 0.3 more was filled. This part remains on the exchange without Take Profit and Stop Loss — check the position in the exchange app and close it manually if needed.” — the entry was filled at the moment the bot was already closing the trade; the bot does not sell what was bought by itself.
  • “Remaining position is too small” — with ✂️ Close part the remainder would be below the minimum order; close the trade in full.