Market Depth formula
Fillp
=
(Lv1 * Lp1) + (Lv2 * Lp2)RV
Where
Fillp = Executed Price
Lv = Layer Volume
Lp = Layer Price
RV = Requested Volume
Example
Requested Volume 10 Lots Buy BTC (entering the Market)
Market Depth Buy Side
Layers | Buy Volume | Price |
---|---|---|
3 | 2.26 | 9778.75 |
2 | 6.33 | 9775.83 |
1 | 1.41 | 9773.79 |
Fillp
=
(1.41 * 9773.79) + (6.33 * 9775.83) + (2.26 * 9778.75)10
Fillp
=
(13,781) + (61,881) + (22,100)10
Fillp
=
(97,762)10
Fillp
=
9,776.20
Requested Volume 10 Lots Sell BTC (exiting the Market)
Market Depth Sell Side
Layers | Sell Volume | Price |
---|---|---|
3 | 5.35 | 9765.88 |
2 | 3.51 | 9768.75 |
1 | 1.41 | 9771.41 |
Fillp
=
(1.41 * 9773.79) + (6.33 * 9775.83) + (2.26 * 9778.75)10
Fillp
=
(13,781) + (61,881) + (22,100)10
Fillp
=
(97,762)10
Fillp
=
9,776.20
Requested Volume 10 Lots Sell BTC (exiting the Market)