Logo

Orderbook Endpoints

getOrderBook

Gets the order book for a given market.

Method: query
isSigned: false


Parameters

NameTypeDescriptionOptional
marketIdNatThe id of the market you wish to get the order book forNo

Response

Returns: OrderBookResponse

  where OrderBookResponse is defined as:

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

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