Documentation
¶
Index ¶
- Constants
- Variables
- func AccountAdjustmentAmountOptionalIsSet(value AccountAdjustmentAmountOptional) bool
- func AccountAdjustmentAmountOptionalReset(value *AccountAdjustmentAmountOptional)
- func AccountAdjustmentAmountOptionalSet(value *AccountAdjustmentAmountOptional, amount AccountAdjustmentAmount)
- func AccountAdjustmentAmountReset(amount *AccountAdjustmentAmount)
- func AccountAdjustmentAmountSetPending(amount *AccountAdjustmentAmount, value ParamAdjustmentAmount)
- func AccountAdjustmentAmountSetReserved(amount *AccountAdjustmentAmount, value ParamAdjustmentAmount)
- func AccountAdjustmentAmountSetTotal(amount *AccountAdjustmentAmount, value ParamAdjustmentAmount)
- func AccountAdjustmentAmountUnsetPending(amount *AccountAdjustmentAmount)
- func AccountAdjustmentAmountUnsetReserved(amount *AccountAdjustmentAmount)
- func AccountAdjustmentAmountUnsetTotal(amount *AccountAdjustmentAmount)
- func AccountAdjustmentBalanceOperationOptionalIsSet(value AccountAdjustmentBalanceOperationOptional) bool
- func AccountAdjustmentBalanceOperationOptionalReset(operation *AccountAdjustmentBalanceOperationOptional)
- func AccountAdjustmentBalanceOperationOptionalSet(value *AccountAdjustmentBalanceOperationOptional, ...)
- func AccountAdjustmentBalanceOperationReset(operation *AccountAdjustmentBalanceOperation)
- func AccountAdjustmentBalanceOperationSetAsset(operation *AccountAdjustmentBalanceOperation, asset string)
- func AccountAdjustmentBalanceOperationSetAverageEntryPrice(operation *AccountAdjustmentBalanceOperation, price ParamPrice)
- func AccountAdjustmentBalanceOperationUnsetAsset(operation *AccountAdjustmentBalanceOperation)
- func AccountAdjustmentBalanceOperationUnsetAverageEntryPrice(operation *AccountAdjustmentBalanceOperation)
- func AccountAdjustmentBatchErrorGetFailedAdjustmentIndex(handle AccountAdjustmentBatchError) int
- func AccountAdjustmentBoundsOptionalIsSet(value AccountAdjustmentBoundsOptional) bool
- func AccountAdjustmentBoundsOptionalReset(value *AccountAdjustmentBoundsOptional)
- func AccountAdjustmentBoundsOptionalSet(value *AccountAdjustmentBoundsOptional, bounds AccountAdjustmentBounds)
- func AccountAdjustmentBoundsReset(bounds *AccountAdjustmentBounds)
- func AccountAdjustmentBoundsSetPendingLower(bounds *AccountAdjustmentBounds, bound ParamPositionSize)
- func AccountAdjustmentBoundsSetPendingUpper(bounds *AccountAdjustmentBounds, bound ParamPositionSize)
- func AccountAdjustmentBoundsSetReservedLower(bounds *AccountAdjustmentBounds, bound ParamPositionSize)
- func AccountAdjustmentBoundsSetReservedUpper(bounds *AccountAdjustmentBounds, bound ParamPositionSize)
- func AccountAdjustmentBoundsSetTotalLower(bounds *AccountAdjustmentBounds, bound ParamPositionSize)
- func AccountAdjustmentBoundsSetTotalUpper(bounds *AccountAdjustmentBounds, bound ParamPositionSize)
- func AccountAdjustmentBoundsUnsetPendingLower(bounds *AccountAdjustmentBounds)
- func AccountAdjustmentBoundsUnsetPendingUpper(bounds *AccountAdjustmentBounds)
- func AccountAdjustmentBoundsUnsetReservedLower(bounds *AccountAdjustmentBounds)
- func AccountAdjustmentBoundsUnsetReservedUpper(bounds *AccountAdjustmentBounds)
- func AccountAdjustmentBoundsUnsetTotalLower(bounds *AccountAdjustmentBounds)
- func AccountAdjustmentBoundsUnsetTotalUpper(bounds *AccountAdjustmentBounds)
- func AccountAdjustmentGetUserData(adjustment AccountAdjustment) unsafe.Pointer
- func AccountAdjustmentPositionOperationOptionalIsSet(value AccountAdjustmentPositionOperationOptional) bool
- func AccountAdjustmentPositionOperationOptionalReset(operation *AccountAdjustmentPositionOperationOptional)
- func AccountAdjustmentPositionOperationOptionalSet(value *AccountAdjustmentPositionOperationOptional, ...)
- func AccountAdjustmentPositionOperationReset(operation *AccountAdjustmentPositionOperation)
- func AccountAdjustmentPositionOperationSetAverageEntryPrice(operation *AccountAdjustmentPositionOperation, price ParamPrice)
- func AccountAdjustmentPositionOperationSetCollateralAsset(operation *AccountAdjustmentPositionOperation, asset string)
- func AccountAdjustmentPositionOperationSetInstrument(operation *AccountAdjustmentPositionOperation, instrument Instrument)
- func AccountAdjustmentPositionOperationSetLeverage(operation *AccountAdjustmentPositionOperation, leverage ParamLeverage)
- func AccountAdjustmentPositionOperationSetMode(operation *AccountAdjustmentPositionOperation, mode ParamPositionMode)
- func AccountAdjustmentPositionOperationUnsetAverageEntryPrice(operation *AccountAdjustmentPositionOperation)
- func AccountAdjustmentPositionOperationUnsetCollateralAsset(operation *AccountAdjustmentPositionOperation)
- func AccountAdjustmentPositionOperationUnsetInstrument(operation *AccountAdjustmentPositionOperation)
- func AccountAdjustmentPositionOperationUnsetLeverage(operation *AccountAdjustmentPositionOperation)
- func AccountAdjustmentPositionOperationUnsetMode(operation *AccountAdjustmentPositionOperation)
- func AccountAdjustmentReset(adjustment *AccountAdjustment)
- func AccountAdjustmentSetAmount(adjustment *AccountAdjustment, amount AccountAdjustmentAmount)
- func AccountAdjustmentSetBalanceOperationAndUnsetPositionOperation(adjustment *AccountAdjustment, operation AccountAdjustmentBalanceOperation)
- func AccountAdjustmentSetBounds(adjustment *AccountAdjustment, bounds AccountAdjustmentBounds)
- func AccountAdjustmentSetPositionOperationAndUnsetBalanceOperation(adjustment *AccountAdjustment, operation AccountAdjustmentPositionOperation)
- func AccountAdjustmentSetUserData(adjustment *AccountAdjustment, userData unsafe.Pointer)
- func AccountAdjustmentUnsetAmount(adjustment *AccountAdjustment)
- func AccountAdjustmentUnsetBalanceOperation(adjustment *AccountAdjustment)
- func AccountAdjustmentUnsetBounds(adjustment *AccountAdjustment)
- func AccountAdjustmentUnsetPositionOperation(adjustment *AccountAdjustment)
- func CreateParamAssetFromStr(value string) (string, error)
- func DestroyAccountAdjustmentBatchError(handle AccountAdjustmentBatchError)
- func DestroyAccountAdjustmentPolicy(policy AccountAdjustmentPolicy)
- func DestroyEngine(engine Engine)
- func DestroyEngineBuilder(builder EngineBuilder)
- func DestroyPretradeCheckPreTradeStartPolicy(policy PretradeCheckPreTradeStartPolicy)
- func DestroyPretradePreTradePolicy(policy PretradePreTradePolicy)
- func DestroyPretradePreTradeRequest(request PretradePreTradeRequest)
- func DestroyPretradePreTradeReservation(reservation PretradePreTradeReservation)
- func DestroyRejectList(rejects RejectList)
- func DestroySharedString(handle SharedString)
- func EngineBuilderAddAccountAdjustmentPolicy(builder EngineBuilder, policy AccountAdjustmentPolicy) error
- func EngineBuilderAddCheckPreTradeStartPolicy(builder EngineBuilder, policy PretradeCheckPreTradeStartPolicy) error
- func EngineBuilderAddPreTradePolicy(builder EngineBuilder, policy PretradePreTradePolicy) error
- func EngineExecutePreTrade(engine Engine, order Order) (PretradePreTradeReservation, RejectList, error)
- func EngineStartPreTrade(engine Engine, order Order) (PretradePreTradeRequest, RejectList, error)
- func ExecutionReportFillOptionalIsSet(value ExecutionReportFillOptional) bool
- func ExecutionReportFillOptionalReset(value *ExecutionReportFillOptional)
- func ExecutionReportFillOptionalSet(value *ExecutionReportFillOptional, fill ExecutionReportFill)
- func ExecutionReportFillReset(fill *ExecutionReportFill)
- func ExecutionReportFillSetFinal(fill *ExecutionReportFill, isFinal bool)
- func ExecutionReportFillSetLastTrade(fill *ExecutionReportFill, trade ExecutionReportTrade)
- func ExecutionReportFillSetLeavesQuantity(fill *ExecutionReportFill, quantity ParamQuantity)
- func ExecutionReportFillSetLockPrice(fill *ExecutionReportFill, price ParamPrice)
- func ExecutionReportFillUnsetFinal(fill *ExecutionReportFill)
- func ExecutionReportFillUnsetLastTrade(fill *ExecutionReportFill)
- func ExecutionReportFillUnsetLeavesQuantity(fill *ExecutionReportFill)
- func ExecutionReportFillUnsetLockPrice(fill *ExecutionReportFill)
- func ExecutionReportGetUserData(report ExecutionReport) unsafe.Pointer
- func ExecutionReportIsFinalOptionalGet(value ExecutionReportIsFinalOptional) bool
- func ExecutionReportIsFinalOptionalIsSet(value ExecutionReportIsFinalOptional) bool
- func ExecutionReportOperationOptionalIsSet(value ExecutionReportOperationOptional) bool
- func ExecutionReportOperationOptionalReset(value *ExecutionReportOperationOptional)
- func ExecutionReportOperationOptionalSet(value *ExecutionReportOperationOptional, operation ExecutionReportOperation)
- func ExecutionReportOperationReset(operation *ExecutionReportOperation)
- func ExecutionReportOperationSetAccountID(operation *ExecutionReportOperation, accountID ParamAccountID)
- func ExecutionReportOperationSetInstrument(operation *ExecutionReportOperation, instrument Instrument)
- func ExecutionReportOperationSetSide(operation *ExecutionReportOperation, side ParamSide)
- func ExecutionReportOperationUnsetAccountID(operation *ExecutionReportOperation)
- func ExecutionReportOperationUnsetInstrument(operation *ExecutionReportOperation)
- func ExecutionReportOperationUnsetSide(operation *ExecutionReportOperation)
- func ExecutionReportPositionImpactOptionalIsSet(value ExecutionReportPositionImpactOptional) bool
- func ExecutionReportPositionImpactOptionalReset(value *ExecutionReportPositionImpactOptional)
- func ExecutionReportPositionImpactOptionalSet(value *ExecutionReportPositionImpactOptional, ...)
- func ExecutionReportPositionImpactReset(positionImpact *ExecutionReportPositionImpact)
- func ExecutionReportPositionImpactSetPositionEffect(positionImpact *ExecutionReportPositionImpact, ...)
- func ExecutionReportPositionImpactSetPositionSide(positionImpact *ExecutionReportPositionImpact, positionSide ParamPositionSide)
- func ExecutionReportPositionImpactUnsetPositionEffect(positionImpact *ExecutionReportPositionImpact)
- func ExecutionReportPositionImpactUnsetPositionSide(positionImpact *ExecutionReportPositionImpact)
- func ExecutionReportReset(report *ExecutionReport)
- func ExecutionReportSetFill(report *ExecutionReport, fill ExecutionReportFill)
- func ExecutionReportSetFinancialImpact(report *ExecutionReport, financialImpact FinancialImpact)
- func ExecutionReportSetOperation(report *ExecutionReport, operation ExecutionReportOperation)
- func ExecutionReportSetPositionImpact(report *ExecutionReport, positionImpact ExecutionReportPositionImpact)
- func ExecutionReportSetUserData(report *ExecutionReport, userData unsafe.Pointer)
- func ExecutionReportTradeOptionalIsSet(value ExecutionReportTradeOptional) bool
- func ExecutionReportTradeOptionalReset(value *ExecutionReportTradeOptional)
- func ExecutionReportTradeOptionalSet(value *ExecutionReportTradeOptional, trade ExecutionReportTrade)
- func ExecutionReportTradeReset(trade *ExecutionReportTrade)
- func ExecutionReportTradeSetPrice(trade *ExecutionReportTrade, price ParamPrice)
- func ExecutionReportTradeSetQuantity(trade *ExecutionReportTrade, quantity ParamQuantity)
- func ExecutionReportUnsetFill(report *ExecutionReport)
- func ExecutionReportUnsetFinancialImpact(report *ExecutionReport)
- func ExecutionReportUnsetOperation(report *ExecutionReport)
- func ExecutionReportUnsetPositionImpact(report *ExecutionReport)
- func FinancialImpactOptionalIsSet(value FinancialImpactOptional) bool
- func FinancialImpactOptionalReset(value *FinancialImpactOptional)
- func FinancialImpactOptionalSet(value *FinancialImpactOptional, financialImpact FinancialImpact)
- func FinancialImpactReset(financialImpact *FinancialImpact)
- func FinancialImpactSetFee(financialImpact *FinancialImpact, fee ParamFee)
- func FinancialImpactSetPnl(financialImpact *FinancialImpact, pnl ParamPnl)
- func FinancialImpactUnsetFee(financialImpact *FinancialImpact)
- func FinancialImpactUnsetPnl(financialImpact *FinancialImpact)
- func MutationsPush(mutations Mutations, commitFnAddr unsafe.Pointer, ...) error
- func NewDecimalFromNative(source ParamDecimal) decimal.Decimal
- func OrderGetUserData(o Order) unsafe.Pointer
- func OrderMarginOptionalIsSet(value OrderMarginOptional) bool
- func OrderMarginOptionalReset(value *OrderMarginOptional)
- func OrderMarginOptionalSet(value *OrderMarginOptional, margin OrderMargin)
- func OrderMarginReset(m *OrderMargin)
- func OrderMarginSetAutoBorrow(m *OrderMargin, autoBorrow TriBool)
- func OrderMarginSetCollateralAsset(m *OrderMargin, asset string)
- func OrderMarginSetLeverage(m *OrderMargin, leverage ParamLeverage)
- func OrderMarginUnsetAutoBorrow(m *OrderMargin)
- func OrderMarginUnsetCollateralAsset(m *OrderMargin)
- func OrderMarginUnsetLeverage(m *OrderMargin)
- func OrderOperationOptionalIsSet(value OrderOperationOptional) bool
- func OrderOperationOptionalReset(value *OrderOperationOptional)
- func OrderOperationOptionalSet(value *OrderOperationOptional, operation OrderOperation)
- func OrderOperationReset(o *OrderOperation)
- func OrderOperationSetAccountID(o *OrderOperation, accountID ParamAccountID)
- func OrderOperationSetInstrument(o *OrderOperation, instrument Instrument)
- func OrderOperationSetPrice(o *OrderOperation, price ParamPrice)
- func OrderOperationSetSide(o *OrderOperation, side ParamSide)
- func OrderOperationSetTradeAmount(o *OrderOperation, value ParamTradeAmount)
- func OrderOperationUnsetAccountID(o *OrderOperation)
- func OrderOperationUnsetInstrument(o *OrderOperation)
- func OrderOperationUnsetPrice(o *OrderOperation)
- func OrderOperationUnsetSide(o *OrderOperation)
- func OrderOperationUnsetTradeAmount(o *OrderOperation)
- func OrderPositionOptionalIsSet(value OrderPositionOptional) bool
- func OrderPositionOptionalReset(value *OrderPositionOptional)
- func OrderPositionOptionalSet(value *OrderPositionOptional, position OrderPosition)
- func OrderPositionReset(p *OrderPosition)
- func OrderPositionSetClosePosition(p *OrderPosition, closePosition TriBool)
- func OrderPositionSetReduceOnly(p *OrderPosition, reduceOnly TriBool)
- func OrderPositionSetSide(p *OrderPosition, side ParamPositionSide)
- func OrderPositionUnsetClosePosition(p *OrderPosition)
- func OrderPositionUnsetReduceOnly(p *OrderPosition)
- func OrderPositionUnsetSide(p *OrderPosition)
- func OrderReset(o *Order)
- func OrderSetOrderMargin(o *Order, margin OrderMargin)
- func OrderSetOrderOperation(o *Order, operation OrderOperation)
- func OrderSetOrderPosition(o *Order, position OrderPosition)
- func OrderSetUserData(o *Order, userData unsafe.Pointer)
- func OrderUnsetOrderMargin(o *Order)
- func OrderUnsetOrderOperation(o *Order)
- func OrderUnsetOrderPosition(o *Order)
- func ParamAccountIDOptionalIsSet(value ParamAccountIDOptional) bool
- func ParamCashFlowCompare(lhs ParamCashFlow, rhs ParamCashFlow) (int, error)
- func ParamCashFlowIsZero(value ParamCashFlow) (bool, error)
- func ParamCashFlowOptionalIsSet(value ParamCashFlowOptional) bool
- func ParamCashFlowToF64(value ParamCashFlow) (float64, error)
- func ParamCashFlowToString(value ParamCashFlow) (string, error)
- func ParamFeeCompare(lhs ParamFee, rhs ParamFee) (int, error)
- func ParamFeeIsZero(value ParamFee) (bool, error)
- func ParamFeeOptionalIsSet(value ParamFeeOptional) bool
- func ParamFeeToF64(value ParamFee) (float64, error)
- func ParamFeeToString(value ParamFee) (string, error)
- func ParamNotionalCompare(lhs ParamNotional, rhs ParamNotional) (int, error)
- func ParamNotionalIsZero(value ParamNotional) (bool, error)
- func ParamNotionalOptionalIsSet(value ParamNotionalOptional) bool
- func ParamNotionalToF64(value ParamNotional) (float64, error)
- func ParamNotionalToString(value ParamNotional) (string, error)
- func ParamPnlCompare(lhs ParamPnl, rhs ParamPnl) (int, error)
- func ParamPnlIsZero(value ParamPnl) (bool, error)
- func ParamPnlOptionalIsSet(value ParamPnlOptional) bool
- func ParamPnlToF64(value ParamPnl) (float64, error)
- func ParamPnlToString(value ParamPnl) (string, error)
- func ParamPositionSizeCompare(lhs ParamPositionSize, rhs ParamPositionSize) (int, error)
- func ParamPositionSizeIsZero(value ParamPositionSize) (bool, error)
- func ParamPositionSizeOptionalIsSet(value ParamPositionSizeOptional) bool
- func ParamPositionSizeToCloseQuantity(value ParamPositionSize) (ParamQuantity, ParamSide, error)
- func ParamPositionSizeToF64(value ParamPositionSize) (float64, error)
- func ParamPositionSizeToOpenQuantity(value ParamPositionSize) (ParamQuantity, ParamSide, error)
- func ParamPositionSizeToString(value ParamPositionSize) (string, error)
- func ParamPriceCompare(lhs ParamPrice, rhs ParamPrice) (int, error)
- func ParamPriceIsZero(value ParamPrice) (bool, error)
- func ParamPriceOptionalIsSet(value ParamPriceOptional) bool
- func ParamPriceToF64(value ParamPrice) (float64, error)
- func ParamPriceToString(value ParamPrice) (string, error)
- func ParamQuantityCompare(lhs ParamQuantity, rhs ParamQuantity) (int, error)
- func ParamQuantityIsZero(value ParamQuantity) (bool, error)
- func ParamQuantityOptionalIsSet(value ParamQuantityOptional) bool
- func ParamQuantityToF64(value ParamQuantity) (float64, error)
- func ParamQuantityToString(value ParamQuantity) (string, error)
- func ParamVolumeCompare(lhs ParamVolume, rhs ParamVolume) (int, error)
- func ParamVolumeIsZero(value ParamVolume) (bool, error)
- func ParamVolumeOptionalIsSet(value ParamVolumeOptional) bool
- func ParamVolumeToF64(value ParamVolume) (float64, error)
- func ParamVolumeToString(value ParamVolume) (string, error)
- func PretradePreTradeLockReset(lock *PretradePreTradeLock)
- func PretradePreTradeLockSetPrice(lock *PretradePreTradeLock, price ParamPrice)
- func PretradePreTradeLockUnsetPrice(lock *PretradePreTradeLock)
- func PretradePreTradeRequestExecute(request PretradePreTradeRequest) (PretradePreTradeReservation, RejectList, error)
- func PretradePreTradeReservationCommit(reservation PretradePreTradeReservation)
- func PretradePreTradeReservationRollback(reservation PretradePreTradeReservation)
- func RejectGetUserData(reject Reject) unsafe.Pointer
- func RejectListLen(list RejectList) int
- func RejectListPush(list RejectList, reject Reject)
- type AccountAdjustment
- type AccountAdjustmentAmount
- type AccountAdjustmentAmountOptional
- type AccountAdjustmentApplyStatus
- type AccountAdjustmentBalanceOperation
- func AccountAdjustmentBalanceOperationOptionalGet(value AccountAdjustmentBalanceOperationOptional) AccountAdjustmentBalanceOperation
- func AccountAdjustmentBalanceOperationOptionalGetView(value *AccountAdjustmentBalanceOperationOptional) *AccountAdjustmentBalanceOperation
- func NewAccountAdjustmentBalanceOperation() AccountAdjustmentBalanceOperation
- type AccountAdjustmentBalanceOperationOptional
- func AccountAdjustmentGetBalanceOperation(adjustment AccountAdjustment) AccountAdjustmentBalanceOperationOptional
- func AccountAdjustmentGetBalanceOperationView(adjustment *AccountAdjustment) *AccountAdjustmentBalanceOperationOptional
- func NewAccountAdjustmentBalanceOperationOptional() AccountAdjustmentBalanceOperationOptional
- type AccountAdjustmentBatchError
- type AccountAdjustmentBounds
- type AccountAdjustmentBoundsOptional
- type AccountAdjustmentContext
- type AccountAdjustmentPolicy
- type AccountAdjustmentPositionOperation
- func AccountAdjustmentPositionOperationOptionalGet(value AccountAdjustmentPositionOperationOptional) AccountAdjustmentPositionOperation
- func AccountAdjustmentPositionOperationOptionalGetView(value *AccountAdjustmentPositionOperationOptional) *AccountAdjustmentPositionOperation
- func NewAccountAdjustmentPositionOperation() AccountAdjustmentPositionOperation
- type AccountAdjustmentPositionOperationOptional
- func AccountAdjustmentGetPositionOperation(adjustment AccountAdjustment) AccountAdjustmentPositionOperationOptional
- func AccountAdjustmentGetPositionOperationView(adjustment *AccountAdjustment) *AccountAdjustmentPositionOperationOptional
- func NewAccountAdjustmentPositionOperationOptional() AccountAdjustmentPositionOperationOptional
- type Engine
- type EngineBuilder
- type ExecutionReport
- type ExecutionReportFill
- type ExecutionReportFillOptional
- type ExecutionReportIsFinalOptional
- type ExecutionReportOperation
- type ExecutionReportOperationOptional
- type ExecutionReportPositionImpact
- func ExecutionReportPositionImpactOptionalGet(value ExecutionReportPositionImpactOptional) ExecutionReportPositionImpact
- func ExecutionReportPositionImpactOptionalGetView(value *ExecutionReportPositionImpactOptional) *ExecutionReportPositionImpact
- func NewExecutionReportPositionImpact() ExecutionReportPositionImpact
- type ExecutionReportPositionImpactOptional
- type ExecutionReportTrade
- type ExecutionReportTradeOptional
- type FinancialImpact
- type FinancialImpactOptional
- type Instrument
- func AccountAdjustmentPositionOperationGetInstrument(operation AccountAdjustmentPositionOperation) Instrument
- func ExecutionReportOperationGetInstrument(operation ExecutionReportOperation) Instrument
- func NewInstrument(underlyingAsset string, settlementAsset string) Instrument
- func OrderOperationGetInstrument(o OrderOperation) Instrument
- type Mutations
- type Order
- type OrderMargin
- type OrderMarginOptional
- type OrderOperation
- type OrderOperationOptional
- type OrderPosition
- type OrderPositionOptional
- type ParamAccountID
- type ParamAccountIDOptional
- type ParamAdjustmentAmount
- func AccountAdjustmentAmountGetPending(amount AccountAdjustmentAmount) ParamAdjustmentAmount
- func AccountAdjustmentAmountGetReserved(amount AccountAdjustmentAmount) ParamAdjustmentAmount
- func AccountAdjustmentAmountGetTotal(amount AccountAdjustmentAmount) ParamAdjustmentAmount
- func CreateParamAdjustmentAmount(kind ParamAdjustmentAmountKind, value ParamPositionSize) ParamAdjustmentAmount
- type ParamAdjustmentAmountKind
- type ParamCashFlow
- func CreateParamCashFlow(value ParamDecimal) (ParamCashFlow, error)
- func CreateParamCashFlowFromDecimalRounded(v ParamDecimal, scale uint32, strategy ParamRoundingStrategy) (ParamCashFlow, error)
- func CreateParamCashFlowFromF64(v float64) (ParamCashFlow, error)
- func CreateParamCashFlowFromF64Rounded(v float64, scale uint32, strategy ParamRoundingStrategy) (ParamCashFlow, error)
- func CreateParamCashFlowFromI64(v int64) (ParamCashFlow, error)
- func CreateParamCashFlowFromStr(v string) (ParamCashFlow, error)
- func CreateParamCashFlowFromStrRounded(v string, scale uint32, strategy ParamRoundingStrategy) (ParamCashFlow, error)
- func CreateParamCashFlowFromU64(v uint64) (ParamCashFlow, error)
- func ParamCashFlowCheckedAdd(lhs ParamCashFlow, rhs ParamCashFlow) (ParamCashFlow, error)
- func ParamCashFlowCheckedDivF64(value ParamCashFlow, divisor float64) (ParamCashFlow, error)
- func ParamCashFlowCheckedDivI64(value ParamCashFlow, divisor int64) (ParamCashFlow, error)
- func ParamCashFlowCheckedDivU64(value ParamCashFlow, divisor uint64) (ParamCashFlow, error)
- func ParamCashFlowCheckedMulF64(value ParamCashFlow, scalar float64) (ParamCashFlow, error)
- func ParamCashFlowCheckedMulI64(value ParamCashFlow, scalar int64) (ParamCashFlow, error)
- func ParamCashFlowCheckedMulU64(value ParamCashFlow, scalar uint64) (ParamCashFlow, error)
- func ParamCashFlowCheckedNeg(value ParamCashFlow) (ParamCashFlow, error)
- func ParamCashFlowCheckedRemF64(value ParamCashFlow, divisor float64) (ParamCashFlow, error)
- func ParamCashFlowCheckedRemI64(value ParamCashFlow, divisor int64) (ParamCashFlow, error)
- func ParamCashFlowCheckedRemU64(value ParamCashFlow, divisor uint64) (ParamCashFlow, error)
- func ParamCashFlowCheckedSub(lhs ParamCashFlow, rhs ParamCashFlow) (ParamCashFlow, error)
- func ParamCashFlowFromFee(value ParamFee) (ParamCashFlow, error)
- func ParamCashFlowFromPnl(value ParamPnl) (ParamCashFlow, error)
- func ParamCashFlowFromVolumeInflow(value ParamVolume) (ParamCashFlow, error)
- func ParamCashFlowFromVolumeOutflow(value ParamVolume) (ParamCashFlow, error)
- func ParamCashFlowOptionalGet(value ParamCashFlowOptional) ParamCashFlow
- func ParamFeeToCashFlow(value ParamFee) (ParamCashFlow, error)
- func ParamPnlToCashFlow(value ParamPnl) (ParamCashFlow, error)
- func ParamVolumeToCashFlowInflow(value ParamVolume) (ParamCashFlow, error)
- func ParamVolumeToCashFlowOutflow(value ParamVolume) (ParamCashFlow, error)
- type ParamCashFlowOptional
- type ParamDecimal
- func NewNativeDecimalFromDecimal(source decimal.Decimal) ParamDecimal
- func ParamCashFlowGetDecimal(value ParamCashFlow) ParamDecimal
- func ParamFeeGetDecimal(value ParamFee) ParamDecimal
- func ParamNotionalGetDecimal(value ParamNotional) ParamDecimal
- func ParamPnlGetDecimal(value ParamPnl) ParamDecimal
- func ParamPositionSizeGetDecimal(value ParamPositionSize) ParamDecimal
- func ParamPriceGetDecimal(value ParamPrice) ParamDecimal
- func ParamQuantityGetDecimal(value ParamQuantity) ParamDecimal
- func ParamTradeAmountGetValue(amount ParamTradeAmount) ParamDecimal
- func ParamVolumeGetDecimal(value ParamVolume) ParamDecimal
- type ParamError
- type ParamErrorCode
- type ParamErrorHandle
- type ParamFee
- func CreateParamFee(value ParamDecimal) (ParamFee, error)
- func CreateParamFeeFromDecimalRounded(v ParamDecimal, scale uint32, strategy ParamRoundingStrategy) (ParamFee, error)
- func CreateParamFeeFromF64(v float64) (ParamFee, error)
- func CreateParamFeeFromF64Rounded(v float64, scale uint32, strategy ParamRoundingStrategy) (ParamFee, error)
- func CreateParamFeeFromI64(v int64) (ParamFee, error)
- func CreateParamFeeFromStr(v string) (ParamFee, error)
- func CreateParamFeeFromStrRounded(v string, scale uint32, strategy ParamRoundingStrategy) (ParamFee, error)
- func CreateParamFeeFromU64(v uint64) (ParamFee, error)
- func ParamFeeCheckedAdd(lhs ParamFee, rhs ParamFee) (ParamFee, error)
- func ParamFeeCheckedDivF64(value ParamFee, divisor float64) (ParamFee, error)
- func ParamFeeCheckedDivI64(value ParamFee, divisor int64) (ParamFee, error)
- func ParamFeeCheckedDivU64(value ParamFee, divisor uint64) (ParamFee, error)
- func ParamFeeCheckedMulF64(value ParamFee, scalar float64) (ParamFee, error)
- func ParamFeeCheckedMulI64(value ParamFee, scalar int64) (ParamFee, error)
- func ParamFeeCheckedMulU64(value ParamFee, scalar uint64) (ParamFee, error)
- func ParamFeeCheckedNeg(value ParamFee) (ParamFee, error)
- func ParamFeeCheckedRemF64(value ParamFee, divisor float64) (ParamFee, error)
- func ParamFeeCheckedRemI64(value ParamFee, divisor int64) (ParamFee, error)
- func ParamFeeCheckedRemU64(value ParamFee, divisor uint64) (ParamFee, error)
- func ParamFeeCheckedSub(lhs ParamFee, rhs ParamFee) (ParamFee, error)
- func ParamFeeOptionalGet(value ParamFeeOptional) ParamFee
- type ParamFeeOptional
- type ParamLeverage
- type ParamNotional
- func CreateParamNotional(value ParamDecimal) (ParamNotional, error)
- func CreateParamNotionalFromDecimalRounded(v ParamDecimal, scale uint32, strategy ParamRoundingStrategy) (ParamNotional, error)
- func CreateParamNotionalFromF64(v float64) (ParamNotional, error)
- func CreateParamNotionalFromF64Rounded(v float64, scale uint32, strategy ParamRoundingStrategy) (ParamNotional, error)
- func CreateParamNotionalFromI64(v int64) (ParamNotional, error)
- func CreateParamNotionalFromStr(v string) (ParamNotional, error)
- func CreateParamNotionalFromStrRounded(v string, scale uint32, strategy ParamRoundingStrategy) (ParamNotional, error)
- func CreateParamNotionalFromU64(v uint64) (ParamNotional, error)
- func ParamLeverageCalculateMarginRequired(leverage ParamLeverage, notional ParamNotional) (ParamNotional, error)
- func ParamNotionalCalculateMarginRequired(notional ParamNotional, leverage ParamLeverage) (ParamNotional, error)
- func ParamNotionalCheckedAdd(lhs ParamNotional, rhs ParamNotional) (ParamNotional, error)
- func ParamNotionalCheckedDivF64(value ParamNotional, divisor float64) (ParamNotional, error)
- func ParamNotionalCheckedDivI64(value ParamNotional, divisor int64) (ParamNotional, error)
- func ParamNotionalCheckedDivU64(value ParamNotional, divisor uint64) (ParamNotional, error)
- func ParamNotionalCheckedMulF64(value ParamNotional, scalar float64) (ParamNotional, error)
- func ParamNotionalCheckedMulI64(value ParamNotional, scalar int64) (ParamNotional, error)
- func ParamNotionalCheckedMulU64(value ParamNotional, scalar uint64) (ParamNotional, error)
- func ParamNotionalCheckedRemF64(value ParamNotional, divisor float64) (ParamNotional, error)
- func ParamNotionalCheckedRemI64(value ParamNotional, divisor int64) (ParamNotional, error)
- func ParamNotionalCheckedRemU64(value ParamNotional, divisor uint64) (ParamNotional, error)
- func ParamNotionalCheckedSub(lhs ParamNotional, rhs ParamNotional) (ParamNotional, error)
- func ParamNotionalFromVolume(volume ParamVolume) (ParamNotional, error)
- func ParamNotionalOptionalGet(value ParamNotionalOptional) ParamNotional
- func ParamPriceCalculateNotional(price ParamPrice, quantity ParamQuantity) (ParamNotional, error)
- func ParamQuantityCalculateNotional(quantity ParamQuantity, price ParamPrice) (ParamNotional, error)
- type ParamNotionalOptional
- type ParamPnl
- func CreateParamPnl(value ParamDecimal) (ParamPnl, error)
- func CreateParamPnlFromDecimalRounded(v ParamDecimal, scale uint32, strategy ParamRoundingStrategy) (ParamPnl, error)
- func CreateParamPnlFromF64(v float64) (ParamPnl, error)
- func CreateParamPnlFromF64Rounded(v float64, scale uint32, strategy ParamRoundingStrategy) (ParamPnl, error)
- func CreateParamPnlFromI64(v int64) (ParamPnl, error)
- func CreateParamPnlFromStr(v string) (ParamPnl, error)
- func CreateParamPnlFromStrRounded(v string, scale uint32, strategy ParamRoundingStrategy) (ParamPnl, error)
- func CreateParamPnlFromU64(v uint64) (ParamPnl, error)
- func ParamFeeToPnl(value ParamFee) (ParamPnl, error)
- func ParamPnlCheckedAdd(lhs ParamPnl, rhs ParamPnl) (ParamPnl, error)
- func ParamPnlCheckedDivF64(value ParamPnl, divisor float64) (ParamPnl, error)
- func ParamPnlCheckedDivI64(value ParamPnl, divisor int64) (ParamPnl, error)
- func ParamPnlCheckedDivU64(value ParamPnl, divisor uint64) (ParamPnl, error)
- func ParamPnlCheckedMulF64(value ParamPnl, scalar float64) (ParamPnl, error)
- func ParamPnlCheckedMulI64(value ParamPnl, scalar int64) (ParamPnl, error)
- func ParamPnlCheckedMulU64(value ParamPnl, scalar uint64) (ParamPnl, error)
- func ParamPnlCheckedNeg(value ParamPnl) (ParamPnl, error)
- func ParamPnlCheckedRemF64(value ParamPnl, divisor float64) (ParamPnl, error)
- func ParamPnlCheckedRemI64(value ParamPnl, divisor int64) (ParamPnl, error)
- func ParamPnlCheckedRemU64(value ParamPnl, divisor uint64) (ParamPnl, error)
- func ParamPnlCheckedSub(lhs ParamPnl, rhs ParamPnl) (ParamPnl, error)
- func ParamPnlFromFee(fee ParamFee) (ParamPnl, error)
- func ParamPnlOptionalGet(value ParamPnlOptional) ParamPnl
- type ParamPnlOptional
- type ParamPositionEffect
- type ParamPositionMode
- type ParamPositionSide
- type ParamPositionSize
- func CreateParamPositionSize(value ParamDecimal) (ParamPositionSize, error)
- func CreateParamPositionSizeFromDecimalRounded(v ParamDecimal, scale uint32, strategy ParamRoundingStrategy) (ParamPositionSize, error)
- func CreateParamPositionSizeFromF64(v float64) (ParamPositionSize, error)
- func CreateParamPositionSizeFromF64Rounded(v float64, scale uint32, strategy ParamRoundingStrategy) (ParamPositionSize, error)
- func CreateParamPositionSizeFromI64(v int64) (ParamPositionSize, error)
- func CreateParamPositionSizeFromStr(v string) (ParamPositionSize, error)
- func CreateParamPositionSizeFromStrRounded(v string, scale uint32, strategy ParamRoundingStrategy) (ParamPositionSize, error)
- func CreateParamPositionSizeFromU64(v uint64) (ParamPositionSize, error)
- func ParamAdjustmentAmountGetValue(amount ParamAdjustmentAmount) ParamPositionSize
- func ParamFeeToPositionSize(value ParamFee) (ParamPositionSize, error)
- func ParamPnlToPositionSize(value ParamPnl) (ParamPositionSize, error)
- func ParamPositionSizeCheckedAdd(lhs ParamPositionSize, rhs ParamPositionSize) (ParamPositionSize, error)
- func ParamPositionSizeCheckedAddQuantity(value ParamPositionSize, quantity ParamQuantity, side ParamSide) (ParamPositionSize, error)
- func ParamPositionSizeCheckedDivF64(value ParamPositionSize, divisor float64) (ParamPositionSize, error)
- func ParamPositionSizeCheckedDivI64(value ParamPositionSize, divisor int64) (ParamPositionSize, error)
- func ParamPositionSizeCheckedDivU64(value ParamPositionSize, divisor uint64) (ParamPositionSize, error)
- func ParamPositionSizeCheckedMulF64(value ParamPositionSize, scalar float64) (ParamPositionSize, error)
- func ParamPositionSizeCheckedMulI64(value ParamPositionSize, scalar int64) (ParamPositionSize, error)
- func ParamPositionSizeCheckedMulU64(value ParamPositionSize, scalar uint64) (ParamPositionSize, error)
- func ParamPositionSizeCheckedNeg(value ParamPositionSize) (ParamPositionSize, error)
- func ParamPositionSizeCheckedRemF64(value ParamPositionSize, divisor float64) (ParamPositionSize, error)
- func ParamPositionSizeCheckedRemI64(value ParamPositionSize, divisor int64) (ParamPositionSize, error)
- func ParamPositionSizeCheckedRemU64(value ParamPositionSize, divisor uint64) (ParamPositionSize, error)
- func ParamPositionSizeCheckedSub(lhs ParamPositionSize, rhs ParamPositionSize) (ParamPositionSize, error)
- func ParamPositionSizeFromFee(value ParamFee) (ParamPositionSize, error)
- func ParamPositionSizeFromPnl(value ParamPnl) (ParamPositionSize, error)
- func ParamPositionSizeFromQuantityAndSide(quantity ParamQuantity, side ParamSide) (ParamPositionSize, error)
- func ParamPositionSizeOptionalGet(value ParamPositionSizeOptional) ParamPositionSize
- type ParamPositionSizeOptional
- func AccountAdjustmentBoundsGetPendingLower(bounds AccountAdjustmentBounds) ParamPositionSizeOptional
- func AccountAdjustmentBoundsGetPendingUpper(bounds AccountAdjustmentBounds) ParamPositionSizeOptional
- func AccountAdjustmentBoundsGetReservedLower(bounds AccountAdjustmentBounds) ParamPositionSizeOptional
- func AccountAdjustmentBoundsGetReservedUpper(bounds AccountAdjustmentBounds) ParamPositionSizeOptional
- func AccountAdjustmentBoundsGetTotalLower(bounds AccountAdjustmentBounds) ParamPositionSizeOptional
- func AccountAdjustmentBoundsGetTotalUpper(bounds AccountAdjustmentBounds) ParamPositionSizeOptional
- type ParamPrice
- func CreateParamPrice(value ParamDecimal) (ParamPrice, error)
- func CreateParamPriceFromDecimalRounded(v ParamDecimal, scale uint32, strategy ParamRoundingStrategy) (ParamPrice, error)
- func CreateParamPriceFromF64(v float64) (ParamPrice, error)
- func CreateParamPriceFromF64Rounded(v float64, scale uint32, strategy ParamRoundingStrategy) (ParamPrice, error)
- func CreateParamPriceFromI64(v int64) (ParamPrice, error)
- func CreateParamPriceFromStr(v string) (ParamPrice, error)
- func CreateParamPriceFromStrRounded(v string, scale uint32, strategy ParamRoundingStrategy) (ParamPrice, error)
- func CreateParamPriceFromU64(v uint64) (ParamPrice, error)
- func ExecutionReportTradeGetPrice(trade ExecutionReportTrade) ParamPrice
- func ParamPriceCheckedAdd(lhs ParamPrice, rhs ParamPrice) (ParamPrice, error)
- func ParamPriceCheckedDivF64(value ParamPrice, divisor float64) (ParamPrice, error)
- func ParamPriceCheckedDivI64(value ParamPrice, divisor int64) (ParamPrice, error)
- func ParamPriceCheckedDivU64(value ParamPrice, divisor uint64) (ParamPrice, error)
- func ParamPriceCheckedMulF64(value ParamPrice, scalar float64) (ParamPrice, error)
- func ParamPriceCheckedMulI64(value ParamPrice, scalar int64) (ParamPrice, error)
- func ParamPriceCheckedMulU64(value ParamPrice, scalar uint64) (ParamPrice, error)
- func ParamPriceCheckedNeg(value ParamPrice) (ParamPrice, error)
- func ParamPriceCheckedRemF64(value ParamPrice, divisor float64) (ParamPrice, error)
- func ParamPriceCheckedRemI64(value ParamPrice, divisor int64) (ParamPrice, error)
- func ParamPriceCheckedRemU64(value ParamPrice, divisor uint64) (ParamPrice, error)
- func ParamPriceCheckedSub(lhs ParamPrice, rhs ParamPrice) (ParamPrice, error)
- func ParamPriceOptionalGet(value ParamPriceOptional) ParamPrice
- type ParamPriceOptional
- func AccountAdjustmentBalanceOperationGetAverageEntryPrice(operation AccountAdjustmentBalanceOperation) ParamPriceOptional
- func AccountAdjustmentPositionOperationGetAverageEntryPrice(operation AccountAdjustmentPositionOperation) ParamPriceOptional
- func ExecutionReportFillGetLockPrice(fill ExecutionReportFill) ParamPriceOptional
- func OrderOperationGetPrice(o OrderOperation) ParamPriceOptional
- func PretradePreTradeLockGetPrice(lock PretradePreTradeLock) ParamPriceOptional
- type ParamQuantity
- func CreateParamQuantity(value ParamDecimal) (ParamQuantity, error)
- func CreateParamQuantityFromDecimalRounded(v ParamDecimal, scale uint32, strategy ParamRoundingStrategy) (ParamQuantity, error)
- func CreateParamQuantityFromF64(v float64) (ParamQuantity, error)
- func CreateParamQuantityFromF64Rounded(v float64, scale uint32, strategy ParamRoundingStrategy) (ParamQuantity, error)
- func CreateParamQuantityFromI64(v int64) (ParamQuantity, error)
- func CreateParamQuantityFromStr(v string) (ParamQuantity, error)
- func CreateParamQuantityFromStrRounded(v string, scale uint32, strategy ParamRoundingStrategy) (ParamQuantity, error)
- func CreateParamQuantityFromU64(v uint64) (ParamQuantity, error)
- func ExecutionReportTradeGetQuantity(trade ExecutionReportTrade) ParamQuantity
- func ParamQuantityCheckedAdd(lhs ParamQuantity, rhs ParamQuantity) (ParamQuantity, error)
- func ParamQuantityCheckedDivF64(value ParamQuantity, divisor float64) (ParamQuantity, error)
- func ParamQuantityCheckedDivI64(value ParamQuantity, divisor int64) (ParamQuantity, error)
- func ParamQuantityCheckedDivU64(value ParamQuantity, divisor uint64) (ParamQuantity, error)
- func ParamQuantityCheckedMulF64(value ParamQuantity, scalar float64) (ParamQuantity, error)
- func ParamQuantityCheckedMulI64(value ParamQuantity, scalar int64) (ParamQuantity, error)
- func ParamQuantityCheckedMulU64(value ParamQuantity, scalar uint64) (ParamQuantity, error)
- func ParamQuantityCheckedRemF64(value ParamQuantity, divisor float64) (ParamQuantity, error)
- func ParamQuantityCheckedRemI64(value ParamQuantity, divisor int64) (ParamQuantity, error)
- func ParamQuantityCheckedRemU64(value ParamQuantity, divisor uint64) (ParamQuantity, error)
- func ParamQuantityCheckedSub(lhs ParamQuantity, rhs ParamQuantity) (ParamQuantity, error)
- func ParamQuantityOptionalGet(value ParamQuantityOptional) ParamQuantity
- func ParamVolumeCalculateQuantity(volume ParamVolume, price ParamPrice) (ParamQuantity, error)
- type ParamQuantityOptional
- type ParamRoundingStrategy
- type ParamSide
- type ParamTradeAmount
- type ParamTradeAmountKind
- type ParamVolume
- func CreateParamVolume(value ParamDecimal) (ParamVolume, error)
- func CreateParamVolumeFromDecimalRounded(v ParamDecimal, scale uint32, strategy ParamRoundingStrategy) (ParamVolume, error)
- func CreateParamVolumeFromF64(v float64) (ParamVolume, error)
- func CreateParamVolumeFromF64Rounded(v float64, scale uint32, strategy ParamRoundingStrategy) (ParamVolume, error)
- func CreateParamVolumeFromI64(v int64) (ParamVolume, error)
- func CreateParamVolumeFromStr(v string) (ParamVolume, error)
- func CreateParamVolumeFromStrRounded(v string, scale uint32, strategy ParamRoundingStrategy) (ParamVolume, error)
- func CreateParamVolumeFromU64(v uint64) (ParamVolume, error)
- func ParamNotionalToVolume(notional ParamNotional) (ParamVolume, error)
- func ParamPriceCalculateVolume(price ParamPrice, quantity ParamQuantity) (ParamVolume, error)
- func ParamQuantityCalculateVolume(quantity ParamQuantity, price ParamPrice) (ParamVolume, error)
- func ParamVolumeCheckedAdd(lhs ParamVolume, rhs ParamVolume) (ParamVolume, error)
- func ParamVolumeCheckedDivF64(value ParamVolume, divisor float64) (ParamVolume, error)
- func ParamVolumeCheckedDivI64(value ParamVolume, divisor int64) (ParamVolume, error)
- func ParamVolumeCheckedDivU64(value ParamVolume, divisor uint64) (ParamVolume, error)
- func ParamVolumeCheckedMulF64(value ParamVolume, scalar float64) (ParamVolume, error)
- func ParamVolumeCheckedMulI64(value ParamVolume, scalar int64) (ParamVolume, error)
- func ParamVolumeCheckedMulU64(value ParamVolume, scalar uint64) (ParamVolume, error)
- func ParamVolumeCheckedRemF64(value ParamVolume, divisor float64) (ParamVolume, error)
- func ParamVolumeCheckedRemI64(value ParamVolume, divisor int64) (ParamVolume, error)
- func ParamVolumeCheckedRemU64(value ParamVolume, divisor uint64) (ParamVolume, error)
- func ParamVolumeCheckedSub(lhs ParamVolume, rhs ParamVolume) (ParamVolume, error)
- func ParamVolumeFromNotional(notional ParamNotional) (ParamVolume, error)
- func ParamVolumeOptionalGet(value ParamVolumeOptional) ParamVolume
- type ParamVolumeOptional
- type PretradeCheckPreTradeStartPolicy
- func CreatePretradeCustomCheckPreTradeStartPolicy(name string, checkFnAddr unsafe.Pointer, ...) (PretradeCheckPreTradeStartPolicy, error)
- func CreatePretradePoliciesOrderSizeLimitPolicy(params []PretradePoliciesOrderSizeLimitParam) (PretradeCheckPreTradeStartPolicy, error)
- func CreatePretradePoliciesOrderValidationPolicy() PretradeCheckPreTradeStartPolicy
- func CreatePretradePoliciesPnlBoundsKillSwitchPolicy(params []PretradePoliciesPnlBoundsBarrier) (PretradeCheckPreTradeStartPolicy, error)
- func CreatePretradePoliciesRateLimitPolicy(maxOrders int, windowSeconds uint64) PretradeCheckPreTradeStartPolicy
- type PretradeContext
- type PretradePoliciesOrderSizeLimitParam
- type PretradePoliciesPnlBoundsBarrier
- type PretradePostTradeResult
- type PretradePreTradeLock
- type PretradePreTradePolicy
- type PretradePreTradeRequest
- type PretradePreTradeReservation
- type Reject
- type RejectCode
- type RejectList
- type RejectScope
- type SharedString
- type String
- type StringView
- func AccountAdjustmentBalanceOperationGetAsset(operation AccountAdjustmentBalanceOperation) StringView
- func AccountAdjustmentPolicyGetName(policy AccountAdjustmentPolicy) StringView
- func AccountAdjustmentPositionOperationGetCollateralAsset(operation AccountAdjustmentPositionOperation) StringView
- func GetRuntimeVersion() StringView
- func InstrumentGetSettlementAsset(instrument Instrument) StringView
- func InstrumentGetUnderlyingAsset(instrument Instrument) StringView
- func NewStringView(value string) StringView
- func OrderMarginGetCollateralAsset(m OrderMargin) StringView
- func PretradeCheckPreTradeStartPolicyGetName(policy PretradeCheckPreTradeStartPolicy) StringView
- func PretradePreTradePolicyGetName(policy PretradePreTradePolicy) StringView
- func RejectGetDetails(reject Reject) StringView
- func RejectGetPolicy(reject Reject) StringView
- func RejectGetReason(reject Reject) StringView
- type TriBool
Constants ¶
const ( ParamLeverageScale = C.PIT_PARAM_LEVERAGE_SCALE ParamLeverageMin = C.PIT_PARAM_LEVERAGE_MIN ParamLeverageMax = C.PIT_PARAM_LEVERAGE_MAX ParamLeverageStep = C.PIT_PARAM_LEVERAGE_STEP )
const ( ParamSideNotSet = C.PitParamSide_NotSet ParamSideBuy = C.PitParamSide_Buy ParamSideSell = C.PitParamSide_Sell )
const ( ParamPositionSideNotSet = C.PitParamPositionSide_NotSet ParamPositionSideLong = C.PitParamPositionSide_Long ParamPositionSideShort = C.PitParamPositionSide_Short )
const ( ParamPositionModeNotSet = C.PitParamPositionMode_NotSet ParamPositionModeNetting = C.PitParamPositionMode_Netting ParamPositionModeHedged = C.PitParamPositionMode_Hedged )
const ( ParamPositionEffectNotSet = C.PitParamPositionEffect_NotSet ParamPositionEffectOpen = C.PitParamPositionEffect_Open ParamPositionEffectClose = C.PitParamPositionEffect_Close )
const ( ParamTradeAmountKindNotSet = C.PitParamTradeAmountKind_NotSet ParamTradeAmountKindQuantity = C.PitParamTradeAmountKind_Quantity ParamTradeAmountKindVolume = C.PitParamTradeAmountKind_Volume )
const ( ParamRoundingStrategyMidpointNearestEven = C.PitParamRoundingStrategy_MidpointNearestEven ParamRoundingStrategyMidpointAwayFromZero = C.PitParamRoundingStrategy_MidpointAwayFromZero ParamRoundingStrategyUp = C.PitParamRoundingStrategy_Up ParamRoundingStrategyDown = C.PitParamRoundingStrategy_Down )
const ( ParamRoundingStrategyDefault = C.PIT_PARAM_ROUNDING_STRATEGY_DEFAULT ParamRoundingStrategyBanker = C.PIT_PARAM_ROUNDING_STRATEGY_BANKER ParamRoundingStrategyConservativeProfit = C.PIT_PARAM_ROUNDING_STRATEGY_CONSERVATIVE_PROFIT ParamRoundingStrategyConservativeLoss = C.PIT_PARAM_ROUNDING_STRATEGY_CONSERVATIVE_LOSS )
const ( ParamErrorCodeUnspecified = C.PitParamErrorCode_Unspecified ParamErrorCodeNegative = C.PitParamErrorCode_Negative ParamErrorCodeDivisionByZero = C.PitParamErrorCode_DivisionByZero ParamErrorCodeOverflow = C.PitParamErrorCode_Overflow ParamErrorCodeUnderflow = C.PitParamErrorCode_Underflow ParamErrorCodeInvalidFloat = C.PitParamErrorCode_InvalidFloat ParamErrorCodeInvalidFormat = C.PitParamErrorCode_InvalidFormat ParamErrorCodeInvalidPrice = C.PitParamErrorCode_InvalidPrice ParamErrorCodeInvalidLeverage = C.PitParamErrorCode_InvalidLeverage ParamErrorCodeAssetEmpty = C.PitParamErrorCode_AssetEmpty ParamErrorCodeAccountIdEmpty = C.PitParamErrorCode_AccountIdEmpty ParamErrorCodeOther = C.PitParamErrorCode_Other )
const ( TriBoolNotSet = C.PitTriBool_NotSet TriBoolFalse = C.PitTriBool_False TriBoolTrue = C.PitTriBool_True )
const ( ParamAdjustmentAmountKindNotSet = C.PitParamAdjustmentAmountKind_NotSet ParamAdjustmentAmountKindDelta = C.PitParamAdjustmentAmountKind_Delta ParamAdjustmentAmountKindAbsolute = C.PitParamAdjustmentAmountKind_Absolute )
const ( RejectScopeOrder = C.PitRejectScope_Order RejectScopeAccount = C.PitRejectScope_Account )
const ( RejectCodeMissingRequiredField = C.PitRejectCode_MissingRequiredField RejectCodeInvalidFieldFormat = C.PitRejectCode_InvalidFieldFormat RejectCodeInvalidFieldValue = C.PitRejectCode_InvalidFieldValue RejectCodeUnsupportedOrderType = C.PitRejectCode_UnsupportedOrderType RejectCodeUnsupportedTimeInForce = C.PitRejectCode_UnsupportedTimeInForce RejectCodeUnsupportedOrderAttribute = C.PitRejectCode_UnsupportedOrderAttribute RejectCodeDuplicateClientOrderID = C.PitRejectCode_DuplicateClientOrderId RejectCodeTooLateToEnter = C.PitRejectCode_TooLateToEnter RejectCodeExchangeClosed = C.PitRejectCode_ExchangeClosed RejectCodeUnknownInstrument = C.PitRejectCode_UnknownInstrument RejectCodeUnknownAccount = C.PitRejectCode_UnknownAccount RejectCodeUnknownVenue = C.PitRejectCode_UnknownVenue RejectCodeUnknownClearingAccount = C.PitRejectCode_UnknownClearingAccount RejectCodeUnknownCollateralAsset = C.PitRejectCode_UnknownCollateralAsset RejectCodeInsufficientFunds = C.PitRejectCode_InsufficientFunds RejectCodeInsufficientMargin = C.PitRejectCode_InsufficientMargin RejectCodeInsufficientPosition = C.PitRejectCode_InsufficientPosition RejectCodeCreditLimitExceeded = C.PitRejectCode_CreditLimitExceeded RejectCodeRiskLimitExceeded = C.PitRejectCode_RiskLimitExceeded RejectCodeOrderExceedsLimit = C.PitRejectCode_OrderExceedsLimit RejectCodeOrderQtyExceedsLimit = C.PitRejectCode_OrderQtyExceedsLimit RejectCodeOrderNotionalExceedsLimit = C.PitRejectCode_OrderNotionalExceedsLimit RejectCodePositionLimitExceeded = C.PitRejectCode_PositionLimitExceeded RejectCodeConcentrationLimitExceeded = C.PitRejectCode_ConcentrationLimitExceeded RejectCodeLeverageLimitExceeded = C.PitRejectCode_LeverageLimitExceeded RejectCodeRateLimitExceeded = C.PitRejectCode_RateLimitExceeded RejectCodePnlKillSwitchTriggered = C.PitRejectCode_PnlKillSwitchTriggered RejectCodeAccountBlocked = C.PitRejectCode_AccountBlocked RejectCodeAccountNotAuthorized = C.PitRejectCode_AccountNotAuthorized RejectCodeComplianceRestriction = C.PitRejectCode_ComplianceRestriction RejectCodeInstrumentRestricted = C.PitRejectCode_InstrumentRestricted RejectCodeJurisdictionRestriction = C.PitRejectCode_JurisdictionRestriction RejectCodeWashTradePrevention = C.PitRejectCode_WashTradePrevention RejectCodeSelfMatchPrevention = C.PitRejectCode_SelfMatchPrevention RejectCodeShortSaleRestriction = C.PitRejectCode_ShortSaleRestriction RejectCodeRiskConfigurationMissing = C.PitRejectCode_RiskConfigurationMissing RejectCodeOrderValueCalculationFailed = C.PitRejectCode_OrderValueCalculationFailed RejectCodeCustom = C.PitRejectCode_Custom RejectCodeOther = C.PitRejectCode_Other )
const ParamLeverageNotSet = C.PIT_PARAM_LEVERAGE_NOT_SET
Variables ¶
var ( ErrNegative = errors.New("param: value must be non-negative") ErrDivisionByZero = errors.New("param: division by zero") ErrOverflow = errors.New("param: arithmetic overflow") ErrUnderflow = errors.New("param: arithmetic underflow") ErrInvalidFloat = errors.New("param: invalid float value (NaN or infinity)") ErrInvalidFormat = errors.New("param: invalid format") ErrInvalidPrice = errors.New("param: invalid price value") ErrInvalidLeverage = errors.New("param: invalid leverage value") ErrAssetEmpty = errors.New("param: asset must not be empty") ErrAccountIdEmpty = errors.New("param: account id string must not be empty") )
Functions ¶
func AccountAdjustmentAmountOptionalIsSet ¶
func AccountAdjustmentAmountOptionalIsSet(value AccountAdjustmentAmountOptional) bool
func AccountAdjustmentAmountOptionalReset ¶
func AccountAdjustmentAmountOptionalReset(value *AccountAdjustmentAmountOptional)
func AccountAdjustmentAmountOptionalSet ¶
func AccountAdjustmentAmountOptionalSet( value *AccountAdjustmentAmountOptional, amount AccountAdjustmentAmount, )
func AccountAdjustmentAmountReset ¶
func AccountAdjustmentAmountReset(amount *AccountAdjustmentAmount)
func AccountAdjustmentAmountSetPending ¶
func AccountAdjustmentAmountSetPending( amount *AccountAdjustmentAmount, value ParamAdjustmentAmount, )
func AccountAdjustmentAmountSetReserved ¶
func AccountAdjustmentAmountSetReserved( amount *AccountAdjustmentAmount, value ParamAdjustmentAmount, )
func AccountAdjustmentAmountSetTotal ¶
func AccountAdjustmentAmountSetTotal(amount *AccountAdjustmentAmount, value ParamAdjustmentAmount)
func AccountAdjustmentAmountUnsetPending ¶
func AccountAdjustmentAmountUnsetPending(amount *AccountAdjustmentAmount)
func AccountAdjustmentAmountUnsetReserved ¶
func AccountAdjustmentAmountUnsetReserved(amount *AccountAdjustmentAmount)
func AccountAdjustmentAmountUnsetTotal ¶
func AccountAdjustmentAmountUnsetTotal(amount *AccountAdjustmentAmount)
func AccountAdjustmentBalanceOperationOptionalIsSet ¶
func AccountAdjustmentBalanceOperationOptionalIsSet( value AccountAdjustmentBalanceOperationOptional, ) bool
func AccountAdjustmentBalanceOperationOptionalReset ¶
func AccountAdjustmentBalanceOperationOptionalReset( operation *AccountAdjustmentBalanceOperationOptional, )
func AccountAdjustmentBalanceOperationOptionalSet ¶
func AccountAdjustmentBalanceOperationOptionalSet( value *AccountAdjustmentBalanceOperationOptional, operation AccountAdjustmentBalanceOperation, )
func AccountAdjustmentBalanceOperationReset ¶
func AccountAdjustmentBalanceOperationReset(operation *AccountAdjustmentBalanceOperation)
func AccountAdjustmentBalanceOperationSetAsset ¶
func AccountAdjustmentBalanceOperationSetAsset( operation *AccountAdjustmentBalanceOperation, asset string, )
func AccountAdjustmentBalanceOperationSetAverageEntryPrice ¶
func AccountAdjustmentBalanceOperationSetAverageEntryPrice( operation *AccountAdjustmentBalanceOperation, price ParamPrice, )
func AccountAdjustmentBalanceOperationUnsetAsset ¶
func AccountAdjustmentBalanceOperationUnsetAsset(operation *AccountAdjustmentBalanceOperation)
func AccountAdjustmentBalanceOperationUnsetAverageEntryPrice ¶
func AccountAdjustmentBalanceOperationUnsetAverageEntryPrice( operation *AccountAdjustmentBalanceOperation, )
func AccountAdjustmentBatchErrorGetFailedAdjustmentIndex ¶
func AccountAdjustmentBatchErrorGetFailedAdjustmentIndex( handle AccountAdjustmentBatchError, ) int
func AccountAdjustmentBoundsOptionalIsSet ¶
func AccountAdjustmentBoundsOptionalIsSet(value AccountAdjustmentBoundsOptional) bool
func AccountAdjustmentBoundsOptionalReset ¶
func AccountAdjustmentBoundsOptionalReset(value *AccountAdjustmentBoundsOptional)
func AccountAdjustmentBoundsOptionalSet ¶
func AccountAdjustmentBoundsOptionalSet( value *AccountAdjustmentBoundsOptional, bounds AccountAdjustmentBounds, )
func AccountAdjustmentBoundsReset ¶
func AccountAdjustmentBoundsReset(bounds *AccountAdjustmentBounds)
func AccountAdjustmentBoundsSetPendingLower ¶
func AccountAdjustmentBoundsSetPendingLower( bounds *AccountAdjustmentBounds, bound ParamPositionSize, )
func AccountAdjustmentBoundsSetPendingUpper ¶
func AccountAdjustmentBoundsSetPendingUpper( bounds *AccountAdjustmentBounds, bound ParamPositionSize, )
func AccountAdjustmentBoundsSetReservedLower ¶
func AccountAdjustmentBoundsSetReservedLower( bounds *AccountAdjustmentBounds, bound ParamPositionSize, )
func AccountAdjustmentBoundsSetReservedUpper ¶
func AccountAdjustmentBoundsSetReservedUpper( bounds *AccountAdjustmentBounds, bound ParamPositionSize, )
func AccountAdjustmentBoundsSetTotalLower ¶
func AccountAdjustmentBoundsSetTotalLower( bounds *AccountAdjustmentBounds, bound ParamPositionSize, )
func AccountAdjustmentBoundsSetTotalUpper ¶
func AccountAdjustmentBoundsSetTotalUpper( bounds *AccountAdjustmentBounds, bound ParamPositionSize, )
func AccountAdjustmentBoundsUnsetPendingLower ¶
func AccountAdjustmentBoundsUnsetPendingLower(bounds *AccountAdjustmentBounds)
func AccountAdjustmentBoundsUnsetPendingUpper ¶
func AccountAdjustmentBoundsUnsetPendingUpper(bounds *AccountAdjustmentBounds)
func AccountAdjustmentBoundsUnsetReservedLower ¶
func AccountAdjustmentBoundsUnsetReservedLower(bounds *AccountAdjustmentBounds)
func AccountAdjustmentBoundsUnsetReservedUpper ¶
func AccountAdjustmentBoundsUnsetReservedUpper(bounds *AccountAdjustmentBounds)
func AccountAdjustmentBoundsUnsetTotalLower ¶
func AccountAdjustmentBoundsUnsetTotalLower(bounds *AccountAdjustmentBounds)
func AccountAdjustmentBoundsUnsetTotalUpper ¶
func AccountAdjustmentBoundsUnsetTotalUpper(bounds *AccountAdjustmentBounds)
func AccountAdjustmentGetUserData ¶
func AccountAdjustmentGetUserData(adjustment AccountAdjustment) unsafe.Pointer
func AccountAdjustmentPositionOperationOptionalIsSet ¶
func AccountAdjustmentPositionOperationOptionalIsSet( value AccountAdjustmentPositionOperationOptional, ) bool
func AccountAdjustmentPositionOperationOptionalReset ¶
func AccountAdjustmentPositionOperationOptionalReset( operation *AccountAdjustmentPositionOperationOptional, )
func AccountAdjustmentPositionOperationOptionalSet ¶
func AccountAdjustmentPositionOperationOptionalSet( value *AccountAdjustmentPositionOperationOptional, operation AccountAdjustmentPositionOperation, )
func AccountAdjustmentPositionOperationReset ¶
func AccountAdjustmentPositionOperationReset(operation *AccountAdjustmentPositionOperation)
func AccountAdjustmentPositionOperationSetAverageEntryPrice ¶
func AccountAdjustmentPositionOperationSetAverageEntryPrice( operation *AccountAdjustmentPositionOperation, price ParamPrice, )
func AccountAdjustmentPositionOperationSetCollateralAsset ¶
func AccountAdjustmentPositionOperationSetCollateralAsset( operation *AccountAdjustmentPositionOperation, asset string, )
func AccountAdjustmentPositionOperationSetInstrument ¶
func AccountAdjustmentPositionOperationSetInstrument( operation *AccountAdjustmentPositionOperation, instrument Instrument, )
func AccountAdjustmentPositionOperationSetLeverage ¶
func AccountAdjustmentPositionOperationSetLeverage( operation *AccountAdjustmentPositionOperation, leverage ParamLeverage, )
func AccountAdjustmentPositionOperationSetMode ¶
func AccountAdjustmentPositionOperationSetMode( operation *AccountAdjustmentPositionOperation, mode ParamPositionMode, )
func AccountAdjustmentPositionOperationUnsetAverageEntryPrice ¶
func AccountAdjustmentPositionOperationUnsetAverageEntryPrice( operation *AccountAdjustmentPositionOperation, )
func AccountAdjustmentPositionOperationUnsetCollateralAsset ¶
func AccountAdjustmentPositionOperationUnsetCollateralAsset( operation *AccountAdjustmentPositionOperation, )
func AccountAdjustmentPositionOperationUnsetInstrument ¶
func AccountAdjustmentPositionOperationUnsetInstrument( operation *AccountAdjustmentPositionOperation, )
func AccountAdjustmentPositionOperationUnsetLeverage ¶
func AccountAdjustmentPositionOperationUnsetLeverage( operation *AccountAdjustmentPositionOperation, )
func AccountAdjustmentPositionOperationUnsetMode ¶
func AccountAdjustmentPositionOperationUnsetMode(operation *AccountAdjustmentPositionOperation)
func AccountAdjustmentReset ¶
func AccountAdjustmentReset(adjustment *AccountAdjustment)
func AccountAdjustmentSetAmount ¶
func AccountAdjustmentSetAmount(adjustment *AccountAdjustment, amount AccountAdjustmentAmount)
func AccountAdjustmentSetBalanceOperationAndUnsetPositionOperation ¶
func AccountAdjustmentSetBalanceOperationAndUnsetPositionOperation( adjustment *AccountAdjustment, operation AccountAdjustmentBalanceOperation, )
func AccountAdjustmentSetBounds ¶
func AccountAdjustmentSetBounds(adjustment *AccountAdjustment, bounds AccountAdjustmentBounds)
func AccountAdjustmentSetPositionOperationAndUnsetBalanceOperation ¶
func AccountAdjustmentSetPositionOperationAndUnsetBalanceOperation( adjustment *AccountAdjustment, operation AccountAdjustmentPositionOperation, )
func AccountAdjustmentSetUserData ¶
func AccountAdjustmentSetUserData(adjustment *AccountAdjustment, userData unsafe.Pointer)
func AccountAdjustmentUnsetAmount ¶
func AccountAdjustmentUnsetAmount(adjustment *AccountAdjustment)
func AccountAdjustmentUnsetBalanceOperation ¶
func AccountAdjustmentUnsetBalanceOperation(adjustment *AccountAdjustment)
func AccountAdjustmentUnsetBounds ¶
func AccountAdjustmentUnsetBounds(adjustment *AccountAdjustment)
func AccountAdjustmentUnsetPositionOperation ¶
func AccountAdjustmentUnsetPositionOperation(adjustment *AccountAdjustment)
func CreateParamAssetFromStr ¶
func DestroyAccountAdjustmentBatchError ¶
func DestroyAccountAdjustmentBatchError(handle AccountAdjustmentBatchError)
func DestroyAccountAdjustmentPolicy ¶
func DestroyAccountAdjustmentPolicy(policy AccountAdjustmentPolicy)
func DestroyEngine ¶
func DestroyEngine(engine Engine)
func DestroyEngineBuilder ¶
func DestroyEngineBuilder(builder EngineBuilder)
func DestroyPretradeCheckPreTradeStartPolicy ¶
func DestroyPretradeCheckPreTradeStartPolicy(policy PretradeCheckPreTradeStartPolicy)
func DestroyPretradePreTradePolicy ¶
func DestroyPretradePreTradePolicy(policy PretradePreTradePolicy)
func DestroyPretradePreTradeRequest ¶
func DestroyPretradePreTradeRequest(request PretradePreTradeRequest)
func DestroyPretradePreTradeReservation ¶
func DestroyPretradePreTradeReservation(reservation PretradePreTradeReservation)
func DestroyRejectList ¶
func DestroyRejectList(rejects RejectList)
func DestroySharedString ¶
func DestroySharedString(handle SharedString)
func EngineBuilderAddAccountAdjustmentPolicy ¶
func EngineBuilderAddAccountAdjustmentPolicy( builder EngineBuilder, policy AccountAdjustmentPolicy, ) error
func EngineBuilderAddCheckPreTradeStartPolicy ¶
func EngineBuilderAddCheckPreTradeStartPolicy( builder EngineBuilder, policy PretradeCheckPreTradeStartPolicy, ) error
func EngineBuilderAddPreTradePolicy ¶
func EngineBuilderAddPreTradePolicy(builder EngineBuilder, policy PretradePreTradePolicy) error
func EngineExecutePreTrade ¶
func EngineExecutePreTrade( engine Engine, order Order, ) (PretradePreTradeReservation, RejectList, error)
func EngineStartPreTrade ¶
func EngineStartPreTrade(engine Engine, order Order) (PretradePreTradeRequest, RejectList, error)
func ExecutionReportFillOptionalIsSet ¶
func ExecutionReportFillOptionalIsSet(value ExecutionReportFillOptional) bool
func ExecutionReportFillOptionalReset ¶
func ExecutionReportFillOptionalReset(value *ExecutionReportFillOptional)
func ExecutionReportFillOptionalSet ¶
func ExecutionReportFillOptionalSet(value *ExecutionReportFillOptional, fill ExecutionReportFill)
func ExecutionReportFillReset ¶
func ExecutionReportFillReset(fill *ExecutionReportFill)
func ExecutionReportFillSetFinal ¶
func ExecutionReportFillSetFinal(fill *ExecutionReportFill, isFinal bool)
ExecutionReportFillSetFinal marks the fill as closing the report stream.
func ExecutionReportFillSetLastTrade ¶
func ExecutionReportFillSetLastTrade(fill *ExecutionReportFill, trade ExecutionReportTrade)
func ExecutionReportFillSetLeavesQuantity ¶
func ExecutionReportFillSetLeavesQuantity(fill *ExecutionReportFill, quantity ParamQuantity)
func ExecutionReportFillSetLockPrice ¶
func ExecutionReportFillSetLockPrice(fill *ExecutionReportFill, price ParamPrice)
func ExecutionReportFillUnsetFinal ¶
func ExecutionReportFillUnsetFinal(fill *ExecutionReportFill)
ExecutionReportFillUnsetFinal clears the final flag.
func ExecutionReportFillUnsetLastTrade ¶
func ExecutionReportFillUnsetLastTrade(fill *ExecutionReportFill)
func ExecutionReportFillUnsetLeavesQuantity ¶
func ExecutionReportFillUnsetLeavesQuantity(fill *ExecutionReportFill)
func ExecutionReportFillUnsetLockPrice ¶
func ExecutionReportFillUnsetLockPrice(fill *ExecutionReportFill)
func ExecutionReportGetUserData ¶
func ExecutionReportGetUserData(report ExecutionReport) unsafe.Pointer
func ExecutionReportIsFinalOptionalGet ¶
func ExecutionReportIsFinalOptionalGet(value ExecutionReportIsFinalOptional) bool
ExecutionReportIsFinalOptionalGet returns the stored final flag value.
func ExecutionReportIsFinalOptionalIsSet ¶
func ExecutionReportIsFinalOptionalIsSet(value ExecutionReportIsFinalOptional) bool
ExecutionReportIsFinalOptionalIsSet reports whether the final flag is set.
func ExecutionReportOperationOptionalIsSet ¶
func ExecutionReportOperationOptionalIsSet(value ExecutionReportOperationOptional) bool
func ExecutionReportOperationOptionalReset ¶
func ExecutionReportOperationOptionalReset(value *ExecutionReportOperationOptional)
func ExecutionReportOperationOptionalSet ¶
func ExecutionReportOperationOptionalSet( value *ExecutionReportOperationOptional, operation ExecutionReportOperation, )
func ExecutionReportOperationReset ¶
func ExecutionReportOperationReset(operation *ExecutionReportOperation)
func ExecutionReportOperationSetAccountID ¶
func ExecutionReportOperationSetAccountID( operation *ExecutionReportOperation, accountID ParamAccountID, )
func ExecutionReportOperationSetInstrument ¶
func ExecutionReportOperationSetInstrument( operation *ExecutionReportOperation, instrument Instrument, )
func ExecutionReportOperationSetSide ¶
func ExecutionReportOperationSetSide(operation *ExecutionReportOperation, side ParamSide)
func ExecutionReportOperationUnsetAccountID ¶
func ExecutionReportOperationUnsetAccountID(operation *ExecutionReportOperation)
func ExecutionReportOperationUnsetInstrument ¶
func ExecutionReportOperationUnsetInstrument(operation *ExecutionReportOperation)
func ExecutionReportOperationUnsetSide ¶
func ExecutionReportOperationUnsetSide(operation *ExecutionReportOperation)
func ExecutionReportPositionImpactOptionalIsSet ¶
func ExecutionReportPositionImpactOptionalIsSet(value ExecutionReportPositionImpactOptional) bool
func ExecutionReportPositionImpactOptionalReset ¶
func ExecutionReportPositionImpactOptionalReset(value *ExecutionReportPositionImpactOptional)
func ExecutionReportPositionImpactOptionalSet ¶
func ExecutionReportPositionImpactOptionalSet( value *ExecutionReportPositionImpactOptional, positionImpact ExecutionReportPositionImpact, )
func ExecutionReportPositionImpactReset ¶
func ExecutionReportPositionImpactReset(positionImpact *ExecutionReportPositionImpact)
func ExecutionReportPositionImpactSetPositionEffect ¶
func ExecutionReportPositionImpactSetPositionEffect( positionImpact *ExecutionReportPositionImpact, positionEffect ParamPositionEffect, )
func ExecutionReportPositionImpactSetPositionSide ¶
func ExecutionReportPositionImpactSetPositionSide( positionImpact *ExecutionReportPositionImpact, positionSide ParamPositionSide, )
func ExecutionReportPositionImpactUnsetPositionEffect ¶
func ExecutionReportPositionImpactUnsetPositionEffect( positionImpact *ExecutionReportPositionImpact, )
func ExecutionReportPositionImpactUnsetPositionSide ¶
func ExecutionReportPositionImpactUnsetPositionSide( positionImpact *ExecutionReportPositionImpact, )
func ExecutionReportReset ¶
func ExecutionReportReset(report *ExecutionReport)
func ExecutionReportSetFill ¶
func ExecutionReportSetFill(report *ExecutionReport, fill ExecutionReportFill)
func ExecutionReportSetFinancialImpact ¶
func ExecutionReportSetFinancialImpact(report *ExecutionReport, financialImpact FinancialImpact)
func ExecutionReportSetOperation ¶
func ExecutionReportSetOperation(report *ExecutionReport, operation ExecutionReportOperation)
func ExecutionReportSetPositionImpact ¶
func ExecutionReportSetPositionImpact( report *ExecutionReport, positionImpact ExecutionReportPositionImpact, )
func ExecutionReportSetUserData ¶
func ExecutionReportSetUserData(report *ExecutionReport, userData unsafe.Pointer)
func ExecutionReportTradeOptionalIsSet ¶
func ExecutionReportTradeOptionalIsSet(value ExecutionReportTradeOptional) bool
func ExecutionReportTradeOptionalReset ¶
func ExecutionReportTradeOptionalReset(value *ExecutionReportTradeOptional)
func ExecutionReportTradeOptionalSet ¶
func ExecutionReportTradeOptionalSet( value *ExecutionReportTradeOptional, trade ExecutionReportTrade, )
func ExecutionReportTradeReset ¶
func ExecutionReportTradeReset(trade *ExecutionReportTrade)
func ExecutionReportTradeSetPrice ¶
func ExecutionReportTradeSetPrice(trade *ExecutionReportTrade, price ParamPrice)
func ExecutionReportTradeSetQuantity ¶
func ExecutionReportTradeSetQuantity(trade *ExecutionReportTrade, quantity ParamQuantity)
func ExecutionReportUnsetFill ¶
func ExecutionReportUnsetFill(report *ExecutionReport)
func ExecutionReportUnsetFinancialImpact ¶
func ExecutionReportUnsetFinancialImpact(report *ExecutionReport)
func ExecutionReportUnsetOperation ¶
func ExecutionReportUnsetOperation(report *ExecutionReport)
func ExecutionReportUnsetPositionImpact ¶
func ExecutionReportUnsetPositionImpact(report *ExecutionReport)
func FinancialImpactOptionalIsSet ¶
func FinancialImpactOptionalIsSet(value FinancialImpactOptional) bool
func FinancialImpactOptionalReset ¶
func FinancialImpactOptionalReset(value *FinancialImpactOptional)
func FinancialImpactOptionalSet ¶
func FinancialImpactOptionalSet(value *FinancialImpactOptional, financialImpact FinancialImpact)
func FinancialImpactReset ¶
func FinancialImpactReset(financialImpact *FinancialImpact)
func FinancialImpactSetFee ¶
func FinancialImpactSetFee(financialImpact *FinancialImpact, fee ParamFee)
func FinancialImpactSetPnl ¶
func FinancialImpactSetPnl(financialImpact *FinancialImpact, pnl ParamPnl)
func FinancialImpactUnsetFee ¶
func FinancialImpactUnsetFee(financialImpact *FinancialImpact)
func FinancialImpactUnsetPnl ¶
func FinancialImpactUnsetPnl(financialImpact *FinancialImpact)
func MutationsPush ¶
func NewDecimalFromNative ¶
func NewDecimalFromNative(source ParamDecimal) decimal.Decimal
NewDecimalFromNative constructs a decimal from a native decimal.
func OrderGetUserData ¶
func OrderMarginOptionalIsSet ¶
func OrderMarginOptionalIsSet(value OrderMarginOptional) bool
func OrderMarginOptionalReset ¶
func OrderMarginOptionalReset(value *OrderMarginOptional)
func OrderMarginOptionalSet ¶
func OrderMarginOptionalSet(value *OrderMarginOptional, margin OrderMargin)
func OrderMarginReset ¶
func OrderMarginReset(m *OrderMargin)
func OrderMarginSetAutoBorrow ¶
func OrderMarginSetAutoBorrow(m *OrderMargin, autoBorrow TriBool)
func OrderMarginSetCollateralAsset ¶
func OrderMarginSetCollateralAsset(m *OrderMargin, asset string)
func OrderMarginSetLeverage ¶
func OrderMarginSetLeverage(m *OrderMargin, leverage ParamLeverage)
func OrderMarginUnsetAutoBorrow ¶
func OrderMarginUnsetAutoBorrow(m *OrderMargin)
func OrderMarginUnsetCollateralAsset ¶
func OrderMarginUnsetCollateralAsset(m *OrderMargin)
func OrderMarginUnsetLeverage ¶
func OrderMarginUnsetLeverage(m *OrderMargin)
func OrderOperationOptionalIsSet ¶
func OrderOperationOptionalIsSet(value OrderOperationOptional) bool
func OrderOperationOptionalReset ¶
func OrderOperationOptionalReset(value *OrderOperationOptional)
func OrderOperationOptionalSet ¶
func OrderOperationOptionalSet(value *OrderOperationOptional, operation OrderOperation)
func OrderOperationReset ¶
func OrderOperationReset(o *OrderOperation)
func OrderOperationSetAccountID ¶
func OrderOperationSetAccountID(o *OrderOperation, accountID ParamAccountID)
func OrderOperationSetInstrument ¶
func OrderOperationSetInstrument(o *OrderOperation, instrument Instrument)
func OrderOperationSetPrice ¶
func OrderOperationSetPrice(o *OrderOperation, price ParamPrice)
func OrderOperationSetSide ¶
func OrderOperationSetSide(o *OrderOperation, side ParamSide)
func OrderOperationSetTradeAmount ¶
func OrderOperationSetTradeAmount(o *OrderOperation, value ParamTradeAmount)
func OrderOperationUnsetAccountID ¶
func OrderOperationUnsetAccountID(o *OrderOperation)
func OrderOperationUnsetInstrument ¶
func OrderOperationUnsetInstrument(o *OrderOperation)
func OrderOperationUnsetPrice ¶
func OrderOperationUnsetPrice(o *OrderOperation)
func OrderOperationUnsetSide ¶
func OrderOperationUnsetSide(o *OrderOperation)
func OrderOperationUnsetTradeAmount ¶
func OrderOperationUnsetTradeAmount(o *OrderOperation)
func OrderPositionOptionalIsSet ¶
func OrderPositionOptionalIsSet(value OrderPositionOptional) bool
func OrderPositionOptionalReset ¶
func OrderPositionOptionalReset(value *OrderPositionOptional)
func OrderPositionOptionalSet ¶
func OrderPositionOptionalSet(value *OrderPositionOptional, position OrderPosition)
func OrderPositionReset ¶
func OrderPositionReset(p *OrderPosition)
func OrderPositionSetClosePosition ¶
func OrderPositionSetClosePosition(p *OrderPosition, closePosition TriBool)
func OrderPositionSetReduceOnly ¶
func OrderPositionSetReduceOnly(p *OrderPosition, reduceOnly TriBool)
func OrderPositionSetSide ¶
func OrderPositionSetSide(p *OrderPosition, side ParamPositionSide)
func OrderPositionUnsetClosePosition ¶
func OrderPositionUnsetClosePosition(p *OrderPosition)
func OrderPositionUnsetReduceOnly ¶
func OrderPositionUnsetReduceOnly(p *OrderPosition)
func OrderPositionUnsetSide ¶
func OrderPositionUnsetSide(p *OrderPosition)
func OrderReset ¶
func OrderReset(o *Order)
func OrderSetOrderMargin ¶
func OrderSetOrderMargin(o *Order, margin OrderMargin)
func OrderSetOrderOperation ¶
func OrderSetOrderOperation(o *Order, operation OrderOperation)
func OrderSetOrderPosition ¶
func OrderSetOrderPosition(o *Order, position OrderPosition)
func OrderSetUserData ¶
func OrderUnsetOrderMargin ¶
func OrderUnsetOrderMargin(o *Order)
func OrderUnsetOrderOperation ¶
func OrderUnsetOrderOperation(o *Order)
func OrderUnsetOrderPosition ¶
func OrderUnsetOrderPosition(o *Order)
func ParamAccountIDOptionalIsSet ¶
func ParamAccountIDOptionalIsSet(value ParamAccountIDOptional) bool
func ParamCashFlowCompare ¶
func ParamCashFlowCompare(lhs ParamCashFlow, rhs ParamCashFlow) (int, error)
func ParamCashFlowIsZero ¶
func ParamCashFlowIsZero(value ParamCashFlow) (bool, error)
func ParamCashFlowOptionalIsSet ¶
func ParamCashFlowOptionalIsSet(value ParamCashFlowOptional) bool
func ParamCashFlowToF64 ¶
func ParamCashFlowToF64(value ParamCashFlow) (float64, error)
func ParamCashFlowToString ¶
func ParamCashFlowToString(value ParamCashFlow) (string, error)
func ParamFeeIsZero ¶
func ParamFeeOptionalIsSet ¶
func ParamFeeOptionalIsSet(value ParamFeeOptional) bool
func ParamFeeToF64 ¶
func ParamFeeToString ¶
func ParamNotionalCompare ¶
func ParamNotionalCompare(lhs ParamNotional, rhs ParamNotional) (int, error)
func ParamNotionalIsZero ¶
func ParamNotionalIsZero(value ParamNotional) (bool, error)
func ParamNotionalOptionalIsSet ¶
func ParamNotionalOptionalIsSet(value ParamNotionalOptional) bool
func ParamNotionalToF64 ¶
func ParamNotionalToF64(value ParamNotional) (float64, error)
func ParamNotionalToString ¶
func ParamNotionalToString(value ParamNotional) (string, error)
func ParamPnlIsZero ¶
func ParamPnlOptionalIsSet ¶
func ParamPnlOptionalIsSet(value ParamPnlOptional) bool
func ParamPnlToF64 ¶
func ParamPnlToString ¶
func ParamPositionSizeCompare ¶
func ParamPositionSizeCompare( lhs ParamPositionSize, rhs ParamPositionSize, ) (int, error)
func ParamPositionSizeIsZero ¶
func ParamPositionSizeIsZero(value ParamPositionSize) (bool, error)
func ParamPositionSizeOptionalIsSet ¶
func ParamPositionSizeOptionalIsSet(value ParamPositionSizeOptional) bool
func ParamPositionSizeToCloseQuantity ¶
func ParamPositionSizeToCloseQuantity( value ParamPositionSize, ) (ParamQuantity, ParamSide, error)
func ParamPositionSizeToF64 ¶
func ParamPositionSizeToF64(value ParamPositionSize) (float64, error)
func ParamPositionSizeToOpenQuantity ¶
func ParamPositionSizeToOpenQuantity( value ParamPositionSize, ) (ParamQuantity, ParamSide, error)
func ParamPositionSizeToString ¶
func ParamPositionSizeToString(value ParamPositionSize) (string, error)
func ParamPriceCompare ¶
func ParamPriceCompare(lhs ParamPrice, rhs ParamPrice) (int, error)
func ParamPriceIsZero ¶
func ParamPriceIsZero(value ParamPrice) (bool, error)
func ParamPriceOptionalIsSet ¶
func ParamPriceOptionalIsSet(value ParamPriceOptional) bool
func ParamPriceToF64 ¶
func ParamPriceToF64(value ParamPrice) (float64, error)
func ParamPriceToString ¶
func ParamPriceToString(value ParamPrice) (string, error)
func ParamQuantityCompare ¶
func ParamQuantityCompare(lhs ParamQuantity, rhs ParamQuantity) (int, error)
func ParamQuantityIsZero ¶
func ParamQuantityIsZero(value ParamQuantity) (bool, error)
func ParamQuantityOptionalIsSet ¶
func ParamQuantityOptionalIsSet(value ParamQuantityOptional) bool
func ParamQuantityToF64 ¶
func ParamQuantityToF64(value ParamQuantity) (float64, error)
func ParamQuantityToString ¶
func ParamQuantityToString(value ParamQuantity) (string, error)
func ParamVolumeCompare ¶
func ParamVolumeCompare(lhs ParamVolume, rhs ParamVolume) (int, error)
func ParamVolumeIsZero ¶
func ParamVolumeIsZero(value ParamVolume) (bool, error)
func ParamVolumeOptionalIsSet ¶
func ParamVolumeOptionalIsSet(value ParamVolumeOptional) bool
func ParamVolumeToF64 ¶
func ParamVolumeToF64(value ParamVolume) (float64, error)
func ParamVolumeToString ¶
func ParamVolumeToString(value ParamVolume) (string, error)
func PretradePreTradeLockReset ¶
func PretradePreTradeLockReset(lock *PretradePreTradeLock)
func PretradePreTradeLockSetPrice ¶
func PretradePreTradeLockSetPrice(lock *PretradePreTradeLock, price ParamPrice)
func PretradePreTradeLockUnsetPrice ¶
func PretradePreTradeLockUnsetPrice(lock *PretradePreTradeLock)
func PretradePreTradeRequestExecute ¶
func PretradePreTradeRequestExecute( request PretradePreTradeRequest, ) (PretradePreTradeReservation, RejectList, error)
func PretradePreTradeReservationCommit ¶
func PretradePreTradeReservationCommit(reservation PretradePreTradeReservation)
func PretradePreTradeReservationRollback ¶
func PretradePreTradeReservationRollback(reservation PretradePreTradeReservation)
func RejectGetUserData ¶
func RejectListLen ¶
func RejectListLen(list RejectList) int
func RejectListPush ¶
func RejectListPush(list RejectList, reject Reject)
Types ¶
type AccountAdjustment ¶
type AccountAdjustment = C.PitAccountAdjustment
func NewAccountAdjustment ¶
func NewAccountAdjustment() AccountAdjustment
type AccountAdjustmentAmount ¶
type AccountAdjustmentAmount = C.PitAccountAdjustmentAmount
func AccountAdjustmentAmountOptionalGet ¶
func AccountAdjustmentAmountOptionalGet(value AccountAdjustmentAmountOptional) AccountAdjustmentAmount
func AccountAdjustmentAmountOptionalGetView ¶
func AccountAdjustmentAmountOptionalGetView( value *AccountAdjustmentAmountOptional, ) *AccountAdjustmentAmount
func NewAccountAdjustmentAmount ¶
func NewAccountAdjustmentAmount() AccountAdjustmentAmount
type AccountAdjustmentAmountOptional ¶
type AccountAdjustmentAmountOptional = C.PitAccountAdjustmentAmountOptional
func AccountAdjustmentGetAmount ¶
func AccountAdjustmentGetAmount(adjustment AccountAdjustment) AccountAdjustmentAmountOptional
func AccountAdjustmentGetAmountView ¶
func AccountAdjustmentGetAmountView( adjustment *AccountAdjustment, ) *AccountAdjustmentAmountOptional
func NewAccountAdjustmentAmountOptional ¶
func NewAccountAdjustmentAmountOptional() AccountAdjustmentAmountOptional
type AccountAdjustmentApplyStatus ¶
type AccountAdjustmentApplyStatus = C.PitAccountAdjustmentApplyStatus
type AccountAdjustmentBalanceOperation ¶
type AccountAdjustmentBalanceOperation = C.PitAccountAdjustmentBalanceOperation
func AccountAdjustmentBalanceOperationOptionalGet ¶
func AccountAdjustmentBalanceOperationOptionalGet( value AccountAdjustmentBalanceOperationOptional, ) AccountAdjustmentBalanceOperation
func AccountAdjustmentBalanceOperationOptionalGetView ¶
func AccountAdjustmentBalanceOperationOptionalGetView( value *AccountAdjustmentBalanceOperationOptional, ) *AccountAdjustmentBalanceOperation
func NewAccountAdjustmentBalanceOperation ¶
func NewAccountAdjustmentBalanceOperation() AccountAdjustmentBalanceOperation
type AccountAdjustmentBalanceOperationOptional ¶
type AccountAdjustmentBalanceOperationOptional = C.PitAccountAdjustmentBalanceOperationOptional
func AccountAdjustmentGetBalanceOperation ¶
func AccountAdjustmentGetBalanceOperation( adjustment AccountAdjustment, ) AccountAdjustmentBalanceOperationOptional
func AccountAdjustmentGetBalanceOperationView ¶
func AccountAdjustmentGetBalanceOperationView( adjustment *AccountAdjustment, ) *AccountAdjustmentBalanceOperationOptional
func NewAccountAdjustmentBalanceOperationOptional ¶
func NewAccountAdjustmentBalanceOperationOptional() AccountAdjustmentBalanceOperationOptional
type AccountAdjustmentBatchError ¶
type AccountAdjustmentBatchError = *C.PitAccountAdjustmentBatchError
func EngineApplyAccountAdjustment ¶
func EngineApplyAccountAdjustment( engine Engine, accountID ParamAccountID, adjustments []AccountAdjustment, ) (AccountAdjustmentBatchError, error)
type AccountAdjustmentBounds ¶
type AccountAdjustmentBounds = C.PitAccountAdjustmentBounds
func AccountAdjustmentBoundsOptionalGet ¶
func AccountAdjustmentBoundsOptionalGet(value AccountAdjustmentBoundsOptional) AccountAdjustmentBounds
func AccountAdjustmentBoundsOptionalGetView ¶
func AccountAdjustmentBoundsOptionalGetView( value *AccountAdjustmentBoundsOptional, ) *AccountAdjustmentBounds
func NewAccountAdjustmentBounds ¶
func NewAccountAdjustmentBounds() AccountAdjustmentBounds
type AccountAdjustmentBoundsOptional ¶
type AccountAdjustmentBoundsOptional = C.PitAccountAdjustmentBoundsOptional
func AccountAdjustmentGetBounds ¶
func AccountAdjustmentGetBounds(adjustment AccountAdjustment) AccountAdjustmentBoundsOptional
func AccountAdjustmentGetBoundsView ¶
func AccountAdjustmentGetBoundsView( adjustment *AccountAdjustment, ) *AccountAdjustmentBoundsOptional
func NewAccountAdjustmentBoundsOptional ¶
func NewAccountAdjustmentBoundsOptional() AccountAdjustmentBoundsOptional
type AccountAdjustmentContext ¶
type AccountAdjustmentContext = *C.PitAccountAdjustmentContext
type AccountAdjustmentPolicy ¶
type AccountAdjustmentPolicy = *C.PitAccountAdjustmentPolicy
type AccountAdjustmentPositionOperation ¶
type AccountAdjustmentPositionOperation = C.PitAccountAdjustmentPositionOperation
func AccountAdjustmentPositionOperationOptionalGet ¶
func AccountAdjustmentPositionOperationOptionalGet( value AccountAdjustmentPositionOperationOptional, ) AccountAdjustmentPositionOperation
func AccountAdjustmentPositionOperationOptionalGetView ¶
func AccountAdjustmentPositionOperationOptionalGetView( value *AccountAdjustmentPositionOperationOptional, ) *AccountAdjustmentPositionOperation
func NewAccountAdjustmentPositionOperation ¶
func NewAccountAdjustmentPositionOperation() AccountAdjustmentPositionOperation
type AccountAdjustmentPositionOperationOptional ¶
type AccountAdjustmentPositionOperationOptional = C.PitAccountAdjustmentPositionOperationOptional
func AccountAdjustmentGetPositionOperation ¶
func AccountAdjustmentGetPositionOperation( adjustment AccountAdjustment, ) AccountAdjustmentPositionOperationOptional
func AccountAdjustmentGetPositionOperationView ¶
func AccountAdjustmentGetPositionOperationView( adjustment *AccountAdjustment, ) *AccountAdjustmentPositionOperationOptional
func NewAccountAdjustmentPositionOperationOptional ¶
func NewAccountAdjustmentPositionOperationOptional() AccountAdjustmentPositionOperationOptional
type Engine ¶
func EngineBuilderBuild ¶
func EngineBuilderBuild(builder EngineBuilder) (Engine, error)
type EngineBuilder ¶
type EngineBuilder = *C.PitEngineBuilder
func CreateEngineBuilder ¶
func CreateEngineBuilder() EngineBuilder
type ExecutionReport ¶
type ExecutionReport = C.PitExecutionReport
func NewExecutionReport ¶
func NewExecutionReport() ExecutionReport
type ExecutionReportFill ¶
type ExecutionReportFill = C.PitExecutionReportFill
func ExecutionReportFillOptionalGet ¶
func ExecutionReportFillOptionalGet(value ExecutionReportFillOptional) ExecutionReportFill
func ExecutionReportFillOptionalGetView ¶
func ExecutionReportFillOptionalGetView(value *ExecutionReportFillOptional) *ExecutionReportFill
func NewExecutionReportFill ¶
func NewExecutionReportFill() ExecutionReportFill
type ExecutionReportFillOptional ¶
type ExecutionReportFillOptional = C.PitExecutionReportFillOptional
func ExecutionReportGetFill ¶
func ExecutionReportGetFill(report ExecutionReport) ExecutionReportFillOptional
func ExecutionReportGetFillView ¶
func ExecutionReportGetFillView(report *ExecutionReport) *ExecutionReportFillOptional
func NewExecutionReportFillOptional ¶
func NewExecutionReportFillOptional() ExecutionReportFillOptional
type ExecutionReportIsFinalOptional ¶
type ExecutionReportIsFinalOptional = C.PitExecutionReportIsFinalOptional
func ExecutionReportFillGetFinal ¶
func ExecutionReportFillGetFinal(fill ExecutionReportFill) ExecutionReportIsFinalOptional
ExecutionReportFillGetFinal returns the final flag when it is set.
type ExecutionReportOperation ¶
type ExecutionReportOperation = C.PitExecutionReportOperation
func ExecutionReportOperationOptionalGet ¶
func ExecutionReportOperationOptionalGet( value ExecutionReportOperationOptional, ) ExecutionReportOperation
func ExecutionReportOperationOptionalGetView ¶
func ExecutionReportOperationOptionalGetView( value *ExecutionReportOperationOptional, ) *ExecutionReportOperation
func NewExecutionReportOperation ¶
func NewExecutionReportOperation() ExecutionReportOperation
type ExecutionReportOperationOptional ¶
type ExecutionReportOperationOptional = C.PitExecutionReportOperationOptional
func ExecutionReportGetOperation ¶
func ExecutionReportGetOperation(report ExecutionReport) ExecutionReportOperationOptional
func ExecutionReportGetOperationView ¶
func ExecutionReportGetOperationView(report *ExecutionReport) *ExecutionReportOperationOptional
func NewExecutionReportOperationOptional ¶
func NewExecutionReportOperationOptional() ExecutionReportOperationOptional
type ExecutionReportPositionImpact ¶
type ExecutionReportPositionImpact = C.PitExecutionReportPositionImpact
func ExecutionReportPositionImpactOptionalGet ¶
func ExecutionReportPositionImpactOptionalGet( value ExecutionReportPositionImpactOptional, ) ExecutionReportPositionImpact
func ExecutionReportPositionImpactOptionalGetView ¶
func ExecutionReportPositionImpactOptionalGetView( value *ExecutionReportPositionImpactOptional, ) *ExecutionReportPositionImpact
func NewExecutionReportPositionImpact ¶
func NewExecutionReportPositionImpact() ExecutionReportPositionImpact
type ExecutionReportPositionImpactOptional ¶
type ExecutionReportPositionImpactOptional = C.PitExecutionReportPositionImpactOptional
func ExecutionReportGetPositionImpact ¶
func ExecutionReportGetPositionImpact( report ExecutionReport, ) ExecutionReportPositionImpactOptional
func ExecutionReportGetPositionImpactView ¶
func ExecutionReportGetPositionImpactView( report *ExecutionReport, ) *ExecutionReportPositionImpactOptional
func NewExecutionReportPositionImpactOptional ¶
func NewExecutionReportPositionImpactOptional() ExecutionReportPositionImpactOptional
type ExecutionReportTrade ¶
type ExecutionReportTrade = C.PitExecutionReportTrade
func ExecutionReportTradeOptionalGet ¶
func ExecutionReportTradeOptionalGet(value ExecutionReportTradeOptional) ExecutionReportTrade
func ExecutionReportTradeOptionalGetView ¶
func ExecutionReportTradeOptionalGetView( value *ExecutionReportTradeOptional, ) *ExecutionReportTrade
func NewExecutionReportTrade ¶
func NewExecutionReportTrade() ExecutionReportTrade
type ExecutionReportTradeOptional ¶
type ExecutionReportTradeOptional = C.PitExecutionReportTradeOptional
func ExecutionReportFillGetLastTrade ¶
func ExecutionReportFillGetLastTrade(fill ExecutionReportFill) ExecutionReportTradeOptional
func ExecutionReportFillGetLastTradeView ¶
func ExecutionReportFillGetLastTradeView(fill *ExecutionReportFill) *ExecutionReportTradeOptional
func NewExecutionReportTradeOptional ¶
func NewExecutionReportTradeOptional() ExecutionReportTradeOptional
type FinancialImpact ¶
type FinancialImpact = C.PitFinancialImpact
func FinancialImpactOptionalGet ¶
func FinancialImpactOptionalGet(value FinancialImpactOptional) FinancialImpact
func FinancialImpactOptionalGetView ¶
func FinancialImpactOptionalGetView(value *FinancialImpactOptional) *FinancialImpact
func NewFinancialImpact ¶
func NewFinancialImpact() FinancialImpact
type FinancialImpactOptional ¶
type FinancialImpactOptional = C.PitFinancialImpactOptional
func ExecutionReportGetFinancialImpact ¶
func ExecutionReportGetFinancialImpact(report ExecutionReport) FinancialImpactOptional
func ExecutionReportGetFinancialImpactView ¶
func ExecutionReportGetFinancialImpactView(report *ExecutionReport) *FinancialImpactOptional
func NewFinancialImpactOptional ¶
func NewFinancialImpactOptional() FinancialImpactOptional
type Instrument ¶
type Instrument = C.PitInstrument
func AccountAdjustmentPositionOperationGetInstrument ¶
func AccountAdjustmentPositionOperationGetInstrument( operation AccountAdjustmentPositionOperation, ) Instrument
func ExecutionReportOperationGetInstrument ¶
func ExecutionReportOperationGetInstrument(operation ExecutionReportOperation) Instrument
func NewInstrument ¶
func NewInstrument(underlyingAsset string, settlementAsset string) Instrument
func OrderOperationGetInstrument ¶
func OrderOperationGetInstrument(o OrderOperation) Instrument
type Mutations ¶
type Mutations = *C.PitMutations
type OrderMargin ¶
type OrderMargin = C.PitOrderMargin
func NewOrderMargin ¶
func NewOrderMargin() OrderMargin
func OrderMarginOptionalGet ¶
func OrderMarginOptionalGet(value OrderMarginOptional) OrderMargin
func OrderMarginOptionalGetView ¶
func OrderMarginOptionalGetView(value *OrderMarginOptional) *OrderMargin
type OrderMarginOptional ¶
type OrderMarginOptional = C.PitOrderMarginOptional
func NewOrderMarginOptional ¶
func NewOrderMarginOptional() OrderMarginOptional
func OrderGetOrderMargin ¶
func OrderGetOrderMargin(o Order) OrderMarginOptional
func OrderGetOrderMarginView ¶
func OrderGetOrderMarginView(o *Order) *OrderMarginOptional
type OrderOperation ¶
type OrderOperation = C.PitOrderOperation
func NewOrderOperation ¶
func NewOrderOperation() OrderOperation
func OrderOperationOptionalGet ¶
func OrderOperationOptionalGet(value OrderOperationOptional) OrderOperation
func OrderOperationOptionalGetView ¶
func OrderOperationOptionalGetView(value *OrderOperationOptional) *OrderOperation
type OrderOperationOptional ¶
type OrderOperationOptional = C.PitOrderOperationOptional
func NewOrderOperationOptional ¶
func NewOrderOperationOptional() OrderOperationOptional
func OrderGetOrderOperation ¶
func OrderGetOrderOperation(o Order) OrderOperationOptional
func OrderGetOrderOperationView ¶
func OrderGetOrderOperationView(o *Order) *OrderOperationOptional
type OrderPosition ¶
type OrderPosition = C.PitOrderPosition
func NewOrderPosition ¶
func NewOrderPosition() OrderPosition
func OrderPositionOptionalGet ¶
func OrderPositionOptionalGet(value OrderPositionOptional) OrderPosition
func OrderPositionOptionalGetView ¶
func OrderPositionOptionalGetView(value *OrderPositionOptional) *OrderPosition
type OrderPositionOptional ¶
type OrderPositionOptional = C.PitOrderPositionOptional
func NewOrderPositionOptional ¶
func NewOrderPositionOptional() OrderPositionOptional
func OrderGetOrderPosition ¶
func OrderGetOrderPosition(o Order) OrderPositionOptional
func OrderGetOrderPositionView ¶
func OrderGetOrderPositionView(o *Order) *OrderPositionOptional
type ParamAccountID ¶
type ParamAccountID = C.PitParamAccountId
func CreateParamAccountIDFromStr ¶
func CreateParamAccountIDFromStr(value string) (ParamAccountID, error)
func CreateParamAccountIDFromU64 ¶
func CreateParamAccountIDFromU64(value uint64) ParamAccountID
func ParamAccountIDOptionalGet ¶
func ParamAccountIDOptionalGet(value ParamAccountIDOptional) ParamAccountID
type ParamAccountIDOptional ¶
type ParamAccountIDOptional = C.PitParamAccountIdOptional
func ExecutionReportOperationGetAccountID ¶
func ExecutionReportOperationGetAccountID( operation ExecutionReportOperation, ) ParamAccountIDOptional
func OrderOperationGetAccountID ¶
func OrderOperationGetAccountID(o OrderOperation) ParamAccountIDOptional
type ParamAdjustmentAmount ¶
type ParamAdjustmentAmount = C.PitParamAdjustmentAmount
func AccountAdjustmentAmountGetPending ¶
func AccountAdjustmentAmountGetPending(amount AccountAdjustmentAmount) ParamAdjustmentAmount
func AccountAdjustmentAmountGetReserved ¶
func AccountAdjustmentAmountGetReserved(amount AccountAdjustmentAmount) ParamAdjustmentAmount
func AccountAdjustmentAmountGetTotal ¶
func AccountAdjustmentAmountGetTotal(amount AccountAdjustmentAmount) ParamAdjustmentAmount
func CreateParamAdjustmentAmount ¶
func CreateParamAdjustmentAmount( kind ParamAdjustmentAmountKind, value ParamPositionSize, ) ParamAdjustmentAmount
type ParamAdjustmentAmountKind ¶
type ParamAdjustmentAmountKind = C.PitParamAdjustmentAmountKind
func ParamAdjustmentAmountGetKind ¶
func ParamAdjustmentAmountGetKind(amount ParamAdjustmentAmount) ParamAdjustmentAmountKind
type ParamCashFlow ¶
type ParamCashFlow = C.PitParamCashFlow
func CreateParamCashFlow ¶
func CreateParamCashFlow(value ParamDecimal) (ParamCashFlow, error)
func CreateParamCashFlowFromDecimalRounded ¶
func CreateParamCashFlowFromDecimalRounded( v ParamDecimal, scale uint32, strategy ParamRoundingStrategy, ) (ParamCashFlow, error)
func CreateParamCashFlowFromF64 ¶
func CreateParamCashFlowFromF64(v float64) (ParamCashFlow, error)
func CreateParamCashFlowFromF64Rounded ¶
func CreateParamCashFlowFromF64Rounded( v float64, scale uint32, strategy ParamRoundingStrategy, ) (ParamCashFlow, error)
func CreateParamCashFlowFromI64 ¶
func CreateParamCashFlowFromI64(v int64) (ParamCashFlow, error)
func CreateParamCashFlowFromStr ¶
func CreateParamCashFlowFromStr(v string) (ParamCashFlow, error)
func CreateParamCashFlowFromStrRounded ¶
func CreateParamCashFlowFromStrRounded( v string, scale uint32, strategy ParamRoundingStrategy, ) (ParamCashFlow, error)
func CreateParamCashFlowFromU64 ¶
func CreateParamCashFlowFromU64(v uint64) (ParamCashFlow, error)
func ParamCashFlowCheckedAdd ¶
func ParamCashFlowCheckedAdd(lhs ParamCashFlow, rhs ParamCashFlow) (ParamCashFlow, error)
func ParamCashFlowCheckedDivF64 ¶
func ParamCashFlowCheckedDivF64(value ParamCashFlow, divisor float64) (ParamCashFlow, error)
func ParamCashFlowCheckedDivI64 ¶
func ParamCashFlowCheckedDivI64(value ParamCashFlow, divisor int64) (ParamCashFlow, error)
func ParamCashFlowCheckedDivU64 ¶
func ParamCashFlowCheckedDivU64(value ParamCashFlow, divisor uint64) (ParamCashFlow, error)
func ParamCashFlowCheckedMulF64 ¶
func ParamCashFlowCheckedMulF64(value ParamCashFlow, scalar float64) (ParamCashFlow, error)
func ParamCashFlowCheckedMulI64 ¶
func ParamCashFlowCheckedMulI64(value ParamCashFlow, scalar int64) (ParamCashFlow, error)
func ParamCashFlowCheckedMulU64 ¶
func ParamCashFlowCheckedMulU64(value ParamCashFlow, scalar uint64) (ParamCashFlow, error)
func ParamCashFlowCheckedNeg ¶
func ParamCashFlowCheckedNeg(value ParamCashFlow) (ParamCashFlow, error)
func ParamCashFlowCheckedRemF64 ¶
func ParamCashFlowCheckedRemF64(value ParamCashFlow, divisor float64) (ParamCashFlow, error)
func ParamCashFlowCheckedRemI64 ¶
func ParamCashFlowCheckedRemI64(value ParamCashFlow, divisor int64) (ParamCashFlow, error)
func ParamCashFlowCheckedRemU64 ¶
func ParamCashFlowCheckedRemU64(value ParamCashFlow, divisor uint64) (ParamCashFlow, error)
func ParamCashFlowCheckedSub ¶
func ParamCashFlowCheckedSub(lhs ParamCashFlow, rhs ParamCashFlow) (ParamCashFlow, error)
func ParamCashFlowFromFee ¶
func ParamCashFlowFromFee(value ParamFee) (ParamCashFlow, error)
func ParamCashFlowFromPnl ¶
func ParamCashFlowFromPnl(value ParamPnl) (ParamCashFlow, error)
func ParamCashFlowFromVolumeInflow ¶
func ParamCashFlowFromVolumeInflow(value ParamVolume) (ParamCashFlow, error)
func ParamCashFlowFromVolumeOutflow ¶
func ParamCashFlowFromVolumeOutflow(value ParamVolume) (ParamCashFlow, error)
func ParamCashFlowOptionalGet ¶
func ParamCashFlowOptionalGet(value ParamCashFlowOptional) ParamCashFlow
func ParamFeeToCashFlow ¶
func ParamFeeToCashFlow(value ParamFee) (ParamCashFlow, error)
func ParamPnlToCashFlow ¶
func ParamPnlToCashFlow(value ParamPnl) (ParamCashFlow, error)
func ParamVolumeToCashFlowInflow ¶
func ParamVolumeToCashFlowInflow(value ParamVolume) (ParamCashFlow, error)
func ParamVolumeToCashFlowOutflow ¶
func ParamVolumeToCashFlowOutflow(value ParamVolume) (ParamCashFlow, error)
type ParamCashFlowOptional ¶
type ParamCashFlowOptional = C.PitParamCashFlowOptional
type ParamDecimal ¶
type ParamDecimal = C.PitParamDecimal
func NewNativeDecimalFromDecimal ¶
func NewNativeDecimalFromDecimal(source decimal.Decimal) ParamDecimal
NewNativeDecimalFromDecimal converts a shopspring decimal to a native decimal.
WARNING: This implementation uses CoefficientInt64(), which truncates the coefficient to 64 bits. If the decimal mantissa exceeds int64 range, higher bits are silently discarded, leading to data loss without any error or panic.
func ParamCashFlowGetDecimal ¶
func ParamCashFlowGetDecimal(value ParamCashFlow) ParamDecimal
func ParamFeeGetDecimal ¶
func ParamFeeGetDecimal(value ParamFee) ParamDecimal
func ParamNotionalGetDecimal ¶
func ParamNotionalGetDecimal(value ParamNotional) ParamDecimal
func ParamPnlGetDecimal ¶
func ParamPnlGetDecimal(value ParamPnl) ParamDecimal
func ParamPositionSizeGetDecimal ¶
func ParamPositionSizeGetDecimal(value ParamPositionSize) ParamDecimal
func ParamPriceGetDecimal ¶
func ParamPriceGetDecimal(value ParamPrice) ParamDecimal
func ParamQuantityGetDecimal ¶
func ParamQuantityGetDecimal(value ParamQuantity) ParamDecimal
func ParamTradeAmountGetValue ¶
func ParamTradeAmountGetValue(amount ParamTradeAmount) ParamDecimal
func ParamVolumeGetDecimal ¶
func ParamVolumeGetDecimal(value ParamVolume) ParamDecimal
type ParamError ¶
type ParamError = *C.PitParamError
type ParamErrorCode ¶
type ParamErrorCode = C.PitParamErrorCode
type ParamErrorHandle ¶
type ParamErrorHandle = *C.PitParamError
type ParamFee ¶
type ParamFee = C.PitParamFee
func CreateParamFee ¶
func CreateParamFee(value ParamDecimal) (ParamFee, error)
func CreateParamFeeFromDecimalRounded ¶
func CreateParamFeeFromDecimalRounded( v ParamDecimal, scale uint32, strategy ParamRoundingStrategy, ) (ParamFee, error)
func CreateParamFeeFromF64 ¶
func CreateParamFeeFromF64Rounded ¶
func CreateParamFeeFromF64Rounded( v float64, scale uint32, strategy ParamRoundingStrategy, ) (ParamFee, error)
func CreateParamFeeFromI64 ¶
func CreateParamFeeFromStr ¶
func CreateParamFeeFromStrRounded ¶
func CreateParamFeeFromStrRounded( v string, scale uint32, strategy ParamRoundingStrategy, ) (ParamFee, error)
func CreateParamFeeFromU64 ¶
func ParamFeeCheckedDivF64 ¶
func ParamFeeCheckedDivI64 ¶
func ParamFeeCheckedDivU64 ¶
func ParamFeeCheckedMulF64 ¶
func ParamFeeCheckedMulI64 ¶
func ParamFeeCheckedMulU64 ¶
func ParamFeeCheckedNeg ¶
func ParamFeeCheckedRemF64 ¶
func ParamFeeCheckedRemI64 ¶
func ParamFeeCheckedRemU64 ¶
func ParamFeeOptionalGet ¶
func ParamFeeOptionalGet(value ParamFeeOptional) ParamFee
type ParamFeeOptional ¶
type ParamFeeOptional = C.PitParamFeeOptional
func FinancialImpactGetFee ¶
func FinancialImpactGetFee(financialImpact FinancialImpact) ParamFeeOptional
type ParamLeverage ¶
type ParamLeverage = C.PitParamLeverage
func AccountAdjustmentPositionOperationGetLeverage ¶
func AccountAdjustmentPositionOperationGetLeverage( operation AccountAdjustmentPositionOperation, ) ParamLeverage
func OrderMarginGetLeverage ¶
func OrderMarginGetLeverage(m OrderMargin) ParamLeverage
type ParamNotional ¶
type ParamNotional = C.PitParamNotional
func CreateParamNotional ¶
func CreateParamNotional(value ParamDecimal) (ParamNotional, error)
func CreateParamNotionalFromDecimalRounded ¶
func CreateParamNotionalFromDecimalRounded( v ParamDecimal, scale uint32, strategy ParamRoundingStrategy, ) (ParamNotional, error)
func CreateParamNotionalFromF64 ¶
func CreateParamNotionalFromF64(v float64) (ParamNotional, error)
func CreateParamNotionalFromF64Rounded ¶
func CreateParamNotionalFromF64Rounded( v float64, scale uint32, strategy ParamRoundingStrategy, ) (ParamNotional, error)
func CreateParamNotionalFromI64 ¶
func CreateParamNotionalFromI64(v int64) (ParamNotional, error)
func CreateParamNotionalFromStr ¶
func CreateParamNotionalFromStr(v string) (ParamNotional, error)
func CreateParamNotionalFromStrRounded ¶
func CreateParamNotionalFromStrRounded( v string, scale uint32, strategy ParamRoundingStrategy, ) (ParamNotional, error)
func CreateParamNotionalFromU64 ¶
func CreateParamNotionalFromU64(v uint64) (ParamNotional, error)
func ParamLeverageCalculateMarginRequired ¶
func ParamLeverageCalculateMarginRequired( leverage ParamLeverage, notional ParamNotional, ) (ParamNotional, error)
func ParamNotionalCalculateMarginRequired ¶
func ParamNotionalCalculateMarginRequired( notional ParamNotional, leverage ParamLeverage, ) (ParamNotional, error)
func ParamNotionalCheckedAdd ¶
func ParamNotionalCheckedAdd(lhs ParamNotional, rhs ParamNotional) (ParamNotional, error)
func ParamNotionalCheckedDivF64 ¶
func ParamNotionalCheckedDivF64(value ParamNotional, divisor float64) (ParamNotional, error)
func ParamNotionalCheckedDivI64 ¶
func ParamNotionalCheckedDivI64(value ParamNotional, divisor int64) (ParamNotional, error)
func ParamNotionalCheckedDivU64 ¶
func ParamNotionalCheckedDivU64(value ParamNotional, divisor uint64) (ParamNotional, error)
func ParamNotionalCheckedMulF64 ¶
func ParamNotionalCheckedMulF64(value ParamNotional, scalar float64) (ParamNotional, error)
func ParamNotionalCheckedMulI64 ¶
func ParamNotionalCheckedMulI64(value ParamNotional, scalar int64) (ParamNotional, error)
func ParamNotionalCheckedMulU64 ¶
func ParamNotionalCheckedMulU64(value ParamNotional, scalar uint64) (ParamNotional, error)
func ParamNotionalCheckedRemF64 ¶
func ParamNotionalCheckedRemF64(value ParamNotional, divisor float64) (ParamNotional, error)
func ParamNotionalCheckedRemI64 ¶
func ParamNotionalCheckedRemI64(value ParamNotional, divisor int64) (ParamNotional, error)
func ParamNotionalCheckedRemU64 ¶
func ParamNotionalCheckedRemU64(value ParamNotional, divisor uint64) (ParamNotional, error)
func ParamNotionalCheckedSub ¶
func ParamNotionalCheckedSub(lhs ParamNotional, rhs ParamNotional) (ParamNotional, error)
func ParamNotionalFromVolume ¶
func ParamNotionalFromVolume(volume ParamVolume) (ParamNotional, error)
func ParamNotionalOptionalGet ¶
func ParamNotionalOptionalGet(value ParamNotionalOptional) ParamNotional
func ParamPriceCalculateNotional ¶
func ParamPriceCalculateNotional(price ParamPrice, quantity ParamQuantity) (ParamNotional, error)
func ParamQuantityCalculateNotional ¶
func ParamQuantityCalculateNotional( quantity ParamQuantity, price ParamPrice, ) (ParamNotional, error)
type ParamNotionalOptional ¶
type ParamNotionalOptional = C.PitParamNotionalOptional
type ParamPnl ¶
type ParamPnl = C.PitParamPnl
func CreateParamPnl ¶
func CreateParamPnl(value ParamDecimal) (ParamPnl, error)
func CreateParamPnlFromDecimalRounded ¶
func CreateParamPnlFromDecimalRounded( v ParamDecimal, scale uint32, strategy ParamRoundingStrategy, ) (ParamPnl, error)
func CreateParamPnlFromF64 ¶
func CreateParamPnlFromF64Rounded ¶
func CreateParamPnlFromF64Rounded( v float64, scale uint32, strategy ParamRoundingStrategy, ) (ParamPnl, error)
func CreateParamPnlFromI64 ¶
func CreateParamPnlFromStr ¶
func CreateParamPnlFromStrRounded ¶
func CreateParamPnlFromStrRounded( v string, scale uint32, strategy ParamRoundingStrategy, ) (ParamPnl, error)
func CreateParamPnlFromU64 ¶
func ParamFeeToPnl ¶
func ParamPnlCheckedDivF64 ¶
func ParamPnlCheckedDivI64 ¶
func ParamPnlCheckedDivU64 ¶
func ParamPnlCheckedMulF64 ¶
func ParamPnlCheckedMulI64 ¶
func ParamPnlCheckedMulU64 ¶
func ParamPnlCheckedNeg ¶
func ParamPnlCheckedRemF64 ¶
func ParamPnlCheckedRemI64 ¶
func ParamPnlCheckedRemU64 ¶
func ParamPnlFromFee ¶
func ParamPnlOptionalGet ¶
func ParamPnlOptionalGet(value ParamPnlOptional) ParamPnl
type ParamPnlOptional ¶
type ParamPnlOptional = C.PitParamPnlOptional
func FinancialImpactGetPnl ¶
func FinancialImpactGetPnl(financialImpact FinancialImpact) ParamPnlOptional
func NewParamPnlOptional ¶
func NewParamPnlOptional(value ParamPnl) ParamPnlOptional
type ParamPositionEffect ¶
type ParamPositionEffect = C.PitParamPositionEffect
func ExecutionReportPositionImpactGetPositionEffect ¶
func ExecutionReportPositionImpactGetPositionEffect( positionImpact ExecutionReportPositionImpact, ) ParamPositionEffect
type ParamPositionMode ¶
type ParamPositionMode = C.PitParamPositionMode
func AccountAdjustmentPositionOperationGetMode ¶
func AccountAdjustmentPositionOperationGetMode( operation AccountAdjustmentPositionOperation, ) ParamPositionMode
type ParamPositionSide ¶
type ParamPositionSide = C.PitParamPositionSide
func ExecutionReportPositionImpactGetPositionSide ¶
func ExecutionReportPositionImpactGetPositionSide( positionImpact ExecutionReportPositionImpact, ) ParamPositionSide
func OrderPositionGetSide ¶
func OrderPositionGetSide(p OrderPosition) ParamPositionSide
type ParamPositionSize ¶
type ParamPositionSize = C.PitParamPositionSize
func CreateParamPositionSize ¶
func CreateParamPositionSize(value ParamDecimal) (ParamPositionSize, error)
func CreateParamPositionSizeFromDecimalRounded ¶
func CreateParamPositionSizeFromDecimalRounded( v ParamDecimal, scale uint32, strategy ParamRoundingStrategy, ) (ParamPositionSize, error)
func CreateParamPositionSizeFromF64 ¶
func CreateParamPositionSizeFromF64(v float64) (ParamPositionSize, error)
func CreateParamPositionSizeFromF64Rounded ¶
func CreateParamPositionSizeFromF64Rounded( v float64, scale uint32, strategy ParamRoundingStrategy, ) (ParamPositionSize, error)
func CreateParamPositionSizeFromI64 ¶
func CreateParamPositionSizeFromI64(v int64) (ParamPositionSize, error)
func CreateParamPositionSizeFromStr ¶
func CreateParamPositionSizeFromStr(v string) (ParamPositionSize, error)
func CreateParamPositionSizeFromStrRounded ¶
func CreateParamPositionSizeFromStrRounded( v string, scale uint32, strategy ParamRoundingStrategy, ) (ParamPositionSize, error)
func CreateParamPositionSizeFromU64 ¶
func CreateParamPositionSizeFromU64(v uint64) (ParamPositionSize, error)
func ParamAdjustmentAmountGetValue ¶
func ParamAdjustmentAmountGetValue(amount ParamAdjustmentAmount) ParamPositionSize
func ParamFeeToPositionSize ¶
func ParamFeeToPositionSize(value ParamFee) (ParamPositionSize, error)
func ParamPnlToPositionSize ¶
func ParamPnlToPositionSize(value ParamPnl) (ParamPositionSize, error)
func ParamPositionSizeCheckedAdd ¶
func ParamPositionSizeCheckedAdd( lhs ParamPositionSize, rhs ParamPositionSize, ) (ParamPositionSize, error)
func ParamPositionSizeCheckedAddQuantity ¶
func ParamPositionSizeCheckedAddQuantity( value ParamPositionSize, quantity ParamQuantity, side ParamSide, ) (ParamPositionSize, error)
func ParamPositionSizeCheckedDivF64 ¶
func ParamPositionSizeCheckedDivF64( value ParamPositionSize, divisor float64, ) (ParamPositionSize, error)
func ParamPositionSizeCheckedDivI64 ¶
func ParamPositionSizeCheckedDivI64( value ParamPositionSize, divisor int64, ) (ParamPositionSize, error)
func ParamPositionSizeCheckedDivU64 ¶
func ParamPositionSizeCheckedDivU64( value ParamPositionSize, divisor uint64, ) (ParamPositionSize, error)
func ParamPositionSizeCheckedMulF64 ¶
func ParamPositionSizeCheckedMulF64( value ParamPositionSize, scalar float64, ) (ParamPositionSize, error)
func ParamPositionSizeCheckedMulI64 ¶
func ParamPositionSizeCheckedMulI64( value ParamPositionSize, scalar int64, ) (ParamPositionSize, error)
func ParamPositionSizeCheckedMulU64 ¶
func ParamPositionSizeCheckedMulU64( value ParamPositionSize, scalar uint64, ) (ParamPositionSize, error)
func ParamPositionSizeCheckedNeg ¶
func ParamPositionSizeCheckedNeg(value ParamPositionSize) (ParamPositionSize, error)
func ParamPositionSizeCheckedRemF64 ¶
func ParamPositionSizeCheckedRemF64( value ParamPositionSize, divisor float64, ) (ParamPositionSize, error)
func ParamPositionSizeCheckedRemI64 ¶
func ParamPositionSizeCheckedRemI64( value ParamPositionSize, divisor int64, ) (ParamPositionSize, error)
func ParamPositionSizeCheckedRemU64 ¶
func ParamPositionSizeCheckedRemU64( value ParamPositionSize, divisor uint64, ) (ParamPositionSize, error)
func ParamPositionSizeCheckedSub ¶
func ParamPositionSizeCheckedSub( lhs ParamPositionSize, rhs ParamPositionSize, ) (ParamPositionSize, error)
func ParamPositionSizeFromFee ¶
func ParamPositionSizeFromFee(value ParamFee) (ParamPositionSize, error)
func ParamPositionSizeFromPnl ¶
func ParamPositionSizeFromPnl(value ParamPnl) (ParamPositionSize, error)
func ParamPositionSizeFromQuantityAndSide ¶
func ParamPositionSizeFromQuantityAndSide( quantity ParamQuantity, side ParamSide, ) (ParamPositionSize, error)
func ParamPositionSizeOptionalGet ¶
func ParamPositionSizeOptionalGet(value ParamPositionSizeOptional) ParamPositionSize
type ParamPositionSizeOptional ¶
type ParamPositionSizeOptional = C.PitParamPositionSizeOptional
func AccountAdjustmentBoundsGetPendingLower ¶
func AccountAdjustmentBoundsGetPendingLower( bounds AccountAdjustmentBounds, ) ParamPositionSizeOptional
func AccountAdjustmentBoundsGetPendingUpper ¶
func AccountAdjustmentBoundsGetPendingUpper( bounds AccountAdjustmentBounds, ) ParamPositionSizeOptional
func AccountAdjustmentBoundsGetReservedLower ¶
func AccountAdjustmentBoundsGetReservedLower( bounds AccountAdjustmentBounds, ) ParamPositionSizeOptional
func AccountAdjustmentBoundsGetReservedUpper ¶
func AccountAdjustmentBoundsGetReservedUpper( bounds AccountAdjustmentBounds, ) ParamPositionSizeOptional
func AccountAdjustmentBoundsGetTotalLower ¶
func AccountAdjustmentBoundsGetTotalLower( bounds AccountAdjustmentBounds, ) ParamPositionSizeOptional
func AccountAdjustmentBoundsGetTotalUpper ¶
func AccountAdjustmentBoundsGetTotalUpper( bounds AccountAdjustmentBounds, ) ParamPositionSizeOptional
type ParamPrice ¶
type ParamPrice = C.PitParamPrice
func CreateParamPrice ¶
func CreateParamPrice(value ParamDecimal) (ParamPrice, error)
func CreateParamPriceFromDecimalRounded ¶
func CreateParamPriceFromDecimalRounded( v ParamDecimal, scale uint32, strategy ParamRoundingStrategy, ) (ParamPrice, error)
func CreateParamPriceFromF64 ¶
func CreateParamPriceFromF64(v float64) (ParamPrice, error)
func CreateParamPriceFromF64Rounded ¶
func CreateParamPriceFromF64Rounded( v float64, scale uint32, strategy ParamRoundingStrategy, ) (ParamPrice, error)
func CreateParamPriceFromI64 ¶
func CreateParamPriceFromI64(v int64) (ParamPrice, error)
func CreateParamPriceFromStr ¶
func CreateParamPriceFromStr(v string) (ParamPrice, error)
func CreateParamPriceFromStrRounded ¶
func CreateParamPriceFromStrRounded( v string, scale uint32, strategy ParamRoundingStrategy, ) (ParamPrice, error)
func CreateParamPriceFromU64 ¶
func CreateParamPriceFromU64(v uint64) (ParamPrice, error)
func ExecutionReportTradeGetPrice ¶
func ExecutionReportTradeGetPrice(trade ExecutionReportTrade) ParamPrice
func ParamPriceCheckedAdd ¶
func ParamPriceCheckedAdd(lhs ParamPrice, rhs ParamPrice) (ParamPrice, error)
func ParamPriceCheckedDivF64 ¶
func ParamPriceCheckedDivF64(value ParamPrice, divisor float64) (ParamPrice, error)
func ParamPriceCheckedDivI64 ¶
func ParamPriceCheckedDivI64(value ParamPrice, divisor int64) (ParamPrice, error)
func ParamPriceCheckedDivU64 ¶
func ParamPriceCheckedDivU64(value ParamPrice, divisor uint64) (ParamPrice, error)
func ParamPriceCheckedMulF64 ¶
func ParamPriceCheckedMulF64(value ParamPrice, scalar float64) (ParamPrice, error)
func ParamPriceCheckedMulI64 ¶
func ParamPriceCheckedMulI64(value ParamPrice, scalar int64) (ParamPrice, error)
func ParamPriceCheckedMulU64 ¶
func ParamPriceCheckedMulU64(value ParamPrice, scalar uint64) (ParamPrice, error)
func ParamPriceCheckedNeg ¶
func ParamPriceCheckedNeg(value ParamPrice) (ParamPrice, error)
func ParamPriceCheckedRemF64 ¶
func ParamPriceCheckedRemF64(value ParamPrice, divisor float64) (ParamPrice, error)
func ParamPriceCheckedRemI64 ¶
func ParamPriceCheckedRemI64(value ParamPrice, divisor int64) (ParamPrice, error)
func ParamPriceCheckedRemU64 ¶
func ParamPriceCheckedRemU64(value ParamPrice, divisor uint64) (ParamPrice, error)
func ParamPriceCheckedSub ¶
func ParamPriceCheckedSub(lhs ParamPrice, rhs ParamPrice) (ParamPrice, error)
func ParamPriceOptionalGet ¶
func ParamPriceOptionalGet(value ParamPriceOptional) ParamPrice
type ParamPriceOptional ¶
type ParamPriceOptional = C.PitParamPriceOptional
func AccountAdjustmentBalanceOperationGetAverageEntryPrice ¶
func AccountAdjustmentBalanceOperationGetAverageEntryPrice( operation AccountAdjustmentBalanceOperation, ) ParamPriceOptional
func AccountAdjustmentPositionOperationGetAverageEntryPrice ¶
func AccountAdjustmentPositionOperationGetAverageEntryPrice( operation AccountAdjustmentPositionOperation, ) ParamPriceOptional
func ExecutionReportFillGetLockPrice ¶
func ExecutionReportFillGetLockPrice(fill ExecutionReportFill) ParamPriceOptional
func OrderOperationGetPrice ¶
func OrderOperationGetPrice(o OrderOperation) ParamPriceOptional
func PretradePreTradeLockGetPrice ¶
func PretradePreTradeLockGetPrice(lock PretradePreTradeLock) ParamPriceOptional
type ParamQuantity ¶
type ParamQuantity = C.PitParamQuantity
func CreateParamQuantity ¶
func CreateParamQuantity(value ParamDecimal) (ParamQuantity, error)
func CreateParamQuantityFromDecimalRounded ¶
func CreateParamQuantityFromDecimalRounded( v ParamDecimal, scale uint32, strategy ParamRoundingStrategy, ) (ParamQuantity, error)
func CreateParamQuantityFromF64 ¶
func CreateParamQuantityFromF64(v float64) (ParamQuantity, error)
func CreateParamQuantityFromF64Rounded ¶
func CreateParamQuantityFromF64Rounded( v float64, scale uint32, strategy ParamRoundingStrategy, ) (ParamQuantity, error)
func CreateParamQuantityFromI64 ¶
func CreateParamQuantityFromI64(v int64) (ParamQuantity, error)
func CreateParamQuantityFromStr ¶
func CreateParamQuantityFromStr(v string) (ParamQuantity, error)
func CreateParamQuantityFromStrRounded ¶
func CreateParamQuantityFromStrRounded( v string, scale uint32, strategy ParamRoundingStrategy, ) (ParamQuantity, error)
func CreateParamQuantityFromU64 ¶
func CreateParamQuantityFromU64(v uint64) (ParamQuantity, error)
func ExecutionReportTradeGetQuantity ¶
func ExecutionReportTradeGetQuantity(trade ExecutionReportTrade) ParamQuantity
func ParamQuantityCheckedAdd ¶
func ParamQuantityCheckedAdd(lhs ParamQuantity, rhs ParamQuantity) (ParamQuantity, error)
func ParamQuantityCheckedDivF64 ¶
func ParamQuantityCheckedDivF64(value ParamQuantity, divisor float64) (ParamQuantity, error)
func ParamQuantityCheckedDivI64 ¶
func ParamQuantityCheckedDivI64(value ParamQuantity, divisor int64) (ParamQuantity, error)
func ParamQuantityCheckedDivU64 ¶
func ParamQuantityCheckedDivU64(value ParamQuantity, divisor uint64) (ParamQuantity, error)
func ParamQuantityCheckedMulF64 ¶
func ParamQuantityCheckedMulF64(value ParamQuantity, scalar float64) (ParamQuantity, error)
func ParamQuantityCheckedMulI64 ¶
func ParamQuantityCheckedMulI64(value ParamQuantity, scalar int64) (ParamQuantity, error)
func ParamQuantityCheckedMulU64 ¶
func ParamQuantityCheckedMulU64(value ParamQuantity, scalar uint64) (ParamQuantity, error)
func ParamQuantityCheckedRemF64 ¶
func ParamQuantityCheckedRemF64(value ParamQuantity, divisor float64) (ParamQuantity, error)
func ParamQuantityCheckedRemI64 ¶
func ParamQuantityCheckedRemI64(value ParamQuantity, divisor int64) (ParamQuantity, error)
func ParamQuantityCheckedRemU64 ¶
func ParamQuantityCheckedRemU64(value ParamQuantity, divisor uint64) (ParamQuantity, error)
func ParamQuantityCheckedSub ¶
func ParamQuantityCheckedSub(lhs ParamQuantity, rhs ParamQuantity) (ParamQuantity, error)
func ParamQuantityOptionalGet ¶
func ParamQuantityOptionalGet(value ParamQuantityOptional) ParamQuantity
func ParamVolumeCalculateQuantity ¶
func ParamVolumeCalculateQuantity(volume ParamVolume, price ParamPrice) (ParamQuantity, error)
type ParamQuantityOptional ¶
type ParamQuantityOptional = C.PitParamQuantityOptional
func ExecutionReportFillGetLeavesQuantity ¶
func ExecutionReportFillGetLeavesQuantity(fill ExecutionReportFill) ParamQuantityOptional
type ParamRoundingStrategy ¶
type ParamSide ¶
type ParamSide = C.PitParamSide
func ExecutionReportOperationGetSide ¶
func ExecutionReportOperationGetSide(operation ExecutionReportOperation) ParamSide
func OrderOperationGetSide ¶
func OrderOperationGetSide(o OrderOperation) ParamSide
type ParamTradeAmount ¶
type ParamTradeAmount = C.PitParamTradeAmount
func CreateParamTradeAmount ¶
func CreateParamTradeAmount(kind ParamTradeAmountKind, value ParamDecimal) ParamTradeAmount
func OrderOperationGetTradeAmount ¶
func OrderOperationGetTradeAmount(o OrderOperation) ParamTradeAmount
type ParamTradeAmountKind ¶
type ParamTradeAmountKind = C.PitParamTradeAmountKind
func ParamTradeAmountGetKind ¶
func ParamTradeAmountGetKind(amount ParamTradeAmount) ParamTradeAmountKind
type ParamVolume ¶
type ParamVolume = C.PitParamVolume
func CreateParamVolume ¶
func CreateParamVolume(value ParamDecimal) (ParamVolume, error)
func CreateParamVolumeFromDecimalRounded ¶
func CreateParamVolumeFromDecimalRounded( v ParamDecimal, scale uint32, strategy ParamRoundingStrategy, ) (ParamVolume, error)
func CreateParamVolumeFromF64 ¶
func CreateParamVolumeFromF64(v float64) (ParamVolume, error)
func CreateParamVolumeFromF64Rounded ¶
func CreateParamVolumeFromF64Rounded( v float64, scale uint32, strategy ParamRoundingStrategy, ) (ParamVolume, error)
func CreateParamVolumeFromI64 ¶
func CreateParamVolumeFromI64(v int64) (ParamVolume, error)
func CreateParamVolumeFromStr ¶
func CreateParamVolumeFromStr(v string) (ParamVolume, error)
func CreateParamVolumeFromStrRounded ¶
func CreateParamVolumeFromStrRounded( v string, scale uint32, strategy ParamRoundingStrategy, ) (ParamVolume, error)
func CreateParamVolumeFromU64 ¶
func CreateParamVolumeFromU64(v uint64) (ParamVolume, error)
func ParamNotionalToVolume ¶
func ParamNotionalToVolume(notional ParamNotional) (ParamVolume, error)
func ParamPriceCalculateVolume ¶
func ParamPriceCalculateVolume(price ParamPrice, quantity ParamQuantity) (ParamVolume, error)
func ParamQuantityCalculateVolume ¶
func ParamQuantityCalculateVolume(quantity ParamQuantity, price ParamPrice) (ParamVolume, error)
func ParamVolumeCheckedAdd ¶
func ParamVolumeCheckedAdd(lhs ParamVolume, rhs ParamVolume) (ParamVolume, error)
func ParamVolumeCheckedDivF64 ¶
func ParamVolumeCheckedDivF64(value ParamVolume, divisor float64) (ParamVolume, error)
func ParamVolumeCheckedDivI64 ¶
func ParamVolumeCheckedDivI64(value ParamVolume, divisor int64) (ParamVolume, error)
func ParamVolumeCheckedDivU64 ¶
func ParamVolumeCheckedDivU64(value ParamVolume, divisor uint64) (ParamVolume, error)
func ParamVolumeCheckedMulF64 ¶
func ParamVolumeCheckedMulF64(value ParamVolume, scalar float64) (ParamVolume, error)
func ParamVolumeCheckedMulI64 ¶
func ParamVolumeCheckedMulI64(value ParamVolume, scalar int64) (ParamVolume, error)
func ParamVolumeCheckedMulU64 ¶
func ParamVolumeCheckedMulU64(value ParamVolume, scalar uint64) (ParamVolume, error)
func ParamVolumeCheckedRemF64 ¶
func ParamVolumeCheckedRemF64(value ParamVolume, divisor float64) (ParamVolume, error)
func ParamVolumeCheckedRemI64 ¶
func ParamVolumeCheckedRemI64(value ParamVolume, divisor int64) (ParamVolume, error)
func ParamVolumeCheckedRemU64 ¶
func ParamVolumeCheckedRemU64(value ParamVolume, divisor uint64) (ParamVolume, error)
func ParamVolumeCheckedSub ¶
func ParamVolumeCheckedSub(lhs ParamVolume, rhs ParamVolume) (ParamVolume, error)
func ParamVolumeFromNotional ¶
func ParamVolumeFromNotional(notional ParamNotional) (ParamVolume, error)
func ParamVolumeOptionalGet ¶
func ParamVolumeOptionalGet(value ParamVolumeOptional) ParamVolume
type ParamVolumeOptional ¶
type ParamVolumeOptional = C.PitParamVolumeOptional
type PretradeCheckPreTradeStartPolicy ¶
type PretradeCheckPreTradeStartPolicy = *C.PitPretradeCheckPreTradeStartPolicy
func CreatePretradePoliciesOrderSizeLimitPolicy ¶
func CreatePretradePoliciesOrderSizeLimitPolicy( params []PretradePoliciesOrderSizeLimitParam, ) (PretradeCheckPreTradeStartPolicy, error)
func CreatePretradePoliciesOrderValidationPolicy ¶
func CreatePretradePoliciesOrderValidationPolicy() PretradeCheckPreTradeStartPolicy
func CreatePretradePoliciesPnlBoundsKillSwitchPolicy ¶
func CreatePretradePoliciesPnlBoundsKillSwitchPolicy( params []PretradePoliciesPnlBoundsBarrier, ) (PretradeCheckPreTradeStartPolicy, error)
func CreatePretradePoliciesRateLimitPolicy ¶
func CreatePretradePoliciesRateLimitPolicy( maxOrders int, windowSeconds uint64, ) PretradeCheckPreTradeStartPolicy
type PretradeContext ¶
type PretradeContext = *C.PitPretradeContext
type PretradePoliciesOrderSizeLimitParam ¶
type PretradePoliciesOrderSizeLimitParam = C.PitPretradePoliciesOrderSizeLimitParam
func NewPretradePoliciesOrderSizeLimitParam ¶
func NewPretradePoliciesOrderSizeLimitParam( settlementAsset string, maxQuantity ParamQuantity, maxNotional ParamVolume, ) PretradePoliciesOrderSizeLimitParam
type PretradePoliciesPnlBoundsBarrier ¶
type PretradePoliciesPnlBoundsBarrier = C.PitPretradePoliciesPnlBoundsBarrier
func NewPretradePoliciesPnlBoundsBarrier ¶
func NewPretradePoliciesPnlBoundsBarrier( settlementAsset string, lowerBound ParamPnlOptional, upperBound ParamPnlOptional, initialPnl ParamPnl, ) PretradePoliciesPnlBoundsBarrier
type PretradePostTradeResult ¶
type PretradePostTradeResult struct {
KillSwitchTriggered bool
}
func EngineApplyExecutionReport ¶
func EngineApplyExecutionReport( engine Engine, report ExecutionReport, ) (PretradePostTradeResult, error)
type PretradePreTradeLock ¶
type PretradePreTradeLock = C.PitPretradePreTradeLock
func NewPretradePreTradeLock ¶
func NewPretradePreTradeLock() PretradePreTradeLock
func PretradePreTradeReservationGetLock ¶
func PretradePreTradeReservationGetLock( reservation PretradePreTradeReservation, ) PretradePreTradeLock
type PretradePreTradePolicy ¶
type PretradePreTradePolicy = *C.PitPretradePreTradePolicy
type PretradePreTradeRequest ¶
type PretradePreTradeRequest = *C.PitPretradePreTradeRequest
type PretradePreTradeReservation ¶
type PretradePreTradeReservation = *C.PitPretradePreTradeReservation
type Reject ¶
func CreateReject ¶
func CreateReject( code RejectCode, scope RejectScope, policy StringView, reason StringView, details StringView, userData unsafe.Pointer, ) Reject
func RejectListGet ¶
func RejectListGet(list RejectList, index int) Reject
type RejectCode ¶
type RejectCode = C.PitRejectCode
func RejectGetCode ¶
func RejectGetCode(reject Reject) RejectCode
type RejectList ¶
type RejectList = *C.PitRejectList
func AccountAdjustmentBatchErrorGetRejects ¶
func AccountAdjustmentBatchErrorGetRejects(handle AccountAdjustmentBatchError) RejectList
func CreateRejectList ¶
func CreateRejectList(reserve int) RejectList
type RejectScope ¶
type RejectScope = C.PitRejectScope
func RejectGetScope ¶
func RejectGetScope(reject Reject) RejectScope
type SharedString ¶
type SharedString = *C.PitSharedString
type String ¶
type String struct {
// contains filtered or unexported fields
}
String is the C-heap backing store for a local string that is passed to C.
Why C heap? ¶
Every C struct that carries a string field (PitStringView) stores a raw pointer into the string's backing bytes. When such a struct lives in Go-allocated memory and is passed to a C function via a Go pointer, the CGo checker enforces the rule:
"Go memory passed to C must not contain Go pointers."
If the string bytes were on the Go heap, their address stored in PitStringView.ptr would be a Go pointer, triggering a panic:
"argument of cgo function has Go pointer to unpinned Go pointer"
Allocating the bytes on the C heap makes PitStringView.ptr a C pointer. The CGo checker does not flag C pointers, so the panic never occurs.
Lifetime and cleanup ¶
String is allocated once per business value and freed automatically:
- domain types like param.Asset is a struct that holds *String as its only field.
- runtime.SetFinalizer is attached to *String. When the GC collects the last domain type instance (and therefore the last *String reference), the finalizer calls C.free on the buffer.
- runtime.SetFinalizer does NOT guarantee execution before program exit, only before the GC reclaims the object. In a high-frequency trading process the GC runs under memory pressure, so C buffers are reclaimed promptly during normal operation. A small leak on abnormal exit is acceptable because the OS reclaims the process address space anyway.
Thread safety ¶
String is immutable after construction. Concurrent reads from multiple goroutines are safe without synchronization.
func NewString ¶
NewString copies the bytes of validated into a new C-heap buffer and registers a GC finalizer that calls C.free when the last reference to the returned *String is dropped.
validated must be a non-empty, already-validated asset identifier string. The caller (like param.NewAsset / param.NewAssetFromHandle) is responsible for validation before calling this function.
func (*String) Safe ¶
Safe returns a Go-heap copy of the identifier. The returned string is fully independent of the C buffer and remains valid after the String is collected.
func (*String) Unsafe ¶
Unsafe returns a Go string header whose backing bytes are the C buffer.
The string is valid only as long as the *String is reachable (directly or through a param.Asset that holds it). Use in hot paths where avoiding a copy matters; prefer Safe when the string may outlive the String.
type StringView ¶
type StringView struct {
// contains filtered or unexported fields
}
StringView is a string-backed view without ownership.
- safe: original string is owned and retained - unsafe: string aliases external memory
func AccountAdjustmentBalanceOperationGetAsset ¶
func AccountAdjustmentBalanceOperationGetAsset( operation AccountAdjustmentBalanceOperation, ) StringView
func AccountAdjustmentPolicyGetName ¶
func AccountAdjustmentPolicyGetName(policy AccountAdjustmentPolicy) StringView
func AccountAdjustmentPositionOperationGetCollateralAsset ¶
func AccountAdjustmentPositionOperationGetCollateralAsset( operation AccountAdjustmentPositionOperation, ) StringView
func GetRuntimeVersion ¶
func GetRuntimeVersion() StringView
func InstrumentGetSettlementAsset ¶
func InstrumentGetSettlementAsset(instrument Instrument) StringView
func InstrumentGetUnderlyingAsset ¶
func InstrumentGetUnderlyingAsset(instrument Instrument) StringView
func NewStringView ¶
func NewStringView(value string) StringView
func OrderMarginGetCollateralAsset ¶
func OrderMarginGetCollateralAsset(m OrderMargin) StringView
func PretradeCheckPreTradeStartPolicyGetName ¶
func PretradeCheckPreTradeStartPolicyGetName( policy PretradeCheckPreTradeStartPolicy, ) StringView
func PretradePreTradePolicyGetName ¶
func PretradePreTradePolicyGetName(policy PretradePreTradePolicy) StringView
func RejectGetDetails ¶
func RejectGetDetails(reject Reject) StringView
func RejectGetPolicy ¶
func RejectGetPolicy(reject Reject) StringView
func RejectGetReason ¶
func RejectGetReason(reject Reject) StringView
func (StringView) IsSet ¶
func (v StringView) IsSet() bool
IsSet returns true if the StringView is set and not empty.
func (StringView) Safe ¶
func (v StringView) Safe() string
Safe returns a fully owned copy of the data as a Go string.
func (StringView) Unsafe ¶
func (v StringView) Unsafe() string
Unsafe returns a string backed by the underlying memory without copying or nil for an empty and unset StringView.
WARNING: - The returned string aliases external memory. - If the memory becomes invalid, this leads to undefined behavior.
type TriBool ¶
type TriBool = C.PitTriBool
func OrderMarginGetAutoBorrow ¶
func OrderMarginGetAutoBorrow(m OrderMargin) TriBool
func OrderPositionGetClosePosition ¶
func OrderPositionGetClosePosition(p OrderPosition) TriBool
func OrderPositionGetReduceOnly ¶
func OrderPositionGetReduceOnly(p OrderPosition) TriBool