How do order books exactly work?

![]() |
Let's say we have this ETH/USD order book, I know that the top half contains sell orders, and that the bottom half contains buy orders, and that they're sorted by price depending on the position, so buy orders with the highest price and sell orders with the lowest price are prioritized. But let's say that someone wants to sell ETH and they put 2978.42 USD, will the last order get directly filled or will all of the ones above it get filled one by one until the bottom one is reached? In other words, do orders get filled only when the price specified matches exactly the order's, or should it just be below it (in the case of buying)? submitted by /u/DtomperYT |