Orderbook Endpoints
getOrderBook
Gets the order book for a given market.
Method: query
isSigned: false
Parameters
Name | Type | Description | Optional |
---|---|---|---|
marketId | Nat | The id of the market you wish to get the order book for | No |
Response
Returns: OrderBookResponse
where OrderBookResponse is defined as:
public type OrderBookResponse = {
buy : [OrderBookPricePoint];
sell : [OrderBookPricePoint];
};
public type OrderBookPricePoint = {
odds : Nat;
contracts : Nat;
};