Variable RejectCodeConst

RejectCode: {
    AccountAdjustmentBoundsExceeded: "AccountAdjustmentBoundsExceeded";
    AccountBlocked: "AccountBlocked";
    AccountNotAuthorized: "AccountNotAuthorized";
    ArithmeticOverflow: "ArithmeticOverflow";
    ComplianceRestriction: "ComplianceRestriction";
    ConcentrationLimitExceeded: "ConcentrationLimitExceeded";
    CreditLimitExceeded: "CreditLimitExceeded";
    Custom: "Custom";
    DuplicateClientOrderId: "DuplicateClientOrderId";
    ExchangeClosed: "ExchangeClosed";
    InstrumentRestricted: "InstrumentRestricted";
    InsufficientFunds: "InsufficientFunds";
    InsufficientMargin: "InsufficientMargin";
    InsufficientPosition: "InsufficientPosition";
    InvalidFieldFormat: "InvalidFieldFormat";
    InvalidFieldValue: "InvalidFieldValue";
    JurisdictionRestriction: "JurisdictionRestriction";
    LeverageLimitExceeded: "LeverageLimitExceeded";
    MarkPriceUnavailable: "MarkPriceUnavailable";
    MissingRequiredField: "MissingRequiredField";
    OrderExceedsLimit: "OrderExceedsLimit";
    OrderNotionalExceedsLimit: "OrderNotionalExceedsLimit";
    OrderQtyExceedsLimit: "OrderQtyExceedsLimit";
    OrderValueCalculationFailed: "OrderValueCalculationFailed";
    Other: "Other";
    PnlKillSwitchTriggered: "PnlKillSwitchTriggered";
    PositionLimitExceeded: "PositionLimitExceeded";
    RateLimitExceeded: "RateLimitExceeded";
    ReferenceDataUnavailable: "ReferenceDataUnavailable";
    RiskConfigurationMissing: "RiskConfigurationMissing";
    RiskLimitExceeded: "RiskLimitExceeded";
    SelfMatchPrevention: "SelfMatchPrevention";
    ShortSaleRestriction: "ShortSaleRestriction";
    SystemUnavailable: "SystemUnavailable";
    TooLateToEnter: "TooLateToEnter";
    UnknownAccount: "UnknownAccount";
    UnknownClearingAccount: "UnknownClearingAccount";
    UnknownCollateralAsset: "UnknownCollateralAsset";
    UnknownInstrument: "UnknownInstrument";
    UnknownVenue: "UnknownVenue";
    UnsupportedOrderAttribute: "UnsupportedOrderAttribute";
    UnsupportedOrderType: "UnsupportedOrderType";
    UnsupportedTimeInForce: "UnsupportedTimeInForce";
    WashTradePrevention: "WashTradePrevention";
} = ...

Stable machine-readable reject codes used across built-in and custom policies. Each value is the wire string carried on a Reject; the object keeps string literals assignable so code that hard-codes a code continues to type-check.

Type declaration

  • ReadonlyAccountAdjustmentBoundsExceeded: "AccountAdjustmentBoundsExceeded"

    An account adjustment would violate its configured bounds.

  • ReadonlyAccountBlocked: "AccountBlocked"

    The account is blocked from new requests.

  • ReadonlyAccountNotAuthorized: "AccountNotAuthorized"

    The account is not authorized for the requested action.

  • ReadonlyArithmeticOverflow: "ArithmeticOverflow"

    Underlying decimal arithmetic overflowed during evaluation.

  • ReadonlyComplianceRestriction: "ComplianceRestriction"

    A compliance rule blocks the request.

  • ReadonlyConcentrationLimitExceeded: "ConcentrationLimitExceeded"

    A concentration limit would be exceeded.

  • ReadonlyCreditLimitExceeded: "CreditLimitExceeded"

    A credit limit would be exceeded.

  • ReadonlyCustom: "Custom"

    Custom reject code; meaning depends on the policy implementation.

  • ReadonlyDuplicateClientOrderId: "DuplicateClientOrderId"

    The client order ID is already in use.

  • ReadonlyExchangeClosed: "ExchangeClosed"

    The venue or market is closed for the requested action.

  • ReadonlyInstrumentRestricted: "InstrumentRestricted"

    The instrument is restricted.

  • ReadonlyInsufficientFunds: "InsufficientFunds"

    Available cash is not enough.

  • ReadonlyInsufficientMargin: "InsufficientMargin"

    Available margin is not enough.

  • ReadonlyInsufficientPosition: "InsufficientPosition"

    Available position is not enough.

  • ReadonlyInvalidFieldFormat: "InvalidFieldFormat"

    A field exists but has an invalid format.

  • ReadonlyInvalidFieldValue: "InvalidFieldValue"

    A field exists but its value is not allowed.

  • ReadonlyJurisdictionRestriction: "JurisdictionRestriction"

    The request is blocked by jurisdiction rules.

  • ReadonlyLeverageLimitExceeded: "LeverageLimitExceeded"

    A leverage limit would be exceeded.

  • ReadonlyMarkPriceUnavailable: "MarkPriceUnavailable"

    A mark price required for order evaluation is unavailable.

  • ReadonlyMissingRequiredField: "MissingRequiredField"

    A required field is absent.

  • ReadonlyOrderExceedsLimit: "OrderExceedsLimit"

    More than one order-size limit would be exceeded.

  • ReadonlyOrderNotionalExceedsLimit: "OrderNotionalExceedsLimit"

    The requested notional exceeds its limit.

  • ReadonlyOrderQtyExceedsLimit: "OrderQtyExceedsLimit"

    The requested quantity exceeds its limit.

  • ReadonlyOrderValueCalculationFailed: "OrderValueCalculationFailed"

    The requested order value could not be computed safely.

  • ReadonlyOther: "Other"

    A standard code does not describe the case precisely enough.

  • ReadonlyPnlKillSwitchTriggered: "PnlKillSwitchTriggered"

    The configured PnL kill switch is active.

  • ReadonlyPositionLimitExceeded: "PositionLimitExceeded"

    A position limit would be exceeded.

  • ReadonlyRateLimitExceeded: "RateLimitExceeded"

    Too many requests were submitted inside the configured window.

  • ReadonlyReferenceDataUnavailable: "ReferenceDataUnavailable"

    Required reference data is unavailable.

  • ReadonlyRiskConfigurationMissing: "RiskConfigurationMissing"

    Required risk configuration is missing.

  • ReadonlyRiskLimitExceeded: "RiskLimitExceeded"

    A general risk limit would be exceeded.

  • ReadonlySelfMatchPrevention: "SelfMatchPrevention"

    The request would self-match.

  • ReadonlyShortSaleRestriction: "ShortSaleRestriction"

    The request violates a short-sale restriction.

  • ReadonlySystemUnavailable: "SystemUnavailable"

    The system cannot process the request right now.

  • ReadonlyTooLateToEnter: "TooLateToEnter"

    The request arrived after the allowed entry window.

  • ReadonlyUnknownAccount: "UnknownAccount"

    The account is not recognized.

  • ReadonlyUnknownClearingAccount: "UnknownClearingAccount"

    The clearing account is not recognized.

  • ReadonlyUnknownCollateralAsset: "UnknownCollateralAsset"

    The collateral asset is not recognized.

  • ReadonlyUnknownInstrument: "UnknownInstrument"

    The instrument is not recognized.

  • ReadonlyUnknownVenue: "UnknownVenue"

    The venue is not recognized.

  • ReadonlyUnsupportedOrderAttribute: "UnsupportedOrderAttribute"

    The request contains an unsupported order attribute.

  • ReadonlyUnsupportedOrderType: "UnsupportedOrderType"

    The order type is not supported by the current policy set.

  • ReadonlyUnsupportedTimeInForce: "UnsupportedTimeInForce"

    The time-in-force value is not supported.

  • ReadonlyWashTradePrevention: "WashTradePrevention"

    The request would violate wash-trade prevention.