Search
Free crypto tools · Market data loads when needed.Data details ↗
SEE THE WHOLE FILL

Crypto order-book and budget size calculator

Model a manual book snapshot, then find a buy size that fits both your total budget and average-price impact limit.

How this tool works ↓

Optional buy-budget sizing

Your total USD spending cap includes the percentage trading fee and the fixed buy charge. These constraints apply to the calculated maximum size, not the separate target-quantity fill above.

Visible levels in execution order

For a buy, enter asks from lowest to highest price. For a sell, enter bids from highest to lowest. Enter a snapshot yourself; these are invented defaults.

WEIGHTED AVERAGE EXECUTION—
MAXIMUM BUY WITHIN BOTH LIMITS—

No live order book is loaded. Inputs stay in this page and are not sent to our server.

Why the top price is not the whole quote

A market order can consume multiple order-book levels. This simulator fills at the entered best level first, then continues through the other levels until the target quantity is filled or visible depth runs out. Weighted average execution equals the sum of each fill quantity × its price, divided by total filled quantity. The book-walk percentage compares that average with the first visible level. Trading fees are shown separately.

Worked example

To buy eight tokens, imagine two available at 100 USD, three at 101 USD and five at 103 USD. The order fills two, three and three tokens respectively. Gross cost is 812 USD, so the average is 101.50 USD per token—1.5% above the first ask. A hypothetical 0.2% trading fee adds 1.624 USD, for 813.624 USD total before any other charges.

Find a size within your impact limit

Set the maximum average-price impact above. The tool walks each entered level and stops when including more of that level would push the weighted average beyond your ceiling, measured against the first visible price. At a 1% limit in the worked buy example, two tokens at 100 USD, three at 101 USD and one at 103 USD fit: six tokens average 101 USD. Any more at 103 USD would exceed the limit, so the maximum is six tokens. This limit excludes trading fees and does not guarantee a future fill. When all entered depth fits, the result is capped by visible depth; unseen levels could change it.

Fit a buy to a total budget

Enter a USD budget and any fixed buy charge. The planner first reserves that fixed charge, then divides the remaining budget by one plus the trading-fee percentage to find the maximum gross order value. It walks the entered ask levels in price order and caps quantity again at your average-price impact ceiling. For the invented levels above, a 650 USD budget, 0.2% trading fee, 2 USD fixed charge and 1% impact ceiling permits about 6 tokens: the impact ceiling binds first, and the total is 609.212 USD. At a 500 USD budget, the budget binds first. These are manual scenarios, not quotes or recommendations.

The tool does not know venue minimums, lot size, fee currency, other charges or unshown depth. A fixed buy charge must be below the budget. Check that your venue assesses fees in USD and preview the actual order before sending it.

Partial fills and moving books

If the entered levels do not contain enough tokens, the calculator shows the unfilled quantity and computes the average only for the part filled. Real books change: visible orders can be cancelled or filled before yours, and order types, rounding, minimums and venue fees differ. This is an educational snapshot, not a predicted fill. Use an actual venue preview for an executable quote.

Kraken explains market and limit orders; Coinbase explains order-book depth. Read our market versus limit order guide for the fill and fee trade-offs. For a simple one-price budget question, use our buy amount after fees calculator. For fees beyond execution price, use our after-fee profit model or fee breakpoint explorer.

↑ Return to inputs