Calculation guide
One snapshot of executable opposite-side quotes. Levels are sorted best first. Report only available fills and benchmark against the best quote.
Fill best levels until order quantity or liquidity runs out.
Inputs
Order quantity
Example entry 100.
Order side
Select one of the listed cases (Buy / Sell).
Price per unit
Example entry 100 (in the selected currency). Minimum 1e-08.
Units
Example entry 40. Minimum 1e-08.
Worked example
| Input | Value |
|---|---|
| Order quantity | 100 |
| Order side | Buy |
Available price levels
| Price per unit | Units |
|---|---|
| 100 | 40 |
| 102 | 100 |
| Result | Value |
|---|---|
| Average fill price | 101.2 |
| Slippage cost on filled units | 120 |
| Unfilled units | 0 |
How each input affects this example
Each row starts from the worked example and changes one input.
| Input | Original input | New input | Affected result | Original result | New result |
|---|---|---|---|---|---|
| Order quantity | 100 | 110 | Average fill price | 101.2 | 101.272727 |
| Order side | Buy | Sell | Average fill price | 101.2 | 102 |
| Price per unit (row 1) | 100 | 110 | Average fill price | 101.2 | 102 |
| Units (row 1) | 40 | 44 | Average fill price | 101.2 | 101.12 |
