Documentation
¶
Index ¶
- type AccountAdjustmentBatchError
- type Code
- type Reject
- func New(code Code, policy string, reason string, details string, scope Scope) Reject
- func NewFromHandle(handle native.Reject) Reject
- func NewList(rejects ...Reject) []Reject
- func NewListFromHandle(handle native.RejectList) ([]Reject, error)
- func NewSingleItemList(code Code, policy string, reason string, details string, scope Scope) []Reject
- type Scope
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountAdjustmentBatchError ¶
func NewAccountAdjustmentBatchErrorFromHandle ¶
func NewAccountAdjustmentBatchErrorFromHandle( reject native.AccountAdjustmentBatchError, ) (AccountAdjustmentBatchError, error)
type Code ¶
type Code native.RejectCode
const ( CodeMissingRequiredField Code = native.RejectCodeMissingRequiredField CodeInvalidFieldFormat Code = native.RejectCodeInvalidFieldFormat CodeInvalidFieldValue Code = native.RejectCodeInvalidFieldValue CodeUnsupportedOrderType Code = native.RejectCodeUnsupportedOrderType CodeUnsupportedTimeInForce Code = native.RejectCodeUnsupportedTimeInForce CodeUnsupportedOrderAttribute Code = native.RejectCodeUnsupportedOrderAttribute CodeDuplicateClientOrderID Code = native.RejectCodeDuplicateClientOrderID CodeTooLateToEnter Code = native.RejectCodeTooLateToEnter CodeExchangeClosed Code = native.RejectCodeExchangeClosed CodeUnknownInstrument Code = native.RejectCodeUnknownInstrument CodeUnknownAccount Code = native.RejectCodeUnknownAccount CodeUnknownVenue Code = native.RejectCodeUnknownVenue CodeUnknownClearingAccount Code = native.RejectCodeUnknownClearingAccount CodeUnknownCollateralAsset Code = native.RejectCodeUnknownCollateralAsset CodeInsufficientFunds Code = native.RejectCodeInsufficientFunds CodeInsufficientMargin Code = native.RejectCodeInsufficientMargin CodeInsufficientPosition Code = native.RejectCodeInsufficientPosition CodeCreditLimitExceeded Code = native.RejectCodeCreditLimitExceeded CodeRiskLimitExceeded Code = native.RejectCodeRiskLimitExceeded CodeOrderExceedsLimit Code = native.RejectCodeOrderExceedsLimit CodeOrderQtyExceedsLimit Code = native.RejectCodeOrderQtyExceedsLimit CodeOrderNotionalExceedsLimit Code = native.RejectCodeOrderNotionalExceedsLimit CodePositionLimitExceeded Code = native.RejectCodePositionLimitExceeded CodeConcentrationLimitExceeded Code = native.RejectCodeConcentrationLimitExceeded CodeLeverageLimitExceeded Code = native.RejectCodeLeverageLimitExceeded CodeRateLimitExceeded Code = native.RejectCodeRateLimitExceeded CodePnlKillSwitchTriggered Code = native.RejectCodePnlKillSwitchTriggered CodeAccountBlocked Code = native.RejectCodeAccountBlocked CodeAccountNotAuthorized Code = native.RejectCodeAccountNotAuthorized CodeComplianceRestriction Code = native.RejectCodeComplianceRestriction CodeInstrumentRestricted Code = native.RejectCodeInstrumentRestricted CodeJurisdictionRestriction Code = native.RejectCodeJurisdictionRestriction CodeWashTradePrevention Code = native.RejectCodeWashTradePrevention CodeSelfMatchPrevention Code = native.RejectCodeSelfMatchPrevention CodeShortSaleRestriction Code = native.RejectCodeShortSaleRestriction CodeRiskConfigurationMissing Code = native.RejectCodeRiskConfigurationMissing CodeOrderValueCalculationFailed Code = native.RejectCodeOrderValueCalculationFailed CodeCustom Code = native.RejectCodeCustom CodeOther Code = native.RejectCodeOther )
type Reject ¶
type Reject struct {
// Human-readable reject reason.
Reason string
// Case-specific reject details.
Details string
// Policy name that produced the reject.
Policy string
// Opaque caller-defined payload copied through reject paths.
//
// Nil means "not set". Ownership and lifecycle are caller-managed.
UserData unsafe.Pointer
// Stable machine-readable reject code.
Code Code
// Reject scope.
Scope Scope
}
func NewFromHandle ¶
NewFromHandle creates a Reject from a Reject handle with data copied from the handle.
func NewListFromHandle ¶
func NewListFromHandle(handle native.RejectList) ([]Reject, error)
func NewSingleItemList ¶
type Scope ¶
type Scope uint8
const ( ScopeOrder Scope = native.RejectScopeOrder ScopeAccount Scope = native.RejectScopeAccount )
Click to show internal directories.
Click to hide internal directories.