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

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 ​

readonly comments: MutationsOf<CommentsApi, "create" | "like" | "unlike">

Comment, like and unlike.


orders ​

readonly orders: 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.