Polashi
All guides
Prices and liquidity2 min read

Bid-ask spread and early exit cost

Calculate how an unchanged quote can still lead to a loss on exit.

Record the quotes and available size

The best bid is 52¢ and the smallest buy from the book pays at least 56¢. An immediate sale of that same small size at the bid would cost 4¢ per share before fees.

The hypothetical order book has a best bid of 52¢ and offers 10 shares at 56¢, followed by 10 at 59¢. The top-of-book spread is 4¢. Consider a position requiring all 20 shares.

Calculate the weighted fill

The first level costs $5.60 and the second costs $5.90. Total cost before fees is $11.50, or an average of 57.5¢ per share. With a hypothetical $0.20 total fee, the average becomes 58.5¢.

Weight each price by the quantity filled there. The best ask describes only the first level. An actual fill can also differ from this example if new orders arrive or available orders are canceled.

From best quote to all-in averageIllustrative YES order book for 20 shares. Average prices assume both ask levels are available when the order fills.
Best bid
52¢
Best ask
56¢
Average before fees
57.5¢
Average with fees
58.5¢

Recheck the conditions

For a larger exit, read bid-side depth rather than multiplying the best bid by the whole position. The sell-side average can be lower than the first bid.

For a standard $1 binary payout held to settlement, an all-in cost of 58.5¢ per share implies a break-even YES probability of about 58.5%. Keep the timestamp, quantity, and fee assumptions with the estimate so it can be recomputed if any of them change.