I can provide an article on the subject.

What happens to the order book when a market order comes in

Imagine a bitcoin exchange is set up to offer market orders. Let’s say they have X buy orders at the market price and Y sell orders at the market price (an unlimited order). Let’s say we’re talking about a case where the buyer places a market order on the exchange.

What happens next?

How ​​does it work?

In this scenario:

Price Determination

The exchange algorithm determines the new price at which these trades are matched. In this example:

What if there were no limit orders on the buy or sell side?

If there were no limit orders on either the buy or sell side, prices would be set by the most active traders in the market. In this case:

Conclusion

In summary, when a market order enters an exchange’s order book, it is automatically matched with other orders to create new trades. The prices at which these trades are matched depend solely on market supply and demand, without taking into account limit orders or other factors that may affect pricing.

Leave a Reply

Your email address will not be published. Required fields are marked *