Logo

Orderbook Endpoints

getOrderBooks

Gets all the order books on the event.

Method: query
isSigned: false


Response

Returns: OrderBookResponse

  where OrderBookResponse is defined as:

  public type OrderBookResponse = {
    buy : [OrderBookPricePoint];
    sell : [OrderBookPricePoint];
  };

  public type OrderBookPricePoint = {
    odds : Nat;
    contracts : Nat;
  };```
Previous
getOrderBook