Reject Codes
OpenPit uses stable reject codes for standard business reject conditions.
Each code names a class of failure; the reason and details fields carry
the human-readable context for the specific case.
Validation and Shape
| Code |
Meaning |
MissingRequiredField |
A required field is absent |
InvalidFieldFormat |
A field exists but has an invalid format |
InvalidFieldValue |
A field exists but its value is not allowed |
UnsupportedOrderType |
The order type is not supported by the current policy set |
UnsupportedTimeInForce |
The time-in-force value is not supported |
UnsupportedOrderAttribute |
The request contains an unsupported order attribute |
DuplicateClientOrderId |
The client order ID is already in use |
Timing and Venue State
| Code |
Meaning |
TooLateToEnter |
The request arrived after the allowed entry window |
ExchangeClosed |
The venue or market is closed for the requested action |
Reference Data and Configuration
| Code |
Meaning |
UnknownInstrument |
The instrument is not recognized |
UnknownAccount |
The account is not recognized |
UnknownVenue |
The venue is not recognized |
UnknownClearingAccount |
The clearing account is not recognized |
UnknownCollateralAsset |
The collateral asset is not recognized |
RiskConfigurationMissing |
Required risk configuration is missing |
ReferenceDataUnavailable |
Required reference data is unavailable |
Funds, Margin, and Exposure
| Code |
Meaning |
InsufficientFunds |
Available cash is not enough |
InsufficientMargin |
Available margin is not enough |
InsufficientPosition |
Available position is not enough |
CreditLimitExceeded |
A credit limit would be exceeded |
RiskLimitExceeded |
A general risk limit would be exceeded |
OrderExceedsLimit |
More than one order-size limit would be exceeded |
OrderQtyExceedsLimit |
The requested quantity exceeds its limit |
OrderNotionalExceedsLimit |
The requested notional exceeds its limit |
PositionLimitExceeded |
A position limit would be exceeded |
ConcentrationLimitExceeded |
A concentration limit would be exceeded |
LeverageLimitExceeded |
A leverage limit would be exceeded |
OrderValueCalculationFailed |
The policy could not evaluate notional, cash flow, or derived quantity safely; this includes missing price when the policy needs it |
Rate, Account, and Blocking State
| Code |
Meaning |
RateLimitExceeded |
Too many requests were submitted inside the configured window |
PnlKillSwitchTriggered |
A configured P&L kill switch (PnlBoundsKillSwitchPolicy or the self-computed PnL axis in SpotFundsPolicy) detected that accumulated P&L is outside configured bounds |
AccountBlocked |
The account is blocked from new requests |
AccountNotAuthorized |
The account is not authorized for the requested action |
Compliance and Market Conduct
| Code |
Meaning |
ComplianceRestriction |
A compliance rule blocks the request |
InstrumentRestricted |
The instrument is restricted |
JurisdictionRestriction |
The request is blocked by jurisdiction rules |
WashTradePrevention |
The request would violate wash-trade prevention |
SelfMatchPrevention |
The request would self-match |
ShortSaleRestriction |
The request violates a short-sale restriction |
Custom Policy
| Code |
Meaning |
Custom |
Reject code defined by a custom policy. Use the user data reject field for an extended payload. |
System Fallback
| Code |
Meaning |
SystemUnavailable |
The system cannot process the request right now |
Other |
A standard code does not describe the case precisely enough |
Related Pages