Function calculating the total volume of the asking and bidding orders.
Function calculating the best available buying and selling orders.
Function calculating the midprice between the best available buying and selling orders.
Function calculating the spread between the best available buying and selling orders.
Function reducing the orders sizes.
Function adding orders to the book size.
Function sorting orders in the book by their price.