This version (v0.7) has not been published to npm yet.
Skip to content

Reference / @getenginex/sdk-predictions/query / PredictionsQueries

PredictionsQueries ​

Query factories for prediction markets, one per read method: q.<namespace>.<method>(input) returns { queryKey, queryFn }. Obtained with createPredictionsQueries.

Properties ​

comments ​

readonly comments: QueriesOf<CommentsApi, "list" | "listMine">

A market's comments (public) and the player's own (listMine).


markets ​

readonly markets: QueriesOf<MarketsApi, "listCategories" | "listEvents" | "getEvent" | "listMarkets" | "getMarket" | "getOrderbook" | "getPriceHistory">

Categories, events, markets, orderbook and price history (public).


orders ​

readonly orders: QueriesOf<OrdersApi, "list" | "get">

The player's orders.


portfolio ​

readonly portfolio: QueriesOf<PortfolioApi, "listPositions" | "getPosition" | "get">

The player's positions and portfolio summary.