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
readonlycomments:QueriesOf<CommentsApi,"list"|"listMine">
A market's comments (public) and the player's own (listMine).
markets
readonlymarkets:QueriesOf<MarketsApi,"listCategories"|"listEvents"|"getEvent"|"listMarkets"|"getMarket"|"getOrderbook"|"getPriceHistory">
Categories, events, markets, orderbook and price history (public).
orders
The player's orders.
portfolio
readonlyportfolio:QueriesOf<PortfolioApi,"listPositions"|"getPosition"|"get">
The player's positions and portfolio summary.