A commit/rollback pair returned from a custom policy decision.

The engine calls commit() when the surrounding pre-trade transaction is accepted and the downstream venue acknowledged the order, or rollback() otherwise. Exactly one of the two runs, exactly once. There is no wasm class for it because it carries JS closures the engine invokes.

Constructors

Properties

Constructors

Properties

commit: MutationFn

Applies the side effect.

rollback: MutationFn

Reverts the side effect.