BTC/USDT limit orders: price touches, queue and partial fills
A candle can reach your limit while your model still has to decide how much of the order can fill. Follow two historical examples from H1 and M1 candles to individual trades, then compare four rules across the same set of order windows.
In simple terms
A buy limit sets the highest price you are willing to pay. To model its fill, record when the order could first trade, how much quantity is available under the rule and how much volume sits ahead of it. A price touch alone leaves those questions open.
On this page01
Separate price, queue and size
A buy limit can execute at its limit price or better. Its remaining quantity may stay open after a partial fill. Start by separating the price condition, the order's eligibility to trade and the quantity the model credits. OHLC can show that the market reached a level. The candle contains no record of where a specific order stood in the book.
02
Set up the two-day replay
We use BTC/USDT spot trades on 2 and 3 February 2025 in UTC. From the first trade of every H1, multiply its price by 0.999 and round down to whole USDT to set the buy limit. The 1 USDT increment is a study choice. Each hypothetical order is for 0.10 BTC. It arrives one second after the reference print and expires 20 minutes after the hour starts. We include trades at arrival and exclude trades at expiry. We skip a window if the reference arrives too late or the last trade before arrival is at or below the limit.
03
Give the touch rule a clear definition
The first comparator credits the entire order on the first trade at or below the limit during its active window. Both buyer-maker and seller-maker trades qualify. In the volume model, a trade counts only at the exact limit when the archive marks the buyer as maker. That flag identifies a trade against a resting buy order. Trades below the limit count as price touches and are tracked separately.
04
Find the first partial example on H1
The first hour with a partial result under any of the queue assumptions begins at 2025-02-02 03:00 UTC. The chart uses nearby archive candles to show the price move in context. The horizontal line marks the hypothetical order's limit. Use the selected hour to read the range, then zoom into the order window on M1.
First partial case on H1
2025-02-02 03:00 UTC
L Buy limit 100,351 USDT
Open
100,452.16
High
100,755.93
Low
99,148.91
Close
99,206.86
The highlighted candle contains the modeled order window. The line L shows the buy limit used for this hour.05
Zoom from H1 into the active window
The M1 view shows the same hour. The shaded area shows minutes that overlap the modeled order window. The marker identifies the minute of the first qualifying price touch at 2025-02-02 03:01:39.379814 UTC. Use the exact arrival and expiry times in the replay for trades inside the first and last minutes.
The same hour on M1
2025-02-02 03:00 UTC
L Buy limit 100,351 USDT
Modeled arrival
Expiry
First price touch
Open
100,406.35
High
100,406.35
Low
100,314.19
Close
100,344.02
The shading covers minutes that overlap the active window. The dot marks the first price touch in its minute.06
Read trades in archive order
Each dot represents an actual archived trade. The selected dot is the first price touch. Move through nearby trades to check time, price, quantity and which side supplied liquidity. A buy-maker trade at the limit adds volume to the queue model. A trade at the same price with a sell maker leaves its tally unchanged.
Individual trades around the first touch
Trade ID
4498889996
Trade price
100,351.00 USDT
Trade quantity
0.00276000 BTC
Maker side
Buyer maker
Queue credit
Yes
The horizontal positions follow trade sequence. Use the displayed timestamps to measure elapsed time and the side to see whether a trade can add queue volume.07
Translate volume into an order quantity
We run three static queue scenarios with 0, 0.10 and 0.50 BTC ahead of the hypothetical order. Eligible trades consume that assumed quantity first. Any remaining eligible volume goes to our order up to 0.10 BTC. The replay holds the tape fixed and assumes the order is accepted and resting. The assumed volume ahead decreases only when an eligible trade consumes it.
F = min(q, max(0, V − Q)) q = 0.10 BTC
V Eligible volumeQ BTC aheadF Modeled fill
08
Work through the first partial fill
In the first example, eligible volume at the limit totals 0.01036 BTC. With 0 BTC assumed ahead, the rule credits 0.01036 BTC of the 0.10 BTC order. The rest stays unfilled at expiry. The cumulative chart traces only eligible volume and lets you compare the queue assumptions on the same history.
Cumulative eligible volume at the limit
Eligible volume
0.01036000
BTC ahead · 0
0.01036 BTC · Partial
BTC ahead · 0.10
0 BTC · Zero
BTC ahead · 0.50
0 BTC · Zero
Each point uses trades strictly before its labeled cutoff. Only seller-initiated trades at L during the active window enter this sum.09
Read a touch with zero eligible volume
The earliest touched window with zero eligible volume begins at 2025-02-02 00:00 UTC. The first touch occurs at 2025-02-02 00:00:14.979528 UTC. Its candle and tape views show where price meets the touch rule. The full-on-touch comparator credits 0.10 BTC. Each exact-price queue scenario credits 0 BTC because the archive records zero qualifying volume in the active window.
Touch with zero eligible volume on H1
2025-02-02 00:00 UTC
L Buy limit 100,535 USDT
Open
100,635.66
High
101,288.51
Low
100,500.00
Close
101,243.86
The selected candle is the earliest touch in a window with zero eligible volume at the exact limit.
The zero-volume case on M1
2025-02-02 00:00 UTC
L Buy limit 100,535 USDT
Modeled arrival
Expiry
First price touch
Open
100,635.66
High
100,635.66
Low
100,500.00
Close
100,598.83
Compare the actual candle range with L and the shaded order window. The dot shows the first price touch.
The first touch at trade resolution
Trade ID
4498473436
Trade price
100,534.87 USDT
Trade quantity
0.00010000 BTC
Maker side
Buyer maker
Queue credit
No
The marked trade meets the price condition. The case uses the full active window to establish that eligible volume is zero.10
Compare results across all windows
We scheduled 48 windows and replayed 47 orders after applying the screen. Price touched the limit or traded lower in 38 windows, including 16 with no eligible volume at the exact price. With 0 BTC assumed ahead, 7 orders fill completely in the model. With 0.50 BTC ahead, 2 fill completely. Compare the counts of zero, partial and full fills on the same denominator.
Fill counts by model
Full on touch
Zero
9
Partial
0
Full
38
BTC ahead · 0
Zero
25
Partial
15
Full
7
BTC ahead · 0.10
Zero
40
Partial
1
Full
6
BTC ahead · 0.50
Zero
45
Partial
0
Full
2
Every bar contains the same number of replayed orders. The full-on-touch comparator credits the whole order at its first touch. The three queue rows credit eligible volume after the assumed amount ahead.11
Keep lower-priced trades in their own column
A trade below the limit is evidence that the archived market traded through that price. The exact-price rule gives it no queue credit. An added bid could change matching, so the observed tape is one history under its original book. The two models illustrate the effect of execution assumptions. Read the gap between their results as model sensitivity. Actual execution depends on the submitted order and the live book.
12
Check how a real fill would be confirmed
Public trade IDs, prices, sizes and timestamps describe market transactions. To confirm your own fill, compare the order ID with its execution reports. Check the last executed quantity, cumulative filled quantity and final order status. The remaining amount can still be open or may have been canceled or expired.
13
Record timing and unfilled quantity
Use consistent arrival, expiry and same-timestamp rules when you compare fill models. Record the position size actually credited by each model. A canceled or expired remainder should stop receiving volume. For a P&L study, add fees and a separate exit model only after the entry quantities are defined.
14
Reproduce the candle and tape checks
The evidence records SHA-256 checksums for the trade and candle archives, the inputs for each hour and the modeled outcomes. Rebuild H1 and M1 from the individual prints and compare them with the archive candles. Inside the active window, use timestamp and trade ID order to find the first touch and sum eligible sizes.
15
Read the comparison in its sample
The counts cover two UTC days on one spot market with a fixed size, limit rule and window. The queue scenarios use the same orders and the same tape, so differences in their outcomes come from the assumed ahead volume. More dates, other levels and other sizes can give different counts.
16
Write down the fill rule before backtesting
Keep the price source, order side, limit, size and arrival time with your results. State how you handle volume at and through the price, size ahead, partial fills and expiry. Inspect at least one touch with zero credit and one partial fill before treating the engine's order totals as meaningful.
Frequently asked questions
Does a touch mean a buy limit filled?
It satisfies the price test in this comparison. Confirming a specific fill requires the order's own execution records.
What does isBuyerMaker tell us?
When it is true, the buyer supplied liquidity and the seller took it in the recorded trade. Our replay gives queue credit only when that trade is also at the exact buy limit within the active window.
What does 0.10 BTC ahead mean?
The model applies the first 0.10 BTC of eligible volume to the assumed earlier orders. It credits our order only with volume above that amount, up to its own size.
Can a buy limit trade below the limit?
Yes. The limit sets the maximum buy price. This replay tallies lower-priced trades as touches and only uses exact-price trades to compute its queue scenarios.
Why can a trade below the limit still produce zero in the queue replay?
The exact-price scenario ignores that trade's volume by design. It describes how that specific rule treats the observed archive.
How can I verify a partial fill from a real order?
Match the execution reports to the order ID. Compare the cumulative filled quantity with the order's requested size and check what happened to the remainder.