Reference / @getenginex/sdk-predictions/query / PredictionsMutations
PredictionsMutations
Mutations for prediction markets, one per write method: m.<namespace>.<method>() returns { mutationKey, mutationFn, invalidates }. Obtained with createPredictionsMutations.
Properties
comments
readonlycomments:MutationsOf<CommentsApi,"create"|"like"|"unlike">
Comment, like and unlike.
orders
readonlyorders:IdempotentMutationsOf<OrdersApi,"place"> &MutationsOf<OrdersApi,"cancel"|"placeBatch"|"amend">
Place an order (idempotent: accepts { idempotencyKey } on the factory), place a batch (each order's key goes in the order itself; see createPredictionsMutations), cancel and amend.