Partial fills: reconcile the trade before replacing the remainder
A partially filled order has already traded some quantity while leaving another quantity unresolved. Reconcile executed value and fees separately from the remaining instruction before cancelling, replacing or declaring the trade complete.
Key takeaways
- Open the fill ledger first
- A mixed-role order, line by line
- The reconciliation note
A partially filled order has already traded some quantity while leaving another quantity unresolved. Reconcile executed value and fees separately from the remaining instruction before cancelling, replacing or declaring the trade complete.
Open the fill ledger first
An order summary can hide several executions. Each fill can carry its own quantity, price and liquidity role. Add the executed quantities to find what you actually bought or sold. Add their price-times-quantity values to find gross traded value. The original requested size is useful for checking the remainder, but it does not establish the amount on which fees have already accrued.
A remaining limit can wait, be cancelled or execute while you are reviewing the page. A cancel request begins a status change; completed fills survive it. That is why replacing the entire original order after a partial fill can accidentally exceed your intended total. This lesson focuses on the arithmetic of the fills and fee roles, extending the basic cancellation check.
For the fee context, consult the OKX venue hub. Actual records may deduct fees in an asset other than the quote currency. Preserve that denomination when reconciling a real balance; a quote-equivalent lesson calculation does not replace the ledger.
A mixed-role order, line by line
Suppose a hypothetical spot buy requests 10 units with a limit of 100 USDT. On arrival, it consumes 4 offered units at 99 USDT as taker. The remaining instruction rests, and later 3 units execute at 100 USDT as maker. Another 3 units remain open under the assumed order handling.
Execution: Immediate taker; Quantity: 4; Price in USDT: 99; Gross value in USDT: 396.
Execution: Later maker; Quantity: 3; Price in USDT: 100; Gross value in USDT: 300.
Execution: Completed total; Quantity: 7; Price in USDT: —; Gross value in USDT: 696.
The taker value comes from 4 × 99; the maker value comes from 3 × 100. The average fill price is obtained by dividing that value by the completed quantity; leave the unfilled portion out of the calculation.
Use the reviewed OKX regular-user standard spot base fees checked on 2026-10-10: maker 0.08% and taker 0.10%, from the official OKX fee page. The taker fee equivalent is 396 × 0.001 = 0.396 USDT. The maker fee equivalent is 300 × 0.0008 = 0.24 USDT. Combined fee equivalent is 0.636 USDT before venue rounding and denomination rules.
All prices, quantities and fill sequencing are hypothetical. The public rates are historical, without current account or regional confirmation, discounts or referral benefits. The open remainder has not incurred a trading fee in this scenario because it has not executed. If it later fills, add that execution and its actual fee classification to the ledger.
The reconciliation note
Write a short status sentence: bought the completed quantity, paid the recorded fees, still waiting on the remainder. Then inspect the latest state before acting. If a fresh execution arrived while you calculated, update both the filled total and remaining size.
When cancelling, wait for the confirmed result and check whether the completed quantity changed. If you still want to finish the purchase, base the replacement size on the updated shortfall. Keeping the price boundary is a separate choice; a replacement at a more aggressive price may take liquidity even when the earlier fills were maker.
Fees can also change the net asset received, depending on the deduction currency. Separate gross bought quantity from the resulting spendable balance. Return to the OKX fee and product hub for surrounding terms, and read the account’s actual fee schedule before using the exercise for a real budget.
Related definitions: limit-order
Quick check
An order partly fills and its remainder is cancelled. Should the original requested value be used to calculate the completed trade’s fee?
Hypothetical exercise: explain your answer before opening the solution.
Show the answer
Use the actual executions and their applicable rates. A cancelled remainder contributes no executed value. Recheck the final fill history before calculating any replacement, since a request to cancel does not reverse a completed trade.
Frequently asked questions
An order partly fills and its remainder is cancelled. Should the original requested value be used to calculate the completed trade’s fee?
Use the actual executions and their applicable rates. A cancelled remainder contributes no executed value. Recheck the final fill history before calculating any replacement, since a request to cancel does not reverse a completed trade.