Distinguish a fee from a price difference
A trading fee is an explicit charge. The bid-ask spread is the gap between the highest buying quote and the lowest selling quote. Slippage compares the execution price with an expected price. That comparison is incomplete unless you name the reference and when it was observed.
This guide concerns unleveraged Spot trading on an order book. It does not combine Spot costs with futures funding, borrowing interest, blockchain withdrawal charges or the pricing of a wallet swap.
| Item | What to record |
|---|---|
| Fee | The charge and the asset in which it was paid |
| Spread | Best bid and best ask at the same instant |
| Slippage | Actual average fill versus a stated earlier reference |
Choose the reference before doing the arithmetic
A last-traded chart price, the best ask and the midpoint are different benchmarks. For a buy, the lowest current ask is the nearest offered selling price, but it may cover only part of the quantity. A midpoint is an analytical reference, not a promise that an order can trade there.
Keep the timestamp and quantity beside the reference. Comparing a fill with a quote observed much later mixes execution costs with later market movement. For multiple fills, use a quantity-weighted average: total executed value divided by total filled quantity.
Worked example: a two-unit purchase
Every amount below is invented. The best bid is 99 and the best ask is 101 quote units per asset, so the midpoint is 100. A purchase of two asset units fills one at 101 and one at 103. Assume a hypothetical 0.2% fee paid separately in quote units. This generic accounting assumption is not Binance’s fee-deduction setup or a current rate.
The execution value is 204 and the average fill is 102. The 0.408 fee brings total quote spending to 204.408. Relative to two units valued at the original midpoint, the difference is 4.408.
| Calculation | Result |
|---|---|
| Executed value: 1 × 101 + 1 × 103 | 204 |
| Average fill: 204 ÷ 2 | 102 |
| Fee: 204 × 0.002 | 0.408 |
| Total paid: 204 + 0.408 | 204.408 |
| Crossing to ask: 2 × (101 − 100) | 2 |
| Beyond initial ask: 2 × (102 − 101) | 2 |
| Difference from midpoint: 2 + 2 + 0.408 | 4.408 |
Do not add the spread twice
The 204 execution value already contains the price paid to cross from the midpoint to the ask and the move beyond that initial ask. Adding the full spread of 2 per unit to 204 would count a price effect again. The 4.408 decomposition explains the total; it is not another charge on top of 204.408.
Here we call only the difference beyond the initial ask slippage. A report measuring slippage from the midpoint would include the crossing component too. Both conventions can be useful, but adding their results together is wrong. Name the convention when comparing reports.
Use the fee actually charged to the account
Binance’s commission documentation distinguishes standard, special and tax commissions and account/pair discount conditions. Check the applicable account and pair; do not turn the example’s 0.2% into a universal rate. A limit order is not automatically a maker order: if it immediately matches existing liquidity, it can take liquidity.
Read both the recorded commission and its payment asset. A fee deducted from the purchased asset reduces the net units received. A fee in a third asset needs a stated conversion price and time for a common-currency comparison. Do not add amounts in different assets as if they were the same unit.
A cost worksheet for an automated rule
This is a review method, not a claim that every worksheet field is displayed in SharkRule.
- Record the venue, Spot pair, side, authorized quantity or spending cap and whether that cap includes fees.
- Save the reference price, its meaning and timestamp. Distinguish an estimate from confirmed fills.
- List each fill’s quantity and price; sum executed value and quantity before calculating the average.
- Record every commission with its asset. Keep gross quantity, net quantity and any conversion assumptions separate.
- Compare total cost with the original authorization. A cost estimate never authorizes a larger budget.
- For an uncertain Binance submission, reconcile the original order and fills before any further Binance submission. Do not retry merely because a response was delayed.
What the calculation cannot guarantee
An order book can change before execution. A limit may constrain price but can remain unfilled or fill only partly. Fees, liquidity, outages and losses remain possible. A zero trading fee does not remove price differences, and a simulation without realistic costs is not evidence of live results.
SharkRule is independent exchange automation software, not affiliated with or endorsed by Binance. Available controls and trading eligibility depend on the current dashboard, connected exchange, account and location. We are not financial advisors. This example explains accounting, not an asset, trade size or strategy recommendation; it promises no return.
Frequently asked questions
Is the spread a separate exchange fee?
On an order book it is a difference between buying and selling quotes. It affects execution prices but is not the same as a recorded trading commission. Avoid adding it again to actual fills.
Can slippage be favorable?
Yes. A buy below the stated reference or a sale above it can be favorable. Use the same benchmark and sign convention; a better fill alone does not establish a profitable trade.
Does a zero-fee pair have zero trading cost?
No. Price differences, slippage and other applicable costs can remain. Check the specific promotion and actual fills rather than treating a fee headline as the complete cost.
Official documentation and references
Prepared with AI assistance from the linked official documentation. Examples are hypothetical; no live account tests or return comparisons were performed.
- Binance Academy: bid-ask spread and slippage
https://www.binance.com/en/academy/articles/bid-ask-spread-and-slippage-explained - Binance Spot: commission rates and payment assets
https://developers.binance.com/en/docs/products/spot/faqs/commission_faq - Binance Academy: transaction fees and maker/taker roles
https://www.binance.com/en/academy/articles/how-to-calculate-transaction-fees-on-binance - Binance Spot glossary: commissionAsset and executed amounts
https://developers.binance.com/en/docs/products/spot/faqs/spot_glossary