OpenChainGraph Suite · ART-857
Average Price Allocation
A block order filled in several pieces has to be split across client accounts at one average price, and the split never quite adds up to the cent. Enter the fills and the account shares. The page gives you the average price, each account's amount before and after the leftover is placed, the leftover itself and where it went, and a line showing that the amounts add back to the total.
Post-TradeExact Integer ArithmeticNot AdviceDeterministicZero PIIClient-side only
🔒 All inputs are processed locally in your browser. No data is transmitted, stored or logged. Use pseudonymous account ids and synthetic figures only.
Reading the results
The rounding basis and the residual rule are declared conventions of this tool, not a regulatory or fairness rule. Your firm's allocation policy, and any rule that binds it, decides which convention you must use. This is a calculation check, not investment, legal or regulatory advice. Every figure is computed in whole minor units of the currency (cents for USD, yen for JPY, fils for BHD) with exact integer arithmetic and half-up rounding, so a price of 1.005 rounds the way the decimal says rather than the way binary floating point stores it. Minor units follow the ISO 4217 currency code list, maintained by SIX for ISO: JPY 0; BHD, KWD, OMR, TND and JOD 3; most codes 2. An unknown code is refused, as is any fill marked with a different currency.
Order and conventions
Fills and accounts
How it is computed
The total is the sum of quantity times price, rounded half-up to the minor unit. The average price is that sum divided by the total shares, shown to 8 decimals. Under the unrounded basis each account gets its shares times the exact average, rounded half-up to the minor unit. Under the rounded basis the average is first rounded half-up to the decimals you declare, then multiplied by the shares; that basis needs an explicit residual rule because the rounded price can push several minor units onto one account. The residual is the total minus the sum of the account amounts, and can be negative. The identity line checks that the final account amounts plus any unallocated residual equal the total; it is arithmetic, true by construction, and shown so you can see it.