You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Get all open buy orders from in-memory order book.
Sort them in descending order (willingness to pay -> highest to lowest).
If buyOrder's qty <= sellOrderQty => remove order from orderbook.
If buyOrder's qty > sellOrderQty => find valid buyers (FIFO) and remove them from the stakeholders' list. Decrement the qty of the order by sellOrderQty.
Execute buy and sell orders for the users.
The text was updated successfully, but these errors were encountered:
Steps involved:
The text was updated successfully, but these errors were encountered: