@openpit/engine
    Preparing search index...

    Class AccountControl

    Per-account kill-switch block handle scoped to one pre-trade transaction.

    Obtained from a context's accountControl. Calling block records a block against the bound account. The handle is valid only within the owning request's pre-trade processing (through commit or rollback); once invalidated, further calls throw a LifecycleError rather than recording against a completed transaction.

    A panic abandons the operation without invalidating its token, so the handle also rejects every call once a module panic has poisoned the module.

    Index
    • Returns void

    • Records block against the account bound to this control.

      The first cause for an account wins, so recording a block against an already-blocked account is a no-op.

      Errors

      Throws InternalError when a panic has poisoned the module, LifecycleError when the owning transaction has already been finalized, or ParamError when the block code is not recognized.

      Parameters

      Returns void

    • Returns void