The data structure required is an in-memory limit order book implemented as a collection of price levels, typically using a price-sorted map where each level contains a doubly linked list of orders. A fill-or-kill order is a specific instruction requiring the entire quantity to be matched immediately against existing orders at the best available price; if ....
Log in to view the answer