Exchanges have a collection of their participant's bids ("I will buy for this price") and offers ("I will sell for this price"). When a bid is matched with an offer, the transaction goes through.
Now this is the important part - there are only so many people willing to buy for $300. If there is a mass sell off, all those offers are consumed, and the exchange starts filling the offers of people who would buy for $299.99 (or whatever the next lowest price is). Once those offers are consumed, further down the price ladder we go.
That alone will ensure that not all sellers are getting top dollar, however a market selloff like that would trigger a cascade of lower prices (buyers withdrawing their bids and relisting at a lower price, or not relisting at all), along with things like stop losses and algorithms getting triggered.
> If they all tried to exit at the top
Assuming that "they all" means "the vast majority of shareholders", then sell pressure would be higher than buy pressure by definition, and the price would drop.
If there was enough buy pressure to absorb the sell pressure, then we're in a scenario where half or less of the shareholders are trying to exit.
If the volume of sell orders gets too high, the exchange shuts down trading in that stock.
If it's high but not "too high" then the price they all get will be significantly less than what they expected.
My question is: how do you know that?
Date Open High Low Close* Adj Close* Volume
Oct 28, 2022 99.58 100.85 97.51 99.20 99.20 95,728,200
Oct 27, 2022 97.98 102.50 96.38 97.94 97.94 232,316,600
Oct 26, 2022 131.68 135.55 128.53 129.82 129.82 82,791,500
Oct 25, 2022 130.88 138.35 130.59 137.51 137.51 38,433,200