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.

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>;
}

Properties

accountAdjustments?: Iterable<AccountOutcomeEntry | PolicyAccountOutcomeEntry, any, any>
lockPrices?: Iterable<
    | string
    | number
    | bigint
    | Price, any, any>
mutations?: Iterable<PolicyMutation, any, any>
rejects?: Iterable<PolicyReject, any, any>