How is opening price determined and order matching done?

What is the matching strategy done and how is opening price of a stock determined?

Person A bids ₹1000 for 10 shares.

Person B sells at ₹950 for 5 shares.

Person C sells at ₹900 for 5 shares.

I assume these are matched with each other? And then what is the opening price and the price which A pays or b/c gets.

the mechanism is given here https://www.nseindia.com/products-services/equity-market-pre-open but i think its impossible to calculate it manually. how can one find the order book of pre open session? what about hidden orders. its close to impossible.

1 Like

Not for calculating manually, just for understanding