1. Market Depth Logic for Pre-open SessionPre-open Session1 2. Market Depth View In Continuous Session Following is the market depth and order book for a scrip whose details…