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
This is the main class that will be running the LOB. It will be handling all the Orders on the various Stocks that are produced throughout the lifespan of the program. The LOB needs to be able to handle Orders of type buy/sell, and do so in the fashion of limit/market price actions. See this reference for more information about the difference between the two.
There are some custom data structures that may need to be implemented such that we have
there are some things in Jainee's editOrder function that are not compiling on my end, not sure if that's just a me thing. otherwise here is where each implementation is in my code.
findOrderInBookByOrderId looks up through a map so this should be constant look-up
sortedPricePendingOrders is a queue with prices sorted small->large
findHighestBuy and findLowestSell return the best limit orders in constant time
edit order should do fast quantity updates with by setting volume
This is the main class that will be running the LOB. It will be handling all the
Order
s on the variousStock
s that are produced throughout the lifespan of the program. The LOB needs to be able to handleOrder
s of type buy/sell, and do so in the fashion of limit/market price actions. See this reference for more information about the difference between the two.There are some custom data structures that may need to be implemented such that we have
Refer to the following article about the topic.
Here is a sample implementation
The text was updated successfully, but these errors were encountered: