@openpit/engine
    Preparing search index...

    Interface PolicyPreTradeResult

    The result of Policy.performPreTradeCheck. Carries optional rejects and mutations (as in PolicyDecision) plus optional account adjustments and lock prices. Returning null/undefined accepts the order with no contribution. Ordinary pre-trade keeps contributions only on acceptance. Drop-copy also keeps them with ordinary, non-enforcing rejects; evaluation-failure rejects abort the operation and discard them.

    interface PolicyPreTradeResult {
        accountAdjustments?: Iterable<
            AccountOutcomeEntry
            | PolicyAccountOutcomeEntry,
            any,
            any,
        >;
        lockPrices?: Iterable<string | number | bigint | Price, any, any>;
        mutations?: Iterable<PolicyMutation, any, any>;
        rejects?: Iterable<PolicyReject, any, any>;
    }
    Index
    accountAdjustments?: Iterable<
        AccountOutcomeEntry
        | PolicyAccountOutcomeEntry,
        any,
        any,
    >
    lockPrices?: Iterable<string | number | bigint | Price, any, any>
    mutations?: Iterable<PolicyMutation, any, any>
    rejects?: Iterable<PolicyReject, any, any>