Let the best bid price be b and best ask price be a, with a>b (else a trade happens).
Spread. The spread is simply the cost of "crossing" from one side to the other:
S=a−bWhy? If you want to buy right now you must pay the ask a; if you immediately sold you'd only get the bid b. The instant round-trip loss is a−b. That loss is the spread.
Mid price. The fairest single "price" of the asset lies exactly between the two best intentions:
M=2a+bWhy the average? With no other info, the true value is equally likely to be anywhere in [b,a]; the expected value of a uniform guess is its midpoint.
Weighted mid (micro-price). The naive mid ignores how much size is on each side. If there's huge bid size Qb and tiny ask size Qa, buyers dominate → fair value leans toward the ask. Weighting by the opposite side's size:
Mw=Qb+QaaQb+bQaWhy opposite side? Large bid volume (Qb) is demand pressure pushing price up toward a, so it gets multiplied onto a. This is a first-principles measure of imbalance.
Order-book imbalance (OBI). A pure pressure ratio in [−1,1]:
OBI=Qb+QaQb−QaOBI>0 → more buyers → upward pressure. OBI<0 → more sellers → downward pressure. Why divide by the total? To normalize: an imbalance of 100 lots means little on a huge book but everything on a thin one.
Imagine a market stall. On the left, kids shout how many candies they'll buy and the highest price they'll pay — the loudest (highest price) kid stands at the front. On the right, kids shout how many candies they'll sell and the lowest price they'll accept — the cheapest seller stands at the front. The front buyer and front seller stare at each other with a tiny gap between their prices; that gap is the "spread." Whenever a front buyer agrees to the front seller's price, candy changes hands and they both leave. If way more kids want to buy than sell, the price is about to go up. That whole shouting board is the order book!
Order book samajhna basically ek live auction board padhna hai. Left side pe bids hote hain — matlab jo log kharidna chahte hain, apna price aur quantity dikhate hain. Right side pe asks (offers) — jo bechna chahte hain. Rule simple hai: sabse zyada paying wala buyer sabse upar (best bid), aur sabse sasta bechne wala seller sabse upar (best ask). In dono ke beech ka gap hi spread hai — jitna chhota spread, utni acchi liquidity.
Mid price = (best bid + best ask) / 2, ye sirf ek reference hai; yaad rakho tum mid pe trade nahi kar sakte — kharidoge to ask pe, bechoge to bid pe. Jab tum ek bada market order maarte ho, wo book ko upar se neeche "walk" karta hai, har level kha jaata hai — isi se slippage hoti hai.
Sabse kaam ki cheez hai imbalance dekhna. Agar bid side pe size bahut zyada hai versus ask side, to buy pressure hai aur price thoda upar jaane ki sambhavna. OBI formula (Qb−Qa)/(Qb+Qa) isi ko −1 se +1 ke beech normalize karta hai. Lekin saavdhaan: displayed size fake bhi ho sakta hai (spoofing) — koi bada order dikhaake cancel kar deta hai. Isliye order book ke saath-saath tape (actual executed trades) bhi dekho — jo actually trade hua hai wahi sach hai.