Book
Book Library
removeOrderFromBook
Removes a specified order from the book, updating the relevant limits and open interest.
addOrderToBook
Adds a new order to the book, updating the relevant limits and open interest.
getOrder
Retrieves an order from the book using the specified order ID.
getLimit
Retrieves the limit at a specified price and side (buy or sell) from the book.
getMaxBidPriceInTicks
Returns the maximum bid price in ticks from the book.
getMinBidPriceInTicks
Returns the minimum bid price in ticks from the book.
getMaxAskPriceInTicks
Returns the maximum ask price in ticks from the book.
getMinAskPriceInTicks
Returns the minimum ask price in ticks from the book.
getMaxNumOrders
Returns the maximum number of orders allowed in the book.
getTOB
Returns the top of book prices, which are the maximum bid and minimum ask prices.
getNextBiggestTick
Finds the next biggest price tick on the specified side (buy or sell) in the book.
getNextSmallestTick
Finds the next smallest price tick on the specified side (buy or sell) in the book.
getOrders
Retrieves a specified number of orders starting from a given order ID.
getBidLimit
Retrieves the bid limit at a specified tick price from the book.
getAskLimit
Retrieves the ask limit at a specified tick price from the book.
getOpenInterest
Returns the current open interest for both quote and base tokens in atoms.