Documentation ¶
Index ¶
- Constants
- Variables
- type ProtoErrorCode
- func (ProtoErrorCode) Descriptor() protoreflect.EnumDescriptor
- func (x ProtoErrorCode) Enum() *ProtoErrorCode
- func (ProtoErrorCode) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProtoErrorCode) Number() protoreflect.EnumNumber
- func (x ProtoErrorCode) String() string
- func (ProtoErrorCode) Type() protoreflect.EnumType
- func (x *ProtoErrorCode) UnmarshalJSON(b []byte) errordeprecated
- type ProtoErrorRes
- func (*ProtoErrorRes) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoErrorRes) GetDescription() string
- func (x *ProtoErrorRes) GetErrorCode() string
- func (x *ProtoErrorRes) GetMaintenanceEndTimestamp() uint64
- func (x *ProtoErrorRes) GetPayloadType() ProtoPayloadType
- func (*ProtoErrorRes) ProtoMessage()
- func (x *ProtoErrorRes) ProtoReflect() protoreflect.Message
- func (x *ProtoErrorRes) Reset()
- func (x *ProtoErrorRes) String() string
- type ProtoHeartbeatEvent
- func (*ProtoHeartbeatEvent) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoHeartbeatEvent) GetPayloadType() ProtoPayloadType
- func (*ProtoHeartbeatEvent) ProtoMessage()
- func (x *ProtoHeartbeatEvent) ProtoReflect() protoreflect.Message
- func (x *ProtoHeartbeatEvent) Reset()
- func (x *ProtoHeartbeatEvent) String() string
- type ProtoMessage
- func (*ProtoMessage) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoMessage) GetClientMsgId() string
- func (x *ProtoMessage) GetPayload() []byte
- func (x *ProtoMessage) GetPayloadType() uint32
- func (*ProtoMessage) ProtoMessage()
- func (x *ProtoMessage) ProtoReflect() protoreflect.Message
- func (x *ProtoMessage) Reset()
- func (x *ProtoMessage) String() string
- type ProtoOAAccessRights
- func (ProtoOAAccessRights) Descriptor() protoreflect.EnumDescriptor
- func (x ProtoOAAccessRights) Enum() *ProtoOAAccessRights
- func (ProtoOAAccessRights) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProtoOAAccessRights) Number() protoreflect.EnumNumber
- func (x ProtoOAAccessRights) String() string
- func (ProtoOAAccessRights) Type() protoreflect.EnumType
- func (x *ProtoOAAccessRights) UnmarshalJSON(b []byte) errordeprecated
- type ProtoOAAccountAuthReq
- func (*ProtoOAAccountAuthReq) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAAccountAuthReq) GetAccessToken() string
- func (x *ProtoOAAccountAuthReq) GetCtidTraderAccountId() int64
- func (x *ProtoOAAccountAuthReq) GetPayloadType() ProtoOAPayloadType
- func (*ProtoOAAccountAuthReq) ProtoMessage()
- func (x *ProtoOAAccountAuthReq) ProtoReflect() protoreflect.Message
- func (x *ProtoOAAccountAuthReq) Reset()
- func (x *ProtoOAAccountAuthReq) String() string
- type ProtoOAAccountAuthRes
- func (*ProtoOAAccountAuthRes) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAAccountAuthRes) GetCtidTraderAccountId() int64
- func (x *ProtoOAAccountAuthRes) GetPayloadType() ProtoOAPayloadType
- func (*ProtoOAAccountAuthRes) ProtoMessage()
- func (x *ProtoOAAccountAuthRes) ProtoReflect() protoreflect.Message
- func (x *ProtoOAAccountAuthRes) Reset()
- func (x *ProtoOAAccountAuthRes) String() string
- type ProtoOAAccountDisconnectEvent
- func (*ProtoOAAccountDisconnectEvent) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAAccountDisconnectEvent) GetCtidTraderAccountId() int64
- func (x *ProtoOAAccountDisconnectEvent) GetPayloadType() ProtoOAPayloadType
- func (*ProtoOAAccountDisconnectEvent) ProtoMessage()
- func (x *ProtoOAAccountDisconnectEvent) ProtoReflect() protoreflect.Message
- func (x *ProtoOAAccountDisconnectEvent) Reset()
- func (x *ProtoOAAccountDisconnectEvent) String() string
- type ProtoOAAccountLogoutReq
- func (*ProtoOAAccountLogoutReq) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAAccountLogoutReq) GetCtidTraderAccountId() int64
- func (x *ProtoOAAccountLogoutReq) GetPayloadType() ProtoOAPayloadType
- func (*ProtoOAAccountLogoutReq) ProtoMessage()
- func (x *ProtoOAAccountLogoutReq) ProtoReflect() protoreflect.Message
- func (x *ProtoOAAccountLogoutReq) Reset()
- func (x *ProtoOAAccountLogoutReq) String() string
- type ProtoOAAccountLogoutRes
- func (*ProtoOAAccountLogoutRes) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAAccountLogoutRes) GetCtidTraderAccountId() int64
- func (x *ProtoOAAccountLogoutRes) GetPayloadType() ProtoOAPayloadType
- func (*ProtoOAAccountLogoutRes) ProtoMessage()
- func (x *ProtoOAAccountLogoutRes) ProtoReflect() protoreflect.Message
- func (x *ProtoOAAccountLogoutRes) Reset()
- func (x *ProtoOAAccountLogoutRes) String() string
- type ProtoOAAccountType
- func (ProtoOAAccountType) Descriptor() protoreflect.EnumDescriptor
- func (x ProtoOAAccountType) Enum() *ProtoOAAccountType
- func (ProtoOAAccountType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProtoOAAccountType) Number() protoreflect.EnumNumber
- func (x ProtoOAAccountType) String() string
- func (ProtoOAAccountType) Type() protoreflect.EnumType
- func (x *ProtoOAAccountType) UnmarshalJSON(b []byte) errordeprecated
- type ProtoOAAccountsTokenInvalidatedEvent
- func (*ProtoOAAccountsTokenInvalidatedEvent) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAAccountsTokenInvalidatedEvent) GetCtidTraderAccountIds() []int64
- func (x *ProtoOAAccountsTokenInvalidatedEvent) GetPayloadType() ProtoOAPayloadType
- func (x *ProtoOAAccountsTokenInvalidatedEvent) GetReason() string
- func (*ProtoOAAccountsTokenInvalidatedEvent) ProtoMessage()
- func (x *ProtoOAAccountsTokenInvalidatedEvent) ProtoReflect() protoreflect.Message
- func (x *ProtoOAAccountsTokenInvalidatedEvent) Reset()
- func (x *ProtoOAAccountsTokenInvalidatedEvent) String() string
- type ProtoOAAmendOrderReq
- func (*ProtoOAAmendOrderReq) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAAmendOrderReq) GetCtidTraderAccountId() int64
- func (x *ProtoOAAmendOrderReq) GetExpirationTimestamp() int64
- func (x *ProtoOAAmendOrderReq) GetGuaranteedStopLoss() bool
- func (x *ProtoOAAmendOrderReq) GetLimitPrice() float64
- func (x *ProtoOAAmendOrderReq) GetOrderId() int64
- func (x *ProtoOAAmendOrderReq) GetPayloadType() ProtoOAPayloadType
- func (x *ProtoOAAmendOrderReq) GetRelativeStopLoss() int64
- func (x *ProtoOAAmendOrderReq) GetRelativeTakeProfit() int64
- func (x *ProtoOAAmendOrderReq) GetSlippageInPoints() int32
- func (x *ProtoOAAmendOrderReq) GetStopLoss() float64
- func (x *ProtoOAAmendOrderReq) GetStopPrice() float64
- func (x *ProtoOAAmendOrderReq) GetStopTriggerMethod() ProtoOAOrderTriggerMethod
- func (x *ProtoOAAmendOrderReq) GetTakeProfit() float64
- func (x *ProtoOAAmendOrderReq) GetTrailingStopLoss() bool
- func (x *ProtoOAAmendOrderReq) GetVolume() int64
- func (*ProtoOAAmendOrderReq) ProtoMessage()
- func (x *ProtoOAAmendOrderReq) ProtoReflect() protoreflect.Message
- func (x *ProtoOAAmendOrderReq) Reset()
- func (x *ProtoOAAmendOrderReq) String() string
- type ProtoOAAmendPositionSLTPReq
- func (*ProtoOAAmendPositionSLTPReq) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAAmendPositionSLTPReq) GetCtidTraderAccountId() int64
- func (x *ProtoOAAmendPositionSLTPReq) GetGuaranteedStopLoss() bool
- func (x *ProtoOAAmendPositionSLTPReq) GetPayloadType() ProtoOAPayloadType
- func (x *ProtoOAAmendPositionSLTPReq) GetPositionId() int64
- func (x *ProtoOAAmendPositionSLTPReq) GetStopLoss() float64
- func (x *ProtoOAAmendPositionSLTPReq) GetStopLossTriggerMethod() ProtoOAOrderTriggerMethod
- func (x *ProtoOAAmendPositionSLTPReq) GetTakeProfit() float64
- func (x *ProtoOAAmendPositionSLTPReq) GetTrailingStopLoss() bool
- func (*ProtoOAAmendPositionSLTPReq) ProtoMessage()
- func (x *ProtoOAAmendPositionSLTPReq) ProtoReflect() protoreflect.Message
- func (x *ProtoOAAmendPositionSLTPReq) Reset()
- func (x *ProtoOAAmendPositionSLTPReq) String() string
- type ProtoOAApplicationAuthReq
- func (*ProtoOAApplicationAuthReq) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAApplicationAuthReq) GetClientId() string
- func (x *ProtoOAApplicationAuthReq) GetClientSecret() string
- func (x *ProtoOAApplicationAuthReq) GetPayloadType() ProtoOAPayloadType
- func (*ProtoOAApplicationAuthReq) ProtoMessage()
- func (x *ProtoOAApplicationAuthReq) ProtoReflect() protoreflect.Message
- func (x *ProtoOAApplicationAuthReq) Reset()
- func (x *ProtoOAApplicationAuthReq) String() string
- type ProtoOAApplicationAuthRes
- func (*ProtoOAApplicationAuthRes) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAApplicationAuthRes) GetPayloadType() ProtoOAPayloadType
- func (*ProtoOAApplicationAuthRes) ProtoMessage()
- func (x *ProtoOAApplicationAuthRes) ProtoReflect() protoreflect.Message
- func (x *ProtoOAApplicationAuthRes) Reset()
- func (x *ProtoOAApplicationAuthRes) String() string
- type ProtoOAArchivedSymbol
- func (*ProtoOAArchivedSymbol) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAArchivedSymbol) GetDescription() string
- func (x *ProtoOAArchivedSymbol) GetName() string
- func (x *ProtoOAArchivedSymbol) GetSymbolId() int64
- func (x *ProtoOAArchivedSymbol) GetUtcLastUpdateTimestamp() int64
- func (*ProtoOAArchivedSymbol) ProtoMessage()
- func (x *ProtoOAArchivedSymbol) ProtoReflect() protoreflect.Message
- func (x *ProtoOAArchivedSymbol) Reset()
- func (x *ProtoOAArchivedSymbol) String() string
- type ProtoOAAsset
- func (*ProtoOAAsset) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAAsset) GetAssetId() int64
- func (x *ProtoOAAsset) GetDigits() int32
- func (x *ProtoOAAsset) GetDisplayName() string
- func (x *ProtoOAAsset) GetName() string
- func (*ProtoOAAsset) ProtoMessage()
- func (x *ProtoOAAsset) ProtoReflect() protoreflect.Message
- func (x *ProtoOAAsset) Reset()
- func (x *ProtoOAAsset) String() string
- type ProtoOAAssetClass
- func (*ProtoOAAssetClass) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAAssetClass) GetId() int64
- func (x *ProtoOAAssetClass) GetName() string
- func (x *ProtoOAAssetClass) GetSortingNumber() float64
- func (*ProtoOAAssetClass) ProtoMessage()
- func (x *ProtoOAAssetClass) ProtoReflect() protoreflect.Message
- func (x *ProtoOAAssetClass) Reset()
- func (x *ProtoOAAssetClass) String() string
- type ProtoOAAssetClassListReq
- func (*ProtoOAAssetClassListReq) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAAssetClassListReq) GetCtidTraderAccountId() int64
- func (x *ProtoOAAssetClassListReq) GetPayloadType() ProtoOAPayloadType
- func (*ProtoOAAssetClassListReq) ProtoMessage()
- func (x *ProtoOAAssetClassListReq) ProtoReflect() protoreflect.Message
- func (x *ProtoOAAssetClassListReq) Reset()
- func (x *ProtoOAAssetClassListReq) String() string
- type ProtoOAAssetClassListRes
- func (*ProtoOAAssetClassListRes) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAAssetClassListRes) GetAssetClass() []*ProtoOAAssetClass
- func (x *ProtoOAAssetClassListRes) GetCtidTraderAccountId() int64
- func (x *ProtoOAAssetClassListRes) GetPayloadType() ProtoOAPayloadType
- func (*ProtoOAAssetClassListRes) ProtoMessage()
- func (x *ProtoOAAssetClassListRes) ProtoReflect() protoreflect.Message
- func (x *ProtoOAAssetClassListRes) Reset()
- func (x *ProtoOAAssetClassListRes) String() string
- type ProtoOAAssetListReq
- func (*ProtoOAAssetListReq) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAAssetListReq) GetCtidTraderAccountId() int64
- func (x *ProtoOAAssetListReq) GetPayloadType() ProtoOAPayloadType
- func (*ProtoOAAssetListReq) ProtoMessage()
- func (x *ProtoOAAssetListReq) ProtoReflect() protoreflect.Message
- func (x *ProtoOAAssetListReq) Reset()
- func (x *ProtoOAAssetListReq) String() string
- type ProtoOAAssetListRes
- func (*ProtoOAAssetListRes) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAAssetListRes) GetAsset() []*ProtoOAAsset
- func (x *ProtoOAAssetListRes) GetCtidTraderAccountId() int64
- func (x *ProtoOAAssetListRes) GetPayloadType() ProtoOAPayloadType
- func (*ProtoOAAssetListRes) ProtoMessage()
- func (x *ProtoOAAssetListRes) ProtoReflect() protoreflect.Message
- func (x *ProtoOAAssetListRes) Reset()
- func (x *ProtoOAAssetListRes) String() string
- type ProtoOABonusDepositWithdraw
- func (*ProtoOABonusDepositWithdraw) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOABonusDepositWithdraw) GetBonusHistoryId() int64
- func (x *ProtoOABonusDepositWithdraw) GetChangeBonusTimestamp() int64
- func (x *ProtoOABonusDepositWithdraw) GetExternalNote() string
- func (x *ProtoOABonusDepositWithdraw) GetIbBonus() int64
- func (x *ProtoOABonusDepositWithdraw) GetIbDelta() int64
- func (x *ProtoOABonusDepositWithdraw) GetIntroducingBrokerId() int64
- func (x *ProtoOABonusDepositWithdraw) GetManagerBonus() int64
- func (x *ProtoOABonusDepositWithdraw) GetManagerDelta() int64
- func (x *ProtoOABonusDepositWithdraw) GetMoneyDigits() uint32
- func (x *ProtoOABonusDepositWithdraw) GetOperationType() ProtoOAChangeBonusType
- func (*ProtoOABonusDepositWithdraw) ProtoMessage()
- func (x *ProtoOABonusDepositWithdraw) ProtoReflect() protoreflect.Message
- func (x *ProtoOABonusDepositWithdraw) Reset()
- func (x *ProtoOABonusDepositWithdraw) String() string
- type ProtoOACancelOrderReq
- func (*ProtoOACancelOrderReq) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOACancelOrderReq) GetCtidTraderAccountId() int64
- func (x *ProtoOACancelOrderReq) GetOrderId() int64
- func (x *ProtoOACancelOrderReq) GetPayloadType() ProtoOAPayloadType
- func (*ProtoOACancelOrderReq) ProtoMessage()
- func (x *ProtoOACancelOrderReq) ProtoReflect() protoreflect.Message
- func (x *ProtoOACancelOrderReq) Reset()
- func (x *ProtoOACancelOrderReq) String() string
- type ProtoOACashFlowHistoryListReq
- func (*ProtoOACashFlowHistoryListReq) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOACashFlowHistoryListReq) GetCtidTraderAccountId() int64
- func (x *ProtoOACashFlowHistoryListReq) GetFromTimestamp() int64
- func (x *ProtoOACashFlowHistoryListReq) GetPayloadType() ProtoOAPayloadType
- func (x *ProtoOACashFlowHistoryListReq) GetToTimestamp() int64
- func (*ProtoOACashFlowHistoryListReq) ProtoMessage()
- func (x *ProtoOACashFlowHistoryListReq) ProtoReflect() protoreflect.Message
- func (x *ProtoOACashFlowHistoryListReq) Reset()
- func (x *ProtoOACashFlowHistoryListReq) String() string
- type ProtoOACashFlowHistoryListRes
- func (*ProtoOACashFlowHistoryListRes) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOACashFlowHistoryListRes) GetCtidTraderAccountId() int64
- func (x *ProtoOACashFlowHistoryListRes) GetDepositWithdraw() []*ProtoOADepositWithdraw
- func (x *ProtoOACashFlowHistoryListRes) GetPayloadType() ProtoOAPayloadType
- func (*ProtoOACashFlowHistoryListRes) ProtoMessage()
- func (x *ProtoOACashFlowHistoryListRes) ProtoReflect() protoreflect.Message
- func (x *ProtoOACashFlowHistoryListRes) Reset()
- func (x *ProtoOACashFlowHistoryListRes) String() string
- type ProtoOAChangeBalanceType
- func (ProtoOAChangeBalanceType) Descriptor() protoreflect.EnumDescriptor
- func (x ProtoOAChangeBalanceType) Enum() *ProtoOAChangeBalanceType
- func (ProtoOAChangeBalanceType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProtoOAChangeBalanceType) Number() protoreflect.EnumNumber
- func (x ProtoOAChangeBalanceType) String() string
- func (ProtoOAChangeBalanceType) Type() protoreflect.EnumType
- func (x *ProtoOAChangeBalanceType) UnmarshalJSON(b []byte) errordeprecated
- type ProtoOAChangeBonusType
- func (ProtoOAChangeBonusType) Descriptor() protoreflect.EnumDescriptor
- func (x ProtoOAChangeBonusType) Enum() *ProtoOAChangeBonusType
- func (ProtoOAChangeBonusType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProtoOAChangeBonusType) Number() protoreflect.EnumNumber
- func (x ProtoOAChangeBonusType) String() string
- func (ProtoOAChangeBonusType) Type() protoreflect.EnumType
- func (x *ProtoOAChangeBonusType) UnmarshalJSON(b []byte) errordeprecated
- type ProtoOAClientDisconnectEvent
- func (*ProtoOAClientDisconnectEvent) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAClientDisconnectEvent) GetPayloadType() ProtoOAPayloadType
- func (x *ProtoOAClientDisconnectEvent) GetReason() string
- func (*ProtoOAClientDisconnectEvent) ProtoMessage()
- func (x *ProtoOAClientDisconnectEvent) ProtoReflect() protoreflect.Message
- func (x *ProtoOAClientDisconnectEvent) Reset()
- func (x *ProtoOAClientDisconnectEvent) String() string
- type ProtoOAClientPermissionScope
- func (ProtoOAClientPermissionScope) Descriptor() protoreflect.EnumDescriptor
- func (x ProtoOAClientPermissionScope) Enum() *ProtoOAClientPermissionScope
- func (ProtoOAClientPermissionScope) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProtoOAClientPermissionScope) Number() protoreflect.EnumNumber
- func (x ProtoOAClientPermissionScope) String() string
- func (ProtoOAClientPermissionScope) Type() protoreflect.EnumType
- func (x *ProtoOAClientPermissionScope) UnmarshalJSON(b []byte) errordeprecated
- type ProtoOAClosePositionDetail
- func (*ProtoOAClosePositionDetail) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAClosePositionDetail) GetBalance() int64
- func (x *ProtoOAClosePositionDetail) GetBalanceVersion() int64
- func (x *ProtoOAClosePositionDetail) GetClosedVolume() int64
- func (x *ProtoOAClosePositionDetail) GetCommission() int64
- func (x *ProtoOAClosePositionDetail) GetEntryPrice() float64
- func (x *ProtoOAClosePositionDetail) GetGrossProfit() int64
- func (x *ProtoOAClosePositionDetail) GetMoneyDigits() uint32
- func (x *ProtoOAClosePositionDetail) GetPnlConversionFee() int64
- func (x *ProtoOAClosePositionDetail) GetQuoteToDepositConversionRate() float64
- func (x *ProtoOAClosePositionDetail) GetSwap() int64
- func (*ProtoOAClosePositionDetail) ProtoMessage()
- func (x *ProtoOAClosePositionDetail) ProtoReflect() protoreflect.Message
- func (x *ProtoOAClosePositionDetail) Reset()
- func (x *ProtoOAClosePositionDetail) String() string
- type ProtoOAClosePositionReq
- func (*ProtoOAClosePositionReq) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAClosePositionReq) GetCtidTraderAccountId() int64
- func (x *ProtoOAClosePositionReq) GetPayloadType() ProtoOAPayloadType
- func (x *ProtoOAClosePositionReq) GetPositionId() int64
- func (x *ProtoOAClosePositionReq) GetVolume() int64
- func (*ProtoOAClosePositionReq) ProtoMessage()
- func (x *ProtoOAClosePositionReq) ProtoReflect() protoreflect.Message
- func (x *ProtoOAClosePositionReq) Reset()
- func (x *ProtoOAClosePositionReq) String() string
- type ProtoOACommissionType
- func (ProtoOACommissionType) Descriptor() protoreflect.EnumDescriptor
- func (x ProtoOACommissionType) Enum() *ProtoOACommissionType
- func (ProtoOACommissionType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProtoOACommissionType) Number() protoreflect.EnumNumber
- func (x ProtoOACommissionType) String() string
- func (ProtoOACommissionType) Type() protoreflect.EnumType
- func (x *ProtoOACommissionType) UnmarshalJSON(b []byte) errordeprecated
- type ProtoOACtidProfile
- func (*ProtoOACtidProfile) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOACtidProfile) GetUserId() int64
- func (*ProtoOACtidProfile) ProtoMessage()
- func (x *ProtoOACtidProfile) ProtoReflect() protoreflect.Message
- func (x *ProtoOACtidProfile) Reset()
- func (x *ProtoOACtidProfile) String() string
- type ProtoOACtidTraderAccount
- func (*ProtoOACtidTraderAccount) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOACtidTraderAccount) GetBrokerTitleShort() string
- func (x *ProtoOACtidTraderAccount) GetCtidTraderAccountId() uint64
- func (x *ProtoOACtidTraderAccount) GetIsLive() bool
- func (x *ProtoOACtidTraderAccount) GetLastBalanceUpdateTimestamp() int64
- func (x *ProtoOACtidTraderAccount) GetLastClosingDealTimestamp() int64
- func (x *ProtoOACtidTraderAccount) GetTraderLogin() int64
- func (*ProtoOACtidTraderAccount) ProtoMessage()
- func (x *ProtoOACtidTraderAccount) ProtoReflect() protoreflect.Message
- func (x *ProtoOACtidTraderAccount) Reset()
- func (x *ProtoOACtidTraderAccount) String() string
- type ProtoOADayOfWeek
- func (ProtoOADayOfWeek) Descriptor() protoreflect.EnumDescriptor
- func (x ProtoOADayOfWeek) Enum() *ProtoOADayOfWeek
- func (ProtoOADayOfWeek) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProtoOADayOfWeek) Number() protoreflect.EnumNumber
- func (x ProtoOADayOfWeek) String() string
- func (ProtoOADayOfWeek) Type() protoreflect.EnumType
- func (x *ProtoOADayOfWeek) UnmarshalJSON(b []byte) errordeprecated
- type ProtoOADeal
- func (*ProtoOADeal) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOADeal) GetBaseToUsdConversionRate() float64
- func (x *ProtoOADeal) GetClosePositionDetail() *ProtoOAClosePositionDetail
- func (x *ProtoOADeal) GetCommission() int64
- func (x *ProtoOADeal) GetCreateTimestamp() int64
- func (x *ProtoOADeal) GetDealId() int64
- func (x *ProtoOADeal) GetDealStatus() ProtoOADealStatus
- func (x *ProtoOADeal) GetExecutionPrice() float64
- func (x *ProtoOADeal) GetExecutionTimestamp() int64
- func (x *ProtoOADeal) GetFilledVolume() int64
- func (x *ProtoOADeal) GetMarginRate() float64
- func (x *ProtoOADeal) GetMoneyDigits() uint32
- func (x *ProtoOADeal) GetOrderId() int64
- func (x *ProtoOADeal) GetPositionId() int64
- func (x *ProtoOADeal) GetSymbolId() int64
- func (x *ProtoOADeal) GetTradeSide() ProtoOATradeSide
- func (x *ProtoOADeal) GetUtcLastUpdateTimestamp() int64
- func (x *ProtoOADeal) GetVolume() int64
- func (*ProtoOADeal) ProtoMessage()
- func (x *ProtoOADeal) ProtoReflect() protoreflect.Message
- func (x *ProtoOADeal) Reset()
- func (x *ProtoOADeal) String() string
- type ProtoOADealListByPositionIdReq
- func (*ProtoOADealListByPositionIdReq) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOADealListByPositionIdReq) GetCtidTraderAccountId() int64
- func (x *ProtoOADealListByPositionIdReq) GetFromTimestamp() int64
- func (x *ProtoOADealListByPositionIdReq) GetPayloadType() ProtoOAPayloadType
- func (x *ProtoOADealListByPositionIdReq) GetPositionId() int64
- func (x *ProtoOADealListByPositionIdReq) GetToTimestamp() int64
- func (*ProtoOADealListByPositionIdReq) ProtoMessage()
- func (x *ProtoOADealListByPositionIdReq) ProtoReflect() protoreflect.Message
- func (x *ProtoOADealListByPositionIdReq) Reset()
- func (x *ProtoOADealListByPositionIdReq) String() string
- type ProtoOADealListByPositionIdRes
- func (*ProtoOADealListByPositionIdRes) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOADealListByPositionIdRes) GetCtidTraderAccountId() int64
- func (x *ProtoOADealListByPositionIdRes) GetDeal() []*ProtoOADeal
- func (x *ProtoOADealListByPositionIdRes) GetHasMore() bool
- func (x *ProtoOADealListByPositionIdRes) GetPayloadType() ProtoOAPayloadType
- func (*ProtoOADealListByPositionIdRes) ProtoMessage()
- func (x *ProtoOADealListByPositionIdRes) ProtoReflect() protoreflect.Message
- func (x *ProtoOADealListByPositionIdRes) Reset()
- func (x *ProtoOADealListByPositionIdRes) String() string
- type ProtoOADealListReq
- func (*ProtoOADealListReq) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOADealListReq) GetCtidTraderAccountId() int64
- func (x *ProtoOADealListReq) GetFromTimestamp() int64
- func (x *ProtoOADealListReq) GetMaxRows() int32
- func (x *ProtoOADealListReq) GetPayloadType() ProtoOAPayloadType
- func (x *ProtoOADealListReq) GetToTimestamp() int64
- func (*ProtoOADealListReq) ProtoMessage()
- func (x *ProtoOADealListReq) ProtoReflect() protoreflect.Message
- func (x *ProtoOADealListReq) Reset()
- func (x *ProtoOADealListReq) String() string
- type ProtoOADealListRes
- func (*ProtoOADealListRes) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOADealListRes) GetCtidTraderAccountId() int64
- func (x *ProtoOADealListRes) GetDeal() []*ProtoOADeal
- func (x *ProtoOADealListRes) GetHasMore() bool
- func (x *ProtoOADealListRes) GetPayloadType() ProtoOAPayloadType
- func (*ProtoOADealListRes) ProtoMessage()
- func (x *ProtoOADealListRes) ProtoReflect() protoreflect.Message
- func (x *ProtoOADealListRes) Reset()
- func (x *ProtoOADealListRes) String() string
- type ProtoOADealOffset
- func (*ProtoOADealOffset) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOADealOffset) GetDealId() int64
- func (x *ProtoOADealOffset) GetExecutionPrice() float64
- func (x *ProtoOADealOffset) GetExecutionTimestamp() int64
- func (x *ProtoOADealOffset) GetVolume() int64
- func (*ProtoOADealOffset) ProtoMessage()
- func (x *ProtoOADealOffset) ProtoReflect() protoreflect.Message
- func (x *ProtoOADealOffset) Reset()
- func (x *ProtoOADealOffset) String() string
- type ProtoOADealOffsetListReq
- func (*ProtoOADealOffsetListReq) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOADealOffsetListReq) GetCtidTraderAccountId() int64
- func (x *ProtoOADealOffsetListReq) GetDealId() int64
- func (x *ProtoOADealOffsetListReq) GetPayloadType() ProtoOAPayloadType
- func (*ProtoOADealOffsetListReq) ProtoMessage()
- func (x *ProtoOADealOffsetListReq) ProtoReflect() protoreflect.Message
- func (x *ProtoOADealOffsetListReq) Reset()
- func (x *ProtoOADealOffsetListReq) String() string
- type ProtoOADealOffsetListRes
- func (*ProtoOADealOffsetListRes) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOADealOffsetListRes) GetCtidTraderAccountId() int64
- func (x *ProtoOADealOffsetListRes) GetOffsetBy() []*ProtoOADealOffset
- func (x *ProtoOADealOffsetListRes) GetOffsetting() []*ProtoOADealOffset
- func (x *ProtoOADealOffsetListRes) GetPayloadType() ProtoOAPayloadType
- func (*ProtoOADealOffsetListRes) ProtoMessage()
- func (x *ProtoOADealOffsetListRes) ProtoReflect() protoreflect.Message
- func (x *ProtoOADealOffsetListRes) Reset()
- func (x *ProtoOADealOffsetListRes) String() string
- type ProtoOADealStatus
- func (ProtoOADealStatus) Descriptor() protoreflect.EnumDescriptor
- func (x ProtoOADealStatus) Enum() *ProtoOADealStatus
- func (ProtoOADealStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProtoOADealStatus) Number() protoreflect.EnumNumber
- func (x ProtoOADealStatus) String() string
- func (ProtoOADealStatus) Type() protoreflect.EnumType
- func (x *ProtoOADealStatus) UnmarshalJSON(b []byte) errordeprecated
- type ProtoOADepositWithdraw
- func (*ProtoOADepositWithdraw) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOADepositWithdraw) GetBalance() int64
- func (x *ProtoOADepositWithdraw) GetBalanceHistoryId() int64
- func (x *ProtoOADepositWithdraw) GetBalanceVersion() int64
- func (x *ProtoOADepositWithdraw) GetChangeBalanceTimestamp() int64
- func (x *ProtoOADepositWithdraw) GetDelta() int64
- func (x *ProtoOADepositWithdraw) GetEquity() int64
- func (x *ProtoOADepositWithdraw) GetExternalNote() string
- func (x *ProtoOADepositWithdraw) GetMoneyDigits() uint32
- func (x *ProtoOADepositWithdraw) GetOperationType() ProtoOAChangeBalanceType
- func (*ProtoOADepositWithdraw) ProtoMessage()
- func (x *ProtoOADepositWithdraw) ProtoReflect() protoreflect.Message
- func (x *ProtoOADepositWithdraw) Reset()
- func (x *ProtoOADepositWithdraw) String() string
- type ProtoOADepthEvent
- func (*ProtoOADepthEvent) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOADepthEvent) GetCtidTraderAccountId() int64
- func (x *ProtoOADepthEvent) GetDeletedQuotes() []uint64
- func (x *ProtoOADepthEvent) GetNewQuotes() []*ProtoOADepthQuote
- func (x *ProtoOADepthEvent) GetPayloadType() ProtoOAPayloadType
- func (x *ProtoOADepthEvent) GetSymbolId() uint64
- func (*ProtoOADepthEvent) ProtoMessage()
- func (x *ProtoOADepthEvent) ProtoReflect() protoreflect.Message
- func (x *ProtoOADepthEvent) Reset()
- func (x *ProtoOADepthEvent) String() string
- type ProtoOADepthQuote
- func (*ProtoOADepthQuote) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOADepthQuote) GetAsk() uint64
- func (x *ProtoOADepthQuote) GetBid() uint64
- func (x *ProtoOADepthQuote) GetId() uint64
- func (x *ProtoOADepthQuote) GetSize() uint64
- func (*ProtoOADepthQuote) ProtoMessage()
- func (x *ProtoOADepthQuote) ProtoReflect() protoreflect.Message
- func (x *ProtoOADepthQuote) Reset()
- func (x *ProtoOADepthQuote) String() string
- type ProtoOADynamicLeverage
- func (*ProtoOADynamicLeverage) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOADynamicLeverage) GetLeverageId() int64
- func (x *ProtoOADynamicLeverage) GetTiers() []*ProtoOADynamicLeverageTier
- func (*ProtoOADynamicLeverage) ProtoMessage()
- func (x *ProtoOADynamicLeverage) ProtoReflect() protoreflect.Message
- func (x *ProtoOADynamicLeverage) Reset()
- func (x *ProtoOADynamicLeverage) String() string
- type ProtoOADynamicLeverageTier
- func (*ProtoOADynamicLeverageTier) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOADynamicLeverageTier) GetLeverage() int32
- func (x *ProtoOADynamicLeverageTier) GetVolume() int64
- func (*ProtoOADynamicLeverageTier) ProtoMessage()
- func (x *ProtoOADynamicLeverageTier) ProtoReflect() protoreflect.Message
- func (x *ProtoOADynamicLeverageTier) Reset()
- func (x *ProtoOADynamicLeverageTier) String() string
- type ProtoOAErrorCode
- func (ProtoOAErrorCode) Descriptor() protoreflect.EnumDescriptor
- func (x ProtoOAErrorCode) Enum() *ProtoOAErrorCode
- func (ProtoOAErrorCode) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProtoOAErrorCode) Number() protoreflect.EnumNumber
- func (x ProtoOAErrorCode) String() string
- func (ProtoOAErrorCode) Type() protoreflect.EnumType
- func (x *ProtoOAErrorCode) UnmarshalJSON(b []byte) errordeprecated
- type ProtoOAErrorRes
- func (*ProtoOAErrorRes) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAErrorRes) GetCtidTraderAccountId() int64
- func (x *ProtoOAErrorRes) GetDescription() string
- func (x *ProtoOAErrorRes) GetErrorCode() string
- func (x *ProtoOAErrorRes) GetMaintenanceEndTimestamp() int64
- func (x *ProtoOAErrorRes) GetPayloadType() ProtoOAPayloadType
- func (x *ProtoOAErrorRes) GetRetryAfter() uint64
- func (*ProtoOAErrorRes) ProtoMessage()
- func (x *ProtoOAErrorRes) ProtoReflect() protoreflect.Message
- func (x *ProtoOAErrorRes) Reset()
- func (x *ProtoOAErrorRes) String() string
- type ProtoOAExecutionEvent
- func (*ProtoOAExecutionEvent) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAExecutionEvent) GetBonusDepositWithdraw() *ProtoOABonusDepositWithdraw
- func (x *ProtoOAExecutionEvent) GetCtidTraderAccountId() int64
- func (x *ProtoOAExecutionEvent) GetDeal() *ProtoOADeal
- func (x *ProtoOAExecutionEvent) GetDepositWithdraw() *ProtoOADepositWithdraw
- func (x *ProtoOAExecutionEvent) GetErrorCode() string
- func (x *ProtoOAExecutionEvent) GetExecutionType() ProtoOAExecutionType
- func (x *ProtoOAExecutionEvent) GetIsServerEvent() bool
- func (x *ProtoOAExecutionEvent) GetOrder() *ProtoOAOrder
- func (x *ProtoOAExecutionEvent) GetPayloadType() ProtoOAPayloadType
- func (x *ProtoOAExecutionEvent) GetPosition() *ProtoOAPosition
- func (*ProtoOAExecutionEvent) ProtoMessage()
- func (x *ProtoOAExecutionEvent) ProtoReflect() protoreflect.Message
- func (x *ProtoOAExecutionEvent) Reset()
- func (x *ProtoOAExecutionEvent) String() string
- type ProtoOAExecutionType
- func (ProtoOAExecutionType) Descriptor() protoreflect.EnumDescriptor
- func (x ProtoOAExecutionType) Enum() *ProtoOAExecutionType
- func (ProtoOAExecutionType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProtoOAExecutionType) Number() protoreflect.EnumNumber
- func (x ProtoOAExecutionType) String() string
- func (ProtoOAExecutionType) Type() protoreflect.EnumType
- func (x *ProtoOAExecutionType) UnmarshalJSON(b []byte) errordeprecated
- type ProtoOAExpectedMargin
- func (*ProtoOAExpectedMargin) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAExpectedMargin) GetBuyMargin() int64
- func (x *ProtoOAExpectedMargin) GetSellMargin() int64
- func (x *ProtoOAExpectedMargin) GetVolume() int64
- func (*ProtoOAExpectedMargin) ProtoMessage()
- func (x *ProtoOAExpectedMargin) ProtoReflect() protoreflect.Message
- func (x *ProtoOAExpectedMargin) Reset()
- func (x *ProtoOAExpectedMargin) String() string
- type ProtoOAExpectedMarginReq
- func (*ProtoOAExpectedMarginReq) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAExpectedMarginReq) GetCtidTraderAccountId() int64
- func (x *ProtoOAExpectedMarginReq) GetPayloadType() ProtoOAPayloadType
- func (x *ProtoOAExpectedMarginReq) GetSymbolId() int64
- func (x *ProtoOAExpectedMarginReq) GetVolume() []int64
- func (*ProtoOAExpectedMarginReq) ProtoMessage()
- func (x *ProtoOAExpectedMarginReq) ProtoReflect() protoreflect.Message
- func (x *ProtoOAExpectedMarginReq) Reset()
- func (x *ProtoOAExpectedMarginReq) String() string
- type ProtoOAExpectedMarginRes
- func (*ProtoOAExpectedMarginRes) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAExpectedMarginRes) GetCtidTraderAccountId() int64
- func (x *ProtoOAExpectedMarginRes) GetMargin() []*ProtoOAExpectedMargin
- func (x *ProtoOAExpectedMarginRes) GetMoneyDigits() uint32
- func (x *ProtoOAExpectedMarginRes) GetPayloadType() ProtoOAPayloadType
- func (*ProtoOAExpectedMarginRes) ProtoMessage()
- func (x *ProtoOAExpectedMarginRes) ProtoReflect() protoreflect.Message
- func (x *ProtoOAExpectedMarginRes) Reset()
- func (x *ProtoOAExpectedMarginRes) String() string
- type ProtoOAGetAccountListByAccessTokenReq
- func (*ProtoOAGetAccountListByAccessTokenReq) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAGetAccountListByAccessTokenReq) GetAccessToken() string
- func (x *ProtoOAGetAccountListByAccessTokenReq) GetPayloadType() ProtoOAPayloadType
- func (*ProtoOAGetAccountListByAccessTokenReq) ProtoMessage()
- func (x *ProtoOAGetAccountListByAccessTokenReq) ProtoReflect() protoreflect.Message
- func (x *ProtoOAGetAccountListByAccessTokenReq) Reset()
- func (x *ProtoOAGetAccountListByAccessTokenReq) String() string
- type ProtoOAGetAccountListByAccessTokenRes
- func (*ProtoOAGetAccountListByAccessTokenRes) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAGetAccountListByAccessTokenRes) GetAccessToken() string
- func (x *ProtoOAGetAccountListByAccessTokenRes) GetCtidTraderAccount() []*ProtoOACtidTraderAccount
- func (x *ProtoOAGetAccountListByAccessTokenRes) GetPayloadType() ProtoOAPayloadType
- func (x *ProtoOAGetAccountListByAccessTokenRes) GetPermissionScope() ProtoOAClientPermissionScope
- func (*ProtoOAGetAccountListByAccessTokenRes) ProtoMessage()
- func (x *ProtoOAGetAccountListByAccessTokenRes) ProtoReflect() protoreflect.Message
- func (x *ProtoOAGetAccountListByAccessTokenRes) Reset()
- func (x *ProtoOAGetAccountListByAccessTokenRes) String() string
- type ProtoOAGetCtidProfileByTokenReq
- func (*ProtoOAGetCtidProfileByTokenReq) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAGetCtidProfileByTokenReq) GetAccessToken() string
- func (x *ProtoOAGetCtidProfileByTokenReq) GetPayloadType() ProtoOAPayloadType
- func (*ProtoOAGetCtidProfileByTokenReq) ProtoMessage()
- func (x *ProtoOAGetCtidProfileByTokenReq) ProtoReflect() protoreflect.Message
- func (x *ProtoOAGetCtidProfileByTokenReq) Reset()
- func (x *ProtoOAGetCtidProfileByTokenReq) String() string
- type ProtoOAGetCtidProfileByTokenRes
- func (*ProtoOAGetCtidProfileByTokenRes) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAGetCtidProfileByTokenRes) GetPayloadType() ProtoOAPayloadType
- func (x *ProtoOAGetCtidProfileByTokenRes) GetProfile() *ProtoOACtidProfile
- func (*ProtoOAGetCtidProfileByTokenRes) ProtoMessage()
- func (x *ProtoOAGetCtidProfileByTokenRes) ProtoReflect() protoreflect.Message
- func (x *ProtoOAGetCtidProfileByTokenRes) Reset()
- func (x *ProtoOAGetCtidProfileByTokenRes) String() string
- type ProtoOAGetDynamicLeverageByIDReq
- func (*ProtoOAGetDynamicLeverageByIDReq) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAGetDynamicLeverageByIDReq) GetCtidTraderAccountId() int64
- func (x *ProtoOAGetDynamicLeverageByIDReq) GetLeverageId() int64
- func (x *ProtoOAGetDynamicLeverageByIDReq) GetPayloadType() ProtoOAPayloadType
- func (*ProtoOAGetDynamicLeverageByIDReq) ProtoMessage()
- func (x *ProtoOAGetDynamicLeverageByIDReq) ProtoReflect() protoreflect.Message
- func (x *ProtoOAGetDynamicLeverageByIDReq) Reset()
- func (x *ProtoOAGetDynamicLeverageByIDReq) String() string
- type ProtoOAGetDynamicLeverageByIDRes
- func (*ProtoOAGetDynamicLeverageByIDRes) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAGetDynamicLeverageByIDRes) GetCtidTraderAccountId() int64
- func (x *ProtoOAGetDynamicLeverageByIDRes) GetLeverage() *ProtoOADynamicLeverage
- func (x *ProtoOAGetDynamicLeverageByIDRes) GetPayloadType() ProtoOAPayloadType
- func (*ProtoOAGetDynamicLeverageByIDRes) ProtoMessage()
- func (x *ProtoOAGetDynamicLeverageByIDRes) ProtoReflect() protoreflect.Message
- func (x *ProtoOAGetDynamicLeverageByIDRes) Reset()
- func (x *ProtoOAGetDynamicLeverageByIDRes) String() string
- type ProtoOAGetPositionUnrealizedPnLReq
- func (*ProtoOAGetPositionUnrealizedPnLReq) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAGetPositionUnrealizedPnLReq) GetCtidTraderAccountId() int64
- func (x *ProtoOAGetPositionUnrealizedPnLReq) GetPayloadType() ProtoOAPayloadType
- func (*ProtoOAGetPositionUnrealizedPnLReq) ProtoMessage()
- func (x *ProtoOAGetPositionUnrealizedPnLReq) ProtoReflect() protoreflect.Message
- func (x *ProtoOAGetPositionUnrealizedPnLReq) Reset()
- func (x *ProtoOAGetPositionUnrealizedPnLReq) String() string
- type ProtoOAGetPositionUnrealizedPnLRes
- func (*ProtoOAGetPositionUnrealizedPnLRes) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAGetPositionUnrealizedPnLRes) GetCtidTraderAccountId() int64
- func (x *ProtoOAGetPositionUnrealizedPnLRes) GetMoneyDigits() uint32
- func (x *ProtoOAGetPositionUnrealizedPnLRes) GetPayloadType() ProtoOAPayloadType
- func (x *ProtoOAGetPositionUnrealizedPnLRes) GetPositionUnrealizedPnL() []*ProtoOAPositionUnrealizedPnL
- func (*ProtoOAGetPositionUnrealizedPnLRes) ProtoMessage()
- func (x *ProtoOAGetPositionUnrealizedPnLRes) ProtoReflect() protoreflect.Message
- func (x *ProtoOAGetPositionUnrealizedPnLRes) Reset()
- func (x *ProtoOAGetPositionUnrealizedPnLRes) String() string
- type ProtoOAGetTickDataReq
- func (*ProtoOAGetTickDataReq) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAGetTickDataReq) GetCtidTraderAccountId() int64
- func (x *ProtoOAGetTickDataReq) GetFromTimestamp() int64
- func (x *ProtoOAGetTickDataReq) GetPayloadType() ProtoOAPayloadType
- func (x *ProtoOAGetTickDataReq) GetSymbolId() int64
- func (x *ProtoOAGetTickDataReq) GetToTimestamp() int64
- func (x *ProtoOAGetTickDataReq) GetType() ProtoOAQuoteType
- func (*ProtoOAGetTickDataReq) ProtoMessage()
- func (x *ProtoOAGetTickDataReq) ProtoReflect() protoreflect.Message
- func (x *ProtoOAGetTickDataReq) Reset()
- func (x *ProtoOAGetTickDataReq) String() string
- type ProtoOAGetTickDataRes
- func (*ProtoOAGetTickDataRes) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAGetTickDataRes) GetCtidTraderAccountId() int64
- func (x *ProtoOAGetTickDataRes) GetHasMore() bool
- func (x *ProtoOAGetTickDataRes) GetPayloadType() ProtoOAPayloadType
- func (x *ProtoOAGetTickDataRes) GetTickData() []*ProtoOATickData
- func (*ProtoOAGetTickDataRes) ProtoMessage()
- func (x *ProtoOAGetTickDataRes) ProtoReflect() protoreflect.Message
- func (x *ProtoOAGetTickDataRes) Reset()
- func (x *ProtoOAGetTickDataRes) String() string
- type ProtoOAGetTrendbarsReq
- func (*ProtoOAGetTrendbarsReq) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAGetTrendbarsReq) GetCount() uint32
- func (x *ProtoOAGetTrendbarsReq) GetCtidTraderAccountId() int64
- func (x *ProtoOAGetTrendbarsReq) GetFromTimestamp() int64
- func (x *ProtoOAGetTrendbarsReq) GetPayloadType() ProtoOAPayloadType
- func (x *ProtoOAGetTrendbarsReq) GetPeriod() ProtoOATrendbarPeriod
- func (x *ProtoOAGetTrendbarsReq) GetSymbolId() int64
- func (x *ProtoOAGetTrendbarsReq) GetToTimestamp() int64
- func (*ProtoOAGetTrendbarsReq) ProtoMessage()
- func (x *ProtoOAGetTrendbarsReq) ProtoReflect() protoreflect.Message
- func (x *ProtoOAGetTrendbarsReq) Reset()
- func (x *ProtoOAGetTrendbarsReq) String() string
- type ProtoOAGetTrendbarsRes
- func (*ProtoOAGetTrendbarsRes) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAGetTrendbarsRes) GetCtidTraderAccountId() int64
- func (x *ProtoOAGetTrendbarsRes) GetHasMore() bool
- func (x *ProtoOAGetTrendbarsRes) GetPayloadType() ProtoOAPayloadType
- func (x *ProtoOAGetTrendbarsRes) GetPeriod() ProtoOATrendbarPeriod
- func (x *ProtoOAGetTrendbarsRes) GetSymbolId() int64
- func (x *ProtoOAGetTrendbarsRes) GetTimestamp() int64deprecated
- func (x *ProtoOAGetTrendbarsRes) GetTrendbar() []*ProtoOATrendbar
- func (*ProtoOAGetTrendbarsRes) ProtoMessage()
- func (x *ProtoOAGetTrendbarsRes) ProtoReflect() protoreflect.Message
- func (x *ProtoOAGetTrendbarsRes) Reset()
- func (x *ProtoOAGetTrendbarsRes) String() string
- type ProtoOAHoliday
- func (*ProtoOAHoliday) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAHoliday) GetDescription() string
- func (x *ProtoOAHoliday) GetEndSecond() int32
- func (x *ProtoOAHoliday) GetHolidayDate() int64
- func (x *ProtoOAHoliday) GetHolidayId() int64
- func (x *ProtoOAHoliday) GetIsRecurring() bool
- func (x *ProtoOAHoliday) GetName() string
- func (x *ProtoOAHoliday) GetScheduleTimeZone() string
- func (x *ProtoOAHoliday) GetStartSecond() int32
- func (*ProtoOAHoliday) ProtoMessage()
- func (x *ProtoOAHoliday) ProtoReflect() protoreflect.Message
- func (x *ProtoOAHoliday) Reset()
- func (x *ProtoOAHoliday) String() string
- type ProtoOAInterval
- func (*ProtoOAInterval) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAInterval) GetEndSecond() uint32
- func (x *ProtoOAInterval) GetStartSecond() uint32
- func (*ProtoOAInterval) ProtoMessage()
- func (x *ProtoOAInterval) ProtoReflect() protoreflect.Message
- func (x *ProtoOAInterval) Reset()
- func (x *ProtoOAInterval) String() string
- type ProtoOALightSymbol
- func (*ProtoOALightSymbol) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOALightSymbol) GetBaseAssetId() int64
- func (x *ProtoOALightSymbol) GetDescription() string
- func (x *ProtoOALightSymbol) GetEnabled() bool
- func (x *ProtoOALightSymbol) GetQuoteAssetId() int64
- func (x *ProtoOALightSymbol) GetSortingNumber() float64
- func (x *ProtoOALightSymbol) GetSymbolCategoryId() int64
- func (x *ProtoOALightSymbol) GetSymbolId() int64
- func (x *ProtoOALightSymbol) GetSymbolName() string
- func (*ProtoOALightSymbol) ProtoMessage()
- func (x *ProtoOALightSymbol) ProtoReflect() protoreflect.Message
- func (x *ProtoOALightSymbol) Reset()
- func (x *ProtoOALightSymbol) String() string
- type ProtoOALimitedRiskMarginCalculationStrategy
- func (ProtoOALimitedRiskMarginCalculationStrategy) Descriptor() protoreflect.EnumDescriptor
- func (x ProtoOALimitedRiskMarginCalculationStrategy) Enum() *ProtoOALimitedRiskMarginCalculationStrategy
- func (ProtoOALimitedRiskMarginCalculationStrategy) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProtoOALimitedRiskMarginCalculationStrategy) Number() protoreflect.EnumNumber
- func (x ProtoOALimitedRiskMarginCalculationStrategy) String() string
- func (ProtoOALimitedRiskMarginCalculationStrategy) Type() protoreflect.EnumType
- func (x *ProtoOALimitedRiskMarginCalculationStrategy) UnmarshalJSON(b []byte) errordeprecated
- type ProtoOAMarginCall
- func (*ProtoOAMarginCall) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAMarginCall) GetMarginCallType() ProtoOANotificationType
- func (x *ProtoOAMarginCall) GetMarginLevelThreshold() float64
- func (x *ProtoOAMarginCall) GetUtcLastUpdateTimestamp() int64
- func (*ProtoOAMarginCall) ProtoMessage()
- func (x *ProtoOAMarginCall) ProtoReflect() protoreflect.Message
- func (x *ProtoOAMarginCall) Reset()
- func (x *ProtoOAMarginCall) String() string
- type ProtoOAMarginCallListReq
- func (*ProtoOAMarginCallListReq) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAMarginCallListReq) GetCtidTraderAccountId() int64
- func (x *ProtoOAMarginCallListReq) GetPayloadType() ProtoOAPayloadType
- func (*ProtoOAMarginCallListReq) ProtoMessage()
- func (x *ProtoOAMarginCallListReq) ProtoReflect() protoreflect.Message
- func (x *ProtoOAMarginCallListReq) Reset()
- func (x *ProtoOAMarginCallListReq) String() string
- type ProtoOAMarginCallListRes
- func (*ProtoOAMarginCallListRes) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAMarginCallListRes) GetMarginCall() []*ProtoOAMarginCall
- func (x *ProtoOAMarginCallListRes) GetPayloadType() ProtoOAPayloadType
- func (*ProtoOAMarginCallListRes) ProtoMessage()
- func (x *ProtoOAMarginCallListRes) ProtoReflect() protoreflect.Message
- func (x *ProtoOAMarginCallListRes) Reset()
- func (x *ProtoOAMarginCallListRes) String() string
- type ProtoOAMarginCallTriggerEvent
- func (*ProtoOAMarginCallTriggerEvent) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAMarginCallTriggerEvent) GetCtidTraderAccountId() int64
- func (x *ProtoOAMarginCallTriggerEvent) GetMarginCall() *ProtoOAMarginCall
- func (x *ProtoOAMarginCallTriggerEvent) GetPayloadType() ProtoOAPayloadType
- func (*ProtoOAMarginCallTriggerEvent) ProtoMessage()
- func (x *ProtoOAMarginCallTriggerEvent) ProtoReflect() protoreflect.Message
- func (x *ProtoOAMarginCallTriggerEvent) Reset()
- func (x *ProtoOAMarginCallTriggerEvent) String() string
- type ProtoOAMarginCallUpdateEvent
- func (*ProtoOAMarginCallUpdateEvent) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAMarginCallUpdateEvent) GetCtidTraderAccountId() int64
- func (x *ProtoOAMarginCallUpdateEvent) GetMarginCall() *ProtoOAMarginCall
- func (x *ProtoOAMarginCallUpdateEvent) GetPayloadType() ProtoOAPayloadType
- func (*ProtoOAMarginCallUpdateEvent) ProtoMessage()
- func (x *ProtoOAMarginCallUpdateEvent) ProtoReflect() protoreflect.Message
- func (x *ProtoOAMarginCallUpdateEvent) Reset()
- func (x *ProtoOAMarginCallUpdateEvent) String() string
- type ProtoOAMarginCallUpdateReq
- func (*ProtoOAMarginCallUpdateReq) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAMarginCallUpdateReq) GetCtidTraderAccountId() int64
- func (x *ProtoOAMarginCallUpdateReq) GetMarginCall() *ProtoOAMarginCall
- func (x *ProtoOAMarginCallUpdateReq) GetPayloadType() ProtoOAPayloadType
- func (*ProtoOAMarginCallUpdateReq) ProtoMessage()
- func (x *ProtoOAMarginCallUpdateReq) ProtoReflect() protoreflect.Message
- func (x *ProtoOAMarginCallUpdateReq) Reset()
- func (x *ProtoOAMarginCallUpdateReq) String() string
- type ProtoOAMarginCallUpdateRes
- func (*ProtoOAMarginCallUpdateRes) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAMarginCallUpdateRes) GetPayloadType() ProtoOAPayloadType
- func (*ProtoOAMarginCallUpdateRes) ProtoMessage()
- func (x *ProtoOAMarginCallUpdateRes) ProtoReflect() protoreflect.Message
- func (x *ProtoOAMarginCallUpdateRes) Reset()
- func (x *ProtoOAMarginCallUpdateRes) String() string
- type ProtoOAMarginChangedEvent
- func (*ProtoOAMarginChangedEvent) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAMarginChangedEvent) GetCtidTraderAccountId() int64
- func (x *ProtoOAMarginChangedEvent) GetMoneyDigits() uint32
- func (x *ProtoOAMarginChangedEvent) GetPayloadType() ProtoOAPayloadType
- func (x *ProtoOAMarginChangedEvent) GetPositionId() uint64
- func (x *ProtoOAMarginChangedEvent) GetUsedMargin() uint64
- func (*ProtoOAMarginChangedEvent) ProtoMessage()
- func (x *ProtoOAMarginChangedEvent) ProtoReflect() protoreflect.Message
- func (x *ProtoOAMarginChangedEvent) Reset()
- func (x *ProtoOAMarginChangedEvent) String() string
- type ProtoOAMinCommissionType
- func (ProtoOAMinCommissionType) Descriptor() protoreflect.EnumDescriptor
- func (x ProtoOAMinCommissionType) Enum() *ProtoOAMinCommissionType
- func (ProtoOAMinCommissionType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProtoOAMinCommissionType) Number() protoreflect.EnumNumber
- func (x ProtoOAMinCommissionType) String() string
- func (ProtoOAMinCommissionType) Type() protoreflect.EnumType
- func (x *ProtoOAMinCommissionType) UnmarshalJSON(b []byte) errordeprecated
- type ProtoOANewOrderReq
- func (*ProtoOANewOrderReq) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOANewOrderReq) GetBaseSlippagePrice() float64
- func (x *ProtoOANewOrderReq) GetClientOrderId() string
- func (x *ProtoOANewOrderReq) GetComment() string
- func (x *ProtoOANewOrderReq) GetCtidTraderAccountId() int64
- func (x *ProtoOANewOrderReq) GetExpirationTimestamp() int64
- func (x *ProtoOANewOrderReq) GetGuaranteedStopLoss() bool
- func (x *ProtoOANewOrderReq) GetLabel() string
- func (x *ProtoOANewOrderReq) GetLimitPrice() float64
- func (x *ProtoOANewOrderReq) GetOrderType() ProtoOAOrderType
- func (x *ProtoOANewOrderReq) GetPayloadType() ProtoOAPayloadType
- func (x *ProtoOANewOrderReq) GetPositionId() int64
- func (x *ProtoOANewOrderReq) GetRelativeStopLoss() int64
- func (x *ProtoOANewOrderReq) GetRelativeTakeProfit() int64
- func (x *ProtoOANewOrderReq) GetSlippageInPoints() int32
- func (x *ProtoOANewOrderReq) GetStopLoss() float64
- func (x *ProtoOANewOrderReq) GetStopPrice() float64
- func (x *ProtoOANewOrderReq) GetStopTriggerMethod() ProtoOAOrderTriggerMethod
- func (x *ProtoOANewOrderReq) GetSymbolId() int64
- func (x *ProtoOANewOrderReq) GetTakeProfit() float64
- func (x *ProtoOANewOrderReq) GetTimeInForce() ProtoOATimeInForce
- func (x *ProtoOANewOrderReq) GetTradeSide() ProtoOATradeSide
- func (x *ProtoOANewOrderReq) GetTrailingStopLoss() bool
- func (x *ProtoOANewOrderReq) GetVolume() int64
- func (*ProtoOANewOrderReq) ProtoMessage()
- func (x *ProtoOANewOrderReq) ProtoReflect() protoreflect.Message
- func (x *ProtoOANewOrderReq) Reset()
- func (x *ProtoOANewOrderReq) String() string
- type ProtoOANotificationType
- func (ProtoOANotificationType) Descriptor() protoreflect.EnumDescriptor
- func (x ProtoOANotificationType) Enum() *ProtoOANotificationType
- func (ProtoOANotificationType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProtoOANotificationType) Number() protoreflect.EnumNumber
- func (x ProtoOANotificationType) String() string
- func (ProtoOANotificationType) Type() protoreflect.EnumType
- func (x *ProtoOANotificationType) UnmarshalJSON(b []byte) errordeprecated
- type ProtoOAOrder
- func (*ProtoOAOrder) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAOrder) GetBaseSlippagePrice() float64
- func (x *ProtoOAOrder) GetClientOrderId() string
- func (x *ProtoOAOrder) GetClosingOrder() bool
- func (x *ProtoOAOrder) GetExecutedVolume() int64
- func (x *ProtoOAOrder) GetExecutionPrice() float64
- func (x *ProtoOAOrder) GetExpirationTimestamp() int64
- func (x *ProtoOAOrder) GetIsStopOut() bool
- func (x *ProtoOAOrder) GetLimitPrice() float64
- func (x *ProtoOAOrder) GetOrderId() int64
- func (x *ProtoOAOrder) GetOrderStatus() ProtoOAOrderStatus
- func (x *ProtoOAOrder) GetOrderType() ProtoOAOrderType
- func (x *ProtoOAOrder) GetPositionId() int64
- func (x *ProtoOAOrder) GetRelativeStopLoss() int64
- func (x *ProtoOAOrder) GetRelativeTakeProfit() int64
- func (x *ProtoOAOrder) GetSlippageInPoints() int64
- func (x *ProtoOAOrder) GetStopLoss() float64
- func (x *ProtoOAOrder) GetStopPrice() float64
- func (x *ProtoOAOrder) GetStopTriggerMethod() ProtoOAOrderTriggerMethod
- func (x *ProtoOAOrder) GetTakeProfit() float64
- func (x *ProtoOAOrder) GetTimeInForce() ProtoOATimeInForce
- func (x *ProtoOAOrder) GetTradeData() *ProtoOATradeData
- func (x *ProtoOAOrder) GetTrailingStopLoss() bool
- func (x *ProtoOAOrder) GetUtcLastUpdateTimestamp() int64
- func (*ProtoOAOrder) ProtoMessage()
- func (x *ProtoOAOrder) ProtoReflect() protoreflect.Message
- func (x *ProtoOAOrder) Reset()
- func (x *ProtoOAOrder) String() string
- type ProtoOAOrderDetailsReq
- func (*ProtoOAOrderDetailsReq) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAOrderDetailsReq) GetCtidTraderAccountId() int64
- func (x *ProtoOAOrderDetailsReq) GetOrderId() int64
- func (x *ProtoOAOrderDetailsReq) GetPayloadType() ProtoOAPayloadType
- func (*ProtoOAOrderDetailsReq) ProtoMessage()
- func (x *ProtoOAOrderDetailsReq) ProtoReflect() protoreflect.Message
- func (x *ProtoOAOrderDetailsReq) Reset()
- func (x *ProtoOAOrderDetailsReq) String() string
- type ProtoOAOrderDetailsRes
- func (*ProtoOAOrderDetailsRes) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAOrderDetailsRes) GetCtidTraderAccountId() int64
- func (x *ProtoOAOrderDetailsRes) GetDeal() []*ProtoOADeal
- func (x *ProtoOAOrderDetailsRes) GetOrder() *ProtoOAOrder
- func (x *ProtoOAOrderDetailsRes) GetPayloadType() ProtoOAPayloadType
- func (*ProtoOAOrderDetailsRes) ProtoMessage()
- func (x *ProtoOAOrderDetailsRes) ProtoReflect() protoreflect.Message
- func (x *ProtoOAOrderDetailsRes) Reset()
- func (x *ProtoOAOrderDetailsRes) String() string
- type ProtoOAOrderErrorEvent
- func (*ProtoOAOrderErrorEvent) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAOrderErrorEvent) GetCtidTraderAccountId() int64
- func (x *ProtoOAOrderErrorEvent) GetDescription() string
- func (x *ProtoOAOrderErrorEvent) GetErrorCode() string
- func (x *ProtoOAOrderErrorEvent) GetOrderId() int64
- func (x *ProtoOAOrderErrorEvent) GetPayloadType() ProtoOAPayloadType
- func (x *ProtoOAOrderErrorEvent) GetPositionId() int64
- func (*ProtoOAOrderErrorEvent) ProtoMessage()
- func (x *ProtoOAOrderErrorEvent) ProtoReflect() protoreflect.Message
- func (x *ProtoOAOrderErrorEvent) Reset()
- func (x *ProtoOAOrderErrorEvent) String() string
- type ProtoOAOrderListByPositionIdReq
- func (*ProtoOAOrderListByPositionIdReq) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAOrderListByPositionIdReq) GetCtidTraderAccountId() int64
- func (x *ProtoOAOrderListByPositionIdReq) GetFromTimestamp() int64
- func (x *ProtoOAOrderListByPositionIdReq) GetPayloadType() ProtoOAPayloadType
- func (x *ProtoOAOrderListByPositionIdReq) GetPositionId() int64
- func (x *ProtoOAOrderListByPositionIdReq) GetToTimestamp() int64
- func (*ProtoOAOrderListByPositionIdReq) ProtoMessage()
- func (x *ProtoOAOrderListByPositionIdReq) ProtoReflect() protoreflect.Message
- func (x *ProtoOAOrderListByPositionIdReq) Reset()
- func (x *ProtoOAOrderListByPositionIdReq) String() string
- type ProtoOAOrderListByPositionIdRes
- func (*ProtoOAOrderListByPositionIdRes) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAOrderListByPositionIdRes) GetCtidTraderAccountId() int64
- func (x *ProtoOAOrderListByPositionIdRes) GetHasMore() bool
- func (x *ProtoOAOrderListByPositionIdRes) GetOrder() []*ProtoOAOrder
- func (x *ProtoOAOrderListByPositionIdRes) GetPayloadType() ProtoOAPayloadType
- func (*ProtoOAOrderListByPositionIdRes) ProtoMessage()
- func (x *ProtoOAOrderListByPositionIdRes) ProtoReflect() protoreflect.Message
- func (x *ProtoOAOrderListByPositionIdRes) Reset()
- func (x *ProtoOAOrderListByPositionIdRes) String() string
- type ProtoOAOrderListReq
- func (*ProtoOAOrderListReq) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAOrderListReq) GetCtidTraderAccountId() int64
- func (x *ProtoOAOrderListReq) GetFromTimestamp() int64
- func (x *ProtoOAOrderListReq) GetPayloadType() ProtoOAPayloadType
- func (x *ProtoOAOrderListReq) GetToTimestamp() int64
- func (*ProtoOAOrderListReq) ProtoMessage()
- func (x *ProtoOAOrderListReq) ProtoReflect() protoreflect.Message
- func (x *ProtoOAOrderListReq) Reset()
- func (x *ProtoOAOrderListReq) String() string
- type ProtoOAOrderListRes
- func (*ProtoOAOrderListRes) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAOrderListRes) GetCtidTraderAccountId() int64
- func (x *ProtoOAOrderListRes) GetHasMore() bool
- func (x *ProtoOAOrderListRes) GetOrder() []*ProtoOAOrder
- func (x *ProtoOAOrderListRes) GetPayloadType() ProtoOAPayloadType
- func (*ProtoOAOrderListRes) ProtoMessage()
- func (x *ProtoOAOrderListRes) ProtoReflect() protoreflect.Message
- func (x *ProtoOAOrderListRes) Reset()
- func (x *ProtoOAOrderListRes) String() string
- type ProtoOAOrderStatus
- func (ProtoOAOrderStatus) Descriptor() protoreflect.EnumDescriptor
- func (x ProtoOAOrderStatus) Enum() *ProtoOAOrderStatus
- func (ProtoOAOrderStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProtoOAOrderStatus) Number() protoreflect.EnumNumber
- func (x ProtoOAOrderStatus) String() string
- func (ProtoOAOrderStatus) Type() protoreflect.EnumType
- func (x *ProtoOAOrderStatus) UnmarshalJSON(b []byte) errordeprecated
- type ProtoOAOrderTriggerMethod
- func (ProtoOAOrderTriggerMethod) Descriptor() protoreflect.EnumDescriptor
- func (x ProtoOAOrderTriggerMethod) Enum() *ProtoOAOrderTriggerMethod
- func (ProtoOAOrderTriggerMethod) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProtoOAOrderTriggerMethod) Number() protoreflect.EnumNumber
- func (x ProtoOAOrderTriggerMethod) String() string
- func (ProtoOAOrderTriggerMethod) Type() protoreflect.EnumType
- func (x *ProtoOAOrderTriggerMethod) UnmarshalJSON(b []byte) errordeprecated
- type ProtoOAOrderType
- func (ProtoOAOrderType) Descriptor() protoreflect.EnumDescriptor
- func (x ProtoOAOrderType) Enum() *ProtoOAOrderType
- func (ProtoOAOrderType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProtoOAOrderType) Number() protoreflect.EnumNumber
- func (x ProtoOAOrderType) String() string
- func (ProtoOAOrderType) Type() protoreflect.EnumType
- func (x *ProtoOAOrderType) UnmarshalJSON(b []byte) errordeprecated
- type ProtoOAPayloadType
- func (ProtoOAPayloadType) Descriptor() protoreflect.EnumDescriptor
- func (x ProtoOAPayloadType) Enum() *ProtoOAPayloadType
- func (ProtoOAPayloadType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProtoOAPayloadType) Number() protoreflect.EnumNumber
- func (x ProtoOAPayloadType) String() string
- func (ProtoOAPayloadType) Type() protoreflect.EnumType
- func (x *ProtoOAPayloadType) UnmarshalJSON(b []byte) errordeprecated
- type ProtoOAPosition
- func (*ProtoOAPosition) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAPosition) GetCommission() int64
- func (x *ProtoOAPosition) GetGuaranteedStopLoss() bool
- func (x *ProtoOAPosition) GetMarginRate() float64
- func (x *ProtoOAPosition) GetMirroringCommission() int64
- func (x *ProtoOAPosition) GetMoneyDigits() uint32
- func (x *ProtoOAPosition) GetPositionId() int64
- func (x *ProtoOAPosition) GetPositionStatus() ProtoOAPositionStatus
- func (x *ProtoOAPosition) GetPrice() float64
- func (x *ProtoOAPosition) GetStopLoss() float64
- func (x *ProtoOAPosition) GetStopLossTriggerMethod() ProtoOAOrderTriggerMethod
- func (x *ProtoOAPosition) GetSwap() int64
- func (x *ProtoOAPosition) GetTakeProfit() float64
- func (x *ProtoOAPosition) GetTradeData() *ProtoOATradeData
- func (x *ProtoOAPosition) GetTrailingStopLoss() bool
- func (x *ProtoOAPosition) GetUsedMargin() uint64
- func (x *ProtoOAPosition) GetUtcLastUpdateTimestamp() int64
- func (*ProtoOAPosition) ProtoMessage()
- func (x *ProtoOAPosition) ProtoReflect() protoreflect.Message
- func (x *ProtoOAPosition) Reset()
- func (x *ProtoOAPosition) String() string
- type ProtoOAPositionStatus
- func (ProtoOAPositionStatus) Descriptor() protoreflect.EnumDescriptor
- func (x ProtoOAPositionStatus) Enum() *ProtoOAPositionStatus
- func (ProtoOAPositionStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProtoOAPositionStatus) Number() protoreflect.EnumNumber
- func (x ProtoOAPositionStatus) String() string
- func (ProtoOAPositionStatus) Type() protoreflect.EnumType
- func (x *ProtoOAPositionStatus) UnmarshalJSON(b []byte) errordeprecated
- type ProtoOAPositionUnrealizedPnL
- func (*ProtoOAPositionUnrealizedPnL) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAPositionUnrealizedPnL) GetGrossUnrealizedPnL() int64
- func (x *ProtoOAPositionUnrealizedPnL) GetNetUnrealizedPnL() int64
- func (x *ProtoOAPositionUnrealizedPnL) GetPositionId() int64
- func (*ProtoOAPositionUnrealizedPnL) ProtoMessage()
- func (x *ProtoOAPositionUnrealizedPnL) ProtoReflect() protoreflect.Message
- func (x *ProtoOAPositionUnrealizedPnL) Reset()
- func (x *ProtoOAPositionUnrealizedPnL) String() string
- type ProtoOAQuoteType
- func (ProtoOAQuoteType) Descriptor() protoreflect.EnumDescriptor
- func (x ProtoOAQuoteType) Enum() *ProtoOAQuoteType
- func (ProtoOAQuoteType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProtoOAQuoteType) Number() protoreflect.EnumNumber
- func (x ProtoOAQuoteType) String() string
- func (ProtoOAQuoteType) Type() protoreflect.EnumType
- func (x *ProtoOAQuoteType) UnmarshalJSON(b []byte) errordeprecated
- type ProtoOAReconcileReq
- func (*ProtoOAReconcileReq) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAReconcileReq) GetCtidTraderAccountId() int64
- func (x *ProtoOAReconcileReq) GetPayloadType() ProtoOAPayloadType
- func (x *ProtoOAReconcileReq) GetReturnProtectionOrders() bool
- func (*ProtoOAReconcileReq) ProtoMessage()
- func (x *ProtoOAReconcileReq) ProtoReflect() protoreflect.Message
- func (x *ProtoOAReconcileReq) Reset()
- func (x *ProtoOAReconcileReq) String() string
- type ProtoOAReconcileRes
- func (*ProtoOAReconcileRes) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAReconcileRes) GetCtidTraderAccountId() int64
- func (x *ProtoOAReconcileRes) GetOrder() []*ProtoOAOrder
- func (x *ProtoOAReconcileRes) GetPayloadType() ProtoOAPayloadType
- func (x *ProtoOAReconcileRes) GetPosition() []*ProtoOAPosition
- func (*ProtoOAReconcileRes) ProtoMessage()
- func (x *ProtoOAReconcileRes) ProtoReflect() protoreflect.Message
- func (x *ProtoOAReconcileRes) Reset()
- func (x *ProtoOAReconcileRes) String() string
- type ProtoOARefreshTokenReq
- func (*ProtoOARefreshTokenReq) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOARefreshTokenReq) GetPayloadType() ProtoOAPayloadType
- func (x *ProtoOARefreshTokenReq) GetRefreshToken() string
- func (*ProtoOARefreshTokenReq) ProtoMessage()
- func (x *ProtoOARefreshTokenReq) ProtoReflect() protoreflect.Message
- func (x *ProtoOARefreshTokenReq) Reset()
- func (x *ProtoOARefreshTokenReq) String() string
- type ProtoOARefreshTokenRes
- func (*ProtoOARefreshTokenRes) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOARefreshTokenRes) GetAccessToken() string
- func (x *ProtoOARefreshTokenRes) GetExpiresIn() int64
- func (x *ProtoOARefreshTokenRes) GetPayloadType() ProtoOAPayloadType
- func (x *ProtoOARefreshTokenRes) GetRefreshToken() string
- func (x *ProtoOARefreshTokenRes) GetTokenType() string
- func (*ProtoOARefreshTokenRes) ProtoMessage()
- func (x *ProtoOARefreshTokenRes) ProtoReflect() protoreflect.Message
- func (x *ProtoOARefreshTokenRes) Reset()
- func (x *ProtoOARefreshTokenRes) String() string
- type ProtoOASpotEvent
- func (*ProtoOASpotEvent) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOASpotEvent) GetAsk() uint64
- func (x *ProtoOASpotEvent) GetBid() uint64
- func (x *ProtoOASpotEvent) GetCtidTraderAccountId() int64
- func (x *ProtoOASpotEvent) GetPayloadType() ProtoOAPayloadType
- func (x *ProtoOASpotEvent) GetSessionClose() uint64
- func (x *ProtoOASpotEvent) GetSymbolId() int64
- func (x *ProtoOASpotEvent) GetTimestamp() int64
- func (x *ProtoOASpotEvent) GetTrendbar() []*ProtoOATrendbar
- func (*ProtoOASpotEvent) ProtoMessage()
- func (x *ProtoOASpotEvent) ProtoReflect() protoreflect.Message
- func (x *ProtoOASpotEvent) Reset()
- func (x *ProtoOASpotEvent) String() string
- type ProtoOAStopOutStrategy
- func (ProtoOAStopOutStrategy) Descriptor() protoreflect.EnumDescriptor
- func (x ProtoOAStopOutStrategy) Enum() *ProtoOAStopOutStrategy
- func (ProtoOAStopOutStrategy) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProtoOAStopOutStrategy) Number() protoreflect.EnumNumber
- func (x ProtoOAStopOutStrategy) String() string
- func (ProtoOAStopOutStrategy) Type() protoreflect.EnumType
- func (x *ProtoOAStopOutStrategy) UnmarshalJSON(b []byte) errordeprecated
- type ProtoOASubscribeDepthQuotesReq
- func (*ProtoOASubscribeDepthQuotesReq) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOASubscribeDepthQuotesReq) GetCtidTraderAccountId() int64
- func (x *ProtoOASubscribeDepthQuotesReq) GetPayloadType() ProtoOAPayloadType
- func (x *ProtoOASubscribeDepthQuotesReq) GetSymbolId() []int64
- func (*ProtoOASubscribeDepthQuotesReq) ProtoMessage()
- func (x *ProtoOASubscribeDepthQuotesReq) ProtoReflect() protoreflect.Message
- func (x *ProtoOASubscribeDepthQuotesReq) Reset()
- func (x *ProtoOASubscribeDepthQuotesReq) String() string
- type ProtoOASubscribeDepthQuotesRes
- func (*ProtoOASubscribeDepthQuotesRes) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOASubscribeDepthQuotesRes) GetCtidTraderAccountId() int64
- func (x *ProtoOASubscribeDepthQuotesRes) GetPayloadType() ProtoOAPayloadType
- func (*ProtoOASubscribeDepthQuotesRes) ProtoMessage()
- func (x *ProtoOASubscribeDepthQuotesRes) ProtoReflect() protoreflect.Message
- func (x *ProtoOASubscribeDepthQuotesRes) Reset()
- func (x *ProtoOASubscribeDepthQuotesRes) String() string
- type ProtoOASubscribeLiveTrendbarReq
- func (*ProtoOASubscribeLiveTrendbarReq) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOASubscribeLiveTrendbarReq) GetCtidTraderAccountId() int64
- func (x *ProtoOASubscribeLiveTrendbarReq) GetPayloadType() ProtoOAPayloadType
- func (x *ProtoOASubscribeLiveTrendbarReq) GetPeriod() ProtoOATrendbarPeriod
- func (x *ProtoOASubscribeLiveTrendbarReq) GetSymbolId() int64
- func (*ProtoOASubscribeLiveTrendbarReq) ProtoMessage()
- func (x *ProtoOASubscribeLiveTrendbarReq) ProtoReflect() protoreflect.Message
- func (x *ProtoOASubscribeLiveTrendbarReq) Reset()
- func (x *ProtoOASubscribeLiveTrendbarReq) String() string
- type ProtoOASubscribeLiveTrendbarRes
- func (*ProtoOASubscribeLiveTrendbarRes) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOASubscribeLiveTrendbarRes) GetCtidTraderAccountId() int64
- func (x *ProtoOASubscribeLiveTrendbarRes) GetPayloadType() ProtoOAPayloadType
- func (*ProtoOASubscribeLiveTrendbarRes) ProtoMessage()
- func (x *ProtoOASubscribeLiveTrendbarRes) ProtoReflect() protoreflect.Message
- func (x *ProtoOASubscribeLiveTrendbarRes) Reset()
- func (x *ProtoOASubscribeLiveTrendbarRes) String() string
- type ProtoOASubscribeSpotsReq
- func (*ProtoOASubscribeSpotsReq) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOASubscribeSpotsReq) GetCtidTraderAccountId() int64
- func (x *ProtoOASubscribeSpotsReq) GetPayloadType() ProtoOAPayloadType
- func (x *ProtoOASubscribeSpotsReq) GetSubscribeToSpotTimestamp() bool
- func (x *ProtoOASubscribeSpotsReq) GetSymbolId() []int64
- func (*ProtoOASubscribeSpotsReq) ProtoMessage()
- func (x *ProtoOASubscribeSpotsReq) ProtoReflect() protoreflect.Message
- func (x *ProtoOASubscribeSpotsReq) Reset()
- func (x *ProtoOASubscribeSpotsReq) String() string
- type ProtoOASubscribeSpotsRes
- func (*ProtoOASubscribeSpotsRes) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOASubscribeSpotsRes) GetCtidTraderAccountId() int64
- func (x *ProtoOASubscribeSpotsRes) GetPayloadType() ProtoOAPayloadType
- func (*ProtoOASubscribeSpotsRes) ProtoMessage()
- func (x *ProtoOASubscribeSpotsRes) ProtoReflect() protoreflect.Message
- func (x *ProtoOASubscribeSpotsRes) Reset()
- func (x *ProtoOASubscribeSpotsRes) String() string
- type ProtoOASwapCalculationType
- func (ProtoOASwapCalculationType) Descriptor() protoreflect.EnumDescriptor
- func (x ProtoOASwapCalculationType) Enum() *ProtoOASwapCalculationType
- func (ProtoOASwapCalculationType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProtoOASwapCalculationType) Number() protoreflect.EnumNumber
- func (x ProtoOASwapCalculationType) String() string
- func (ProtoOASwapCalculationType) Type() protoreflect.EnumType
- func (x *ProtoOASwapCalculationType) UnmarshalJSON(b []byte) errordeprecated
- type ProtoOASymbol
- func (*ProtoOASymbol) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOASymbol) GetChargeSwapAtWeekends() bool
- func (x *ProtoOASymbol) GetCommission() int64deprecated
- func (x *ProtoOASymbol) GetCommissionType() ProtoOACommissionType
- func (x *ProtoOASymbol) GetDigits() int32
- func (x *ProtoOASymbol) GetDistanceSetIn() ProtoOASymbolDistanceType
- func (x *ProtoOASymbol) GetEnableShortSelling() bool
- func (x *ProtoOASymbol) GetGslCharge() int64
- func (x *ProtoOASymbol) GetGslDistance() uint32
- func (x *ProtoOASymbol) GetGuaranteedStopLoss() bool
- func (x *ProtoOASymbol) GetHoliday() []*ProtoOAHoliday
- func (x *ProtoOASymbol) GetLeverageId() int64
- func (x *ProtoOASymbol) GetLotSize() int64
- func (x *ProtoOASymbol) GetMaxExposure() uint64
- func (x *ProtoOASymbol) GetMaxVolume() int64
- func (x *ProtoOASymbol) GetMeasurementUnits() string
- func (x *ProtoOASymbol) GetMinCommission() int64deprecated
- func (x *ProtoOASymbol) GetMinCommissionAsset() string
- func (x *ProtoOASymbol) GetMinCommissionType() ProtoOAMinCommissionType
- func (x *ProtoOASymbol) GetMinVolume() int64
- func (x *ProtoOASymbol) GetPipPosition() int32
- func (x *ProtoOASymbol) GetPnlConversionFeeRate() int32
- func (x *ProtoOASymbol) GetPreciseMinCommission() int64
- func (x *ProtoOASymbol) GetPreciseTradingCommissionRate() int64
- func (x *ProtoOASymbol) GetRolloverCommission() int64
- func (x *ProtoOASymbol) GetRolloverCommission3Days() ProtoOADayOfWeek
- func (x *ProtoOASymbol) GetSchedule() []*ProtoOAInterval
- func (x *ProtoOASymbol) GetScheduleTimeZone() string
- func (x *ProtoOASymbol) GetSkipRolloverDays() int32
- func (x *ProtoOASymbol) GetSkipSWAPPeriods() int32
- func (x *ProtoOASymbol) GetSlDistance() uint32
- func (x *ProtoOASymbol) GetStepVolume() int64
- func (x *ProtoOASymbol) GetSwapCalculationType() ProtoOASwapCalculationType
- func (x *ProtoOASymbol) GetSwapLong() float64
- func (x *ProtoOASymbol) GetSwapPeriod() int32
- func (x *ProtoOASymbol) GetSwapRollover3Days() ProtoOADayOfWeek
- func (x *ProtoOASymbol) GetSwapShort() float64
- func (x *ProtoOASymbol) GetSwapTime() int32
- func (x *ProtoOASymbol) GetSymbolId() int64
- func (x *ProtoOASymbol) GetTpDistance() uint32
- func (x *ProtoOASymbol) GetTradingMode() ProtoOATradingMode
- func (*ProtoOASymbol) ProtoMessage()
- func (x *ProtoOASymbol) ProtoReflect() protoreflect.Message
- func (x *ProtoOASymbol) Reset()
- func (x *ProtoOASymbol) String() string
- type ProtoOASymbolByIdReq
- func (*ProtoOASymbolByIdReq) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOASymbolByIdReq) GetCtidTraderAccountId() int64
- func (x *ProtoOASymbolByIdReq) GetPayloadType() ProtoOAPayloadType
- func (x *ProtoOASymbolByIdReq) GetSymbolId() []int64
- func (*ProtoOASymbolByIdReq) ProtoMessage()
- func (x *ProtoOASymbolByIdReq) ProtoReflect() protoreflect.Message
- func (x *ProtoOASymbolByIdReq) Reset()
- func (x *ProtoOASymbolByIdReq) String() string
- type ProtoOASymbolByIdRes
- func (*ProtoOASymbolByIdRes) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOASymbolByIdRes) GetArchivedSymbol() []*ProtoOAArchivedSymbol
- func (x *ProtoOASymbolByIdRes) GetCtidTraderAccountId() int64
- func (x *ProtoOASymbolByIdRes) GetPayloadType() ProtoOAPayloadType
- func (x *ProtoOASymbolByIdRes) GetSymbol() []*ProtoOASymbol
- func (*ProtoOASymbolByIdRes) ProtoMessage()
- func (x *ProtoOASymbolByIdRes) ProtoReflect() protoreflect.Message
- func (x *ProtoOASymbolByIdRes) Reset()
- func (x *ProtoOASymbolByIdRes) String() string
- type ProtoOASymbolCategory
- func (*ProtoOASymbolCategory) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOASymbolCategory) GetAssetClassId() int64
- func (x *ProtoOASymbolCategory) GetId() int64
- func (x *ProtoOASymbolCategory) GetName() string
- func (x *ProtoOASymbolCategory) GetSortingNumber() float64
- func (*ProtoOASymbolCategory) ProtoMessage()
- func (x *ProtoOASymbolCategory) ProtoReflect() protoreflect.Message
- func (x *ProtoOASymbolCategory) Reset()
- func (x *ProtoOASymbolCategory) String() string
- type ProtoOASymbolCategoryListReq
- func (*ProtoOASymbolCategoryListReq) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOASymbolCategoryListReq) GetCtidTraderAccountId() int64
- func (x *ProtoOASymbolCategoryListReq) GetPayloadType() ProtoOAPayloadType
- func (*ProtoOASymbolCategoryListReq) ProtoMessage()
- func (x *ProtoOASymbolCategoryListReq) ProtoReflect() protoreflect.Message
- func (x *ProtoOASymbolCategoryListReq) Reset()
- func (x *ProtoOASymbolCategoryListReq) String() string
- type ProtoOASymbolCategoryListRes
- func (*ProtoOASymbolCategoryListRes) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOASymbolCategoryListRes) GetCtidTraderAccountId() int64
- func (x *ProtoOASymbolCategoryListRes) GetPayloadType() ProtoOAPayloadType
- func (x *ProtoOASymbolCategoryListRes) GetSymbolCategory() []*ProtoOASymbolCategory
- func (*ProtoOASymbolCategoryListRes) ProtoMessage()
- func (x *ProtoOASymbolCategoryListRes) ProtoReflect() protoreflect.Message
- func (x *ProtoOASymbolCategoryListRes) Reset()
- func (x *ProtoOASymbolCategoryListRes) String() string
- type ProtoOASymbolChangedEvent
- func (*ProtoOASymbolChangedEvent) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOASymbolChangedEvent) GetCtidTraderAccountId() int64
- func (x *ProtoOASymbolChangedEvent) GetPayloadType() ProtoOAPayloadType
- func (x *ProtoOASymbolChangedEvent) GetSymbolId() []int64
- func (*ProtoOASymbolChangedEvent) ProtoMessage()
- func (x *ProtoOASymbolChangedEvent) ProtoReflect() protoreflect.Message
- func (x *ProtoOASymbolChangedEvent) Reset()
- func (x *ProtoOASymbolChangedEvent) String() string
- type ProtoOASymbolDistanceType
- func (ProtoOASymbolDistanceType) Descriptor() protoreflect.EnumDescriptor
- func (x ProtoOASymbolDistanceType) Enum() *ProtoOASymbolDistanceType
- func (ProtoOASymbolDistanceType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProtoOASymbolDistanceType) Number() protoreflect.EnumNumber
- func (x ProtoOASymbolDistanceType) String() string
- func (ProtoOASymbolDistanceType) Type() protoreflect.EnumType
- func (x *ProtoOASymbolDistanceType) UnmarshalJSON(b []byte) errordeprecated
- type ProtoOASymbolsForConversionReq
- func (*ProtoOASymbolsForConversionReq) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOASymbolsForConversionReq) GetCtidTraderAccountId() int64
- func (x *ProtoOASymbolsForConversionReq) GetFirstAssetId() int64
- func (x *ProtoOASymbolsForConversionReq) GetLastAssetId() int64
- func (x *ProtoOASymbolsForConversionReq) GetPayloadType() ProtoOAPayloadType
- func (*ProtoOASymbolsForConversionReq) ProtoMessage()
- func (x *ProtoOASymbolsForConversionReq) ProtoReflect() protoreflect.Message
- func (x *ProtoOASymbolsForConversionReq) Reset()
- func (x *ProtoOASymbolsForConversionReq) String() string
- type ProtoOASymbolsForConversionRes
- func (*ProtoOASymbolsForConversionRes) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOASymbolsForConversionRes) GetCtidTraderAccountId() int64
- func (x *ProtoOASymbolsForConversionRes) GetPayloadType() ProtoOAPayloadType
- func (x *ProtoOASymbolsForConversionRes) GetSymbol() []*ProtoOALightSymbol
- func (*ProtoOASymbolsForConversionRes) ProtoMessage()
- func (x *ProtoOASymbolsForConversionRes) ProtoReflect() protoreflect.Message
- func (x *ProtoOASymbolsForConversionRes) Reset()
- func (x *ProtoOASymbolsForConversionRes) String() string
- type ProtoOASymbolsListReq
- func (*ProtoOASymbolsListReq) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOASymbolsListReq) GetCtidTraderAccountId() int64
- func (x *ProtoOASymbolsListReq) GetIncludeArchivedSymbols() bool
- func (x *ProtoOASymbolsListReq) GetPayloadType() ProtoOAPayloadType
- func (*ProtoOASymbolsListReq) ProtoMessage()
- func (x *ProtoOASymbolsListReq) ProtoReflect() protoreflect.Message
- func (x *ProtoOASymbolsListReq) Reset()
- func (x *ProtoOASymbolsListReq) String() string
- type ProtoOASymbolsListRes
- func (*ProtoOASymbolsListRes) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOASymbolsListRes) GetArchivedSymbol() []*ProtoOAArchivedSymbol
- func (x *ProtoOASymbolsListRes) GetCtidTraderAccountId() int64
- func (x *ProtoOASymbolsListRes) GetPayloadType() ProtoOAPayloadType
- func (x *ProtoOASymbolsListRes) GetSymbol() []*ProtoOALightSymbol
- func (*ProtoOASymbolsListRes) ProtoMessage()
- func (x *ProtoOASymbolsListRes) ProtoReflect() protoreflect.Message
- func (x *ProtoOASymbolsListRes) Reset()
- func (x *ProtoOASymbolsListRes) String() string
- type ProtoOATickData
- func (*ProtoOATickData) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOATickData) GetTick() int64
- func (x *ProtoOATickData) GetTimestamp() int64
- func (*ProtoOATickData) ProtoMessage()
- func (x *ProtoOATickData) ProtoReflect() protoreflect.Message
- func (x *ProtoOATickData) Reset()
- func (x *ProtoOATickData) String() string
- type ProtoOATimeInForce
- func (ProtoOATimeInForce) Descriptor() protoreflect.EnumDescriptor
- func (x ProtoOATimeInForce) Enum() *ProtoOATimeInForce
- func (ProtoOATimeInForce) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProtoOATimeInForce) Number() protoreflect.EnumNumber
- func (x ProtoOATimeInForce) String() string
- func (ProtoOATimeInForce) Type() protoreflect.EnumType
- func (x *ProtoOATimeInForce) UnmarshalJSON(b []byte) errordeprecated
- type ProtoOATotalMarginCalculationType
- func (ProtoOATotalMarginCalculationType) Descriptor() protoreflect.EnumDescriptor
- func (x ProtoOATotalMarginCalculationType) Enum() *ProtoOATotalMarginCalculationType
- func (ProtoOATotalMarginCalculationType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProtoOATotalMarginCalculationType) Number() protoreflect.EnumNumber
- func (x ProtoOATotalMarginCalculationType) String() string
- func (ProtoOATotalMarginCalculationType) Type() protoreflect.EnumType
- func (x *ProtoOATotalMarginCalculationType) UnmarshalJSON(b []byte) errordeprecated
- type ProtoOATradeData
- func (*ProtoOATradeData) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOATradeData) GetCloseTimestamp() uint64
- func (x *ProtoOATradeData) GetComment() string
- func (x *ProtoOATradeData) GetGuaranteedStopLoss() bool
- func (x *ProtoOATradeData) GetLabel() string
- func (x *ProtoOATradeData) GetMeasurementUnits() string
- func (x *ProtoOATradeData) GetOpenTimestamp() int64
- func (x *ProtoOATradeData) GetSymbolId() int64
- func (x *ProtoOATradeData) GetTradeSide() ProtoOATradeSide
- func (x *ProtoOATradeData) GetVolume() int64
- func (*ProtoOATradeData) ProtoMessage()
- func (x *ProtoOATradeData) ProtoReflect() protoreflect.Message
- func (x *ProtoOATradeData) Reset()
- func (x *ProtoOATradeData) String() string
- type ProtoOATradeSide
- func (ProtoOATradeSide) Descriptor() protoreflect.EnumDescriptor
- func (x ProtoOATradeSide) Enum() *ProtoOATradeSide
- func (ProtoOATradeSide) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProtoOATradeSide) Number() protoreflect.EnumNumber
- func (x ProtoOATradeSide) String() string
- func (ProtoOATradeSide) Type() protoreflect.EnumType
- func (x *ProtoOATradeSide) UnmarshalJSON(b []byte) errordeprecated
- type ProtoOATrader
- func (*ProtoOATrader) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOATrader) GetAccessRights() ProtoOAAccessRights
- func (x *ProtoOATrader) GetAccountType() ProtoOAAccountType
- func (x *ProtoOATrader) GetBalance() int64
- func (x *ProtoOATrader) GetBalanceVersion() int64
- func (x *ProtoOATrader) GetBrokerName() string
- func (x *ProtoOATrader) GetCtidTraderAccountId() int64
- func (x *ProtoOATrader) GetDepositAssetId() int64
- func (x *ProtoOATrader) GetFairStopOut() bool
- func (x *ProtoOATrader) GetFrenchRisk() booldeprecated
- func (x *ProtoOATrader) GetIbBonus() int64
- func (x *ProtoOATrader) GetIsLimitedRisk() bool
- func (x *ProtoOATrader) GetLeverageInCents() uint32
- func (x *ProtoOATrader) GetLimitedRiskMarginCalculationStrategy() ProtoOALimitedRiskMarginCalculationStrategy
- func (x *ProtoOATrader) GetManagerBonus() int64
- func (x *ProtoOATrader) GetMaxLeverage() uint32
- func (x *ProtoOATrader) GetMoneyDigits() uint32
- func (x *ProtoOATrader) GetNonWithdrawableBonus() int64
- func (x *ProtoOATrader) GetRegistrationTimestamp() int64
- func (x *ProtoOATrader) GetStopOutStrategy() ProtoOAStopOutStrategy
- func (x *ProtoOATrader) GetSwapFree() bool
- func (x *ProtoOATrader) GetTotalMarginCalculationType() ProtoOATotalMarginCalculationType
- func (x *ProtoOATrader) GetTraderLogin() int64
- func (*ProtoOATrader) ProtoMessage()
- func (x *ProtoOATrader) ProtoReflect() protoreflect.Message
- func (x *ProtoOATrader) Reset()
- func (x *ProtoOATrader) String() string
- type ProtoOATraderReq
- func (*ProtoOATraderReq) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOATraderReq) GetCtidTraderAccountId() int64
- func (x *ProtoOATraderReq) GetPayloadType() ProtoOAPayloadType
- func (*ProtoOATraderReq) ProtoMessage()
- func (x *ProtoOATraderReq) ProtoReflect() protoreflect.Message
- func (x *ProtoOATraderReq) Reset()
- func (x *ProtoOATraderReq) String() string
- type ProtoOATraderRes
- func (*ProtoOATraderRes) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOATraderRes) GetCtidTraderAccountId() int64
- func (x *ProtoOATraderRes) GetPayloadType() ProtoOAPayloadType
- func (x *ProtoOATraderRes) GetTrader() *ProtoOATrader
- func (*ProtoOATraderRes) ProtoMessage()
- func (x *ProtoOATraderRes) ProtoReflect() protoreflect.Message
- func (x *ProtoOATraderRes) Reset()
- func (x *ProtoOATraderRes) String() string
- type ProtoOATraderUpdatedEvent
- func (*ProtoOATraderUpdatedEvent) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOATraderUpdatedEvent) GetCtidTraderAccountId() int64
- func (x *ProtoOATraderUpdatedEvent) GetPayloadType() ProtoOAPayloadType
- func (x *ProtoOATraderUpdatedEvent) GetTrader() *ProtoOATrader
- func (*ProtoOATraderUpdatedEvent) ProtoMessage()
- func (x *ProtoOATraderUpdatedEvent) ProtoReflect() protoreflect.Message
- func (x *ProtoOATraderUpdatedEvent) Reset()
- func (x *ProtoOATraderUpdatedEvent) String() string
- type ProtoOATradingMode
- func (ProtoOATradingMode) Descriptor() protoreflect.EnumDescriptor
- func (x ProtoOATradingMode) Enum() *ProtoOATradingMode
- func (ProtoOATradingMode) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProtoOATradingMode) Number() protoreflect.EnumNumber
- func (x ProtoOATradingMode) String() string
- func (ProtoOATradingMode) Type() protoreflect.EnumType
- func (x *ProtoOATradingMode) UnmarshalJSON(b []byte) errordeprecated
- type ProtoOATrailingSLChangedEvent
- func (*ProtoOATrailingSLChangedEvent) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOATrailingSLChangedEvent) GetCtidTraderAccountId() int64
- func (x *ProtoOATrailingSLChangedEvent) GetOrderId() int64
- func (x *ProtoOATrailingSLChangedEvent) GetPayloadType() ProtoOAPayloadType
- func (x *ProtoOATrailingSLChangedEvent) GetPositionId() int64
- func (x *ProtoOATrailingSLChangedEvent) GetStopPrice() float64
- func (x *ProtoOATrailingSLChangedEvent) GetUtcLastUpdateTimestamp() int64
- func (*ProtoOATrailingSLChangedEvent) ProtoMessage()
- func (x *ProtoOATrailingSLChangedEvent) ProtoReflect() protoreflect.Message
- func (x *ProtoOATrailingSLChangedEvent) Reset()
- func (x *ProtoOATrailingSLChangedEvent) String() string
- type ProtoOATrendbar
- func (*ProtoOATrendbar) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOATrendbar) GetDeltaClose() uint64
- func (x *ProtoOATrendbar) GetDeltaHigh() uint64
- func (x *ProtoOATrendbar) GetDeltaOpen() uint64
- func (x *ProtoOATrendbar) GetLow() int64
- func (x *ProtoOATrendbar) GetPeriod() ProtoOATrendbarPeriod
- func (x *ProtoOATrendbar) GetUtcTimestampInMinutes() uint32
- func (x *ProtoOATrendbar) GetVolume() int64
- func (*ProtoOATrendbar) ProtoMessage()
- func (x *ProtoOATrendbar) ProtoReflect() protoreflect.Message
- func (x *ProtoOATrendbar) Reset()
- func (x *ProtoOATrendbar) String() string
- type ProtoOATrendbarPeriod
- func (ProtoOATrendbarPeriod) Descriptor() protoreflect.EnumDescriptor
- func (x ProtoOATrendbarPeriod) Enum() *ProtoOATrendbarPeriod
- func (ProtoOATrendbarPeriod) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProtoOATrendbarPeriod) Number() protoreflect.EnumNumber
- func (x ProtoOATrendbarPeriod) String() string
- func (ProtoOATrendbarPeriod) Type() protoreflect.EnumType
- func (x *ProtoOATrendbarPeriod) UnmarshalJSON(b []byte) errordeprecated
- type ProtoOAUnsubscribeDepthQuotesReq
- func (*ProtoOAUnsubscribeDepthQuotesReq) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAUnsubscribeDepthQuotesReq) GetCtidTraderAccountId() int64
- func (x *ProtoOAUnsubscribeDepthQuotesReq) GetPayloadType() ProtoOAPayloadType
- func (x *ProtoOAUnsubscribeDepthQuotesReq) GetSymbolId() []int64
- func (*ProtoOAUnsubscribeDepthQuotesReq) ProtoMessage()
- func (x *ProtoOAUnsubscribeDepthQuotesReq) ProtoReflect() protoreflect.Message
- func (x *ProtoOAUnsubscribeDepthQuotesReq) Reset()
- func (x *ProtoOAUnsubscribeDepthQuotesReq) String() string
- type ProtoOAUnsubscribeDepthQuotesRes
- func (*ProtoOAUnsubscribeDepthQuotesRes) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAUnsubscribeDepthQuotesRes) GetCtidTraderAccountId() int64
- func (x *ProtoOAUnsubscribeDepthQuotesRes) GetPayloadType() ProtoOAPayloadType
- func (*ProtoOAUnsubscribeDepthQuotesRes) ProtoMessage()
- func (x *ProtoOAUnsubscribeDepthQuotesRes) ProtoReflect() protoreflect.Message
- func (x *ProtoOAUnsubscribeDepthQuotesRes) Reset()
- func (x *ProtoOAUnsubscribeDepthQuotesRes) String() string
- type ProtoOAUnsubscribeLiveTrendbarReq
- func (*ProtoOAUnsubscribeLiveTrendbarReq) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAUnsubscribeLiveTrendbarReq) GetCtidTraderAccountId() int64
- func (x *ProtoOAUnsubscribeLiveTrendbarReq) GetPayloadType() ProtoOAPayloadType
- func (x *ProtoOAUnsubscribeLiveTrendbarReq) GetPeriod() ProtoOATrendbarPeriod
- func (x *ProtoOAUnsubscribeLiveTrendbarReq) GetSymbolId() int64
- func (*ProtoOAUnsubscribeLiveTrendbarReq) ProtoMessage()
- func (x *ProtoOAUnsubscribeLiveTrendbarReq) ProtoReflect() protoreflect.Message
- func (x *ProtoOAUnsubscribeLiveTrendbarReq) Reset()
- func (x *ProtoOAUnsubscribeLiveTrendbarReq) String() string
- type ProtoOAUnsubscribeLiveTrendbarRes
- func (*ProtoOAUnsubscribeLiveTrendbarRes) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAUnsubscribeLiveTrendbarRes) GetCtidTraderAccountId() int64
- func (x *ProtoOAUnsubscribeLiveTrendbarRes) GetPayloadType() ProtoOAPayloadType
- func (*ProtoOAUnsubscribeLiveTrendbarRes) ProtoMessage()
- func (x *ProtoOAUnsubscribeLiveTrendbarRes) ProtoReflect() protoreflect.Message
- func (x *ProtoOAUnsubscribeLiveTrendbarRes) Reset()
- func (x *ProtoOAUnsubscribeLiveTrendbarRes) String() string
- type ProtoOAUnsubscribeSpotsReq
- func (*ProtoOAUnsubscribeSpotsReq) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAUnsubscribeSpotsReq) GetCtidTraderAccountId() int64
- func (x *ProtoOAUnsubscribeSpotsReq) GetPayloadType() ProtoOAPayloadType
- func (x *ProtoOAUnsubscribeSpotsReq) GetSymbolId() []int64
- func (*ProtoOAUnsubscribeSpotsReq) ProtoMessage()
- func (x *ProtoOAUnsubscribeSpotsReq) ProtoReflect() protoreflect.Message
- func (x *ProtoOAUnsubscribeSpotsReq) Reset()
- func (x *ProtoOAUnsubscribeSpotsReq) String() string
- type ProtoOAUnsubscribeSpotsRes
- func (*ProtoOAUnsubscribeSpotsRes) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAUnsubscribeSpotsRes) GetCtidTraderAccountId() int64
- func (x *ProtoOAUnsubscribeSpotsRes) GetPayloadType() ProtoOAPayloadType
- func (*ProtoOAUnsubscribeSpotsRes) ProtoMessage()
- func (x *ProtoOAUnsubscribeSpotsRes) ProtoReflect() protoreflect.Message
- func (x *ProtoOAUnsubscribeSpotsRes) Reset()
- func (x *ProtoOAUnsubscribeSpotsRes) String() string
- type ProtoOAVersionReq
- func (*ProtoOAVersionReq) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAVersionReq) GetPayloadType() ProtoOAPayloadType
- func (*ProtoOAVersionReq) ProtoMessage()
- func (x *ProtoOAVersionReq) ProtoReflect() protoreflect.Message
- func (x *ProtoOAVersionReq) Reset()
- func (x *ProtoOAVersionReq) String() string
- type ProtoOAVersionRes
- func (*ProtoOAVersionRes) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoOAVersionRes) GetPayloadType() ProtoOAPayloadType
- func (x *ProtoOAVersionRes) GetVersion() string
- func (*ProtoOAVersionRes) ProtoMessage()
- func (x *ProtoOAVersionRes) ProtoReflect() protoreflect.Message
- func (x *ProtoOAVersionRes) Reset()
- func (x *ProtoOAVersionRes) String() string
- type ProtoPayloadType
- func (ProtoPayloadType) Descriptor() protoreflect.EnumDescriptor
- func (x ProtoPayloadType) Enum() *ProtoPayloadType
- func (ProtoPayloadType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProtoPayloadType) Number() protoreflect.EnumNumber
- func (x ProtoPayloadType) String() string
- func (ProtoPayloadType) Type() protoreflect.EnumType
- func (x *ProtoPayloadType) UnmarshalJSON(b []byte) errordeprecated
Constants ¶
const ( Default_ProtoOANewOrderReq_PayloadType = ProtoOAPayloadType_PROTO_OA_NEW_ORDER_REQ Default_ProtoOANewOrderReq_TimeInForce = ProtoOATimeInForce_GOOD_TILL_CANCEL Default_ProtoOANewOrderReq_StopTriggerMethod = ProtoOAOrderTriggerMethod_TRADE )
Default values for ProtoOANewOrderReq fields.
const ( Default_ProtoOAAmendOrderReq_PayloadType = ProtoOAPayloadType_PROTO_OA_AMEND_ORDER_REQ Default_ProtoOAAmendOrderReq_StopTriggerMethod = ProtoOAOrderTriggerMethod_TRADE )
Default values for ProtoOAAmendOrderReq fields.
const ( Default_ProtoOAAmendPositionSLTPReq_PayloadType = ProtoOAPayloadType_PROTO_OA_AMEND_POSITION_SLTP_REQ Default_ProtoOAAmendPositionSLTPReq_StopLossTriggerMethod = ProtoOAOrderTriggerMethod_TRADE )
Default values for ProtoOAAmendPositionSLTPReq fields.
const ( Default_ProtoOASymbolsListReq_PayloadType = ProtoOAPayloadType_PROTO_OA_SYMBOLS_LIST_REQ Default_ProtoOASymbolsListReq_IncludeArchivedSymbols = bool(false) )
Default values for ProtoOASymbolsListReq fields.
const ( Default_ProtoOASymbol_SwapRollover3Days = ProtoOADayOfWeek_MONDAY Default_ProtoOASymbol_CommissionType = ProtoOACommissionType_USD_PER_MILLION_USD Default_ProtoOASymbol_DistanceSetIn = ProtoOASymbolDistanceType_SYMBOL_DISTANCE_IN_POINTS Default_ProtoOASymbol_MinCommissionType = ProtoOAMinCommissionType_CURRENCY Default_ProtoOASymbol_MinCommissionAsset = string("USD") Default_ProtoOASymbol_TradingMode = ProtoOATradingMode_ENABLED Default_ProtoOASymbol_RolloverCommission3Days = ProtoOADayOfWeek_MONDAY Default_ProtoOASymbol_SwapCalculationType = ProtoOASwapCalculationType_PIPS )
Default values for ProtoOASymbol fields.
const ( Default_ProtoOATrader_AccessRights = ProtoOAAccessRights_FULL_ACCESS Default_ProtoOATrader_AccountType = ProtoOAAccountType_HEDGED Default_ProtoOATrader_LimitedRiskMarginCalculationStrategy = ProtoOALimitedRiskMarginCalculationStrategy_ACCORDING_TO_LEVERAGE Default_ProtoOATrader_StopOutStrategy = ProtoOAStopOutStrategy_MOST_MARGIN_USED_FIRST )
Default values for ProtoOATrader fields.
const ( Default_ProtoOAOrder_TimeInForce = ProtoOATimeInForce_IMMEDIATE_OR_CANCEL Default_ProtoOAOrder_StopTriggerMethod = ProtoOAOrderTriggerMethod_TRADE )
Default values for ProtoOAOrder fields.
const (
Default_ProtoErrorRes_PayloadType = ProtoPayloadType_ERROR_RES
)
Default values for ProtoErrorRes fields.
const (
Default_ProtoHeartbeatEvent_PayloadType = ProtoPayloadType_HEARTBEAT_EVENT
)
Default values for ProtoHeartbeatEvent fields.
const (
Default_ProtoOAAccountAuthReq_PayloadType = ProtoOAPayloadType_PROTO_OA_ACCOUNT_AUTH_REQ
)
Default values for ProtoOAAccountAuthReq fields.
const (
Default_ProtoOAAccountAuthRes_PayloadType = ProtoOAPayloadType_PROTO_OA_ACCOUNT_AUTH_RES
)
Default values for ProtoOAAccountAuthRes fields.
const (
Default_ProtoOAAccountDisconnectEvent_PayloadType = ProtoOAPayloadType_PROTO_OA_ACCOUNT_DISCONNECT_EVENT
)
Default values for ProtoOAAccountDisconnectEvent fields.
const (
Default_ProtoOAAccountLogoutReq_PayloadType = ProtoOAPayloadType_PROTO_OA_ACCOUNT_LOGOUT_REQ
)
Default values for ProtoOAAccountLogoutReq fields.
const (
Default_ProtoOAAccountLogoutRes_PayloadType = ProtoOAPayloadType_PROTO_OA_ACCOUNT_LOGOUT_RES
)
Default values for ProtoOAAccountLogoutRes fields.
const (
Default_ProtoOAAccountsTokenInvalidatedEvent_PayloadType = ProtoOAPayloadType_PROTO_OA_ACCOUNTS_TOKEN_INVALIDATED_EVENT
)
Default values for ProtoOAAccountsTokenInvalidatedEvent fields.
const (
Default_ProtoOAApplicationAuthReq_PayloadType = ProtoOAPayloadType_PROTO_OA_APPLICATION_AUTH_REQ
)
Default values for ProtoOAApplicationAuthReq fields.
const (
Default_ProtoOAApplicationAuthRes_PayloadType = ProtoOAPayloadType_PROTO_OA_APPLICATION_AUTH_RES
)
Default values for ProtoOAApplicationAuthRes fields.
const (
Default_ProtoOAAssetClassListReq_PayloadType = ProtoOAPayloadType_PROTO_OA_ASSET_CLASS_LIST_REQ
)
Default values for ProtoOAAssetClassListReq fields.
const (
Default_ProtoOAAssetClassListRes_PayloadType = ProtoOAPayloadType_PROTO_OA_ASSET_CLASS_LIST_RES
)
Default values for ProtoOAAssetClassListRes fields.
const (
Default_ProtoOAAssetListReq_PayloadType = ProtoOAPayloadType_PROTO_OA_ASSET_LIST_REQ
)
Default values for ProtoOAAssetListReq fields.
const (
Default_ProtoOAAssetListRes_PayloadType = ProtoOAPayloadType_PROTO_OA_ASSET_LIST_RES
)
Default values for ProtoOAAssetListRes fields.
const (
Default_ProtoOACancelOrderReq_PayloadType = ProtoOAPayloadType_PROTO_OA_CANCEL_ORDER_REQ
)
Default values for ProtoOACancelOrderReq fields.
const (
Default_ProtoOACashFlowHistoryListReq_PayloadType = ProtoOAPayloadType_PROTO_OA_CASH_FLOW_HISTORY_LIST_REQ
)
Default values for ProtoOACashFlowHistoryListReq fields.
const (
Default_ProtoOACashFlowHistoryListRes_PayloadType = ProtoOAPayloadType_PROTO_OA_CASH_FLOW_HISTORY_LIST_RES
)
Default values for ProtoOACashFlowHistoryListRes fields.
const (
Default_ProtoOAClientDisconnectEvent_PayloadType = ProtoOAPayloadType_PROTO_OA_CLIENT_DISCONNECT_EVENT
)
Default values for ProtoOAClientDisconnectEvent fields.
const (
Default_ProtoOAClosePositionReq_PayloadType = ProtoOAPayloadType_PROTO_OA_CLOSE_POSITION_REQ
)
Default values for ProtoOAClosePositionReq fields.
const (
Default_ProtoOADealListByPositionIdReq_PayloadType = ProtoOAPayloadType_PROTO_OA_DEAL_LIST_BY_POSITION_ID_REQ
)
Default values for ProtoOADealListByPositionIdReq fields.
const (
Default_ProtoOADealListByPositionIdRes_PayloadType = ProtoOAPayloadType_PROTO_OA_DEAL_LIST_BY_POSITION_ID_RES
)
Default values for ProtoOADealListByPositionIdRes fields.
const (
Default_ProtoOADealListReq_PayloadType = ProtoOAPayloadType_PROTO_OA_DEAL_LIST_REQ
)
Default values for ProtoOADealListReq fields.
const (
Default_ProtoOADealListRes_PayloadType = ProtoOAPayloadType_PROTO_OA_DEAL_LIST_RES
)
Default values for ProtoOADealListRes fields.
const (
Default_ProtoOADealOffsetListReq_PayloadType = ProtoOAPayloadType_PROTO_OA_DEAL_OFFSET_LIST_REQ
)
Default values for ProtoOADealOffsetListReq fields.
const (
Default_ProtoOADealOffsetListRes_PayloadType = ProtoOAPayloadType_PROTO_OA_DEAL_OFFSET_LIST_RES
)
Default values for ProtoOADealOffsetListRes fields.
const (
Default_ProtoOADepthEvent_PayloadType = ProtoOAPayloadType_PROTO_OA_DEPTH_EVENT
)
Default values for ProtoOADepthEvent fields.
const (
Default_ProtoOAErrorRes_PayloadType = ProtoOAPayloadType_PROTO_OA_ERROR_RES
)
Default values for ProtoOAErrorRes fields.
const (
Default_ProtoOAExecutionEvent_PayloadType = ProtoOAPayloadType_PROTO_OA_EXECUTION_EVENT
)
Default values for ProtoOAExecutionEvent fields.
const (
Default_ProtoOAExpectedMarginReq_PayloadType = ProtoOAPayloadType_PROTO_OA_EXPECTED_MARGIN_REQ
)
Default values for ProtoOAExpectedMarginReq fields.
const (
Default_ProtoOAExpectedMarginRes_PayloadType = ProtoOAPayloadType_PROTO_OA_EXPECTED_MARGIN_RES
)
Default values for ProtoOAExpectedMarginRes fields.
const (
Default_ProtoOAGetAccountListByAccessTokenReq_PayloadType = ProtoOAPayloadType_PROTO_OA_GET_ACCOUNTS_BY_ACCESS_TOKEN_REQ
)
Default values for ProtoOAGetAccountListByAccessTokenReq fields.
const (
Default_ProtoOAGetAccountListByAccessTokenRes_PayloadType = ProtoOAPayloadType_PROTO_OA_GET_ACCOUNTS_BY_ACCESS_TOKEN_RES
)
Default values for ProtoOAGetAccountListByAccessTokenRes fields.
const (
Default_ProtoOAGetCtidProfileByTokenReq_PayloadType = ProtoOAPayloadType_PROTO_OA_GET_CTID_PROFILE_BY_TOKEN_REQ
)
Default values for ProtoOAGetCtidProfileByTokenReq fields.
const (
Default_ProtoOAGetCtidProfileByTokenRes_PayloadType = ProtoOAPayloadType_PROTO_OA_GET_CTID_PROFILE_BY_TOKEN_RES
)
Default values for ProtoOAGetCtidProfileByTokenRes fields.
const (
Default_ProtoOAGetDynamicLeverageByIDReq_PayloadType = ProtoOAPayloadType_PROTO_OA_GET_DYNAMIC_LEVERAGE_REQ
)
Default values for ProtoOAGetDynamicLeverageByIDReq fields.
const (
Default_ProtoOAGetDynamicLeverageByIDRes_PayloadType = ProtoOAPayloadType_PROTO_OA_GET_DYNAMIC_LEVERAGE_RES
)
Default values for ProtoOAGetDynamicLeverageByIDRes fields.
const (
Default_ProtoOAGetPositionUnrealizedPnLReq_PayloadType = ProtoOAPayloadType_PROTO_OA_GET_POSITION_UNREALIZED_PNL_REQ
)
Default values for ProtoOAGetPositionUnrealizedPnLReq fields.
const (
Default_ProtoOAGetPositionUnrealizedPnLRes_PayloadType = ProtoOAPayloadType_PROTO_OA_GET_POSITION_UNREALIZED_PNL_RES
)
Default values for ProtoOAGetPositionUnrealizedPnLRes fields.
const (
Default_ProtoOAGetTickDataReq_PayloadType = ProtoOAPayloadType_PROTO_OA_GET_TICKDATA_REQ
)
Default values for ProtoOAGetTickDataReq fields.
const (
Default_ProtoOAGetTickDataRes_PayloadType = ProtoOAPayloadType_PROTO_OA_GET_TICKDATA_RES
)
Default values for ProtoOAGetTickDataRes fields.
const (
Default_ProtoOAGetTrendbarsReq_PayloadType = ProtoOAPayloadType_PROTO_OA_GET_TRENDBARS_REQ
)
Default values for ProtoOAGetTrendbarsReq fields.
const (
Default_ProtoOAGetTrendbarsRes_PayloadType = ProtoOAPayloadType_PROTO_OA_GET_TRENDBARS_RES
)
Default values for ProtoOAGetTrendbarsRes fields.
const (
Default_ProtoOAMarginCallListReq_PayloadType = ProtoOAPayloadType_PROTO_OA_MARGIN_CALL_LIST_REQ
)
Default values for ProtoOAMarginCallListReq fields.
const (
Default_ProtoOAMarginCallListRes_PayloadType = ProtoOAPayloadType_PROTO_OA_MARGIN_CALL_LIST_RES
)
Default values for ProtoOAMarginCallListRes fields.
const (
Default_ProtoOAMarginCallTriggerEvent_PayloadType = ProtoOAPayloadType_PROTO_OA_MARGIN_CALL_TRIGGER_EVENT
)
Default values for ProtoOAMarginCallTriggerEvent fields.
const (
Default_ProtoOAMarginCallUpdateEvent_PayloadType = ProtoOAPayloadType_PROTO_OA_MARGIN_CALL_UPDATE_EVENT
)
Default values for ProtoOAMarginCallUpdateEvent fields.
const (
Default_ProtoOAMarginCallUpdateReq_PayloadType = ProtoOAPayloadType_PROTO_OA_MARGIN_CALL_UPDATE_REQ
)
Default values for ProtoOAMarginCallUpdateReq fields.
const (
Default_ProtoOAMarginCallUpdateRes_PayloadType = ProtoOAPayloadType_PROTO_OA_MARGIN_CALL_UPDATE_RES
)
Default values for ProtoOAMarginCallUpdateRes fields.
const (
Default_ProtoOAMarginChangedEvent_PayloadType = ProtoOAPayloadType_PROTO_OA_MARGIN_CHANGED_EVENT
)
Default values for ProtoOAMarginChangedEvent fields.
const (
Default_ProtoOAOrderDetailsReq_PayloadType = ProtoOAPayloadType_PROTO_OA_ORDER_DETAILS_REQ
)
Default values for ProtoOAOrderDetailsReq fields.
const (
Default_ProtoOAOrderDetailsRes_PayloadType = ProtoOAPayloadType_PROTO_OA_ORDER_DETAILS_RES
)
Default values for ProtoOAOrderDetailsRes fields.
const (
Default_ProtoOAOrderErrorEvent_PayloadType = ProtoOAPayloadType_PROTO_OA_ORDER_ERROR_EVENT
)
Default values for ProtoOAOrderErrorEvent fields.
const (
Default_ProtoOAOrderListByPositionIdReq_PayloadType = ProtoOAPayloadType_PROTO_OA_ORDER_LIST_BY_POSITION_ID_REQ
)
Default values for ProtoOAOrderListByPositionIdReq fields.
const (
Default_ProtoOAOrderListByPositionIdRes_PayloadType = ProtoOAPayloadType_PROTO_OA_ORDER_LIST_BY_POSITION_ID_RES
)
Default values for ProtoOAOrderListByPositionIdRes fields.
const (
Default_ProtoOAOrderListReq_PayloadType = ProtoOAPayloadType_PROTO_OA_ORDER_LIST_REQ
)
Default values for ProtoOAOrderListReq fields.
const (
Default_ProtoOAOrderListRes_PayloadType = ProtoOAPayloadType_PROTO_OA_ORDER_LIST_RES
)
Default values for ProtoOAOrderListRes fields.
const (
Default_ProtoOAPosition_StopLossTriggerMethod = ProtoOAOrderTriggerMethod_TRADE
)
Default values for ProtoOAPosition fields.
const (
Default_ProtoOAReconcileReq_PayloadType = ProtoOAPayloadType_PROTO_OA_RECONCILE_REQ
)
Default values for ProtoOAReconcileReq fields.
const (
Default_ProtoOAReconcileRes_PayloadType = ProtoOAPayloadType_PROTO_OA_RECONCILE_RES
)
Default values for ProtoOAReconcileRes fields.
const (
Default_ProtoOARefreshTokenReq_PayloadType = ProtoOAPayloadType_PROTO_OA_REFRESH_TOKEN_REQ
)
Default values for ProtoOARefreshTokenReq fields.
const (
Default_ProtoOARefreshTokenRes_PayloadType = ProtoOAPayloadType_PROTO_OA_REFRESH_TOKEN_RES
)
Default values for ProtoOARefreshTokenRes fields.
const (
Default_ProtoOASpotEvent_PayloadType = ProtoOAPayloadType_PROTO_OA_SPOT_EVENT
)
Default values for ProtoOASpotEvent fields.
const (
Default_ProtoOASubscribeDepthQuotesReq_PayloadType = ProtoOAPayloadType_PROTO_OA_SUBSCRIBE_DEPTH_QUOTES_REQ
)
Default values for ProtoOASubscribeDepthQuotesReq fields.
const (
Default_ProtoOASubscribeDepthQuotesRes_PayloadType = ProtoOAPayloadType_PROTO_OA_SUBSCRIBE_DEPTH_QUOTES_RES
)
Default values for ProtoOASubscribeDepthQuotesRes fields.
const (
Default_ProtoOASubscribeLiveTrendbarReq_PayloadType = ProtoOAPayloadType_PROTO_OA_SUBSCRIBE_LIVE_TRENDBAR_REQ
)
Default values for ProtoOASubscribeLiveTrendbarReq fields.
const (
Default_ProtoOASubscribeLiveTrendbarRes_PayloadType = ProtoOAPayloadType_PROTO_OA_SUBSCRIBE_LIVE_TRENDBAR_RES
)
Default values for ProtoOASubscribeLiveTrendbarRes fields.
const (
Default_ProtoOASubscribeSpotsReq_PayloadType = ProtoOAPayloadType_PROTO_OA_SUBSCRIBE_SPOTS_REQ
)
Default values for ProtoOASubscribeSpotsReq fields.
const (
Default_ProtoOASubscribeSpotsRes_PayloadType = ProtoOAPayloadType_PROTO_OA_SUBSCRIBE_SPOTS_RES
)
Default values for ProtoOASubscribeSpotsRes fields.
const (
Default_ProtoOASymbolByIdReq_PayloadType = ProtoOAPayloadType_PROTO_OA_SYMBOL_BY_ID_REQ
)
Default values for ProtoOASymbolByIdReq fields.
const (
Default_ProtoOASymbolByIdRes_PayloadType = ProtoOAPayloadType_PROTO_OA_SYMBOL_BY_ID_RES
)
Default values for ProtoOASymbolByIdRes fields.
const (
Default_ProtoOASymbolCategoryListReq_PayloadType = ProtoOAPayloadType_PROTO_OA_SYMBOL_CATEGORY_REQ
)
Default values for ProtoOASymbolCategoryListReq fields.
const (
Default_ProtoOASymbolCategoryListRes_PayloadType = ProtoOAPayloadType_PROTO_OA_SYMBOL_CATEGORY_RES
)
Default values for ProtoOASymbolCategoryListRes fields.
const (
Default_ProtoOASymbolChangedEvent_PayloadType = ProtoOAPayloadType_PROTO_OA_SYMBOL_CHANGED_EVENT
)
Default values for ProtoOASymbolChangedEvent fields.
const (
Default_ProtoOASymbolsForConversionReq_PayloadType = ProtoOAPayloadType_PROTO_OA_SYMBOLS_FOR_CONVERSION_REQ
)
Default values for ProtoOASymbolsForConversionReq fields.
const (
Default_ProtoOASymbolsForConversionRes_PayloadType = ProtoOAPayloadType_PROTO_OA_SYMBOLS_FOR_CONVERSION_RES
)
Default values for ProtoOASymbolsForConversionRes fields.
const (
Default_ProtoOASymbolsListRes_PayloadType = ProtoOAPayloadType_PROTO_OA_SYMBOLS_LIST_RES
)
Default values for ProtoOASymbolsListRes fields.
const (
Default_ProtoOATraderReq_PayloadType = ProtoOAPayloadType_PROTO_OA_TRADER_REQ
)
Default values for ProtoOATraderReq fields.
const (
Default_ProtoOATraderRes_PayloadType = ProtoOAPayloadType_PROTO_OA_TRADER_RES
)
Default values for ProtoOATraderRes fields.
const (
Default_ProtoOATraderUpdatedEvent_PayloadType = ProtoOAPayloadType_PROTO_OA_TRADER_UPDATE_EVENT
)
Default values for ProtoOATraderUpdatedEvent fields.
const (
Default_ProtoOATrailingSLChangedEvent_PayloadType = ProtoOAPayloadType_PROTO_OA_TRAILING_SL_CHANGED_EVENT
)
Default values for ProtoOATrailingSLChangedEvent fields.
const (
Default_ProtoOATrendbar_Period = ProtoOATrendbarPeriod_M1
)
Default values for ProtoOATrendbar fields.
const (
Default_ProtoOAUnsubscribeDepthQuotesReq_PayloadType = ProtoOAPayloadType_PROTO_OA_UNSUBSCRIBE_DEPTH_QUOTES_REQ
)
Default values for ProtoOAUnsubscribeDepthQuotesReq fields.
const (
Default_ProtoOAUnsubscribeDepthQuotesRes_PayloadType = ProtoOAPayloadType_PROTO_OA_UNSUBSCRIBE_DEPTH_QUOTES_RES
)
Default values for ProtoOAUnsubscribeDepthQuotesRes fields.
const (
Default_ProtoOAUnsubscribeLiveTrendbarReq_PayloadType = ProtoOAPayloadType_PROTO_OA_UNSUBSCRIBE_LIVE_TRENDBAR_REQ
)
Default values for ProtoOAUnsubscribeLiveTrendbarReq fields.
const (
Default_ProtoOAUnsubscribeLiveTrendbarRes_PayloadType = ProtoOAPayloadType_PROTO_OA_UNSUBSCRIBE_LIVE_TRENDBAR_RES
)
Default values for ProtoOAUnsubscribeLiveTrendbarRes fields.
const (
Default_ProtoOAUnsubscribeSpotsReq_PayloadType = ProtoOAPayloadType_PROTO_OA_UNSUBSCRIBE_SPOTS_REQ
)
Default values for ProtoOAUnsubscribeSpotsReq fields.
const (
Default_ProtoOAUnsubscribeSpotsRes_PayloadType = ProtoOAPayloadType_PROTO_OA_UNSUBSCRIBE_SPOTS_RES
)
Default values for ProtoOAUnsubscribeSpotsRes fields.
const (
Default_ProtoOAVersionReq_PayloadType = ProtoOAPayloadType_PROTO_OA_VERSION_REQ
)
Default values for ProtoOAVersionReq fields.
const (
Default_ProtoOAVersionRes_PayloadType = ProtoOAPayloadType_PROTO_OA_VERSION_RES
)
Default values for ProtoOAVersionRes fields.
Variables ¶
var ( ProtoPayloadType_name = map[int32]string{ 5: "PROTO_MESSAGE", 50: "ERROR_RES", 51: "HEARTBEAT_EVENT", } ProtoPayloadType_value = map[string]int32{ "PROTO_MESSAGE": 5, "ERROR_RES": 50, "HEARTBEAT_EVENT": 51, } )
Enum value maps for ProtoPayloadType.
var ( ProtoErrorCode_name = map[int32]string{ 1: "UNKNOWN_ERROR", 2: "UNSUPPORTED_MESSAGE", 3: "INVALID_REQUEST", 5: "TIMEOUT_ERROR", 6: "ENTITY_NOT_FOUND", 7: "CANT_ROUTE_REQUEST", 8: "FRAME_TOO_LONG", 9: "MARKET_CLOSED", 10: "CONCURRENT_MODIFICATION", 11: "BLOCKED_PAYLOAD_TYPE", } ProtoErrorCode_value = map[string]int32{ "UNKNOWN_ERROR": 1, "UNSUPPORTED_MESSAGE": 2, "INVALID_REQUEST": 3, "TIMEOUT_ERROR": 5, "ENTITY_NOT_FOUND": 6, "CANT_ROUTE_REQUEST": 7, "FRAME_TOO_LONG": 8, "MARKET_CLOSED": 9, "CONCURRENT_MODIFICATION": 10, "BLOCKED_PAYLOAD_TYPE": 11, } )
Enum value maps for ProtoErrorCode.
var ( ProtoOAPayloadType_name = map[int32]string{ 2100: "PROTO_OA_APPLICATION_AUTH_REQ", 2101: "PROTO_OA_APPLICATION_AUTH_RES", 2102: "PROTO_OA_ACCOUNT_AUTH_REQ", 2103: "PROTO_OA_ACCOUNT_AUTH_RES", 2104: "PROTO_OA_VERSION_REQ", 2105: "PROTO_OA_VERSION_RES", 2106: "PROTO_OA_NEW_ORDER_REQ", 2107: "PROTO_OA_TRAILING_SL_CHANGED_EVENT", 2108: "PROTO_OA_CANCEL_ORDER_REQ", 2109: "PROTO_OA_AMEND_ORDER_REQ", 2110: "PROTO_OA_AMEND_POSITION_SLTP_REQ", 2111: "PROTO_OA_CLOSE_POSITION_REQ", 2112: "PROTO_OA_ASSET_LIST_REQ", 2113: "PROTO_OA_ASSET_LIST_RES", 2114: "PROTO_OA_SYMBOLS_LIST_REQ", 2115: "PROTO_OA_SYMBOLS_LIST_RES", 2116: "PROTO_OA_SYMBOL_BY_ID_REQ", 2117: "PROTO_OA_SYMBOL_BY_ID_RES", 2118: "PROTO_OA_SYMBOLS_FOR_CONVERSION_REQ", 2119: "PROTO_OA_SYMBOLS_FOR_CONVERSION_RES", 2120: "PROTO_OA_SYMBOL_CHANGED_EVENT", 2121: "PROTO_OA_TRADER_REQ", 2122: "PROTO_OA_TRADER_RES", 2123: "PROTO_OA_TRADER_UPDATE_EVENT", 2124: "PROTO_OA_RECONCILE_REQ", 2125: "PROTO_OA_RECONCILE_RES", 2126: "PROTO_OA_EXECUTION_EVENT", 2127: "PROTO_OA_SUBSCRIBE_SPOTS_REQ", 2128: "PROTO_OA_SUBSCRIBE_SPOTS_RES", 2129: "PROTO_OA_UNSUBSCRIBE_SPOTS_REQ", 2130: "PROTO_OA_UNSUBSCRIBE_SPOTS_RES", 2131: "PROTO_OA_SPOT_EVENT", 2132: "PROTO_OA_ORDER_ERROR_EVENT", 2133: "PROTO_OA_DEAL_LIST_REQ", 2134: "PROTO_OA_DEAL_LIST_RES", 2135: "PROTO_OA_SUBSCRIBE_LIVE_TRENDBAR_REQ", 2136: "PROTO_OA_UNSUBSCRIBE_LIVE_TRENDBAR_REQ", 2137: "PROTO_OA_GET_TRENDBARS_REQ", 2138: "PROTO_OA_GET_TRENDBARS_RES", 2139: "PROTO_OA_EXPECTED_MARGIN_REQ", 2140: "PROTO_OA_EXPECTED_MARGIN_RES", 2141: "PROTO_OA_MARGIN_CHANGED_EVENT", 2142: "PROTO_OA_ERROR_RES", 2143: "PROTO_OA_CASH_FLOW_HISTORY_LIST_REQ", 2144: "PROTO_OA_CASH_FLOW_HISTORY_LIST_RES", 2145: "PROTO_OA_GET_TICKDATA_REQ", 2146: "PROTO_OA_GET_TICKDATA_RES", 2147: "PROTO_OA_ACCOUNTS_TOKEN_INVALIDATED_EVENT", 2148: "PROTO_OA_CLIENT_DISCONNECT_EVENT", 2149: "PROTO_OA_GET_ACCOUNTS_BY_ACCESS_TOKEN_REQ", 2150: "PROTO_OA_GET_ACCOUNTS_BY_ACCESS_TOKEN_RES", 2151: "PROTO_OA_GET_CTID_PROFILE_BY_TOKEN_REQ", 2152: "PROTO_OA_GET_CTID_PROFILE_BY_TOKEN_RES", 2153: "PROTO_OA_ASSET_CLASS_LIST_REQ", 2154: "PROTO_OA_ASSET_CLASS_LIST_RES", 2155: "PROTO_OA_DEPTH_EVENT", 2156: "PROTO_OA_SUBSCRIBE_DEPTH_QUOTES_REQ", 2157: "PROTO_OA_SUBSCRIBE_DEPTH_QUOTES_RES", 2158: "PROTO_OA_UNSUBSCRIBE_DEPTH_QUOTES_REQ", 2159: "PROTO_OA_UNSUBSCRIBE_DEPTH_QUOTES_RES", 2160: "PROTO_OA_SYMBOL_CATEGORY_REQ", 2161: "PROTO_OA_SYMBOL_CATEGORY_RES", 2162: "PROTO_OA_ACCOUNT_LOGOUT_REQ", 2163: "PROTO_OA_ACCOUNT_LOGOUT_RES", 2164: "PROTO_OA_ACCOUNT_DISCONNECT_EVENT", 2165: "PROTO_OA_SUBSCRIBE_LIVE_TRENDBAR_RES", 2166: "PROTO_OA_UNSUBSCRIBE_LIVE_TRENDBAR_RES", 2167: "PROTO_OA_MARGIN_CALL_LIST_REQ", 2168: "PROTO_OA_MARGIN_CALL_LIST_RES", 2169: "PROTO_OA_MARGIN_CALL_UPDATE_REQ", 2170: "PROTO_OA_MARGIN_CALL_UPDATE_RES", 2171: "PROTO_OA_MARGIN_CALL_UPDATE_EVENT", 2172: "PROTO_OA_MARGIN_CALL_TRIGGER_EVENT", 2173: "PROTO_OA_REFRESH_TOKEN_REQ", 2174: "PROTO_OA_REFRESH_TOKEN_RES", 2175: "PROTO_OA_ORDER_LIST_REQ", 2176: "PROTO_OA_ORDER_LIST_RES", 2177: "PROTO_OA_GET_DYNAMIC_LEVERAGE_REQ", 2178: "PROTO_OA_GET_DYNAMIC_LEVERAGE_RES", 2179: "PROTO_OA_DEAL_LIST_BY_POSITION_ID_REQ", 2180: "PROTO_OA_DEAL_LIST_BY_POSITION_ID_RES", 2181: "PROTO_OA_ORDER_DETAILS_REQ", 2182: "PROTO_OA_ORDER_DETAILS_RES", 2183: "PROTO_OA_ORDER_LIST_BY_POSITION_ID_REQ", 2184: "PROTO_OA_ORDER_LIST_BY_POSITION_ID_RES", 2185: "PROTO_OA_DEAL_OFFSET_LIST_REQ", 2186: "PROTO_OA_DEAL_OFFSET_LIST_RES", 2187: "PROTO_OA_GET_POSITION_UNREALIZED_PNL_REQ", 2188: "PROTO_OA_GET_POSITION_UNREALIZED_PNL_RES", } ProtoOAPayloadType_value = map[string]int32{ "PROTO_OA_APPLICATION_AUTH_REQ": 2100, "PROTO_OA_APPLICATION_AUTH_RES": 2101, "PROTO_OA_ACCOUNT_AUTH_REQ": 2102, "PROTO_OA_ACCOUNT_AUTH_RES": 2103, "PROTO_OA_VERSION_REQ": 2104, "PROTO_OA_VERSION_RES": 2105, "PROTO_OA_NEW_ORDER_REQ": 2106, "PROTO_OA_TRAILING_SL_CHANGED_EVENT": 2107, "PROTO_OA_CANCEL_ORDER_REQ": 2108, "PROTO_OA_AMEND_ORDER_REQ": 2109, "PROTO_OA_AMEND_POSITION_SLTP_REQ": 2110, "PROTO_OA_CLOSE_POSITION_REQ": 2111, "PROTO_OA_ASSET_LIST_REQ": 2112, "PROTO_OA_ASSET_LIST_RES": 2113, "PROTO_OA_SYMBOLS_LIST_REQ": 2114, "PROTO_OA_SYMBOLS_LIST_RES": 2115, "PROTO_OA_SYMBOL_BY_ID_REQ": 2116, "PROTO_OA_SYMBOL_BY_ID_RES": 2117, "PROTO_OA_SYMBOLS_FOR_CONVERSION_REQ": 2118, "PROTO_OA_SYMBOLS_FOR_CONVERSION_RES": 2119, "PROTO_OA_SYMBOL_CHANGED_EVENT": 2120, "PROTO_OA_TRADER_REQ": 2121, "PROTO_OA_TRADER_RES": 2122, "PROTO_OA_TRADER_UPDATE_EVENT": 2123, "PROTO_OA_RECONCILE_REQ": 2124, "PROTO_OA_RECONCILE_RES": 2125, "PROTO_OA_EXECUTION_EVENT": 2126, "PROTO_OA_SUBSCRIBE_SPOTS_REQ": 2127, "PROTO_OA_SUBSCRIBE_SPOTS_RES": 2128, "PROTO_OA_UNSUBSCRIBE_SPOTS_REQ": 2129, "PROTO_OA_UNSUBSCRIBE_SPOTS_RES": 2130, "PROTO_OA_SPOT_EVENT": 2131, "PROTO_OA_ORDER_ERROR_EVENT": 2132, "PROTO_OA_DEAL_LIST_REQ": 2133, "PROTO_OA_DEAL_LIST_RES": 2134, "PROTO_OA_SUBSCRIBE_LIVE_TRENDBAR_REQ": 2135, "PROTO_OA_UNSUBSCRIBE_LIVE_TRENDBAR_REQ": 2136, "PROTO_OA_GET_TRENDBARS_REQ": 2137, "PROTO_OA_GET_TRENDBARS_RES": 2138, "PROTO_OA_EXPECTED_MARGIN_REQ": 2139, "PROTO_OA_EXPECTED_MARGIN_RES": 2140, "PROTO_OA_MARGIN_CHANGED_EVENT": 2141, "PROTO_OA_ERROR_RES": 2142, "PROTO_OA_CASH_FLOW_HISTORY_LIST_REQ": 2143, "PROTO_OA_CASH_FLOW_HISTORY_LIST_RES": 2144, "PROTO_OA_GET_TICKDATA_REQ": 2145, "PROTO_OA_GET_TICKDATA_RES": 2146, "PROTO_OA_ACCOUNTS_TOKEN_INVALIDATED_EVENT": 2147, "PROTO_OA_CLIENT_DISCONNECT_EVENT": 2148, "PROTO_OA_GET_ACCOUNTS_BY_ACCESS_TOKEN_REQ": 2149, "PROTO_OA_GET_ACCOUNTS_BY_ACCESS_TOKEN_RES": 2150, "PROTO_OA_GET_CTID_PROFILE_BY_TOKEN_REQ": 2151, "PROTO_OA_GET_CTID_PROFILE_BY_TOKEN_RES": 2152, "PROTO_OA_ASSET_CLASS_LIST_REQ": 2153, "PROTO_OA_ASSET_CLASS_LIST_RES": 2154, "PROTO_OA_DEPTH_EVENT": 2155, "PROTO_OA_SUBSCRIBE_DEPTH_QUOTES_REQ": 2156, "PROTO_OA_SUBSCRIBE_DEPTH_QUOTES_RES": 2157, "PROTO_OA_UNSUBSCRIBE_DEPTH_QUOTES_REQ": 2158, "PROTO_OA_UNSUBSCRIBE_DEPTH_QUOTES_RES": 2159, "PROTO_OA_SYMBOL_CATEGORY_REQ": 2160, "PROTO_OA_SYMBOL_CATEGORY_RES": 2161, "PROTO_OA_ACCOUNT_LOGOUT_REQ": 2162, "PROTO_OA_ACCOUNT_LOGOUT_RES": 2163, "PROTO_OA_ACCOUNT_DISCONNECT_EVENT": 2164, "PROTO_OA_SUBSCRIBE_LIVE_TRENDBAR_RES": 2165, "PROTO_OA_UNSUBSCRIBE_LIVE_TRENDBAR_RES": 2166, "PROTO_OA_MARGIN_CALL_LIST_REQ": 2167, "PROTO_OA_MARGIN_CALL_LIST_RES": 2168, "PROTO_OA_MARGIN_CALL_UPDATE_REQ": 2169, "PROTO_OA_MARGIN_CALL_UPDATE_RES": 2170, "PROTO_OA_MARGIN_CALL_UPDATE_EVENT": 2171, "PROTO_OA_MARGIN_CALL_TRIGGER_EVENT": 2172, "PROTO_OA_REFRESH_TOKEN_REQ": 2173, "PROTO_OA_REFRESH_TOKEN_RES": 2174, "PROTO_OA_ORDER_LIST_REQ": 2175, "PROTO_OA_ORDER_LIST_RES": 2176, "PROTO_OA_GET_DYNAMIC_LEVERAGE_REQ": 2177, "PROTO_OA_GET_DYNAMIC_LEVERAGE_RES": 2178, "PROTO_OA_DEAL_LIST_BY_POSITION_ID_REQ": 2179, "PROTO_OA_DEAL_LIST_BY_POSITION_ID_RES": 2180, "PROTO_OA_ORDER_DETAILS_REQ": 2181, "PROTO_OA_ORDER_DETAILS_RES": 2182, "PROTO_OA_ORDER_LIST_BY_POSITION_ID_REQ": 2183, "PROTO_OA_ORDER_LIST_BY_POSITION_ID_RES": 2184, "PROTO_OA_DEAL_OFFSET_LIST_REQ": 2185, "PROTO_OA_DEAL_OFFSET_LIST_RES": 2186, "PROTO_OA_GET_POSITION_UNREALIZED_PNL_REQ": 2187, "PROTO_OA_GET_POSITION_UNREALIZED_PNL_RES": 2188, } )
Enum value maps for ProtoOAPayloadType.
var ( ProtoOADayOfWeek_name = map[int32]string{ 0: "NONE", 1: "MONDAY", 2: "TUESDAY", 3: "WEDNESDAY", 4: "THURSDAY", 5: "FRIDAY", 6: "SATURDAY", 7: "SUNDAY", } ProtoOADayOfWeek_value = map[string]int32{ "NONE": 0, "MONDAY": 1, "TUESDAY": 2, "WEDNESDAY": 3, "THURSDAY": 4, "FRIDAY": 5, "SATURDAY": 6, "SUNDAY": 7, } )
Enum value maps for ProtoOADayOfWeek.
var ( ProtoOACommissionType_name = map[int32]string{ 1: "USD_PER_MILLION_USD", 2: "USD_PER_LOT", 3: "PERCENTAGE_OF_VALUE", 4: "QUOTE_CCY_PER_LOT", } ProtoOACommissionType_value = map[string]int32{ "USD_PER_MILLION_USD": 1, "USD_PER_LOT": 2, "PERCENTAGE_OF_VALUE": 3, "QUOTE_CCY_PER_LOT": 4, } )
Enum value maps for ProtoOACommissionType.
var ( ProtoOASymbolDistanceType_name = map[int32]string{ 1: "SYMBOL_DISTANCE_IN_POINTS", 2: "SYMBOL_DISTANCE_IN_PERCENTAGE", } ProtoOASymbolDistanceType_value = map[string]int32{ "SYMBOL_DISTANCE_IN_POINTS": 1, "SYMBOL_DISTANCE_IN_PERCENTAGE": 2, } )
Enum value maps for ProtoOASymbolDistanceType.
var ( ProtoOAMinCommissionType_name = map[int32]string{ 1: "CURRENCY", 2: "QUOTE_CURRENCY", } ProtoOAMinCommissionType_value = map[string]int32{ "CURRENCY": 1, "QUOTE_CURRENCY": 2, } )
Enum value maps for ProtoOAMinCommissionType.
var ( ProtoOATradingMode_name = map[int32]string{ 0: "ENABLED", 1: "DISABLED_WITHOUT_PENDINGS_EXECUTION", 2: "DISABLED_WITH_PENDINGS_EXECUTION", 3: "CLOSE_ONLY_MODE", } ProtoOATradingMode_value = map[string]int32{ "ENABLED": 0, "DISABLED_WITHOUT_PENDINGS_EXECUTION": 1, "DISABLED_WITH_PENDINGS_EXECUTION": 2, "CLOSE_ONLY_MODE": 3, } )
Enum value maps for ProtoOATradingMode.
var ( ProtoOASwapCalculationType_name = map[int32]string{ 0: "PIPS", 1: "PERCENTAGE", 2: "POINTS", } ProtoOASwapCalculationType_value = map[string]int32{ "PIPS": 0, "PERCENTAGE": 1, "POINTS": 2, } )
Enum value maps for ProtoOASwapCalculationType.
var ( ProtoOAAccessRights_name = map[int32]string{ 0: "FULL_ACCESS", 1: "CLOSE_ONLY", 2: "NO_TRADING", 3: "NO_LOGIN", } ProtoOAAccessRights_value = map[string]int32{ "FULL_ACCESS": 0, "CLOSE_ONLY": 1, "NO_TRADING": 2, "NO_LOGIN": 3, } )
Enum value maps for ProtoOAAccessRights.
var ( ProtoOATotalMarginCalculationType_name = map[int32]string{ 0: "MAX", 1: "SUM", 2: "NET", } ProtoOATotalMarginCalculationType_value = map[string]int32{ "MAX": 0, "SUM": 1, "NET": 2, } )
Enum value maps for ProtoOATotalMarginCalculationType.
var ( ProtoOAAccountType_name = map[int32]string{ 0: "HEDGED", 1: "NETTED", 2: "SPREAD_BETTING", } ProtoOAAccountType_value = map[string]int32{ "HEDGED": 0, "NETTED": 1, "SPREAD_BETTING": 2, } )
Enum value maps for ProtoOAAccountType.
var ( ProtoOAPositionStatus_name = map[int32]string{ 1: "POSITION_STATUS_OPEN", 2: "POSITION_STATUS_CLOSED", 3: "POSITION_STATUS_CREATED", 4: "POSITION_STATUS_ERROR", } ProtoOAPositionStatus_value = map[string]int32{ "POSITION_STATUS_OPEN": 1, "POSITION_STATUS_CLOSED": 2, "POSITION_STATUS_CREATED": 3, "POSITION_STATUS_ERROR": 4, } )
Enum value maps for ProtoOAPositionStatus.
var ( ProtoOATradeSide_name = map[int32]string{ 1: "BUY", 2: "SELL", } ProtoOATradeSide_value = map[string]int32{ "BUY": 1, "SELL": 2, } )
Enum value maps for ProtoOATradeSide.
var ( ProtoOAOrderType_name = map[int32]string{ 1: "MARKET", 2: "LIMIT", 3: "STOP", 4: "STOP_LOSS_TAKE_PROFIT", 5: "MARKET_RANGE", 6: "STOP_LIMIT", } ProtoOAOrderType_value = map[string]int32{ "MARKET": 1, "LIMIT": 2, "STOP": 3, "STOP_LOSS_TAKE_PROFIT": 4, "MARKET_RANGE": 5, "STOP_LIMIT": 6, } )
Enum value maps for ProtoOAOrderType.
var ( ProtoOATimeInForce_name = map[int32]string{ 1: "GOOD_TILL_DATE", 2: "GOOD_TILL_CANCEL", 3: "IMMEDIATE_OR_CANCEL", 4: "FILL_OR_KILL", 5: "MARKET_ON_OPEN", } ProtoOATimeInForce_value = map[string]int32{ "GOOD_TILL_DATE": 1, "GOOD_TILL_CANCEL": 2, "IMMEDIATE_OR_CANCEL": 3, "FILL_OR_KILL": 4, "MARKET_ON_OPEN": 5, } )
Enum value maps for ProtoOATimeInForce.
var ( ProtoOAOrderStatus_name = map[int32]string{ 1: "ORDER_STATUS_ACCEPTED", 2: "ORDER_STATUS_FILLED", 3: "ORDER_STATUS_REJECTED", 4: "ORDER_STATUS_EXPIRED", 5: "ORDER_STATUS_CANCELLED", } ProtoOAOrderStatus_value = map[string]int32{ "ORDER_STATUS_ACCEPTED": 1, "ORDER_STATUS_FILLED": 2, "ORDER_STATUS_REJECTED": 3, "ORDER_STATUS_EXPIRED": 4, "ORDER_STATUS_CANCELLED": 5, } )
Enum value maps for ProtoOAOrderStatus.
var ( ProtoOAOrderTriggerMethod_name = map[int32]string{ 1: "TRADE", 2: "OPPOSITE", 3: "DOUBLE_TRADE", 4: "DOUBLE_OPPOSITE", } ProtoOAOrderTriggerMethod_value = map[string]int32{ "TRADE": 1, "OPPOSITE": 2, "DOUBLE_TRADE": 3, "DOUBLE_OPPOSITE": 4, } )
Enum value maps for ProtoOAOrderTriggerMethod.
var ( ProtoOAExecutionType_name = map[int32]string{ 2: "ORDER_ACCEPTED", 3: "ORDER_FILLED", 4: "ORDER_REPLACED", 5: "ORDER_CANCELLED", 6: "ORDER_EXPIRED", 7: "ORDER_REJECTED", 8: "ORDER_CANCEL_REJECTED", 9: "SWAP", 10: "DEPOSIT_WITHDRAW", 11: "ORDER_PARTIAL_FILL", 12: "BONUS_DEPOSIT_WITHDRAW", } ProtoOAExecutionType_value = map[string]int32{ "ORDER_ACCEPTED": 2, "ORDER_FILLED": 3, "ORDER_REPLACED": 4, "ORDER_CANCELLED": 5, "ORDER_EXPIRED": 6, "ORDER_REJECTED": 7, "ORDER_CANCEL_REJECTED": 8, "SWAP": 9, "DEPOSIT_WITHDRAW": 10, "ORDER_PARTIAL_FILL": 11, "BONUS_DEPOSIT_WITHDRAW": 12, } )
Enum value maps for ProtoOAExecutionType.
var ( ProtoOAChangeBonusType_name = map[int32]string{ 0: "BONUS_DEPOSIT", 1: "BONUS_WITHDRAW", } ProtoOAChangeBonusType_value = map[string]int32{ "BONUS_DEPOSIT": 0, "BONUS_WITHDRAW": 1, } )
Enum value maps for ProtoOAChangeBonusType.
var ( ProtoOAChangeBalanceType_name = map[int32]string{ 0: "BALANCE_DEPOSIT", 1: "BALANCE_WITHDRAW", 3: "BALANCE_DEPOSIT_STRATEGY_COMMISSION_INNER", 4: "BALANCE_WITHDRAW_STRATEGY_COMMISSION_INNER", 5: "BALANCE_DEPOSIT_IB_COMMISSIONS", 6: "BALANCE_WITHDRAW_IB_SHARED_PERCENTAGE", 7: "BALANCE_DEPOSIT_IB_SHARED_PERCENTAGE_FROM_SUB_IB", 8: "BALANCE_DEPOSIT_IB_SHARED_PERCENTAGE_FROM_BROKER", 9: "BALANCE_DEPOSIT_REBATE", 10: "BALANCE_WITHDRAW_REBATE", 11: "BALANCE_DEPOSIT_STRATEGY_COMMISSION_OUTER", 12: "BALANCE_WITHDRAW_STRATEGY_COMMISSION_OUTER", 13: "BALANCE_WITHDRAW_BONUS_COMPENSATION", 14: "BALANCE_WITHDRAW_IB_SHARED_PERCENTAGE_TO_BROKER", 15: "BALANCE_DEPOSIT_DIVIDENDS", 16: "BALANCE_WITHDRAW_DIVIDENDS", 17: "BALANCE_WITHDRAW_GSL_CHARGE", 18: "BALANCE_WITHDRAW_ROLLOVER", 19: "BALANCE_DEPOSIT_NONWITHDRAWABLE_BONUS", 20: "BALANCE_WITHDRAW_NONWITHDRAWABLE_BONUS", 21: "BALANCE_DEPOSIT_SWAP", 22: "BALANCE_WITHDRAW_SWAP", 27: "BALANCE_DEPOSIT_MANAGEMENT_FEE", 28: "BALANCE_WITHDRAW_MANAGEMENT_FEE", 29: "BALANCE_DEPOSIT_PERFORMANCE_FEE", 30: "BALANCE_WITHDRAW_FOR_SUBACCOUNT", 31: "BALANCE_DEPOSIT_TO_SUBACCOUNT", 32: "BALANCE_WITHDRAW_FROM_SUBACCOUNT", 33: "BALANCE_DEPOSIT_FROM_SUBACCOUNT", 34: "BALANCE_WITHDRAW_COPY_FEE", 35: "BALANCE_WITHDRAW_INACTIVITY_FEE", 36: "BALANCE_DEPOSIT_TRANSFER", 37: "BALANCE_WITHDRAW_TRANSFER", 38: "BALANCE_DEPOSIT_CONVERTED_BONUS", 39: "BALANCE_DEPOSIT_NEGATIVE_BALANCE_PROTECTION", } ProtoOAChangeBalanceType_value = map[string]int32{ "BALANCE_DEPOSIT": 0, "BALANCE_WITHDRAW": 1, "BALANCE_DEPOSIT_STRATEGY_COMMISSION_INNER": 3, "BALANCE_WITHDRAW_STRATEGY_COMMISSION_INNER": 4, "BALANCE_DEPOSIT_IB_COMMISSIONS": 5, "BALANCE_WITHDRAW_IB_SHARED_PERCENTAGE": 6, "BALANCE_DEPOSIT_IB_SHARED_PERCENTAGE_FROM_SUB_IB": 7, "BALANCE_DEPOSIT_IB_SHARED_PERCENTAGE_FROM_BROKER": 8, "BALANCE_DEPOSIT_REBATE": 9, "BALANCE_WITHDRAW_REBATE": 10, "BALANCE_DEPOSIT_STRATEGY_COMMISSION_OUTER": 11, "BALANCE_WITHDRAW_STRATEGY_COMMISSION_OUTER": 12, "BALANCE_WITHDRAW_BONUS_COMPENSATION": 13, "BALANCE_WITHDRAW_IB_SHARED_PERCENTAGE_TO_BROKER": 14, "BALANCE_DEPOSIT_DIVIDENDS": 15, "BALANCE_WITHDRAW_DIVIDENDS": 16, "BALANCE_WITHDRAW_GSL_CHARGE": 17, "BALANCE_WITHDRAW_ROLLOVER": 18, "BALANCE_DEPOSIT_NONWITHDRAWABLE_BONUS": 19, "BALANCE_WITHDRAW_NONWITHDRAWABLE_BONUS": 20, "BALANCE_DEPOSIT_SWAP": 21, "BALANCE_WITHDRAW_SWAP": 22, "BALANCE_DEPOSIT_MANAGEMENT_FEE": 27, "BALANCE_WITHDRAW_MANAGEMENT_FEE": 28, "BALANCE_DEPOSIT_PERFORMANCE_FEE": 29, "BALANCE_WITHDRAW_FOR_SUBACCOUNT": 30, "BALANCE_DEPOSIT_TO_SUBACCOUNT": 31, "BALANCE_WITHDRAW_FROM_SUBACCOUNT": 32, "BALANCE_DEPOSIT_FROM_SUBACCOUNT": 33, "BALANCE_WITHDRAW_COPY_FEE": 34, "BALANCE_WITHDRAW_INACTIVITY_FEE": 35, "BALANCE_DEPOSIT_TRANSFER": 36, "BALANCE_WITHDRAW_TRANSFER": 37, "BALANCE_DEPOSIT_CONVERTED_BONUS": 38, "BALANCE_DEPOSIT_NEGATIVE_BALANCE_PROTECTION": 39, } )
Enum value maps for ProtoOAChangeBalanceType.
var ( ProtoOADealStatus_name = map[int32]string{ 2: "FILLED", 3: "PARTIALLY_FILLED", 4: "REJECTED", 5: "INTERNALLY_REJECTED", 6: "ERROR", 7: "MISSED", } ProtoOADealStatus_value = map[string]int32{ "FILLED": 2, "PARTIALLY_FILLED": 3, "REJECTED": 4, "INTERNALLY_REJECTED": 5, "ERROR": 6, "MISSED": 7, } )
Enum value maps for ProtoOADealStatus.
var ( ProtoOATrendbarPeriod_name = map[int32]string{ 1: "M1", 2: "M2", 3: "M3", 4: "M4", 5: "M5", 6: "M10", 7: "M15", 8: "M30", 9: "H1", 10: "H4", 11: "H12", 12: "D1", 13: "W1", 14: "MN1", } ProtoOATrendbarPeriod_value = map[string]int32{ "M1": 1, "M2": 2, "M3": 3, "M4": 4, "M5": 5, "M10": 6, "M15": 7, "M30": 8, "H1": 9, "H4": 10, "H12": 11, "D1": 12, "W1": 13, "MN1": 14, } )
Enum value maps for ProtoOATrendbarPeriod.
var ( ProtoOAQuoteType_name = map[int32]string{ 1: "BID", 2: "ASK", } ProtoOAQuoteType_value = map[string]int32{ "BID": 1, "ASK": 2, } )
Enum value maps for ProtoOAQuoteType.
var ( ProtoOAClientPermissionScope_name = map[int32]string{ 0: "SCOPE_VIEW", 1: "SCOPE_TRADE", } ProtoOAClientPermissionScope_value = map[string]int32{ "SCOPE_VIEW": 0, "SCOPE_TRADE": 1, } )
Enum value maps for ProtoOAClientPermissionScope.
var ( ProtoOANotificationType_name = map[int32]string{ 61: "MARGIN_LEVEL_THRESHOLD_1", 62: "MARGIN_LEVEL_THRESHOLD_2", 63: "MARGIN_LEVEL_THRESHOLD_3", } ProtoOANotificationType_value = map[string]int32{ "MARGIN_LEVEL_THRESHOLD_1": 61, "MARGIN_LEVEL_THRESHOLD_2": 62, "MARGIN_LEVEL_THRESHOLD_3": 63, } )
Enum value maps for ProtoOANotificationType.
var ( ProtoOAErrorCode_name = map[int32]string{ 1: "OA_AUTH_TOKEN_EXPIRED", 2: "ACCOUNT_NOT_AUTHORIZED", 12: "RET_NO_SUCH_LOGIN", 14: "ALREADY_LOGGED_IN", 64: "RET_ACCOUNT_DISABLED", 101: "CH_CLIENT_AUTH_FAILURE", 102: "CH_CLIENT_NOT_AUTHENTICATED", 103: "CH_CLIENT_ALREADY_AUTHENTICATED", 104: "CH_ACCESS_TOKEN_INVALID", 105: "CH_SERVER_NOT_REACHABLE", 106: "CH_CTID_TRADER_ACCOUNT_NOT_FOUND", 107: "CH_OA_CLIENT_NOT_FOUND", 108: "REQUEST_FREQUENCY_EXCEEDED", 109: "SERVER_IS_UNDER_MAINTENANCE", 110: "CHANNEL_IS_BLOCKED", 67: "CONNECTIONS_LIMIT_EXCEEDED", 68: "WORSE_GSL_NOT_ALLOWED", 69: "SYMBOL_HAS_HOLIDAY", 112: "NOT_SUBSCRIBED_TO_SPOTS", 113: "ALREADY_SUBSCRIBED", 114: "SYMBOL_NOT_FOUND", 115: "UNKNOWN_SYMBOL", 35: "INCORRECT_BOUNDARIES", 117: "NO_QUOTES", 118: "NOT_ENOUGH_MONEY", 119: "MAX_EXPOSURE_REACHED", 120: "POSITION_NOT_FOUND", 121: "ORDER_NOT_FOUND", 122: "POSITION_NOT_OPEN", 123: "POSITION_LOCKED", 124: "TOO_MANY_POSITIONS", 125: "TRADING_BAD_VOLUME", 126: "TRADING_BAD_STOPS", 127: "TRADING_BAD_PRICES", 128: "TRADING_BAD_STAKE", 129: "PROTECTION_IS_TOO_CLOSE_TO_MARKET", 130: "TRADING_BAD_EXPIRATION_DATE", 131: "PENDING_EXECUTION", 132: "TRADING_DISABLED", 133: "TRADING_NOT_ALLOWED", 134: "UNABLE_TO_CANCEL_ORDER", 135: "UNABLE_TO_AMEND_ORDER", 136: "SHORT_SELLING_NOT_ALLOWED", } ProtoOAErrorCode_value = map[string]int32{ "OA_AUTH_TOKEN_EXPIRED": 1, "ACCOUNT_NOT_AUTHORIZED": 2, "RET_NO_SUCH_LOGIN": 12, "ALREADY_LOGGED_IN": 14, "RET_ACCOUNT_DISABLED": 64, "CH_CLIENT_AUTH_FAILURE": 101, "CH_CLIENT_NOT_AUTHENTICATED": 102, "CH_CLIENT_ALREADY_AUTHENTICATED": 103, "CH_ACCESS_TOKEN_INVALID": 104, "CH_SERVER_NOT_REACHABLE": 105, "CH_CTID_TRADER_ACCOUNT_NOT_FOUND": 106, "CH_OA_CLIENT_NOT_FOUND": 107, "REQUEST_FREQUENCY_EXCEEDED": 108, "SERVER_IS_UNDER_MAINTENANCE": 109, "CHANNEL_IS_BLOCKED": 110, "CONNECTIONS_LIMIT_EXCEEDED": 67, "WORSE_GSL_NOT_ALLOWED": 68, "SYMBOL_HAS_HOLIDAY": 69, "NOT_SUBSCRIBED_TO_SPOTS": 112, "ALREADY_SUBSCRIBED": 113, "SYMBOL_NOT_FOUND": 114, "UNKNOWN_SYMBOL": 115, "INCORRECT_BOUNDARIES": 35, "NO_QUOTES": 117, "NOT_ENOUGH_MONEY": 118, "MAX_EXPOSURE_REACHED": 119, "POSITION_NOT_FOUND": 120, "ORDER_NOT_FOUND": 121, "POSITION_NOT_OPEN": 122, "POSITION_LOCKED": 123, "TOO_MANY_POSITIONS": 124, "TRADING_BAD_VOLUME": 125, "TRADING_BAD_STOPS": 126, "TRADING_BAD_PRICES": 127, "TRADING_BAD_STAKE": 128, "PROTECTION_IS_TOO_CLOSE_TO_MARKET": 129, "TRADING_BAD_EXPIRATION_DATE": 130, "PENDING_EXECUTION": 131, "TRADING_DISABLED": 132, "TRADING_NOT_ALLOWED": 133, "UNABLE_TO_CANCEL_ORDER": 134, "UNABLE_TO_AMEND_ORDER": 135, "SHORT_SELLING_NOT_ALLOWED": 136, } )
Enum value maps for ProtoOAErrorCode.
var ( ProtoOALimitedRiskMarginCalculationStrategy_name = map[int32]string{ 0: "ACCORDING_TO_LEVERAGE", 1: "ACCORDING_TO_GSL", 2: "ACCORDING_TO_GSL_AND_LEVERAGE", } ProtoOALimitedRiskMarginCalculationStrategy_value = map[string]int32{ "ACCORDING_TO_LEVERAGE": 0, "ACCORDING_TO_GSL": 1, "ACCORDING_TO_GSL_AND_LEVERAGE": 2, } )
Enum value maps for ProtoOALimitedRiskMarginCalculationStrategy.
var ( ProtoOAStopOutStrategy_name = map[int32]string{ 0: "MOST_MARGIN_USED_FIRST", 1: "MOST_LOSING_FIRST", } ProtoOAStopOutStrategy_value = map[string]int32{ "MOST_MARGIN_USED_FIRST": 0, "MOST_LOSING_FIRST": 1, } )
Enum value maps for ProtoOAStopOutStrategy.
var File_OpenApiCommonMessages_proto protoreflect.FileDescriptor
var File_OpenApiCommonModelMessages_proto protoreflect.FileDescriptor
var File_OpenApiMessages_proto protoreflect.FileDescriptor
var File_OpenApiModelMessages_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ProtoErrorCode ¶
type ProtoErrorCode int32
COMMON error codes 1 - 99
const ( ProtoErrorCode_UNKNOWN_ERROR ProtoErrorCode = 1 // Generic error. ProtoErrorCode_UNSUPPORTED_MESSAGE ProtoErrorCode = 2 // Message is not supported. Wrong message. ProtoErrorCode_INVALID_REQUEST ProtoErrorCode = 3 // Generic error. Usually used when input value is not correct. ProtoErrorCode_TIMEOUT_ERROR ProtoErrorCode = 5 // Deal execution is reached timeout and rejected. ProtoErrorCode_ENTITY_NOT_FOUND ProtoErrorCode = 6 // Generic error for requests by id. ProtoErrorCode_CANT_ROUTE_REQUEST ProtoErrorCode = 7 // Connection to Server is lost or not supported. ProtoErrorCode_FRAME_TOO_LONG ProtoErrorCode = 8 // Message is too large. ProtoErrorCode_MARKET_CLOSED ProtoErrorCode = 9 // Market is closed. ProtoErrorCode_CONCURRENT_MODIFICATION ProtoErrorCode = 10 // Order is blocked (e.g. under execution) and change cannot be applied. ProtoErrorCode_BLOCKED_PAYLOAD_TYPE ProtoErrorCode = 11 // Message is blocked by server or rate limit is reached. )
func (ProtoErrorCode) Descriptor ¶
func (ProtoErrorCode) Descriptor() protoreflect.EnumDescriptor
func (ProtoErrorCode) Enum ¶
func (x ProtoErrorCode) Enum() *ProtoErrorCode
func (ProtoErrorCode) EnumDescriptor
deprecated
func (ProtoErrorCode) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProtoErrorCode.Descriptor instead.
func (ProtoErrorCode) Number ¶
func (x ProtoErrorCode) Number() protoreflect.EnumNumber
func (ProtoErrorCode) String ¶
func (x ProtoErrorCode) String() string
func (ProtoErrorCode) Type ¶
func (ProtoErrorCode) Type() protoreflect.EnumType
func (*ProtoErrorCode) UnmarshalJSON
deprecated
func (x *ProtoErrorCode) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type ProtoErrorRes ¶
type ProtoErrorRes struct { PayloadType *ProtoPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoPayloadType,def=50" json:"payloadType,omitempty"` ErrorCode *string `protobuf:"bytes,2,req,name=errorCode" json:"errorCode,omitempty"` // Contains name of ProtoErrorCode or other custom ErrorCodes (e.g. ProtoCHErrorCode). Description *string `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"` // Error description. MaintenanceEndTimestamp *uint64 `protobuf:"varint,4,opt,name=maintenanceEndTimestamp" json:"maintenanceEndTimestamp,omitempty"` // The Unix time in milliseconds of the end of the maintenance. // contains filtered or unexported fields }
* Error response that is sent from Open API proxy when error occurs.
func (*ProtoErrorRes) Descriptor
deprecated
func (*ProtoErrorRes) Descriptor() ([]byte, []int)
Deprecated: Use ProtoErrorRes.ProtoReflect.Descriptor instead.
func (*ProtoErrorRes) GetDescription ¶
func (x *ProtoErrorRes) GetDescription() string
func (*ProtoErrorRes) GetErrorCode ¶
func (x *ProtoErrorRes) GetErrorCode() string
func (*ProtoErrorRes) GetMaintenanceEndTimestamp ¶
func (x *ProtoErrorRes) GetMaintenanceEndTimestamp() uint64
func (*ProtoErrorRes) GetPayloadType ¶
func (x *ProtoErrorRes) GetPayloadType() ProtoPayloadType
func (*ProtoErrorRes) ProtoMessage ¶
func (*ProtoErrorRes) ProtoMessage()
func (*ProtoErrorRes) ProtoReflect ¶
func (x *ProtoErrorRes) ProtoReflect() protoreflect.Message
func (*ProtoErrorRes) Reset ¶
func (x *ProtoErrorRes) Reset()
func (*ProtoErrorRes) String ¶
func (x *ProtoErrorRes) String() string
type ProtoHeartbeatEvent ¶
type ProtoHeartbeatEvent struct { PayloadType *ProtoPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoPayloadType,def=51" json:"payloadType,omitempty"` // contains filtered or unexported fields }
* Event that is sent from Open API proxy and can be used as criteria that connection is healthy when no other messages are sent by cTrader platform. Open API client can send this message when he needs to keep the connection open for a period without other messages longer than 30 seconds.
func (*ProtoHeartbeatEvent) Descriptor
deprecated
func (*ProtoHeartbeatEvent) Descriptor() ([]byte, []int)
Deprecated: Use ProtoHeartbeatEvent.ProtoReflect.Descriptor instead.
func (*ProtoHeartbeatEvent) GetPayloadType ¶
func (x *ProtoHeartbeatEvent) GetPayloadType() ProtoPayloadType
func (*ProtoHeartbeatEvent) ProtoMessage ¶
func (*ProtoHeartbeatEvent) ProtoMessage()
func (*ProtoHeartbeatEvent) ProtoReflect ¶
func (x *ProtoHeartbeatEvent) ProtoReflect() protoreflect.Message
func (*ProtoHeartbeatEvent) Reset ¶
func (x *ProtoHeartbeatEvent) Reset()
func (*ProtoHeartbeatEvent) String ¶
func (x *ProtoHeartbeatEvent) String() string
type ProtoMessage ¶
type ProtoMessage struct { PayloadType *uint32 `protobuf:"varint,1,req,name=payloadType" json:"payloadType,omitempty"` // Contains id of ProtoPayloadType or other custom PayloadTypes (e.g. ProtoOAPayloadType). Payload []byte `protobuf:"bytes,2,opt,name=payload" json:"payload,omitempty"` // Serialized protobuf message that corresponds to payloadType. ClientMsgId *string `protobuf:"bytes,3,opt,name=clientMsgId" json:"clientMsgId,omitempty"` // Request message id, assigned by the client that will be returned in the response. // contains filtered or unexported fields }
* Base message that is used for all messages that are sent to/from Open API proxy of cTrader platform.
func (*ProtoMessage) Descriptor
deprecated
func (*ProtoMessage) Descriptor() ([]byte, []int)
Deprecated: Use ProtoMessage.ProtoReflect.Descriptor instead.
func (*ProtoMessage) GetClientMsgId ¶
func (x *ProtoMessage) GetClientMsgId() string
func (*ProtoMessage) GetPayload ¶
func (x *ProtoMessage) GetPayload() []byte
func (*ProtoMessage) GetPayloadType ¶
func (x *ProtoMessage) GetPayloadType() uint32
func (*ProtoMessage) ProtoMessage ¶
func (*ProtoMessage) ProtoMessage()
func (*ProtoMessage) ProtoReflect ¶
func (x *ProtoMessage) ProtoReflect() protoreflect.Message
func (*ProtoMessage) Reset ¶
func (x *ProtoMessage) Reset()
func (*ProtoMessage) String ¶
func (x *ProtoMessage) String() string
type ProtoOAAccessRights ¶
type ProtoOAAccessRights int32
* Enum for specifying access right for a trader.
const ( ProtoOAAccessRights_FULL_ACCESS ProtoOAAccessRights = 0 // Enable all trading. ProtoOAAccessRights_CLOSE_ONLY ProtoOAAccessRights = 1 // Only closing trading request are enabled. ProtoOAAccessRights_NO_TRADING ProtoOAAccessRights = 2 // View only access. ProtoOAAccessRights_NO_LOGIN ProtoOAAccessRights = 3 // No access. )
func (ProtoOAAccessRights) Descriptor ¶
func (ProtoOAAccessRights) Descriptor() protoreflect.EnumDescriptor
func (ProtoOAAccessRights) Enum ¶
func (x ProtoOAAccessRights) Enum() *ProtoOAAccessRights
func (ProtoOAAccessRights) EnumDescriptor
deprecated
func (ProtoOAAccessRights) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProtoOAAccessRights.Descriptor instead.
func (ProtoOAAccessRights) Number ¶
func (x ProtoOAAccessRights) Number() protoreflect.EnumNumber
func (ProtoOAAccessRights) String ¶
func (x ProtoOAAccessRights) String() string
func (ProtoOAAccessRights) Type ¶
func (ProtoOAAccessRights) Type() protoreflect.EnumType
func (*ProtoOAAccessRights) UnmarshalJSON
deprecated
func (x *ProtoOAAccessRights) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type ProtoOAAccountAuthReq ¶
type ProtoOAAccountAuthReq struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2102" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // The unique identifier of the trader's account in cTrader platform. AccessToken *string `protobuf:"bytes,3,req,name=accessToken" json:"accessToken,omitempty"` // The Access Token issued for providing access to the Trader's Account. // contains filtered or unexported fields }
* Request for the authorizing trading account session. Requires established authorized connection with the client application using ProtoOAApplicationAuthReq.
func (*ProtoOAAccountAuthReq) Descriptor
deprecated
func (*ProtoOAAccountAuthReq) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAAccountAuthReq.ProtoReflect.Descriptor instead.
func (*ProtoOAAccountAuthReq) GetAccessToken ¶
func (x *ProtoOAAccountAuthReq) GetAccessToken() string
func (*ProtoOAAccountAuthReq) GetCtidTraderAccountId ¶
func (x *ProtoOAAccountAuthReq) GetCtidTraderAccountId() int64
func (*ProtoOAAccountAuthReq) GetPayloadType ¶
func (x *ProtoOAAccountAuthReq) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAAccountAuthReq) ProtoMessage ¶
func (*ProtoOAAccountAuthReq) ProtoMessage()
func (*ProtoOAAccountAuthReq) ProtoReflect ¶
func (x *ProtoOAAccountAuthReq) ProtoReflect() protoreflect.Message
func (*ProtoOAAccountAuthReq) Reset ¶
func (x *ProtoOAAccountAuthReq) Reset()
func (*ProtoOAAccountAuthReq) String ¶
func (x *ProtoOAAccountAuthReq) String() string
type ProtoOAAccountAuthRes ¶
type ProtoOAAccountAuthRes struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2103" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // The unique identifier of the trader's account in cTrader platform. // contains filtered or unexported fields }
* Response to the ProtoOAApplicationAuthRes request.
func (*ProtoOAAccountAuthRes) Descriptor
deprecated
func (*ProtoOAAccountAuthRes) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAAccountAuthRes.ProtoReflect.Descriptor instead.
func (*ProtoOAAccountAuthRes) GetCtidTraderAccountId ¶
func (x *ProtoOAAccountAuthRes) GetCtidTraderAccountId() int64
func (*ProtoOAAccountAuthRes) GetPayloadType ¶
func (x *ProtoOAAccountAuthRes) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAAccountAuthRes) ProtoMessage ¶
func (*ProtoOAAccountAuthRes) ProtoMessage()
func (*ProtoOAAccountAuthRes) ProtoReflect ¶
func (x *ProtoOAAccountAuthRes) ProtoReflect() protoreflect.Message
func (*ProtoOAAccountAuthRes) Reset ¶
func (x *ProtoOAAccountAuthRes) Reset()
func (*ProtoOAAccountAuthRes) String ¶
func (x *ProtoOAAccountAuthRes) String() string
type ProtoOAAccountDisconnectEvent ¶
type ProtoOAAccountDisconnectEvent struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2164" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // The unique identifier of the trader's account in cTrader platform. // contains filtered or unexported fields }
* Event that is sent when the established session for an account is dropped on the server side. A new session must be authorized for the account.
func (*ProtoOAAccountDisconnectEvent) Descriptor
deprecated
func (*ProtoOAAccountDisconnectEvent) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAAccountDisconnectEvent.ProtoReflect.Descriptor instead.
func (*ProtoOAAccountDisconnectEvent) GetCtidTraderAccountId ¶
func (x *ProtoOAAccountDisconnectEvent) GetCtidTraderAccountId() int64
func (*ProtoOAAccountDisconnectEvent) GetPayloadType ¶
func (x *ProtoOAAccountDisconnectEvent) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAAccountDisconnectEvent) ProtoMessage ¶
func (*ProtoOAAccountDisconnectEvent) ProtoMessage()
func (*ProtoOAAccountDisconnectEvent) ProtoReflect ¶
func (x *ProtoOAAccountDisconnectEvent) ProtoReflect() protoreflect.Message
func (*ProtoOAAccountDisconnectEvent) Reset ¶
func (x *ProtoOAAccountDisconnectEvent) Reset()
func (*ProtoOAAccountDisconnectEvent) String ¶
func (x *ProtoOAAccountDisconnectEvent) String() string
type ProtoOAAccountLogoutReq ¶
type ProtoOAAccountLogoutReq struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2162" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // The unique identifier of the trader's account in cTrader platform. // contains filtered or unexported fields }
* Request for logout of trading account session.
func (*ProtoOAAccountLogoutReq) Descriptor
deprecated
func (*ProtoOAAccountLogoutReq) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAAccountLogoutReq.ProtoReflect.Descriptor instead.
func (*ProtoOAAccountLogoutReq) GetCtidTraderAccountId ¶
func (x *ProtoOAAccountLogoutReq) GetCtidTraderAccountId() int64
func (*ProtoOAAccountLogoutReq) GetPayloadType ¶
func (x *ProtoOAAccountLogoutReq) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAAccountLogoutReq) ProtoMessage ¶
func (*ProtoOAAccountLogoutReq) ProtoMessage()
func (*ProtoOAAccountLogoutReq) ProtoReflect ¶
func (x *ProtoOAAccountLogoutReq) ProtoReflect() protoreflect.Message
func (*ProtoOAAccountLogoutReq) Reset ¶
func (x *ProtoOAAccountLogoutReq) Reset()
func (*ProtoOAAccountLogoutReq) String ¶
func (x *ProtoOAAccountLogoutReq) String() string
type ProtoOAAccountLogoutRes ¶
type ProtoOAAccountLogoutRes struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2163" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // The unique identifier of the trader's account in cTrader platform. // contains filtered or unexported fields }
* Response to the ProtoOATraderLogoutReq request. Actual logout of trading account will be completed on ProtoOAAccountDisconnectEvent.
func (*ProtoOAAccountLogoutRes) Descriptor
deprecated
func (*ProtoOAAccountLogoutRes) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAAccountLogoutRes.ProtoReflect.Descriptor instead.
func (*ProtoOAAccountLogoutRes) GetCtidTraderAccountId ¶
func (x *ProtoOAAccountLogoutRes) GetCtidTraderAccountId() int64
func (*ProtoOAAccountLogoutRes) GetPayloadType ¶
func (x *ProtoOAAccountLogoutRes) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAAccountLogoutRes) ProtoMessage ¶
func (*ProtoOAAccountLogoutRes) ProtoMessage()
func (*ProtoOAAccountLogoutRes) ProtoReflect ¶
func (x *ProtoOAAccountLogoutRes) ProtoReflect() protoreflect.Message
func (*ProtoOAAccountLogoutRes) Reset ¶
func (x *ProtoOAAccountLogoutRes) Reset()
func (*ProtoOAAccountLogoutRes) String ¶
func (x *ProtoOAAccountLogoutRes) String() string
type ProtoOAAccountType ¶
type ProtoOAAccountType int32
* Enum for specifying type of an account.
const ( ProtoOAAccountType_HEDGED ProtoOAAccountType = 0 // Allows multiple positions on a trading account for a symbol. ProtoOAAccountType_NETTED ProtoOAAccountType = 1 // Only one position per symbol is allowed on a trading account. ProtoOAAccountType_SPREAD_BETTING ProtoOAAccountType = 2 // Spread betting type account. )
func (ProtoOAAccountType) Descriptor ¶
func (ProtoOAAccountType) Descriptor() protoreflect.EnumDescriptor
func (ProtoOAAccountType) Enum ¶
func (x ProtoOAAccountType) Enum() *ProtoOAAccountType
func (ProtoOAAccountType) EnumDescriptor
deprecated
func (ProtoOAAccountType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProtoOAAccountType.Descriptor instead.
func (ProtoOAAccountType) Number ¶
func (x ProtoOAAccountType) Number() protoreflect.EnumNumber
func (ProtoOAAccountType) String ¶
func (x ProtoOAAccountType) String() string
func (ProtoOAAccountType) Type ¶
func (ProtoOAAccountType) Type() protoreflect.EnumType
func (*ProtoOAAccountType) UnmarshalJSON
deprecated
func (x *ProtoOAAccountType) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type ProtoOAAccountsTokenInvalidatedEvent ¶
type ProtoOAAccountsTokenInvalidatedEvent struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2147" json:"payloadType,omitempty"` CtidTraderAccountIds []int64 `protobuf:"varint,2,rep,name=ctidTraderAccountIds" json:"ctidTraderAccountIds,omitempty"` // The unique identifier of the trader's account in cTrader platform. Reason *string `protobuf:"bytes,3,opt,name=reason" json:"reason,omitempty"` // The disconnection reason explained. For example: Access Token is expired or recalled. // contains filtered or unexported fields }
* Event that is sent when a session to a specific trader's account is terminated by the server but the existing connections with the other trader's accounts are maintained.
func (*ProtoOAAccountsTokenInvalidatedEvent) Descriptor
deprecated
func (*ProtoOAAccountsTokenInvalidatedEvent) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAAccountsTokenInvalidatedEvent.ProtoReflect.Descriptor instead.
func (*ProtoOAAccountsTokenInvalidatedEvent) GetCtidTraderAccountIds ¶
func (x *ProtoOAAccountsTokenInvalidatedEvent) GetCtidTraderAccountIds() []int64
func (*ProtoOAAccountsTokenInvalidatedEvent) GetPayloadType ¶
func (x *ProtoOAAccountsTokenInvalidatedEvent) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAAccountsTokenInvalidatedEvent) GetReason ¶
func (x *ProtoOAAccountsTokenInvalidatedEvent) GetReason() string
func (*ProtoOAAccountsTokenInvalidatedEvent) ProtoMessage ¶
func (*ProtoOAAccountsTokenInvalidatedEvent) ProtoMessage()
func (*ProtoOAAccountsTokenInvalidatedEvent) ProtoReflect ¶
func (x *ProtoOAAccountsTokenInvalidatedEvent) ProtoReflect() protoreflect.Message
func (*ProtoOAAccountsTokenInvalidatedEvent) Reset ¶
func (x *ProtoOAAccountsTokenInvalidatedEvent) Reset()
func (*ProtoOAAccountsTokenInvalidatedEvent) String ¶
func (x *ProtoOAAccountsTokenInvalidatedEvent) String() string
type ProtoOAAmendOrderReq ¶
type ProtoOAAmendOrderReq struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2109" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. OrderId *int64 `protobuf:"varint,3,req,name=orderId" json:"orderId,omitempty"` // The unique ID of the order. Volume *int64 `protobuf:"varint,4,opt,name=volume" json:"volume,omitempty"` // Volume, represented in 0.01 of a unit (e.g. cents). LimitPrice *float64 `protobuf:"fixed64,5,opt,name=limitPrice" json:"limitPrice,omitempty"` // The Limit Price, can be specified for the LIMIT order only. StopPrice *float64 `protobuf:"fixed64,6,opt,name=stopPrice" json:"stopPrice,omitempty"` // The Stop Price, can be specified for the STOP and the STOP_LIMIT orders. ExpirationTimestamp *int64 `protobuf:"varint,7,opt,name=expirationTimestamp" json:"expirationTimestamp,omitempty"` // The Unix timestamp in milliseconds of Order expiration. Should be set for the Good Till Date orders. StopLoss *float64 `protobuf:"fixed64,8,opt,name=stopLoss" json:"stopLoss,omitempty"` // The absolute Stop Loss price (e.g. 1.23456). Not supported for the MARKER orders. TakeProfit *float64 `protobuf:"fixed64,9,opt,name=takeProfit" json:"takeProfit,omitempty"` // The absolute Take Profit price (e.g. 1.23456). Not supported for the MARKER orders. SlippageInPoints *int32 `protobuf:"varint,10,opt,name=slippageInPoints" json:"slippageInPoints,omitempty"` // Slippage distance for the MARKET_RANGE and the STOP_LIMIT orders. RelativeStopLoss *int64 `protobuf:"varint,11,opt,name=relativeStopLoss" json:"relativeStopLoss,omitempty"` // The relative Stop Loss can be specified instead of the absolute one. Specified in 1/100000 of a unit of price. For BUY stopLoss = entryPrice - relativeStopLoss, for SELL stopLoss = entryPrice + relativeStopLoss. RelativeTakeProfit *int64 `protobuf:"varint,12,opt,name=relativeTakeProfit" json:"relativeTakeProfit,omitempty"` // The relative Take Profit can be specified instead of the absolute one. Specified in 1/100000 of a unit of price. For BUY takeProfit = entryPrice + relativeTakeProfit, for SELL takeProfit = entryPrice - relativeTakeProfit. GuaranteedStopLoss *bool `protobuf:"varint,13,opt,name=guaranteedStopLoss" json:"guaranteedStopLoss,omitempty"` // If TRUE then the Stop Loss is guaranteed. Available for the French Risk or the Guaranteed Stop Loss Accounts. TrailingStopLoss *bool `protobuf:"varint,14,opt,name=trailingStopLoss" json:"trailingStopLoss,omitempty"` // If TRUE then the Trailing Stop Loss is applied. StopTriggerMethod *ProtoOAOrderTriggerMethod `protobuf:"varint,15,opt,name=stopTriggerMethod,enum=ProtoOAOrderTriggerMethod,def=1" json:"stopTriggerMethod,omitempty"` // Trigger method for the STOP or the STOP_LIMIT pending order. // contains filtered or unexported fields }
* Request for amending the existing pending order. Allowed only if the Access Token has "trade" permissions for the trading account.
func (*ProtoOAAmendOrderReq) Descriptor
deprecated
func (*ProtoOAAmendOrderReq) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAAmendOrderReq.ProtoReflect.Descriptor instead.
func (*ProtoOAAmendOrderReq) GetCtidTraderAccountId ¶
func (x *ProtoOAAmendOrderReq) GetCtidTraderAccountId() int64
func (*ProtoOAAmendOrderReq) GetExpirationTimestamp ¶
func (x *ProtoOAAmendOrderReq) GetExpirationTimestamp() int64
func (*ProtoOAAmendOrderReq) GetGuaranteedStopLoss ¶
func (x *ProtoOAAmendOrderReq) GetGuaranteedStopLoss() bool
func (*ProtoOAAmendOrderReq) GetLimitPrice ¶
func (x *ProtoOAAmendOrderReq) GetLimitPrice() float64
func (*ProtoOAAmendOrderReq) GetOrderId ¶
func (x *ProtoOAAmendOrderReq) GetOrderId() int64
func (*ProtoOAAmendOrderReq) GetPayloadType ¶
func (x *ProtoOAAmendOrderReq) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAAmendOrderReq) GetRelativeStopLoss ¶
func (x *ProtoOAAmendOrderReq) GetRelativeStopLoss() int64
func (*ProtoOAAmendOrderReq) GetRelativeTakeProfit ¶
func (x *ProtoOAAmendOrderReq) GetRelativeTakeProfit() int64
func (*ProtoOAAmendOrderReq) GetSlippageInPoints ¶
func (x *ProtoOAAmendOrderReq) GetSlippageInPoints() int32
func (*ProtoOAAmendOrderReq) GetStopLoss ¶
func (x *ProtoOAAmendOrderReq) GetStopLoss() float64
func (*ProtoOAAmendOrderReq) GetStopPrice ¶
func (x *ProtoOAAmendOrderReq) GetStopPrice() float64
func (*ProtoOAAmendOrderReq) GetStopTriggerMethod ¶
func (x *ProtoOAAmendOrderReq) GetStopTriggerMethod() ProtoOAOrderTriggerMethod
func (*ProtoOAAmendOrderReq) GetTakeProfit ¶
func (x *ProtoOAAmendOrderReq) GetTakeProfit() float64
func (*ProtoOAAmendOrderReq) GetTrailingStopLoss ¶
func (x *ProtoOAAmendOrderReq) GetTrailingStopLoss() bool
func (*ProtoOAAmendOrderReq) GetVolume ¶
func (x *ProtoOAAmendOrderReq) GetVolume() int64
func (*ProtoOAAmendOrderReq) ProtoMessage ¶
func (*ProtoOAAmendOrderReq) ProtoMessage()
func (*ProtoOAAmendOrderReq) ProtoReflect ¶
func (x *ProtoOAAmendOrderReq) ProtoReflect() protoreflect.Message
func (*ProtoOAAmendOrderReq) Reset ¶
func (x *ProtoOAAmendOrderReq) Reset()
func (*ProtoOAAmendOrderReq) String ¶
func (x *ProtoOAAmendOrderReq) String() string
type ProtoOAAmendPositionSLTPReq ¶
type ProtoOAAmendPositionSLTPReq struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2110" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. PositionId *int64 `protobuf:"varint,3,req,name=positionId" json:"positionId,omitempty"` // The unique ID of the position to amend. StopLoss *float64 `protobuf:"fixed64,4,opt,name=stopLoss" json:"stopLoss,omitempty"` // Absolute Stop Loss price (1.23456 for example). TakeProfit *float64 `protobuf:"fixed64,5,opt,name=takeProfit" json:"takeProfit,omitempty"` // Absolute Take Profit price (1.26543 for example). GuaranteedStopLoss *bool `protobuf:"varint,7,opt,name=guaranteedStopLoss" json:"guaranteedStopLoss,omitempty"` //If TRUE then the Stop Loss is guaranteed. Available for the French Risk or the Guaranteed Stop Loss Accounts. TrailingStopLoss *bool `protobuf:"varint,8,opt,name=trailingStopLoss" json:"trailingStopLoss,omitempty"` //If TRUE then the Trailing Stop Loss is applied. StopLossTriggerMethod *ProtoOAOrderTriggerMethod `` // The Stop trigger method for the Stop Loss/Take Profit order. /* 126-byte string literal not displayed */ // contains filtered or unexported fields }
* Request for amending StopLoss and TakeProfit of existing position. Allowed only if the accessToken has "trade" permissions for the trading account.
func (*ProtoOAAmendPositionSLTPReq) Descriptor
deprecated
func (*ProtoOAAmendPositionSLTPReq) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAAmendPositionSLTPReq.ProtoReflect.Descriptor instead.
func (*ProtoOAAmendPositionSLTPReq) GetCtidTraderAccountId ¶
func (x *ProtoOAAmendPositionSLTPReq) GetCtidTraderAccountId() int64
func (*ProtoOAAmendPositionSLTPReq) GetGuaranteedStopLoss ¶
func (x *ProtoOAAmendPositionSLTPReq) GetGuaranteedStopLoss() bool
func (*ProtoOAAmendPositionSLTPReq) GetPayloadType ¶
func (x *ProtoOAAmendPositionSLTPReq) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAAmendPositionSLTPReq) GetPositionId ¶
func (x *ProtoOAAmendPositionSLTPReq) GetPositionId() int64
func (*ProtoOAAmendPositionSLTPReq) GetStopLoss ¶
func (x *ProtoOAAmendPositionSLTPReq) GetStopLoss() float64
func (*ProtoOAAmendPositionSLTPReq) GetStopLossTriggerMethod ¶
func (x *ProtoOAAmendPositionSLTPReq) GetStopLossTriggerMethod() ProtoOAOrderTriggerMethod
func (*ProtoOAAmendPositionSLTPReq) GetTakeProfit ¶
func (x *ProtoOAAmendPositionSLTPReq) GetTakeProfit() float64
func (*ProtoOAAmendPositionSLTPReq) GetTrailingStopLoss ¶
func (x *ProtoOAAmendPositionSLTPReq) GetTrailingStopLoss() bool
func (*ProtoOAAmendPositionSLTPReq) ProtoMessage ¶
func (*ProtoOAAmendPositionSLTPReq) ProtoMessage()
func (*ProtoOAAmendPositionSLTPReq) ProtoReflect ¶
func (x *ProtoOAAmendPositionSLTPReq) ProtoReflect() protoreflect.Message
func (*ProtoOAAmendPositionSLTPReq) Reset ¶
func (x *ProtoOAAmendPositionSLTPReq) Reset()
func (*ProtoOAAmendPositionSLTPReq) String ¶
func (x *ProtoOAAmendPositionSLTPReq) String() string
type ProtoOAApplicationAuthReq ¶
type ProtoOAApplicationAuthReq struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2100" json:"payloadType,omitempty"` ClientId *string `protobuf:"bytes,2,req,name=clientId" json:"clientId,omitempty"` // The unique Client ID provided during the registration. ClientSecret *string `protobuf:"bytes,3,req,name=clientSecret" json:"clientSecret,omitempty"` // The unique Client Secret provided during the registration. // contains filtered or unexported fields }
* Request for the authorizing an application to work with the cTrader platform Proxies.
func (*ProtoOAApplicationAuthReq) Descriptor
deprecated
func (*ProtoOAApplicationAuthReq) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAApplicationAuthReq.ProtoReflect.Descriptor instead.
func (*ProtoOAApplicationAuthReq) GetClientId ¶
func (x *ProtoOAApplicationAuthReq) GetClientId() string
func (*ProtoOAApplicationAuthReq) GetClientSecret ¶
func (x *ProtoOAApplicationAuthReq) GetClientSecret() string
func (*ProtoOAApplicationAuthReq) GetPayloadType ¶
func (x *ProtoOAApplicationAuthReq) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAApplicationAuthReq) ProtoMessage ¶
func (*ProtoOAApplicationAuthReq) ProtoMessage()
func (*ProtoOAApplicationAuthReq) ProtoReflect ¶
func (x *ProtoOAApplicationAuthReq) ProtoReflect() protoreflect.Message
func (*ProtoOAApplicationAuthReq) Reset ¶
func (x *ProtoOAApplicationAuthReq) Reset()
func (*ProtoOAApplicationAuthReq) String ¶
func (x *ProtoOAApplicationAuthReq) String() string
type ProtoOAApplicationAuthRes ¶
type ProtoOAApplicationAuthRes struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2101" json:"payloadType,omitempty"` // contains filtered or unexported fields }
* Response to the ProtoOAApplicationAuthReq request.
func (*ProtoOAApplicationAuthRes) Descriptor
deprecated
func (*ProtoOAApplicationAuthRes) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAApplicationAuthRes.ProtoReflect.Descriptor instead.
func (*ProtoOAApplicationAuthRes) GetPayloadType ¶
func (x *ProtoOAApplicationAuthRes) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAApplicationAuthRes) ProtoMessage ¶
func (*ProtoOAApplicationAuthRes) ProtoMessage()
func (*ProtoOAApplicationAuthRes) ProtoReflect ¶
func (x *ProtoOAApplicationAuthRes) ProtoReflect() protoreflect.Message
func (*ProtoOAApplicationAuthRes) Reset ¶
func (x *ProtoOAApplicationAuthRes) Reset()
func (*ProtoOAApplicationAuthRes) String ¶
func (x *ProtoOAApplicationAuthRes) String() string
type ProtoOAArchivedSymbol ¶
type ProtoOAArchivedSymbol struct { SymbolId *int64 `protobuf:"varint,1,req,name=symbolId" json:"symbolId,omitempty"` // The unique identifier of the symbol in specific server environment within cTrader platform. Different brokers might have different IDs. Name *string `protobuf:"bytes,2,req,name=name" json:"name,omitempty"` // Name of the symbol (e.g. EUR/USD). UtcLastUpdateTimestamp *int64 `protobuf:"varint,3,req,name=utcLastUpdateTimestamp" json:"utcLastUpdateTimestamp,omitempty"` // The Unix time in milliseconds of the last update of the symbol. Description *string `protobuf:"bytes,4,opt,name=description" json:"description,omitempty"` // Description of the symbol. // contains filtered or unexported fields }
func (*ProtoOAArchivedSymbol) Descriptor
deprecated
func (*ProtoOAArchivedSymbol) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAArchivedSymbol.ProtoReflect.Descriptor instead.
func (*ProtoOAArchivedSymbol) GetDescription ¶
func (x *ProtoOAArchivedSymbol) GetDescription() string
func (*ProtoOAArchivedSymbol) GetName ¶
func (x *ProtoOAArchivedSymbol) GetName() string
func (*ProtoOAArchivedSymbol) GetSymbolId ¶
func (x *ProtoOAArchivedSymbol) GetSymbolId() int64
func (*ProtoOAArchivedSymbol) GetUtcLastUpdateTimestamp ¶
func (x *ProtoOAArchivedSymbol) GetUtcLastUpdateTimestamp() int64
func (*ProtoOAArchivedSymbol) ProtoMessage ¶
func (*ProtoOAArchivedSymbol) ProtoMessage()
func (*ProtoOAArchivedSymbol) ProtoReflect ¶
func (x *ProtoOAArchivedSymbol) ProtoReflect() protoreflect.Message
func (*ProtoOAArchivedSymbol) Reset ¶
func (x *ProtoOAArchivedSymbol) Reset()
func (*ProtoOAArchivedSymbol) String ¶
func (x *ProtoOAArchivedSymbol) String() string
type ProtoOAAsset ¶
type ProtoOAAsset struct { AssetId *int64 `protobuf:"varint,1,req,name=assetId" json:"assetId,omitempty"` // The unique asset ID. Name *string `protobuf:"bytes,2,req,name=name" json:"name,omitempty"` // The asset name. DisplayName *string `protobuf:"bytes,3,opt,name=displayName" json:"displayName,omitempty"` // User friendly name. Digits *int32 `protobuf:"varint,4,opt,name=digits" json:"digits,omitempty"` // Precision of the asset. // contains filtered or unexported fields }
* Asset entity.
func (*ProtoOAAsset) Descriptor
deprecated
func (*ProtoOAAsset) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAAsset.ProtoReflect.Descriptor instead.
func (*ProtoOAAsset) GetAssetId ¶
func (x *ProtoOAAsset) GetAssetId() int64
func (*ProtoOAAsset) GetDigits ¶
func (x *ProtoOAAsset) GetDigits() int32
func (*ProtoOAAsset) GetDisplayName ¶
func (x *ProtoOAAsset) GetDisplayName() string
func (*ProtoOAAsset) GetName ¶
func (x *ProtoOAAsset) GetName() string
func (*ProtoOAAsset) ProtoMessage ¶
func (*ProtoOAAsset) ProtoMessage()
func (*ProtoOAAsset) ProtoReflect ¶
func (x *ProtoOAAsset) ProtoReflect() protoreflect.Message
func (*ProtoOAAsset) Reset ¶
func (x *ProtoOAAsset) Reset()
func (*ProtoOAAsset) String ¶
func (x *ProtoOAAsset) String() string
type ProtoOAAssetClass ¶
type ProtoOAAssetClass struct { Id *int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` // Unique asset ID. Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` // Asset class name. SortingNumber *float64 `protobuf:"fixed64,3,opt,name=sortingNumber" json:"sortingNumber,omitempty"` // The number used for sorting Asset Classes in the UI (lowest number should appear at the top). // contains filtered or unexported fields }
* Asset class entity.
func (*ProtoOAAssetClass) Descriptor
deprecated
func (*ProtoOAAssetClass) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAAssetClass.ProtoReflect.Descriptor instead.
func (*ProtoOAAssetClass) GetId ¶
func (x *ProtoOAAssetClass) GetId() int64
func (*ProtoOAAssetClass) GetName ¶
func (x *ProtoOAAssetClass) GetName() string
func (*ProtoOAAssetClass) GetSortingNumber ¶
func (x *ProtoOAAssetClass) GetSortingNumber() float64
func (*ProtoOAAssetClass) ProtoMessage ¶
func (*ProtoOAAssetClass) ProtoMessage()
func (*ProtoOAAssetClass) ProtoReflect ¶
func (x *ProtoOAAssetClass) ProtoReflect() protoreflect.Message
func (*ProtoOAAssetClass) Reset ¶
func (x *ProtoOAAssetClass) Reset()
func (*ProtoOAAssetClass) String ¶
func (x *ProtoOAAssetClass) String() string
type ProtoOAAssetClassListReq ¶
type ProtoOAAssetClassListReq struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2153" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. // contains filtered or unexported fields }
* Request for a list of asset classes available for the trader's account.
func (*ProtoOAAssetClassListReq) Descriptor
deprecated
func (*ProtoOAAssetClassListReq) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAAssetClassListReq.ProtoReflect.Descriptor instead.
func (*ProtoOAAssetClassListReq) GetCtidTraderAccountId ¶
func (x *ProtoOAAssetClassListReq) GetCtidTraderAccountId() int64
func (*ProtoOAAssetClassListReq) GetPayloadType ¶
func (x *ProtoOAAssetClassListReq) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAAssetClassListReq) ProtoMessage ¶
func (*ProtoOAAssetClassListReq) ProtoMessage()
func (*ProtoOAAssetClassListReq) ProtoReflect ¶
func (x *ProtoOAAssetClassListReq) ProtoReflect() protoreflect.Message
func (*ProtoOAAssetClassListReq) Reset ¶
func (x *ProtoOAAssetClassListReq) Reset()
func (*ProtoOAAssetClassListReq) String ¶
func (x *ProtoOAAssetClassListReq) String() string
type ProtoOAAssetClassListRes ¶
type ProtoOAAssetClassListRes struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2154" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. AssetClass []*ProtoOAAssetClass `protobuf:"bytes,3,rep,name=assetClass" json:"assetClass,omitempty"` // List of the asset classes. // contains filtered or unexported fields }
* Response to the ProtoOAAssetListReq request.
func (*ProtoOAAssetClassListRes) Descriptor
deprecated
func (*ProtoOAAssetClassListRes) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAAssetClassListRes.ProtoReflect.Descriptor instead.
func (*ProtoOAAssetClassListRes) GetAssetClass ¶
func (x *ProtoOAAssetClassListRes) GetAssetClass() []*ProtoOAAssetClass
func (*ProtoOAAssetClassListRes) GetCtidTraderAccountId ¶
func (x *ProtoOAAssetClassListRes) GetCtidTraderAccountId() int64
func (*ProtoOAAssetClassListRes) GetPayloadType ¶
func (x *ProtoOAAssetClassListRes) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAAssetClassListRes) ProtoMessage ¶
func (*ProtoOAAssetClassListRes) ProtoMessage()
func (*ProtoOAAssetClassListRes) ProtoReflect ¶
func (x *ProtoOAAssetClassListRes) ProtoReflect() protoreflect.Message
func (*ProtoOAAssetClassListRes) Reset ¶
func (x *ProtoOAAssetClassListRes) Reset()
func (*ProtoOAAssetClassListRes) String ¶
func (x *ProtoOAAssetClassListRes) String() string
type ProtoOAAssetListReq ¶
type ProtoOAAssetListReq struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2112" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. // contains filtered or unexported fields }
* Request for the list of assets available for a trader's account.
func (*ProtoOAAssetListReq) Descriptor
deprecated
func (*ProtoOAAssetListReq) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAAssetListReq.ProtoReflect.Descriptor instead.
func (*ProtoOAAssetListReq) GetCtidTraderAccountId ¶
func (x *ProtoOAAssetListReq) GetCtidTraderAccountId() int64
func (*ProtoOAAssetListReq) GetPayloadType ¶
func (x *ProtoOAAssetListReq) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAAssetListReq) ProtoMessage ¶
func (*ProtoOAAssetListReq) ProtoMessage()
func (*ProtoOAAssetListReq) ProtoReflect ¶
func (x *ProtoOAAssetListReq) ProtoReflect() protoreflect.Message
func (*ProtoOAAssetListReq) Reset ¶
func (x *ProtoOAAssetListReq) Reset()
func (*ProtoOAAssetListReq) String ¶
func (x *ProtoOAAssetListReq) String() string
type ProtoOAAssetListRes ¶
type ProtoOAAssetListRes struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2113" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. Asset []*ProtoOAAsset `protobuf:"bytes,3,rep,name=asset" json:"asset,omitempty"` // The list of assets. // contains filtered or unexported fields }
* Response to the ProtoOAAssetListReq request.
func (*ProtoOAAssetListRes) Descriptor
deprecated
func (*ProtoOAAssetListRes) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAAssetListRes.ProtoReflect.Descriptor instead.
func (*ProtoOAAssetListRes) GetAsset ¶
func (x *ProtoOAAssetListRes) GetAsset() []*ProtoOAAsset
func (*ProtoOAAssetListRes) GetCtidTraderAccountId ¶
func (x *ProtoOAAssetListRes) GetCtidTraderAccountId() int64
func (*ProtoOAAssetListRes) GetPayloadType ¶
func (x *ProtoOAAssetListRes) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAAssetListRes) ProtoMessage ¶
func (*ProtoOAAssetListRes) ProtoMessage()
func (*ProtoOAAssetListRes) ProtoReflect ¶
func (x *ProtoOAAssetListRes) ProtoReflect() protoreflect.Message
func (*ProtoOAAssetListRes) Reset ¶
func (x *ProtoOAAssetListRes) Reset()
func (*ProtoOAAssetListRes) String ¶
func (x *ProtoOAAssetListRes) String() string
type ProtoOABonusDepositWithdraw ¶
type ProtoOABonusDepositWithdraw struct { OperationType *ProtoOAChangeBonusType `protobuf:"varint,1,req,name=operationType,enum=ProtoOAChangeBonusType" json:"operationType,omitempty"` // Type of the operation. Deposit/Withdrawal. BonusHistoryId *int64 `protobuf:"varint,2,req,name=bonusHistoryId" json:"bonusHistoryId,omitempty"` // The unique ID of the bonus deposit/withdrawal operation. ManagerBonus *int64 `protobuf:"varint,3,req,name=managerBonus" json:"managerBonus,omitempty"` // Total amount of broker's bonus after the operation. ManagerDelta *int64 `protobuf:"varint,4,req,name=managerDelta" json:"managerDelta,omitempty"` // Amount of bonus deposited/withdrew by manager. IbBonus *int64 `protobuf:"varint,5,req,name=ibBonus" json:"ibBonus,omitempty"` // Total amount of introducing broker's bonus after the operation. IbDelta *int64 `protobuf:"varint,6,req,name=ibDelta" json:"ibDelta,omitempty"` // Amount of bonus deposited/withdrew by introducing broker. ChangeBonusTimestamp *int64 `protobuf:"varint,7,req,name=changeBonusTimestamp" json:"changeBonusTimestamp,omitempty"` // The Unix time in milliseconds when the bonus operation was executed. ExternalNote *string `protobuf:"bytes,8,opt,name=externalNote" json:"externalNote,omitempty"` // Note added to operation. Visible to the trader. IntroducingBrokerId *int64 `protobuf:"varint,9,opt,name=introducingBrokerId" json:"introducingBrokerId,omitempty"` // ID of introducing broker who deposited/withdrew bonus. MoneyDigits *uint32 `protobuf:"varint,10,opt,name=moneyDigits" json:"moneyDigits,omitempty"` // Specifies the exponent of the monetary values. E.g. moneyDigits = 8 must be interpret as business value multiplied by 10^8, then real balance would be 10053099944 / 10^8 = 100.53099944. Affects managerBonus, managerDelta, ibBonus, ibDelta. // contains filtered or unexported fields }
* Bonus deposit/withdrawal entity.
func (*ProtoOABonusDepositWithdraw) Descriptor
deprecated
func (*ProtoOABonusDepositWithdraw) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOABonusDepositWithdraw.ProtoReflect.Descriptor instead.
func (*ProtoOABonusDepositWithdraw) GetBonusHistoryId ¶
func (x *ProtoOABonusDepositWithdraw) GetBonusHistoryId() int64
func (*ProtoOABonusDepositWithdraw) GetChangeBonusTimestamp ¶
func (x *ProtoOABonusDepositWithdraw) GetChangeBonusTimestamp() int64
func (*ProtoOABonusDepositWithdraw) GetExternalNote ¶
func (x *ProtoOABonusDepositWithdraw) GetExternalNote() string
func (*ProtoOABonusDepositWithdraw) GetIbBonus ¶
func (x *ProtoOABonusDepositWithdraw) GetIbBonus() int64
func (*ProtoOABonusDepositWithdraw) GetIbDelta ¶
func (x *ProtoOABonusDepositWithdraw) GetIbDelta() int64
func (*ProtoOABonusDepositWithdraw) GetIntroducingBrokerId ¶
func (x *ProtoOABonusDepositWithdraw) GetIntroducingBrokerId() int64
func (*ProtoOABonusDepositWithdraw) GetManagerBonus ¶
func (x *ProtoOABonusDepositWithdraw) GetManagerBonus() int64
func (*ProtoOABonusDepositWithdraw) GetManagerDelta ¶
func (x *ProtoOABonusDepositWithdraw) GetManagerDelta() int64
func (*ProtoOABonusDepositWithdraw) GetMoneyDigits ¶
func (x *ProtoOABonusDepositWithdraw) GetMoneyDigits() uint32
func (*ProtoOABonusDepositWithdraw) GetOperationType ¶
func (x *ProtoOABonusDepositWithdraw) GetOperationType() ProtoOAChangeBonusType
func (*ProtoOABonusDepositWithdraw) ProtoMessage ¶
func (*ProtoOABonusDepositWithdraw) ProtoMessage()
func (*ProtoOABonusDepositWithdraw) ProtoReflect ¶
func (x *ProtoOABonusDepositWithdraw) ProtoReflect() protoreflect.Message
func (*ProtoOABonusDepositWithdraw) Reset ¶
func (x *ProtoOABonusDepositWithdraw) Reset()
func (*ProtoOABonusDepositWithdraw) String ¶
func (x *ProtoOABonusDepositWithdraw) String() string
type ProtoOACancelOrderReq ¶
type ProtoOACancelOrderReq struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2108" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. OrderId *int64 `protobuf:"varint,3,req,name=orderId" json:"orderId,omitempty"` // The unique ID of the order. // contains filtered or unexported fields }
* Request for cancelling existing pending order. Allowed only if the accessToken has "trade" permissions for the trading account.
func (*ProtoOACancelOrderReq) Descriptor
deprecated
func (*ProtoOACancelOrderReq) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOACancelOrderReq.ProtoReflect.Descriptor instead.
func (*ProtoOACancelOrderReq) GetCtidTraderAccountId ¶
func (x *ProtoOACancelOrderReq) GetCtidTraderAccountId() int64
func (*ProtoOACancelOrderReq) GetOrderId ¶
func (x *ProtoOACancelOrderReq) GetOrderId() int64
func (*ProtoOACancelOrderReq) GetPayloadType ¶
func (x *ProtoOACancelOrderReq) GetPayloadType() ProtoOAPayloadType
func (*ProtoOACancelOrderReq) ProtoMessage ¶
func (*ProtoOACancelOrderReq) ProtoMessage()
func (*ProtoOACancelOrderReq) ProtoReflect ¶
func (x *ProtoOACancelOrderReq) ProtoReflect() protoreflect.Message
func (*ProtoOACancelOrderReq) Reset ¶
func (x *ProtoOACancelOrderReq) Reset()
func (*ProtoOACancelOrderReq) String ¶
func (x *ProtoOACancelOrderReq) String() string
type ProtoOACashFlowHistoryListReq ¶
type ProtoOACashFlowHistoryListReq struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2143" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. FromTimestamp *int64 `protobuf:"varint,3,req,name=fromTimestamp" json:"fromTimestamp,omitempty"` // The Unix time from which the search starts >=0 (1st Jan 1970). Validation: toTimestamp - fromTimestamp <= 604800000 (1 week). ToTimestamp *int64 `protobuf:"varint,4,req,name=toTimestamp" json:"toTimestamp,omitempty"` // The Unix time where to stop searching <= 2147483646000 (19th Jan 2038). // contains filtered or unexported fields }
* Request for getting Trader's historical data of deposits and withdrawals.
func (*ProtoOACashFlowHistoryListReq) Descriptor
deprecated
func (*ProtoOACashFlowHistoryListReq) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOACashFlowHistoryListReq.ProtoReflect.Descriptor instead.
func (*ProtoOACashFlowHistoryListReq) GetCtidTraderAccountId ¶
func (x *ProtoOACashFlowHistoryListReq) GetCtidTraderAccountId() int64
func (*ProtoOACashFlowHistoryListReq) GetFromTimestamp ¶
func (x *ProtoOACashFlowHistoryListReq) GetFromTimestamp() int64
func (*ProtoOACashFlowHistoryListReq) GetPayloadType ¶
func (x *ProtoOACashFlowHistoryListReq) GetPayloadType() ProtoOAPayloadType
func (*ProtoOACashFlowHistoryListReq) GetToTimestamp ¶
func (x *ProtoOACashFlowHistoryListReq) GetToTimestamp() int64
func (*ProtoOACashFlowHistoryListReq) ProtoMessage ¶
func (*ProtoOACashFlowHistoryListReq) ProtoMessage()
func (*ProtoOACashFlowHistoryListReq) ProtoReflect ¶
func (x *ProtoOACashFlowHistoryListReq) ProtoReflect() protoreflect.Message
func (*ProtoOACashFlowHistoryListReq) Reset ¶
func (x *ProtoOACashFlowHistoryListReq) Reset()
func (*ProtoOACashFlowHistoryListReq) String ¶
func (x *ProtoOACashFlowHistoryListReq) String() string
type ProtoOACashFlowHistoryListRes ¶
type ProtoOACashFlowHistoryListRes struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2144" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. DepositWithdraw []*ProtoOADepositWithdraw `protobuf:"bytes,3,rep,name=depositWithdraw" json:"depositWithdraw,omitempty"` // The list of deposit and withdrawal operations. // contains filtered or unexported fields }
* Response to the ProtoOACashFlowHistoryListReq request.
func (*ProtoOACashFlowHistoryListRes) Descriptor
deprecated
func (*ProtoOACashFlowHistoryListRes) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOACashFlowHistoryListRes.ProtoReflect.Descriptor instead.
func (*ProtoOACashFlowHistoryListRes) GetCtidTraderAccountId ¶
func (x *ProtoOACashFlowHistoryListRes) GetCtidTraderAccountId() int64
func (*ProtoOACashFlowHistoryListRes) GetDepositWithdraw ¶
func (x *ProtoOACashFlowHistoryListRes) GetDepositWithdraw() []*ProtoOADepositWithdraw
func (*ProtoOACashFlowHistoryListRes) GetPayloadType ¶
func (x *ProtoOACashFlowHistoryListRes) GetPayloadType() ProtoOAPayloadType
func (*ProtoOACashFlowHistoryListRes) ProtoMessage ¶
func (*ProtoOACashFlowHistoryListRes) ProtoMessage()
func (*ProtoOACashFlowHistoryListRes) ProtoReflect ¶
func (x *ProtoOACashFlowHistoryListRes) ProtoReflect() protoreflect.Message
func (*ProtoOACashFlowHistoryListRes) Reset ¶
func (x *ProtoOACashFlowHistoryListRes) Reset()
func (*ProtoOACashFlowHistoryListRes) String ¶
func (x *ProtoOACashFlowHistoryListRes) String() string
type ProtoOAChangeBalanceType ¶
type ProtoOAChangeBalanceType int32
* Balance operation entity. Covers all cash movement operations related to account, trading, IB operations, mirroring, etc.
const ( ProtoOAChangeBalanceType_BALANCE_DEPOSIT ProtoOAChangeBalanceType = 0 // Cash deposit. ProtoOAChangeBalanceType_BALANCE_WITHDRAW ProtoOAChangeBalanceType = 1 // Cash withdrawal. ProtoOAChangeBalanceType_BALANCE_DEPOSIT_STRATEGY_COMMISSION_INNER ProtoOAChangeBalanceType = 3 // Received mirroring commission. ProtoOAChangeBalanceType_BALANCE_WITHDRAW_STRATEGY_COMMISSION_INNER ProtoOAChangeBalanceType = 4 // Paid mirroring commission. ProtoOAChangeBalanceType_BALANCE_DEPOSIT_IB_COMMISSIONS ProtoOAChangeBalanceType = 5 // For IB account. Commissions paid by trader. ProtoOAChangeBalanceType_BALANCE_WITHDRAW_IB_SHARED_PERCENTAGE ProtoOAChangeBalanceType = 6 // For IB account. Withdrawal of commissions shared with broker. ProtoOAChangeBalanceType_BALANCE_DEPOSIT_IB_SHARED_PERCENTAGE_FROM_SUB_IB ProtoOAChangeBalanceType = 7 // For IB account. Commissions paid by sub-ibs. ProtoOAChangeBalanceType_BALANCE_DEPOSIT_IB_SHARED_PERCENTAGE_FROM_BROKER ProtoOAChangeBalanceType = 8 // For IB account. Commissions paid by broker. ProtoOAChangeBalanceType_BALANCE_DEPOSIT_REBATE ProtoOAChangeBalanceType = 9 // Deposit rebate for trading volume for period. ProtoOAChangeBalanceType_BALANCE_WITHDRAW_REBATE ProtoOAChangeBalanceType = 10 // Withdrawal of rebate. ProtoOAChangeBalanceType_BALANCE_DEPOSIT_STRATEGY_COMMISSION_OUTER ProtoOAChangeBalanceType = 11 // Mirroring commission. ProtoOAChangeBalanceType_BALANCE_WITHDRAW_STRATEGY_COMMISSION_OUTER ProtoOAChangeBalanceType = 12 // Mirroring commission. ProtoOAChangeBalanceType_BALANCE_WITHDRAW_BONUS_COMPENSATION ProtoOAChangeBalanceType = 13 // For IB account. Share commission with the Broker. ProtoOAChangeBalanceType_BALANCE_WITHDRAW_IB_SHARED_PERCENTAGE_TO_BROKER ProtoOAChangeBalanceType = 14 // IB commissions. ProtoOAChangeBalanceType_BALANCE_DEPOSIT_DIVIDENDS ProtoOAChangeBalanceType = 15 // Deposit dividends payments. ProtoOAChangeBalanceType_BALANCE_WITHDRAW_DIVIDENDS ProtoOAChangeBalanceType = 16 // Negative dividend charge for short position. ProtoOAChangeBalanceType_BALANCE_WITHDRAW_GSL_CHARGE ProtoOAChangeBalanceType = 17 // Charge for guaranteedStopLoss. ProtoOAChangeBalanceType_BALANCE_WITHDRAW_ROLLOVER ProtoOAChangeBalanceType = 18 // Charge of rollover fee for Shariah compliant accounts. ProtoOAChangeBalanceType_BALANCE_DEPOSIT_NONWITHDRAWABLE_BONUS ProtoOAChangeBalanceType = 19 // Broker's operation to deposit bonus. ProtoOAChangeBalanceType_BALANCE_WITHDRAW_NONWITHDRAWABLE_BONUS ProtoOAChangeBalanceType = 20 // Broker's operation to withdrawal bonus. ProtoOAChangeBalanceType_BALANCE_DEPOSIT_SWAP ProtoOAChangeBalanceType = 21 // Deposits of negative SWAP. ProtoOAChangeBalanceType_BALANCE_WITHDRAW_SWAP ProtoOAChangeBalanceType = 22 // SWAP charges. ProtoOAChangeBalanceType_BALANCE_DEPOSIT_MANAGEMENT_FEE ProtoOAChangeBalanceType = 27 // Mirroring commission. ProtoOAChangeBalanceType_BALANCE_WITHDRAW_MANAGEMENT_FEE ProtoOAChangeBalanceType = 28 // Mirroring commission. Deprecated since 7.1 in favor of BALANCE_WITHDRAW_COPY_FEE (34). ProtoOAChangeBalanceType_BALANCE_DEPOSIT_PERFORMANCE_FEE ProtoOAChangeBalanceType = 29 // Mirroring commission. ProtoOAChangeBalanceType_BALANCE_WITHDRAW_FOR_SUBACCOUNT ProtoOAChangeBalanceType = 30 // Withdraw for subaccount creation (cTrader Copy). ProtoOAChangeBalanceType_BALANCE_DEPOSIT_TO_SUBACCOUNT ProtoOAChangeBalanceType = 31 // Deposit to subaccount on creation (cTrader Copy). ProtoOAChangeBalanceType_BALANCE_WITHDRAW_FROM_SUBACCOUNT ProtoOAChangeBalanceType = 32 // Manual user's withdraw from subaccount (cTrader Copy), to parent account. ProtoOAChangeBalanceType_BALANCE_DEPOSIT_FROM_SUBACCOUNT ProtoOAChangeBalanceType = 33 // Manual user's deposit to subaccount (cTrader Copy), from parent account. ProtoOAChangeBalanceType_BALANCE_WITHDRAW_COPY_FEE ProtoOAChangeBalanceType = 34 // Withdrawal fees to Strategy Provider. ProtoOAChangeBalanceType_BALANCE_WITHDRAW_INACTIVITY_FEE ProtoOAChangeBalanceType = 35 // Withdraw of inactivity fee from the balance. ProtoOAChangeBalanceType_BALANCE_DEPOSIT_TRANSFER ProtoOAChangeBalanceType = 36 // Deposit within the same server (from another account). ProtoOAChangeBalanceType_BALANCE_WITHDRAW_TRANSFER ProtoOAChangeBalanceType = 37 // Withdraw within the same server (to another account). ProtoOAChangeBalanceType_BALANCE_DEPOSIT_CONVERTED_BONUS ProtoOAChangeBalanceType = 38 // Bonus being converted from virtual bonus to real deposit. ProtoOAChangeBalanceType_BALANCE_DEPOSIT_NEGATIVE_BALANCE_PROTECTION ProtoOAChangeBalanceType = 39 // Applies if negative balance protection is configured by broker, should make balance = 0. )
func (ProtoOAChangeBalanceType) Descriptor ¶
func (ProtoOAChangeBalanceType) Descriptor() protoreflect.EnumDescriptor
func (ProtoOAChangeBalanceType) Enum ¶
func (x ProtoOAChangeBalanceType) Enum() *ProtoOAChangeBalanceType
func (ProtoOAChangeBalanceType) EnumDescriptor
deprecated
func (ProtoOAChangeBalanceType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProtoOAChangeBalanceType.Descriptor instead.
func (ProtoOAChangeBalanceType) Number ¶
func (x ProtoOAChangeBalanceType) Number() protoreflect.EnumNumber
func (ProtoOAChangeBalanceType) String ¶
func (x ProtoOAChangeBalanceType) String() string
func (ProtoOAChangeBalanceType) Type ¶
func (ProtoOAChangeBalanceType) Type() protoreflect.EnumType
func (*ProtoOAChangeBalanceType) UnmarshalJSON
deprecated
func (x *ProtoOAChangeBalanceType) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type ProtoOAChangeBonusType ¶
type ProtoOAChangeBonusType int32
* Bonus operation type ENUM.
const ( ProtoOAChangeBonusType_BONUS_DEPOSIT ProtoOAChangeBonusType = 0 ProtoOAChangeBonusType_BONUS_WITHDRAW ProtoOAChangeBonusType = 1 )
func (ProtoOAChangeBonusType) Descriptor ¶
func (ProtoOAChangeBonusType) Descriptor() protoreflect.EnumDescriptor
func (ProtoOAChangeBonusType) Enum ¶
func (x ProtoOAChangeBonusType) Enum() *ProtoOAChangeBonusType
func (ProtoOAChangeBonusType) EnumDescriptor
deprecated
func (ProtoOAChangeBonusType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProtoOAChangeBonusType.Descriptor instead.
func (ProtoOAChangeBonusType) Number ¶
func (x ProtoOAChangeBonusType) Number() protoreflect.EnumNumber
func (ProtoOAChangeBonusType) String ¶
func (x ProtoOAChangeBonusType) String() string
func (ProtoOAChangeBonusType) Type ¶
func (ProtoOAChangeBonusType) Type() protoreflect.EnumType
func (*ProtoOAChangeBonusType) UnmarshalJSON
deprecated
func (x *ProtoOAChangeBonusType) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type ProtoOAClientDisconnectEvent ¶
type ProtoOAClientDisconnectEvent struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2148" json:"payloadType,omitempty"` Reason *string `protobuf:"bytes,2,opt,name=reason" json:"reason,omitempty"` // The disconnection reason explained. For example: The application access was blocked by cTrader Administrator. // contains filtered or unexported fields }
* Event that is sent when the connection with the client application is cancelled by the server. All the sessions for the traders' accounts will be terminated.
func (*ProtoOAClientDisconnectEvent) Descriptor
deprecated
func (*ProtoOAClientDisconnectEvent) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAClientDisconnectEvent.ProtoReflect.Descriptor instead.
func (*ProtoOAClientDisconnectEvent) GetPayloadType ¶
func (x *ProtoOAClientDisconnectEvent) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAClientDisconnectEvent) GetReason ¶
func (x *ProtoOAClientDisconnectEvent) GetReason() string
func (*ProtoOAClientDisconnectEvent) ProtoMessage ¶
func (*ProtoOAClientDisconnectEvent) ProtoMessage()
func (*ProtoOAClientDisconnectEvent) ProtoReflect ¶
func (x *ProtoOAClientDisconnectEvent) ProtoReflect() protoreflect.Message
func (*ProtoOAClientDisconnectEvent) Reset ¶
func (x *ProtoOAClientDisconnectEvent) Reset()
func (*ProtoOAClientDisconnectEvent) String ¶
func (x *ProtoOAClientDisconnectEvent) String() string
type ProtoOAClientPermissionScope ¶
type ProtoOAClientPermissionScope int32
* Open API application permission in regards to token ENUM.
const ( ProtoOAClientPermissionScope_SCOPE_VIEW ProtoOAClientPermissionScope = 0 // Allows to use only view commends. Trade is prohibited. ProtoOAClientPermissionScope_SCOPE_TRADE ProtoOAClientPermissionScope = 1 // Allows to use all commands. )
func (ProtoOAClientPermissionScope) Descriptor ¶
func (ProtoOAClientPermissionScope) Descriptor() protoreflect.EnumDescriptor
func (ProtoOAClientPermissionScope) Enum ¶
func (x ProtoOAClientPermissionScope) Enum() *ProtoOAClientPermissionScope
func (ProtoOAClientPermissionScope) EnumDescriptor
deprecated
func (ProtoOAClientPermissionScope) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProtoOAClientPermissionScope.Descriptor instead.
func (ProtoOAClientPermissionScope) Number ¶
func (x ProtoOAClientPermissionScope) Number() protoreflect.EnumNumber
func (ProtoOAClientPermissionScope) String ¶
func (x ProtoOAClientPermissionScope) String() string
func (ProtoOAClientPermissionScope) Type ¶
func (ProtoOAClientPermissionScope) Type() protoreflect.EnumType
func (*ProtoOAClientPermissionScope) UnmarshalJSON
deprecated
func (x *ProtoOAClientPermissionScope) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type ProtoOAClosePositionDetail ¶
type ProtoOAClosePositionDetail struct { EntryPrice *float64 `protobuf:"fixed64,1,req,name=entryPrice" json:"entryPrice,omitempty"` // Position price at the moment of filling the closing order. GrossProfit *int64 `protobuf:"varint,2,req,name=grossProfit" json:"grossProfit,omitempty"` // Amount of realized gross profit after closing deal execution. Swap *int64 `protobuf:"varint,3,req,name=swap" json:"swap,omitempty"` // Amount of realized swap related to closed volume. Commission *int64 `protobuf:"varint,4,req,name=commission" json:"commission,omitempty"` // Amount of realized commission related to closed volume. Balance *int64 `protobuf:"varint,5,req,name=balance" json:"balance,omitempty"` // Account balance after closing deal execution. QuoteToDepositConversionRate *float64 `protobuf:"fixed64,6,opt,name=quoteToDepositConversionRate" json:"quoteToDepositConversionRate,omitempty"` // Quote/Deposit currency conversion rate on the time of closing deal execution. ClosedVolume *int64 `protobuf:"varint,7,opt,name=closedVolume" json:"closedVolume,omitempty"` // Closed volume in cents. BalanceVersion *int64 `protobuf:"varint,8,opt,name=balanceVersion" json:"balanceVersion,omitempty"` // Balance version of the account related to closing deal operation. MoneyDigits *uint32 `protobuf:"varint,9,opt,name=moneyDigits" json:"moneyDigits,omitempty"` // Specifies the exponent of the monetary values. E.g. moneyDigits = 8 must be interpret as business value multiplied by 10^8, then real balance would be 10053099944 / 10^8 = 100.53099944. Affects grossProfit, swap, commission, balance, pnlConversionFee. PnlConversionFee *int64 `protobuf:"varint,10,opt,name=pnlConversionFee" json:"pnlConversionFee,omitempty"` // Fee for conversion applied to the Deal in account's ccy when trader symbol's quote asset id <> ProtoOATrader.depositAssetId. // contains filtered or unexported fields }
* Trading details for closing deal.
func (*ProtoOAClosePositionDetail) Descriptor
deprecated
func (*ProtoOAClosePositionDetail) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAClosePositionDetail.ProtoReflect.Descriptor instead.
func (*ProtoOAClosePositionDetail) GetBalance ¶
func (x *ProtoOAClosePositionDetail) GetBalance() int64
func (*ProtoOAClosePositionDetail) GetBalanceVersion ¶
func (x *ProtoOAClosePositionDetail) GetBalanceVersion() int64
func (*ProtoOAClosePositionDetail) GetClosedVolume ¶
func (x *ProtoOAClosePositionDetail) GetClosedVolume() int64
func (*ProtoOAClosePositionDetail) GetCommission ¶
func (x *ProtoOAClosePositionDetail) GetCommission() int64
func (*ProtoOAClosePositionDetail) GetEntryPrice ¶
func (x *ProtoOAClosePositionDetail) GetEntryPrice() float64
func (*ProtoOAClosePositionDetail) GetGrossProfit ¶
func (x *ProtoOAClosePositionDetail) GetGrossProfit() int64
func (*ProtoOAClosePositionDetail) GetMoneyDigits ¶
func (x *ProtoOAClosePositionDetail) GetMoneyDigits() uint32
func (*ProtoOAClosePositionDetail) GetPnlConversionFee ¶
func (x *ProtoOAClosePositionDetail) GetPnlConversionFee() int64
func (*ProtoOAClosePositionDetail) GetQuoteToDepositConversionRate ¶
func (x *ProtoOAClosePositionDetail) GetQuoteToDepositConversionRate() float64
func (*ProtoOAClosePositionDetail) GetSwap ¶
func (x *ProtoOAClosePositionDetail) GetSwap() int64
func (*ProtoOAClosePositionDetail) ProtoMessage ¶
func (*ProtoOAClosePositionDetail) ProtoMessage()
func (*ProtoOAClosePositionDetail) ProtoReflect ¶
func (x *ProtoOAClosePositionDetail) ProtoReflect() protoreflect.Message
func (*ProtoOAClosePositionDetail) Reset ¶
func (x *ProtoOAClosePositionDetail) Reset()
func (*ProtoOAClosePositionDetail) String ¶
func (x *ProtoOAClosePositionDetail) String() string
type ProtoOAClosePositionReq ¶
type ProtoOAClosePositionReq struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2111" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. PositionId *int64 `protobuf:"varint,3,req,name=positionId" json:"positionId,omitempty"` // The unique ID of the position to close. Volume *int64 `protobuf:"varint,4,req,name=volume" json:"volume,omitempty"` // Volume to close, represented in 0.01 of a unit (e.g. cents). // contains filtered or unexported fields }
* Request for closing or partially closing of an existing position. Allowed only if the accessToken has "trade" permissions for the trading account.
func (*ProtoOAClosePositionReq) Descriptor
deprecated
func (*ProtoOAClosePositionReq) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAClosePositionReq.ProtoReflect.Descriptor instead.
func (*ProtoOAClosePositionReq) GetCtidTraderAccountId ¶
func (x *ProtoOAClosePositionReq) GetCtidTraderAccountId() int64
func (*ProtoOAClosePositionReq) GetPayloadType ¶
func (x *ProtoOAClosePositionReq) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAClosePositionReq) GetPositionId ¶
func (x *ProtoOAClosePositionReq) GetPositionId() int64
func (*ProtoOAClosePositionReq) GetVolume ¶
func (x *ProtoOAClosePositionReq) GetVolume() int64
func (*ProtoOAClosePositionReq) ProtoMessage ¶
func (*ProtoOAClosePositionReq) ProtoMessage()
func (*ProtoOAClosePositionReq) ProtoReflect ¶
func (x *ProtoOAClosePositionReq) ProtoReflect() protoreflect.Message
func (*ProtoOAClosePositionReq) Reset ¶
func (x *ProtoOAClosePositionReq) Reset()
func (*ProtoOAClosePositionReq) String ¶
func (x *ProtoOAClosePositionReq) String() string
type ProtoOACommissionType ¶
type ProtoOACommissionType int32
* Enum for specifying type of trading commission.
const ( ProtoOACommissionType_USD_PER_MILLION_USD ProtoOACommissionType = 1 // USD per million USD volume - usually used for FX. Example: 50 USD for 1 mil USD of trading volume. ProtoOACommissionType_USD_PER_LOT ProtoOACommissionType = 2 // USD per 1 lot - usually used for CFDs and futures for commodities, and indices. Example: 15 USD for 1 contract. ProtoOACommissionType_PERCENTAGE_OF_VALUE ProtoOACommissionType = 3 // Percentage of trading volume - usually used for Equities. Example: 0.005% of notional trading volume. Multiplied by 100,000. ProtoOACommissionType_QUOTE_CCY_PER_LOT ProtoOACommissionType = 4 // Quote ccy of Symbol per 1 lot - will be used for CFDs and futures for commodities, and indices. Example: 15 EUR for 1 contract of DAX. )
func (ProtoOACommissionType) Descriptor ¶
func (ProtoOACommissionType) Descriptor() protoreflect.EnumDescriptor
func (ProtoOACommissionType) Enum ¶
func (x ProtoOACommissionType) Enum() *ProtoOACommissionType
func (ProtoOACommissionType) EnumDescriptor
deprecated
func (ProtoOACommissionType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProtoOACommissionType.Descriptor instead.
func (ProtoOACommissionType) Number ¶
func (x ProtoOACommissionType) Number() protoreflect.EnumNumber
func (ProtoOACommissionType) String ¶
func (x ProtoOACommissionType) String() string
func (ProtoOACommissionType) Type ¶
func (ProtoOACommissionType) Type() protoreflect.EnumType
func (*ProtoOACommissionType) UnmarshalJSON
deprecated
func (x *ProtoOACommissionType) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type ProtoOACtidProfile ¶
type ProtoOACtidProfile struct { UserId *int64 `protobuf:"varint,1,req,name=userId" json:"userId,omitempty"` // contains filtered or unexported fields }
* Trader profile entity. Empty due to GDPR.
func (*ProtoOACtidProfile) Descriptor
deprecated
func (*ProtoOACtidProfile) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOACtidProfile.ProtoReflect.Descriptor instead.
func (*ProtoOACtidProfile) GetUserId ¶
func (x *ProtoOACtidProfile) GetUserId() int64
func (*ProtoOACtidProfile) ProtoMessage ¶
func (*ProtoOACtidProfile) ProtoMessage()
func (*ProtoOACtidProfile) ProtoReflect ¶
func (x *ProtoOACtidProfile) ProtoReflect() protoreflect.Message
func (*ProtoOACtidProfile) Reset ¶
func (x *ProtoOACtidProfile) Reset()
func (*ProtoOACtidProfile) String ¶
func (x *ProtoOACtidProfile) String() string
type ProtoOACtidTraderAccount ¶
type ProtoOACtidTraderAccount struct { CtidTraderAccountId *uint64 `protobuf:"varint,1,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts.cTrader platform. Different brokers might have different ids IsLive *bool `protobuf:"varint,2,opt,name=isLive" json:"isLive,omitempty"` // If TRUE then the account is belong to Live environment and live host must be used to authorize it TraderLogin *int64 `protobuf:"varint,3,opt,name=traderLogin" json:"traderLogin,omitempty"` // TraderLogin for a specific account. Value is displayed on Client App UI LastClosingDealTimestamp *int64 `protobuf:"varint,4,opt,name=lastClosingDealTimestamp" json:"lastClosingDealTimestamp,omitempty"` // The Unix time in milliseconds of the last ProtoOAClosePositionDetail happened to this account. LastBalanceUpdateTimestamp *int64 `protobuf:"varint,5,opt,name=lastBalanceUpdateTimestamp" json:"lastBalanceUpdateTimestamp,omitempty"` // The Unix time in milliseconds of the last ProtoOADepositWithdraw happened to this account. BrokerTitleShort *string `protobuf:"bytes,6,opt,name=brokerTitleShort" json:"brokerTitleShort,omitempty"` // The name of the broker to which the account belongs to. Shortened to be displayed in the UI. // contains filtered or unexported fields }
* Trader account entity.
func (*ProtoOACtidTraderAccount) Descriptor
deprecated
func (*ProtoOACtidTraderAccount) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOACtidTraderAccount.ProtoReflect.Descriptor instead.
func (*ProtoOACtidTraderAccount) GetBrokerTitleShort ¶
func (x *ProtoOACtidTraderAccount) GetBrokerTitleShort() string
func (*ProtoOACtidTraderAccount) GetCtidTraderAccountId ¶
func (x *ProtoOACtidTraderAccount) GetCtidTraderAccountId() uint64
func (*ProtoOACtidTraderAccount) GetIsLive ¶
func (x *ProtoOACtidTraderAccount) GetIsLive() bool
func (*ProtoOACtidTraderAccount) GetLastBalanceUpdateTimestamp ¶
func (x *ProtoOACtidTraderAccount) GetLastBalanceUpdateTimestamp() int64
func (*ProtoOACtidTraderAccount) GetLastClosingDealTimestamp ¶
func (x *ProtoOACtidTraderAccount) GetLastClosingDealTimestamp() int64
func (*ProtoOACtidTraderAccount) GetTraderLogin ¶
func (x *ProtoOACtidTraderAccount) GetTraderLogin() int64
func (*ProtoOACtidTraderAccount) ProtoMessage ¶
func (*ProtoOACtidTraderAccount) ProtoMessage()
func (*ProtoOACtidTraderAccount) ProtoReflect ¶
func (x *ProtoOACtidTraderAccount) ProtoReflect() protoreflect.Message
func (*ProtoOACtidTraderAccount) Reset ¶
func (x *ProtoOACtidTraderAccount) Reset()
func (*ProtoOACtidTraderAccount) String ¶
func (x *ProtoOACtidTraderAccount) String() string
type ProtoOADayOfWeek ¶
type ProtoOADayOfWeek int32
const ( ProtoOADayOfWeek_NONE ProtoOADayOfWeek = 0 ProtoOADayOfWeek_MONDAY ProtoOADayOfWeek = 1 ProtoOADayOfWeek_TUESDAY ProtoOADayOfWeek = 2 ProtoOADayOfWeek_WEDNESDAY ProtoOADayOfWeek = 3 ProtoOADayOfWeek_THURSDAY ProtoOADayOfWeek = 4 ProtoOADayOfWeek_FRIDAY ProtoOADayOfWeek = 5 ProtoOADayOfWeek_SATURDAY ProtoOADayOfWeek = 6 ProtoOADayOfWeek_SUNDAY ProtoOADayOfWeek = 7 )
func (ProtoOADayOfWeek) Descriptor ¶
func (ProtoOADayOfWeek) Descriptor() protoreflect.EnumDescriptor
func (ProtoOADayOfWeek) Enum ¶
func (x ProtoOADayOfWeek) Enum() *ProtoOADayOfWeek
func (ProtoOADayOfWeek) EnumDescriptor
deprecated
func (ProtoOADayOfWeek) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProtoOADayOfWeek.Descriptor instead.
func (ProtoOADayOfWeek) Number ¶
func (x ProtoOADayOfWeek) Number() protoreflect.EnumNumber
func (ProtoOADayOfWeek) String ¶
func (x ProtoOADayOfWeek) String() string
func (ProtoOADayOfWeek) Type ¶
func (ProtoOADayOfWeek) Type() protoreflect.EnumType
func (*ProtoOADayOfWeek) UnmarshalJSON
deprecated
func (x *ProtoOADayOfWeek) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type ProtoOADeal ¶
type ProtoOADeal struct { DealId *int64 `protobuf:"varint,1,req,name=dealId" json:"dealId,omitempty"` // The unique ID of the execution deal. OrderId *int64 `protobuf:"varint,2,req,name=orderId" json:"orderId,omitempty"` // Source order of the deal. PositionId *int64 `protobuf:"varint,3,req,name=positionId" json:"positionId,omitempty"` // Source position of the deal. Volume *int64 `protobuf:"varint,4,req,name=volume" json:"volume,omitempty"` // Volume sent for execution, in cents. FilledVolume *int64 `protobuf:"varint,5,req,name=filledVolume" json:"filledVolume,omitempty"` // Filled volume, in cents. SymbolId *int64 `protobuf:"varint,6,req,name=symbolId" json:"symbolId,omitempty"` // The unique identifier of the symbol in specific server environment within cTrader platform. Different servers have different IDs. CreateTimestamp *int64 `protobuf:"varint,7,req,name=createTimestamp" json:"createTimestamp,omitempty"` // The Unix time in milliseconds when the deal was sent for execution. ExecutionTimestamp *int64 `protobuf:"varint,8,req,name=executionTimestamp" json:"executionTimestamp,omitempty"` // The Unix time in milliseconds when the deal was executed. UtcLastUpdateTimestamp *int64 `protobuf:"varint,9,opt,name=utcLastUpdateTimestamp" json:"utcLastUpdateTimestamp,omitempty"` // The Unix time in milliseconds when the deal was created, executed or rejected. ExecutionPrice *float64 `protobuf:"fixed64,10,opt,name=executionPrice" json:"executionPrice,omitempty"` // Execution price. TradeSide *ProtoOATradeSide `protobuf:"varint,11,req,name=tradeSide,enum=ProtoOATradeSide" json:"tradeSide,omitempty"` // Buy/Sell. DealStatus *ProtoOADealStatus `protobuf:"varint,12,req,name=dealStatus,enum=ProtoOADealStatus" json:"dealStatus,omitempty"` // Status of the deal. MarginRate *float64 `protobuf:"fixed64,13,opt,name=marginRate" json:"marginRate,omitempty"` // Rate for used margin computation. Represented as Base/Deposit. Commission *int64 `protobuf:"varint,14,opt,name=commission" json:"commission,omitempty"` // Amount of trading commission associated with the deal. BaseToUsdConversionRate *float64 `protobuf:"fixed64,15,opt,name=baseToUsdConversionRate" json:"baseToUsdConversionRate,omitempty"` // Base to USD conversion rate on the time of deal execution. ClosePositionDetail *ProtoOAClosePositionDetail `protobuf:"bytes,16,opt,name=closePositionDetail" json:"closePositionDetail,omitempty"` // Closing position detail. Valid only for closing deal. MoneyDigits *uint32 `protobuf:"varint,17,opt,name=moneyDigits" json:"moneyDigits,omitempty"` // Specifies the exponent of the monetary values. E.g. moneyDigits = 8 must be interpret as business value multiplied by 10^8, then real balance would be 10053099944 / 10^8 = 100.53099944. Affects commission. // contains filtered or unexported fields }
* Execution entity.
func (*ProtoOADeal) Descriptor
deprecated
func (*ProtoOADeal) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOADeal.ProtoReflect.Descriptor instead.
func (*ProtoOADeal) GetBaseToUsdConversionRate ¶
func (x *ProtoOADeal) GetBaseToUsdConversionRate() float64
func (*ProtoOADeal) GetClosePositionDetail ¶
func (x *ProtoOADeal) GetClosePositionDetail() *ProtoOAClosePositionDetail
func (*ProtoOADeal) GetCommission ¶
func (x *ProtoOADeal) GetCommission() int64
func (*ProtoOADeal) GetCreateTimestamp ¶
func (x *ProtoOADeal) GetCreateTimestamp() int64
func (*ProtoOADeal) GetDealId ¶
func (x *ProtoOADeal) GetDealId() int64
func (*ProtoOADeal) GetDealStatus ¶
func (x *ProtoOADeal) GetDealStatus() ProtoOADealStatus
func (*ProtoOADeal) GetExecutionPrice ¶
func (x *ProtoOADeal) GetExecutionPrice() float64
func (*ProtoOADeal) GetExecutionTimestamp ¶
func (x *ProtoOADeal) GetExecutionTimestamp() int64
func (*ProtoOADeal) GetFilledVolume ¶
func (x *ProtoOADeal) GetFilledVolume() int64
func (*ProtoOADeal) GetMarginRate ¶
func (x *ProtoOADeal) GetMarginRate() float64
func (*ProtoOADeal) GetMoneyDigits ¶
func (x *ProtoOADeal) GetMoneyDigits() uint32
func (*ProtoOADeal) GetOrderId ¶
func (x *ProtoOADeal) GetOrderId() int64
func (*ProtoOADeal) GetPositionId ¶
func (x *ProtoOADeal) GetPositionId() int64
func (*ProtoOADeal) GetSymbolId ¶
func (x *ProtoOADeal) GetSymbolId() int64
func (*ProtoOADeal) GetTradeSide ¶
func (x *ProtoOADeal) GetTradeSide() ProtoOATradeSide
func (*ProtoOADeal) GetUtcLastUpdateTimestamp ¶
func (x *ProtoOADeal) GetUtcLastUpdateTimestamp() int64
func (*ProtoOADeal) GetVolume ¶
func (x *ProtoOADeal) GetVolume() int64
func (*ProtoOADeal) ProtoMessage ¶
func (*ProtoOADeal) ProtoMessage()
func (*ProtoOADeal) ProtoReflect ¶
func (x *ProtoOADeal) ProtoReflect() protoreflect.Message
func (*ProtoOADeal) Reset ¶
func (x *ProtoOADeal) Reset()
func (*ProtoOADeal) String ¶
func (x *ProtoOADeal) String() string
type ProtoOADealListByPositionIdReq ¶
type ProtoOADealListByPositionIdReq struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2179" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. PositionId *int64 `protobuf:"varint,3,req,name=positionId" json:"positionId,omitempty"` // The unique ID of the position. FromTimestamp *int64 `protobuf:"varint,4,opt,name=fromTimestamp" json:"fromTimestamp,omitempty"` // The Unix time in milliseconds of starting the search. Must be bigger or equal to zero (1st Jan 1970). ToTimestamp *int64 `protobuf:"varint,5,opt,name=toTimestamp" json:"toTimestamp,omitempty"` // The Unix time in milliseconds of finishing the search. <= 2147483646000 (19th Jan 2038). // contains filtered or unexported fields }
* Request for retrieving the deals related to a position.
func (*ProtoOADealListByPositionIdReq) Descriptor
deprecated
func (*ProtoOADealListByPositionIdReq) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOADealListByPositionIdReq.ProtoReflect.Descriptor instead.
func (*ProtoOADealListByPositionIdReq) GetCtidTraderAccountId ¶
func (x *ProtoOADealListByPositionIdReq) GetCtidTraderAccountId() int64
func (*ProtoOADealListByPositionIdReq) GetFromTimestamp ¶
func (x *ProtoOADealListByPositionIdReq) GetFromTimestamp() int64
func (*ProtoOADealListByPositionIdReq) GetPayloadType ¶
func (x *ProtoOADealListByPositionIdReq) GetPayloadType() ProtoOAPayloadType
func (*ProtoOADealListByPositionIdReq) GetPositionId ¶
func (x *ProtoOADealListByPositionIdReq) GetPositionId() int64
func (*ProtoOADealListByPositionIdReq) GetToTimestamp ¶
func (x *ProtoOADealListByPositionIdReq) GetToTimestamp() int64
func (*ProtoOADealListByPositionIdReq) ProtoMessage ¶
func (*ProtoOADealListByPositionIdReq) ProtoMessage()
func (*ProtoOADealListByPositionIdReq) ProtoReflect ¶
func (x *ProtoOADealListByPositionIdReq) ProtoReflect() protoreflect.Message
func (*ProtoOADealListByPositionIdReq) Reset ¶
func (x *ProtoOADealListByPositionIdReq) Reset()
func (*ProtoOADealListByPositionIdReq) String ¶
func (x *ProtoOADealListByPositionIdReq) String() string
type ProtoOADealListByPositionIdRes ¶
type ProtoOADealListByPositionIdRes struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2180" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. Deal []*ProtoOADeal `protobuf:"bytes,3,rep,name=deal" json:"deal,omitempty"` // The list of deals. HasMore *bool `protobuf:"varint,4,req,name=hasMore" json:"hasMore,omitempty"` // If TRUE then the number of records by filter is larger than chunkSize, the response contains the number of records that is equal to chunkSize. // contains filtered or unexported fields }
* Response to the ProtoOADealListByPositionIdReq request.
func (*ProtoOADealListByPositionIdRes) Descriptor
deprecated
func (*ProtoOADealListByPositionIdRes) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOADealListByPositionIdRes.ProtoReflect.Descriptor instead.
func (*ProtoOADealListByPositionIdRes) GetCtidTraderAccountId ¶
func (x *ProtoOADealListByPositionIdRes) GetCtidTraderAccountId() int64
func (*ProtoOADealListByPositionIdRes) GetDeal ¶
func (x *ProtoOADealListByPositionIdRes) GetDeal() []*ProtoOADeal
func (*ProtoOADealListByPositionIdRes) GetHasMore ¶
func (x *ProtoOADealListByPositionIdRes) GetHasMore() bool
func (*ProtoOADealListByPositionIdRes) GetPayloadType ¶
func (x *ProtoOADealListByPositionIdRes) GetPayloadType() ProtoOAPayloadType
func (*ProtoOADealListByPositionIdRes) ProtoMessage ¶
func (*ProtoOADealListByPositionIdRes) ProtoMessage()
func (*ProtoOADealListByPositionIdRes) ProtoReflect ¶
func (x *ProtoOADealListByPositionIdRes) ProtoReflect() protoreflect.Message
func (*ProtoOADealListByPositionIdRes) Reset ¶
func (x *ProtoOADealListByPositionIdRes) Reset()
func (*ProtoOADealListByPositionIdRes) String ¶
func (x *ProtoOADealListByPositionIdRes) String() string
type ProtoOADealListReq ¶
type ProtoOADealListReq struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2133" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. FromTimestamp *int64 `protobuf:"varint,3,opt,name=fromTimestamp" json:"fromTimestamp,omitempty"` // The Unix time from which the search starts >=0 (1st Jan 1970). ToTimestamp *int64 `protobuf:"varint,4,opt,name=toTimestamp" json:"toTimestamp,omitempty"` // The Unix time where to stop searching <= 2147483646000 (19th Jan 2038). MaxRows *int32 `protobuf:"varint,5,opt,name=maxRows" json:"maxRows,omitempty"` // The maximum number of the deals to return. // contains filtered or unexported fields }
* Request for getting Trader's deals historical data (execution details).
func (*ProtoOADealListReq) Descriptor
deprecated
func (*ProtoOADealListReq) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOADealListReq.ProtoReflect.Descriptor instead.
func (*ProtoOADealListReq) GetCtidTraderAccountId ¶
func (x *ProtoOADealListReq) GetCtidTraderAccountId() int64
func (*ProtoOADealListReq) GetFromTimestamp ¶
func (x *ProtoOADealListReq) GetFromTimestamp() int64
func (*ProtoOADealListReq) GetMaxRows ¶
func (x *ProtoOADealListReq) GetMaxRows() int32
func (*ProtoOADealListReq) GetPayloadType ¶
func (x *ProtoOADealListReq) GetPayloadType() ProtoOAPayloadType
func (*ProtoOADealListReq) GetToTimestamp ¶
func (x *ProtoOADealListReq) GetToTimestamp() int64
func (*ProtoOADealListReq) ProtoMessage ¶
func (*ProtoOADealListReq) ProtoMessage()
func (*ProtoOADealListReq) ProtoReflect ¶
func (x *ProtoOADealListReq) ProtoReflect() protoreflect.Message
func (*ProtoOADealListReq) Reset ¶
func (x *ProtoOADealListReq) Reset()
func (*ProtoOADealListReq) String ¶
func (x *ProtoOADealListReq) String() string
type ProtoOADealListRes ¶
type ProtoOADealListRes struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2134" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. Deal []*ProtoOADeal `protobuf:"bytes,3,rep,name=deal" json:"deal,omitempty"` // The list of the deals. HasMore *bool `protobuf:"varint,4,req,name=hasMore" json:"hasMore,omitempty"` // If TRUE then the number of records by filter is larger than chunkSize, the response contains the number of records that is equal to chunkSize. // contains filtered or unexported fields }
* The response to the ProtoOADealListRes request.
func (*ProtoOADealListRes) Descriptor
deprecated
func (*ProtoOADealListRes) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOADealListRes.ProtoReflect.Descriptor instead.
func (*ProtoOADealListRes) GetCtidTraderAccountId ¶
func (x *ProtoOADealListRes) GetCtidTraderAccountId() int64
func (*ProtoOADealListRes) GetDeal ¶
func (x *ProtoOADealListRes) GetDeal() []*ProtoOADeal
func (*ProtoOADealListRes) GetHasMore ¶
func (x *ProtoOADealListRes) GetHasMore() bool
func (*ProtoOADealListRes) GetPayloadType ¶
func (x *ProtoOADealListRes) GetPayloadType() ProtoOAPayloadType
func (*ProtoOADealListRes) ProtoMessage ¶
func (*ProtoOADealListRes) ProtoMessage()
func (*ProtoOADealListRes) ProtoReflect ¶
func (x *ProtoOADealListRes) ProtoReflect() protoreflect.Message
func (*ProtoOADealListRes) Reset ¶
func (x *ProtoOADealListRes) Reset()
func (*ProtoOADealListRes) String ¶
func (x *ProtoOADealListRes) String() string
type ProtoOADealOffset ¶
type ProtoOADealOffset struct { DealId *int64 `protobuf:"varint,1,req,name=dealId" json:"dealId,omitempty"` // The unique ID of the execution Deal. Volume *int64 `protobuf:"varint,2,req,name=volume" json:"volume,omitempty"` // Matched volume, in cents. ExecutionTimestamp *int64 `protobuf:"varint,3,opt,name=executionTimestamp" json:"executionTimestamp,omitempty"` // The Unix time in milliseconds when the offset Deal was executed. ExecutionPrice *float64 `protobuf:"fixed64,4,opt,name=executionPrice" json:"executionPrice,omitempty"` // Execution price of the offset Deal. // contains filtered or unexported fields }
* Deal details for ProtoOADealOffsetListReq.
func (*ProtoOADealOffset) Descriptor
deprecated
func (*ProtoOADealOffset) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOADealOffset.ProtoReflect.Descriptor instead.
func (*ProtoOADealOffset) GetDealId ¶
func (x *ProtoOADealOffset) GetDealId() int64
func (*ProtoOADealOffset) GetExecutionPrice ¶
func (x *ProtoOADealOffset) GetExecutionPrice() float64
func (*ProtoOADealOffset) GetExecutionTimestamp ¶
func (x *ProtoOADealOffset) GetExecutionTimestamp() int64
func (*ProtoOADealOffset) GetVolume ¶
func (x *ProtoOADealOffset) GetVolume() int64
func (*ProtoOADealOffset) ProtoMessage ¶
func (*ProtoOADealOffset) ProtoMessage()
func (*ProtoOADealOffset) ProtoReflect ¶
func (x *ProtoOADealOffset) ProtoReflect() protoreflect.Message
func (*ProtoOADealOffset) Reset ¶
func (x *ProtoOADealOffset) Reset()
func (*ProtoOADealOffset) String ¶
func (x *ProtoOADealOffset) String() string
type ProtoOADealOffsetListReq ¶
type ProtoOADealOffsetListReq struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2185" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. DealId *int64 `protobuf:"varint,3,req,name=dealId" json:"dealId,omitempty"` // The unique ID of the Deal. // contains filtered or unexported fields }
* Request for getting sets of Deals that were offset by a specific Deal and that are offsetting the Deal.
func (*ProtoOADealOffsetListReq) Descriptor
deprecated
func (*ProtoOADealOffsetListReq) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOADealOffsetListReq.ProtoReflect.Descriptor instead.
func (*ProtoOADealOffsetListReq) GetCtidTraderAccountId ¶
func (x *ProtoOADealOffsetListReq) GetCtidTraderAccountId() int64
func (*ProtoOADealOffsetListReq) GetDealId ¶
func (x *ProtoOADealOffsetListReq) GetDealId() int64
func (*ProtoOADealOffsetListReq) GetPayloadType ¶
func (x *ProtoOADealOffsetListReq) GetPayloadType() ProtoOAPayloadType
func (*ProtoOADealOffsetListReq) ProtoMessage ¶
func (*ProtoOADealOffsetListReq) ProtoMessage()
func (*ProtoOADealOffsetListReq) ProtoReflect ¶
func (x *ProtoOADealOffsetListReq) ProtoReflect() protoreflect.Message
func (*ProtoOADealOffsetListReq) Reset ¶
func (x *ProtoOADealOffsetListReq) Reset()
func (*ProtoOADealOffsetListReq) String ¶
func (x *ProtoOADealOffsetListReq) String() string
type ProtoOADealOffsetListRes ¶
type ProtoOADealOffsetListRes struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2186" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. OffsetBy []*ProtoOADealOffset `protobuf:"bytes,3,rep,name=offsetBy" json:"offsetBy,omitempty"` // Deals which closed the specified deal. Offsetting []*ProtoOADealOffset `protobuf:"bytes,4,rep,name=offsetting" json:"offsetting,omitempty"` // Deals which were closed by the specified deal. // contains filtered or unexported fields }
* Response for ProtoOADealOffsetListReq.
func (*ProtoOADealOffsetListRes) Descriptor
deprecated
func (*ProtoOADealOffsetListRes) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOADealOffsetListRes.ProtoReflect.Descriptor instead.
func (*ProtoOADealOffsetListRes) GetCtidTraderAccountId ¶
func (x *ProtoOADealOffsetListRes) GetCtidTraderAccountId() int64
func (*ProtoOADealOffsetListRes) GetOffsetBy ¶
func (x *ProtoOADealOffsetListRes) GetOffsetBy() []*ProtoOADealOffset
func (*ProtoOADealOffsetListRes) GetOffsetting ¶
func (x *ProtoOADealOffsetListRes) GetOffsetting() []*ProtoOADealOffset
func (*ProtoOADealOffsetListRes) GetPayloadType ¶
func (x *ProtoOADealOffsetListRes) GetPayloadType() ProtoOAPayloadType
func (*ProtoOADealOffsetListRes) ProtoMessage ¶
func (*ProtoOADealOffsetListRes) ProtoMessage()
func (*ProtoOADealOffsetListRes) ProtoReflect ¶
func (x *ProtoOADealOffsetListRes) ProtoReflect() protoreflect.Message
func (*ProtoOADealOffsetListRes) Reset ¶
func (x *ProtoOADealOffsetListRes) Reset()
func (*ProtoOADealOffsetListRes) String ¶
func (x *ProtoOADealOffsetListRes) String() string
type ProtoOADealStatus ¶
type ProtoOADealStatus int32
* Deal status ENUM.
const ( ProtoOADealStatus_FILLED ProtoOADealStatus = 2 // Deal filled. ProtoOADealStatus_PARTIALLY_FILLED ProtoOADealStatus = 3 // Deal is partially filled. ProtoOADealStatus_REJECTED ProtoOADealStatus = 4 // Deal is correct but was rejected by liquidity provider (e.g. no liquidity). ProtoOADealStatus_INTERNALLY_REJECTED ProtoOADealStatus = 5 // Deal rejected by server (e.g. no price quotes). ProtoOADealStatus_ERROR ProtoOADealStatus = 6 // Deal is rejected by LP due to error (e.g. symbol is unknown). ProtoOADealStatus_MISSED ProtoOADealStatus = 7 // Liquidity provider did not sent response on the deal during specified execution time period. )
func (ProtoOADealStatus) Descriptor ¶
func (ProtoOADealStatus) Descriptor() protoreflect.EnumDescriptor
func (ProtoOADealStatus) Enum ¶
func (x ProtoOADealStatus) Enum() *ProtoOADealStatus
func (ProtoOADealStatus) EnumDescriptor
deprecated
func (ProtoOADealStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProtoOADealStatus.Descriptor instead.
func (ProtoOADealStatus) Number ¶
func (x ProtoOADealStatus) Number() protoreflect.EnumNumber
func (ProtoOADealStatus) String ¶
func (x ProtoOADealStatus) String() string
func (ProtoOADealStatus) Type ¶
func (ProtoOADealStatus) Type() protoreflect.EnumType
func (*ProtoOADealStatus) UnmarshalJSON
deprecated
func (x *ProtoOADealStatus) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type ProtoOADepositWithdraw ¶
type ProtoOADepositWithdraw struct { OperationType *ProtoOAChangeBalanceType `protobuf:"varint,1,req,name=operationType,enum=ProtoOAChangeBalanceType" json:"operationType,omitempty"` // Type of the operation. Deposit/Withdrawal. BalanceHistoryId *int64 `protobuf:"varint,2,req,name=balanceHistoryId" json:"balanceHistoryId,omitempty"` // The unique ID of the deposit/withdrawal operation. Balance *int64 `protobuf:"varint,3,req,name=balance" json:"balance,omitempty"` // Account balance after the operation was executed. Delta *int64 `protobuf:"varint,4,req,name=delta" json:"delta,omitempty"` // Amount of deposit/withdrawal operation. ChangeBalanceTimestamp *int64 `protobuf:"varint,5,req,name=changeBalanceTimestamp" json:"changeBalanceTimestamp,omitempty"` // The Unix time in milliseconds when deposit/withdrawal operation was executed. ExternalNote *string `protobuf:"bytes,6,opt,name=externalNote" json:"externalNote,omitempty"` // Note added to operation. Visible to the trader. BalanceVersion *int64 `protobuf:"varint,7,opt,name=balanceVersion" json:"balanceVersion,omitempty"` // Balance version used to identify the final balance. Increments each time when the trader's account balance is changed. Equity *int64 `protobuf:"varint,8,opt,name=equity" json:"equity,omitempty"` // Total account's equity after balance operation was executed. MoneyDigits *uint32 `protobuf:"varint,9,opt,name=moneyDigits" json:"moneyDigits,omitempty"` // Specifies the exponent of the monetary values. E.g. moneyDigits = 8 must be interpret as business value multiplied by 10^8, then real balance would be 10053099944 / 10^8 = 100.53099944. Affects balance, delta, equity. // contains filtered or unexported fields }
* Account deposit/withdrawal operation entity.
func (*ProtoOADepositWithdraw) Descriptor
deprecated
func (*ProtoOADepositWithdraw) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOADepositWithdraw.ProtoReflect.Descriptor instead.
func (*ProtoOADepositWithdraw) GetBalance ¶
func (x *ProtoOADepositWithdraw) GetBalance() int64
func (*ProtoOADepositWithdraw) GetBalanceHistoryId ¶
func (x *ProtoOADepositWithdraw) GetBalanceHistoryId() int64
func (*ProtoOADepositWithdraw) GetBalanceVersion ¶
func (x *ProtoOADepositWithdraw) GetBalanceVersion() int64
func (*ProtoOADepositWithdraw) GetChangeBalanceTimestamp ¶
func (x *ProtoOADepositWithdraw) GetChangeBalanceTimestamp() int64
func (*ProtoOADepositWithdraw) GetDelta ¶
func (x *ProtoOADepositWithdraw) GetDelta() int64
func (*ProtoOADepositWithdraw) GetEquity ¶
func (x *ProtoOADepositWithdraw) GetEquity() int64
func (*ProtoOADepositWithdraw) GetExternalNote ¶
func (x *ProtoOADepositWithdraw) GetExternalNote() string
func (*ProtoOADepositWithdraw) GetMoneyDigits ¶
func (x *ProtoOADepositWithdraw) GetMoneyDigits() uint32
func (*ProtoOADepositWithdraw) GetOperationType ¶
func (x *ProtoOADepositWithdraw) GetOperationType() ProtoOAChangeBalanceType
func (*ProtoOADepositWithdraw) ProtoMessage ¶
func (*ProtoOADepositWithdraw) ProtoMessage()
func (*ProtoOADepositWithdraw) ProtoReflect ¶
func (x *ProtoOADepositWithdraw) ProtoReflect() protoreflect.Message
func (*ProtoOADepositWithdraw) Reset ¶
func (x *ProtoOADepositWithdraw) Reset()
func (*ProtoOADepositWithdraw) String ¶
func (x *ProtoOADepositWithdraw) String() string
type ProtoOADepthEvent ¶
type ProtoOADepthEvent struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2155" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. SymbolId *uint64 `protobuf:"varint,3,req,name=symbolId" json:"symbolId,omitempty"` // Unique identifier of the Symbol in cTrader platform. NewQuotes []*ProtoOADepthQuote `protobuf:"bytes,4,rep,name=newQuotes" json:"newQuotes,omitempty"` // The list of changes in the depth of market quotes. DeletedQuotes []uint64 `protobuf:"varint,5,rep,packed,name=deletedQuotes" json:"deletedQuotes,omitempty"` // The list of quotes to delete. // contains filtered or unexported fields }
* Event that is sent when the structure of depth of market is changed. Requires subscription on the depth of markets for the symbol, see ProtoOASubscribeDepthQuotesReq.
func (*ProtoOADepthEvent) Descriptor
deprecated
func (*ProtoOADepthEvent) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOADepthEvent.ProtoReflect.Descriptor instead.
func (*ProtoOADepthEvent) GetCtidTraderAccountId ¶
func (x *ProtoOADepthEvent) GetCtidTraderAccountId() int64
func (*ProtoOADepthEvent) GetDeletedQuotes ¶
func (x *ProtoOADepthEvent) GetDeletedQuotes() []uint64
func (*ProtoOADepthEvent) GetNewQuotes ¶
func (x *ProtoOADepthEvent) GetNewQuotes() []*ProtoOADepthQuote
func (*ProtoOADepthEvent) GetPayloadType ¶
func (x *ProtoOADepthEvent) GetPayloadType() ProtoOAPayloadType
func (*ProtoOADepthEvent) GetSymbolId ¶
func (x *ProtoOADepthEvent) GetSymbolId() uint64
func (*ProtoOADepthEvent) ProtoMessage ¶
func (*ProtoOADepthEvent) ProtoMessage()
func (*ProtoOADepthEvent) ProtoReflect ¶
func (x *ProtoOADepthEvent) ProtoReflect() protoreflect.Message
func (*ProtoOADepthEvent) Reset ¶
func (x *ProtoOADepthEvent) Reset()
func (*ProtoOADepthEvent) String ¶
func (x *ProtoOADepthEvent) String() string
type ProtoOADepthQuote ¶
type ProtoOADepthQuote struct { Id *uint64 `protobuf:"varint,1,req,name=id" json:"id,omitempty"` // Quote ID. Size *uint64 `protobuf:"varint,3,req,name=size" json:"size,omitempty"` // Quote size in cents. Bid *uint64 `protobuf:"varint,4,opt,name=bid" json:"bid,omitempty"` // Bid price for bid quotes. Ask *uint64 `protobuf:"varint,5,opt,name=ask" json:"ask,omitempty"` // Ask price for ask quotes. // contains filtered or unexported fields }
* Depth of market entity.
func (*ProtoOADepthQuote) Descriptor
deprecated
func (*ProtoOADepthQuote) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOADepthQuote.ProtoReflect.Descriptor instead.
func (*ProtoOADepthQuote) GetAsk ¶
func (x *ProtoOADepthQuote) GetAsk() uint64
func (*ProtoOADepthQuote) GetBid ¶
func (x *ProtoOADepthQuote) GetBid() uint64
func (*ProtoOADepthQuote) GetId ¶
func (x *ProtoOADepthQuote) GetId() uint64
func (*ProtoOADepthQuote) GetSize ¶
func (x *ProtoOADepthQuote) GetSize() uint64
func (*ProtoOADepthQuote) ProtoMessage ¶
func (*ProtoOADepthQuote) ProtoMessage()
func (*ProtoOADepthQuote) ProtoReflect ¶
func (x *ProtoOADepthQuote) ProtoReflect() protoreflect.Message
func (*ProtoOADepthQuote) Reset ¶
func (x *ProtoOADepthQuote) Reset()
func (*ProtoOADepthQuote) String ¶
func (x *ProtoOADepthQuote) String() string
type ProtoOADynamicLeverage ¶
type ProtoOADynamicLeverage struct { LeverageId *int64 `protobuf:"varint,1,req,name=leverageId" json:"leverageId,omitempty"` // Unique ID of dynamic leverage. Tiers []*ProtoOADynamicLeverageTier `protobuf:"bytes,2,rep,name=tiers" json:"tiers,omitempty"` // Tiers sorted by volume. Last tier's leverage is applied also to volume above specified. // contains filtered or unexported fields }
func (*ProtoOADynamicLeverage) Descriptor
deprecated
func (*ProtoOADynamicLeverage) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOADynamicLeverage.ProtoReflect.Descriptor instead.
func (*ProtoOADynamicLeverage) GetLeverageId ¶
func (x *ProtoOADynamicLeverage) GetLeverageId() int64
func (*ProtoOADynamicLeverage) GetTiers ¶
func (x *ProtoOADynamicLeverage) GetTiers() []*ProtoOADynamicLeverageTier
func (*ProtoOADynamicLeverage) ProtoMessage ¶
func (*ProtoOADynamicLeverage) ProtoMessage()
func (*ProtoOADynamicLeverage) ProtoReflect ¶
func (x *ProtoOADynamicLeverage) ProtoReflect() protoreflect.Message
func (*ProtoOADynamicLeverage) Reset ¶
func (x *ProtoOADynamicLeverage) Reset()
func (*ProtoOADynamicLeverage) String ¶
func (x *ProtoOADynamicLeverage) String() string
type ProtoOADynamicLeverageTier ¶
type ProtoOADynamicLeverageTier struct { Volume *int64 `protobuf:"varint,1,req,name=volume" json:"volume,omitempty"` // Max USD volume (in cents) of the Open Position (per side) to apply specified leverage. Last tier's leverage is applied also to volume above specified. Leverage *int32 `protobuf:"varint,2,req,name=leverage" json:"leverage,omitempty"` // Applied leverage. // contains filtered or unexported fields }
func (*ProtoOADynamicLeverageTier) Descriptor
deprecated
func (*ProtoOADynamicLeverageTier) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOADynamicLeverageTier.ProtoReflect.Descriptor instead.
func (*ProtoOADynamicLeverageTier) GetLeverage ¶
func (x *ProtoOADynamicLeverageTier) GetLeverage() int32
func (*ProtoOADynamicLeverageTier) GetVolume ¶
func (x *ProtoOADynamicLeverageTier) GetVolume() int64
func (*ProtoOADynamicLeverageTier) ProtoMessage ¶
func (*ProtoOADynamicLeverageTier) ProtoMessage()
func (*ProtoOADynamicLeverageTier) ProtoReflect ¶
func (x *ProtoOADynamicLeverageTier) ProtoReflect() protoreflect.Message
func (*ProtoOADynamicLeverageTier) Reset ¶
func (x *ProtoOADynamicLeverageTier) Reset()
func (*ProtoOADynamicLeverageTier) String ¶
func (x *ProtoOADynamicLeverageTier) String() string
type ProtoOAErrorCode ¶
type ProtoOAErrorCode int32
* Error code ENUM.
const ( // Authorization ProtoOAErrorCode_OA_AUTH_TOKEN_EXPIRED ProtoOAErrorCode = 1 // When token used for account authorization is expired. ProtoOAErrorCode_ACCOUNT_NOT_AUTHORIZED ProtoOAErrorCode = 2 // When account is not authorized. ProtoOAErrorCode_RET_NO_SUCH_LOGIN ProtoOAErrorCode = 12 // When such account no longer exists. ProtoOAErrorCode_ALREADY_LOGGED_IN ProtoOAErrorCode = 14 // When client tries to authorize after it was already authorized. ProtoOAErrorCode_RET_ACCOUNT_DISABLED ProtoOAErrorCode = 64 // When account is disabled. ProtoOAErrorCode_CH_CLIENT_AUTH_FAILURE ProtoOAErrorCode = 101 // Open API client is not activated or wrong client credentials. ProtoOAErrorCode_CH_CLIENT_NOT_AUTHENTICATED ProtoOAErrorCode = 102 // When a command is sent for not authorized Open API client. ProtoOAErrorCode_CH_CLIENT_ALREADY_AUTHENTICATED ProtoOAErrorCode = 103 // Client is trying to authenticate twice. ProtoOAErrorCode_CH_ACCESS_TOKEN_INVALID ProtoOAErrorCode = 104 // Access token is invalid. ProtoOAErrorCode_CH_SERVER_NOT_REACHABLE ProtoOAErrorCode = 105 // Trading service is not available. ProtoOAErrorCode_CH_CTID_TRADER_ACCOUNT_NOT_FOUND ProtoOAErrorCode = 106 // Trading account is not found. ProtoOAErrorCode_CH_OA_CLIENT_NOT_FOUND ProtoOAErrorCode = 107 // Could not find this client id. // General ProtoOAErrorCode_REQUEST_FREQUENCY_EXCEEDED ProtoOAErrorCode = 108 // Request frequency is reached. ProtoOAErrorCode_SERVER_IS_UNDER_MAINTENANCE ProtoOAErrorCode = 109 // Server is under maintenance. ProtoOAErrorCode_CHANNEL_IS_BLOCKED ProtoOAErrorCode = 110 // Operations are not allowed for this account. ProtoOAErrorCode_CONNECTIONS_LIMIT_EXCEEDED ProtoOAErrorCode = 67 // Limit of connections is reached for this Open API client. ProtoOAErrorCode_WORSE_GSL_NOT_ALLOWED ProtoOAErrorCode = 68 // Not allowed to increase risk for Positions with Guaranteed Stop Loss. ProtoOAErrorCode_SYMBOL_HAS_HOLIDAY ProtoOAErrorCode = 69 // Trading disabled because symbol has holiday. // Pricing ProtoOAErrorCode_NOT_SUBSCRIBED_TO_SPOTS ProtoOAErrorCode = 112 // When trying to subscribe to depth, trendbars, etc. without spot subscription. ProtoOAErrorCode_ALREADY_SUBSCRIBED ProtoOAErrorCode = 113 // When subscription is requested for an active. ProtoOAErrorCode_SYMBOL_NOT_FOUND ProtoOAErrorCode = 114 // Symbol not found. ProtoOAErrorCode_UNKNOWN_SYMBOL ProtoOAErrorCode = 115 // Note: to be merged with SYMBOL_NOT_FOUND. ProtoOAErrorCode_INCORRECT_BOUNDARIES ProtoOAErrorCode = 35 // When requested period (from,to) is too large or invalid values are set to from/to. // Trading ProtoOAErrorCode_NO_QUOTES ProtoOAErrorCode = 117 // Trading cannot be done as not quotes are available. Applicable for Book B. ProtoOAErrorCode_NOT_ENOUGH_MONEY ProtoOAErrorCode = 118 // Not enough funds to allocate margin. ProtoOAErrorCode_MAX_EXPOSURE_REACHED ProtoOAErrorCode = 119 // Max exposure limit is reached for a {trader, symbol, side}. ProtoOAErrorCode_POSITION_NOT_FOUND ProtoOAErrorCode = 120 // Position not found. ProtoOAErrorCode_ORDER_NOT_FOUND ProtoOAErrorCode = 121 // Order not found. ProtoOAErrorCode_POSITION_NOT_OPEN ProtoOAErrorCode = 122 // When trying to close a position that it is not open. ProtoOAErrorCode_POSITION_LOCKED ProtoOAErrorCode = 123 // Position in the state that does not allow to perform an operation. ProtoOAErrorCode_TOO_MANY_POSITIONS ProtoOAErrorCode = 124 // Trading account reached its limit for max number of open positions and orders. ProtoOAErrorCode_TRADING_BAD_VOLUME ProtoOAErrorCode = 125 // Invalid volume. ProtoOAErrorCode_TRADING_BAD_STOPS ProtoOAErrorCode = 126 // Invalid stop price. ProtoOAErrorCode_TRADING_BAD_PRICES ProtoOAErrorCode = 127 // Invalid price (e.g. negative). ProtoOAErrorCode_TRADING_BAD_STAKE ProtoOAErrorCode = 128 // Invalid stake volume (e.g. negative). ProtoOAErrorCode_PROTECTION_IS_TOO_CLOSE_TO_MARKET ProtoOAErrorCode = 129 // Invalid protection prices. ProtoOAErrorCode_TRADING_BAD_EXPIRATION_DATE ProtoOAErrorCode = 130 // Invalid expiration. ProtoOAErrorCode_PENDING_EXECUTION ProtoOAErrorCode = 131 // Unable to apply changes as position has an order under execution. ProtoOAErrorCode_TRADING_DISABLED ProtoOAErrorCode = 132 // Trading is blocked for the symbol. ProtoOAErrorCode_TRADING_NOT_ALLOWED ProtoOAErrorCode = 133 // Trading account is in read only mode. ProtoOAErrorCode_UNABLE_TO_CANCEL_ORDER ProtoOAErrorCode = 134 // Unable to cancel order. ProtoOAErrorCode_UNABLE_TO_AMEND_ORDER ProtoOAErrorCode = 135 // Unable to amend order. ProtoOAErrorCode_SHORT_SELLING_NOT_ALLOWED ProtoOAErrorCode = 136 // Short selling is not allowed. )
func (ProtoOAErrorCode) Descriptor ¶
func (ProtoOAErrorCode) Descriptor() protoreflect.EnumDescriptor
func (ProtoOAErrorCode) Enum ¶
func (x ProtoOAErrorCode) Enum() *ProtoOAErrorCode
func (ProtoOAErrorCode) EnumDescriptor
deprecated
func (ProtoOAErrorCode) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProtoOAErrorCode.Descriptor instead.
func (ProtoOAErrorCode) Number ¶
func (x ProtoOAErrorCode) Number() protoreflect.EnumNumber
func (ProtoOAErrorCode) String ¶
func (x ProtoOAErrorCode) String() string
func (ProtoOAErrorCode) Type ¶
func (ProtoOAErrorCode) Type() protoreflect.EnumType
func (*ProtoOAErrorCode) UnmarshalJSON
deprecated
func (x *ProtoOAErrorCode) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type ProtoOAErrorRes ¶
type ProtoOAErrorRes struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2142" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,opt,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // The unique identifier of the trader's account in cTrader platform. ErrorCode *string `protobuf:"bytes,3,req,name=errorCode" json:"errorCode,omitempty"` // The name of the ProtoErrorCode or the other custom ErrorCodes (e.g. ProtoCHErrorCode). Description *string `protobuf:"bytes,4,opt,name=description" json:"description,omitempty"` // The error description. MaintenanceEndTimestamp *int64 `protobuf:"varint,5,opt,name=maintenanceEndTimestamp" json:"maintenanceEndTimestamp,omitempty"` // The Unix time in seconds when the current maintenance session will be ended. RetryAfter *uint64 `protobuf:"varint,6,opt,name=retryAfter" json:"retryAfter,omitempty"` // When you hit rate limit with errorCode=BLOCKED_PAYLOAD_TYPE, this field will contain amount of seconds until related payload type will be unlocked. // contains filtered or unexported fields }
* Generic response when an ERROR occurred.
func (*ProtoOAErrorRes) Descriptor
deprecated
func (*ProtoOAErrorRes) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAErrorRes.ProtoReflect.Descriptor instead.
func (*ProtoOAErrorRes) GetCtidTraderAccountId ¶
func (x *ProtoOAErrorRes) GetCtidTraderAccountId() int64
func (*ProtoOAErrorRes) GetDescription ¶
func (x *ProtoOAErrorRes) GetDescription() string
func (*ProtoOAErrorRes) GetErrorCode ¶
func (x *ProtoOAErrorRes) GetErrorCode() string
func (*ProtoOAErrorRes) GetMaintenanceEndTimestamp ¶
func (x *ProtoOAErrorRes) GetMaintenanceEndTimestamp() int64
func (*ProtoOAErrorRes) GetPayloadType ¶
func (x *ProtoOAErrorRes) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAErrorRes) GetRetryAfter ¶
func (x *ProtoOAErrorRes) GetRetryAfter() uint64
func (*ProtoOAErrorRes) ProtoMessage ¶
func (*ProtoOAErrorRes) ProtoMessage()
func (*ProtoOAErrorRes) ProtoReflect ¶
func (x *ProtoOAErrorRes) ProtoReflect() protoreflect.Message
func (*ProtoOAErrorRes) Reset ¶
func (x *ProtoOAErrorRes) Reset()
func (*ProtoOAErrorRes) String ¶
func (x *ProtoOAErrorRes) String() string
type ProtoOAExecutionEvent ¶
type ProtoOAExecutionEvent struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2126" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. ExecutionType *ProtoOAExecutionType `protobuf:"varint,3,req,name=executionType,enum=ProtoOAExecutionType" json:"executionType,omitempty"` // Type of the order operation. For example: ACCEPTED, FILLED, etc. Position *ProtoOAPosition `protobuf:"bytes,4,opt,name=position" json:"position,omitempty"` // Reference to the position linked with the execution Order *ProtoOAOrder `protobuf:"bytes,5,opt,name=order" json:"order,omitempty"` // Reference to the initial order. Deal *ProtoOADeal `protobuf:"bytes,6,opt,name=deal" json:"deal,omitempty"` // Reference to the deal (execution). BonusDepositWithdraw *ProtoOABonusDepositWithdraw `protobuf:"bytes,7,opt,name=bonusDepositWithdraw" json:"bonusDepositWithdraw,omitempty"` // Reference to the Bonus Deposit or Withdrawal operation. DepositWithdraw *ProtoOADepositWithdraw `protobuf:"bytes,8,opt,name=depositWithdraw" json:"depositWithdraw,omitempty"` // Reference to the Deposit or Withdrawal operation. ErrorCode *string `protobuf:"bytes,9,opt,name=errorCode" json:"errorCode,omitempty"` // The name of the ProtoErrorCode or the other custom ErrorCodes (e.g. ProtoCHErrorCode). IsServerEvent *bool `protobuf:"varint,10,opt,name=isServerEvent" json:"isServerEvent,omitempty"` // If TRUE then the event generated by the server logic instead of the trader's request. (e.g. stop-out). // contains filtered or unexported fields }
* Event that is sent following the successful order acceptance or execution by the server. Acts as response to the ProtoOANewOrderReq, ProtoOACancelOrderReq, ProtoOAAmendOrderReq, ProtoOAAmendPositionSLTPReq, ProtoOAClosePositionReq requests. Also, the event is sent when a Deposit/Withdrawal took place.
func (*ProtoOAExecutionEvent) Descriptor
deprecated
func (*ProtoOAExecutionEvent) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAExecutionEvent.ProtoReflect.Descriptor instead.
func (*ProtoOAExecutionEvent) GetBonusDepositWithdraw ¶
func (x *ProtoOAExecutionEvent) GetBonusDepositWithdraw() *ProtoOABonusDepositWithdraw
func (*ProtoOAExecutionEvent) GetCtidTraderAccountId ¶
func (x *ProtoOAExecutionEvent) GetCtidTraderAccountId() int64
func (*ProtoOAExecutionEvent) GetDeal ¶
func (x *ProtoOAExecutionEvent) GetDeal() *ProtoOADeal
func (*ProtoOAExecutionEvent) GetDepositWithdraw ¶
func (x *ProtoOAExecutionEvent) GetDepositWithdraw() *ProtoOADepositWithdraw
func (*ProtoOAExecutionEvent) GetErrorCode ¶
func (x *ProtoOAExecutionEvent) GetErrorCode() string
func (*ProtoOAExecutionEvent) GetExecutionType ¶
func (x *ProtoOAExecutionEvent) GetExecutionType() ProtoOAExecutionType
func (*ProtoOAExecutionEvent) GetIsServerEvent ¶
func (x *ProtoOAExecutionEvent) GetIsServerEvent() bool
func (*ProtoOAExecutionEvent) GetOrder ¶
func (x *ProtoOAExecutionEvent) GetOrder() *ProtoOAOrder
func (*ProtoOAExecutionEvent) GetPayloadType ¶
func (x *ProtoOAExecutionEvent) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAExecutionEvent) GetPosition ¶
func (x *ProtoOAExecutionEvent) GetPosition() *ProtoOAPosition
func (*ProtoOAExecutionEvent) ProtoMessage ¶
func (*ProtoOAExecutionEvent) ProtoMessage()
func (*ProtoOAExecutionEvent) ProtoReflect ¶
func (x *ProtoOAExecutionEvent) ProtoReflect() protoreflect.Message
func (*ProtoOAExecutionEvent) Reset ¶
func (x *ProtoOAExecutionEvent) Reset()
func (*ProtoOAExecutionEvent) String ¶
func (x *ProtoOAExecutionEvent) String() string
type ProtoOAExecutionType ¶
type ProtoOAExecutionType int32
* Execution event type ENUM.
const ( ProtoOAExecutionType_ORDER_ACCEPTED ProtoOAExecutionType = 2 // Order passed validation. ProtoOAExecutionType_ORDER_FILLED ProtoOAExecutionType = 3 // Order filled. ProtoOAExecutionType_ORDER_REPLACED ProtoOAExecutionType = 4 // Pending order is changed with a new one. ProtoOAExecutionType_ORDER_CANCELLED ProtoOAExecutionType = 5 // Order cancelled. ProtoOAExecutionType_ORDER_EXPIRED ProtoOAExecutionType = 6 // Order with GTD time in force is expired. ProtoOAExecutionType_ORDER_REJECTED ProtoOAExecutionType = 7 // Order is rejected due to validations. ProtoOAExecutionType_ORDER_CANCEL_REJECTED ProtoOAExecutionType = 8 // Cancel order request is rejected. ProtoOAExecutionType_SWAP ProtoOAExecutionType = 9 // Type related to SWAP execution events. ProtoOAExecutionType_DEPOSIT_WITHDRAW ProtoOAExecutionType = 10 // Type related to event of deposit or withdrawal cash flow operation. ProtoOAExecutionType_ORDER_PARTIAL_FILL ProtoOAExecutionType = 11 // Order is partially filled. ProtoOAExecutionType_BONUS_DEPOSIT_WITHDRAW ProtoOAExecutionType = 12 // Type related to event of bonus deposit or bonus withdrawal. )
func (ProtoOAExecutionType) Descriptor ¶
func (ProtoOAExecutionType) Descriptor() protoreflect.EnumDescriptor
func (ProtoOAExecutionType) Enum ¶
func (x ProtoOAExecutionType) Enum() *ProtoOAExecutionType
func (ProtoOAExecutionType) EnumDescriptor
deprecated
func (ProtoOAExecutionType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProtoOAExecutionType.Descriptor instead.
func (ProtoOAExecutionType) Number ¶
func (x ProtoOAExecutionType) Number() protoreflect.EnumNumber
func (ProtoOAExecutionType) String ¶
func (x ProtoOAExecutionType) String() string
func (ProtoOAExecutionType) Type ¶
func (ProtoOAExecutionType) Type() protoreflect.EnumType
func (*ProtoOAExecutionType) UnmarshalJSON
deprecated
func (x *ProtoOAExecutionType) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type ProtoOAExpectedMargin ¶
type ProtoOAExpectedMargin struct { Volume *int64 `protobuf:"varint,1,req,name=volume" json:"volume,omitempty"` // Volume in cents used for computation of expected margin. BuyMargin *int64 `protobuf:"varint,2,req,name=buyMargin" json:"buyMargin,omitempty"` // Buy margin amount. SellMargin *int64 `protobuf:"varint,3,req,name=sellMargin" json:"sellMargin,omitempty"` // Sell margin amount. // contains filtered or unexported fields }
* Expected margin computation entity.
func (*ProtoOAExpectedMargin) Descriptor
deprecated
func (*ProtoOAExpectedMargin) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAExpectedMargin.ProtoReflect.Descriptor instead.
func (*ProtoOAExpectedMargin) GetBuyMargin ¶
func (x *ProtoOAExpectedMargin) GetBuyMargin() int64
func (*ProtoOAExpectedMargin) GetSellMargin ¶
func (x *ProtoOAExpectedMargin) GetSellMargin() int64
func (*ProtoOAExpectedMargin) GetVolume ¶
func (x *ProtoOAExpectedMargin) GetVolume() int64
func (*ProtoOAExpectedMargin) ProtoMessage ¶
func (*ProtoOAExpectedMargin) ProtoMessage()
func (*ProtoOAExpectedMargin) ProtoReflect ¶
func (x *ProtoOAExpectedMargin) ProtoReflect() protoreflect.Message
func (*ProtoOAExpectedMargin) Reset ¶
func (x *ProtoOAExpectedMargin) Reset()
func (*ProtoOAExpectedMargin) String ¶
func (x *ProtoOAExpectedMargin) String() string
type ProtoOAExpectedMarginReq ¶
type ProtoOAExpectedMarginReq struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2139" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. SymbolId *int64 `protobuf:"varint,3,req,name=symbolId" json:"symbolId,omitempty"` // Unique identifier of the Symbol in cTrader platform. Volume []int64 `protobuf:"varint,4,rep,name=volume" json:"volume,omitempty"` // Volume represented in 0.01 of a unit (e.g. cents). // contains filtered or unexported fields }
* Request for getting the margin estimate according to leverage profiles. Can be used before sending a new order request. This doesn't consider ACCORDING_TO_GSL margin calculation type, as this calculation is trivial: usedMargin = (VWAP price of the position - GSL price) * volume * Quote2Deposit.
func (*ProtoOAExpectedMarginReq) Descriptor
deprecated
func (*ProtoOAExpectedMarginReq) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAExpectedMarginReq.ProtoReflect.Descriptor instead.
func (*ProtoOAExpectedMarginReq) GetCtidTraderAccountId ¶
func (x *ProtoOAExpectedMarginReq) GetCtidTraderAccountId() int64
func (*ProtoOAExpectedMarginReq) GetPayloadType ¶
func (x *ProtoOAExpectedMarginReq) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAExpectedMarginReq) GetSymbolId ¶
func (x *ProtoOAExpectedMarginReq) GetSymbolId() int64
func (*ProtoOAExpectedMarginReq) GetVolume ¶
func (x *ProtoOAExpectedMarginReq) GetVolume() []int64
func (*ProtoOAExpectedMarginReq) ProtoMessage ¶
func (*ProtoOAExpectedMarginReq) ProtoMessage()
func (*ProtoOAExpectedMarginReq) ProtoReflect ¶
func (x *ProtoOAExpectedMarginReq) ProtoReflect() protoreflect.Message
func (*ProtoOAExpectedMarginReq) Reset ¶
func (x *ProtoOAExpectedMarginReq) Reset()
func (*ProtoOAExpectedMarginReq) String ¶
func (x *ProtoOAExpectedMarginReq) String() string
type ProtoOAExpectedMarginRes ¶
type ProtoOAExpectedMarginRes struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2140" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. Margin []*ProtoOAExpectedMargin `protobuf:"bytes,3,rep,name=margin" json:"margin,omitempty"` // The buy and sell margin estimate. MoneyDigits *uint32 `protobuf:"varint,4,opt,name=moneyDigits" json:"moneyDigits,omitempty"` // Specifies the exponent of the monetary values. E.g. moneyDigits = 8 must be interpret as business value multiplied by 10^8, then real balance would be 10053099944 / 10^8 = 100.53099944. Affects margin.buyMargin, margin.sellMargin. // contains filtered or unexported fields }
* The response to the ProtoOAExpectedMarginReq request.
func (*ProtoOAExpectedMarginRes) Descriptor
deprecated
func (*ProtoOAExpectedMarginRes) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAExpectedMarginRes.ProtoReflect.Descriptor instead.
func (*ProtoOAExpectedMarginRes) GetCtidTraderAccountId ¶
func (x *ProtoOAExpectedMarginRes) GetCtidTraderAccountId() int64
func (*ProtoOAExpectedMarginRes) GetMargin ¶
func (x *ProtoOAExpectedMarginRes) GetMargin() []*ProtoOAExpectedMargin
func (*ProtoOAExpectedMarginRes) GetMoneyDigits ¶
func (x *ProtoOAExpectedMarginRes) GetMoneyDigits() uint32
func (*ProtoOAExpectedMarginRes) GetPayloadType ¶
func (x *ProtoOAExpectedMarginRes) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAExpectedMarginRes) ProtoMessage ¶
func (*ProtoOAExpectedMarginRes) ProtoMessage()
func (*ProtoOAExpectedMarginRes) ProtoReflect ¶
func (x *ProtoOAExpectedMarginRes) ProtoReflect() protoreflect.Message
func (*ProtoOAExpectedMarginRes) Reset ¶
func (x *ProtoOAExpectedMarginRes) Reset()
func (*ProtoOAExpectedMarginRes) String ¶
func (x *ProtoOAExpectedMarginRes) String() string
type ProtoOAGetAccountListByAccessTokenReq ¶
type ProtoOAGetAccountListByAccessTokenReq struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2149" json:"payloadType,omitempty"` AccessToken *string `protobuf:"bytes,2,req,name=accessToken" json:"accessToken,omitempty"` // The Access Token issued for providing access to the Trader's Account. // contains filtered or unexported fields }
* Request for getting the list of granted trader's account for the access token.
func (*ProtoOAGetAccountListByAccessTokenReq) Descriptor
deprecated
func (*ProtoOAGetAccountListByAccessTokenReq) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAGetAccountListByAccessTokenReq.ProtoReflect.Descriptor instead.
func (*ProtoOAGetAccountListByAccessTokenReq) GetAccessToken ¶
func (x *ProtoOAGetAccountListByAccessTokenReq) GetAccessToken() string
func (*ProtoOAGetAccountListByAccessTokenReq) GetPayloadType ¶
func (x *ProtoOAGetAccountListByAccessTokenReq) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAGetAccountListByAccessTokenReq) ProtoMessage ¶
func (*ProtoOAGetAccountListByAccessTokenReq) ProtoMessage()
func (*ProtoOAGetAccountListByAccessTokenReq) ProtoReflect ¶
func (x *ProtoOAGetAccountListByAccessTokenReq) ProtoReflect() protoreflect.Message
func (*ProtoOAGetAccountListByAccessTokenReq) Reset ¶
func (x *ProtoOAGetAccountListByAccessTokenReq) Reset()
func (*ProtoOAGetAccountListByAccessTokenReq) String ¶
func (x *ProtoOAGetAccountListByAccessTokenReq) String() string
type ProtoOAGetAccountListByAccessTokenRes ¶
type ProtoOAGetAccountListByAccessTokenRes struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2150" json:"payloadType,omitempty"` AccessToken *string `protobuf:"bytes,2,req,name=accessToken" json:"accessToken,omitempty"` // The Access Token issued for providing access to the Trader's Account. PermissionScope *ProtoOAClientPermissionScope `protobuf:"varint,3,opt,name=permissionScope,enum=ProtoOAClientPermissionScope" json:"permissionScope,omitempty"` // SCOPE_VIEW, SCOPE_TRADE. CtidTraderAccount []*ProtoOACtidTraderAccount `protobuf:"bytes,4,rep,name=ctidTraderAccount" json:"ctidTraderAccount,omitempty"` // The list of the accounts. // contains filtered or unexported fields }
* Response to the ProtoOAGetAccountListByAccessTokenReq request.
func (*ProtoOAGetAccountListByAccessTokenRes) Descriptor
deprecated
func (*ProtoOAGetAccountListByAccessTokenRes) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAGetAccountListByAccessTokenRes.ProtoReflect.Descriptor instead.
func (*ProtoOAGetAccountListByAccessTokenRes) GetAccessToken ¶
func (x *ProtoOAGetAccountListByAccessTokenRes) GetAccessToken() string
func (*ProtoOAGetAccountListByAccessTokenRes) GetCtidTraderAccount ¶
func (x *ProtoOAGetAccountListByAccessTokenRes) GetCtidTraderAccount() []*ProtoOACtidTraderAccount
func (*ProtoOAGetAccountListByAccessTokenRes) GetPayloadType ¶
func (x *ProtoOAGetAccountListByAccessTokenRes) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAGetAccountListByAccessTokenRes) GetPermissionScope ¶
func (x *ProtoOAGetAccountListByAccessTokenRes) GetPermissionScope() ProtoOAClientPermissionScope
func (*ProtoOAGetAccountListByAccessTokenRes) ProtoMessage ¶
func (*ProtoOAGetAccountListByAccessTokenRes) ProtoMessage()
func (*ProtoOAGetAccountListByAccessTokenRes) ProtoReflect ¶
func (x *ProtoOAGetAccountListByAccessTokenRes) ProtoReflect() protoreflect.Message
func (*ProtoOAGetAccountListByAccessTokenRes) Reset ¶
func (x *ProtoOAGetAccountListByAccessTokenRes) Reset()
func (*ProtoOAGetAccountListByAccessTokenRes) String ¶
func (x *ProtoOAGetAccountListByAccessTokenRes) String() string
type ProtoOAGetCtidProfileByTokenReq ¶
type ProtoOAGetCtidProfileByTokenReq struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2151" json:"payloadType,omitempty"` AccessToken *string `protobuf:"bytes,2,req,name=accessToken" json:"accessToken,omitempty"` // The Access Token issued for providing access to the Trader's Account. // contains filtered or unexported fields }
* Request for getting details of Trader's profile. Limited due to GDRP requirements.
func (*ProtoOAGetCtidProfileByTokenReq) Descriptor
deprecated
func (*ProtoOAGetCtidProfileByTokenReq) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAGetCtidProfileByTokenReq.ProtoReflect.Descriptor instead.
func (*ProtoOAGetCtidProfileByTokenReq) GetAccessToken ¶
func (x *ProtoOAGetCtidProfileByTokenReq) GetAccessToken() string
func (*ProtoOAGetCtidProfileByTokenReq) GetPayloadType ¶
func (x *ProtoOAGetCtidProfileByTokenReq) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAGetCtidProfileByTokenReq) ProtoMessage ¶
func (*ProtoOAGetCtidProfileByTokenReq) ProtoMessage()
func (*ProtoOAGetCtidProfileByTokenReq) ProtoReflect ¶
func (x *ProtoOAGetCtidProfileByTokenReq) ProtoReflect() protoreflect.Message
func (*ProtoOAGetCtidProfileByTokenReq) Reset ¶
func (x *ProtoOAGetCtidProfileByTokenReq) Reset()
func (*ProtoOAGetCtidProfileByTokenReq) String ¶
func (x *ProtoOAGetCtidProfileByTokenReq) String() string
type ProtoOAGetCtidProfileByTokenRes ¶
type ProtoOAGetCtidProfileByTokenRes struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2152" json:"payloadType,omitempty"` Profile *ProtoOACtidProfile `protobuf:"bytes,2,req,name=profile" json:"profile,omitempty"` // Trader's profile. // contains filtered or unexported fields }
* Response to the ProtoOAGetCtidProfileByTokenReq request.
func (*ProtoOAGetCtidProfileByTokenRes) Descriptor
deprecated
func (*ProtoOAGetCtidProfileByTokenRes) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAGetCtidProfileByTokenRes.ProtoReflect.Descriptor instead.
func (*ProtoOAGetCtidProfileByTokenRes) GetPayloadType ¶
func (x *ProtoOAGetCtidProfileByTokenRes) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAGetCtidProfileByTokenRes) GetProfile ¶
func (x *ProtoOAGetCtidProfileByTokenRes) GetProfile() *ProtoOACtidProfile
func (*ProtoOAGetCtidProfileByTokenRes) ProtoMessage ¶
func (*ProtoOAGetCtidProfileByTokenRes) ProtoMessage()
func (*ProtoOAGetCtidProfileByTokenRes) ProtoReflect ¶
func (x *ProtoOAGetCtidProfileByTokenRes) ProtoReflect() protoreflect.Message
func (*ProtoOAGetCtidProfileByTokenRes) Reset ¶
func (x *ProtoOAGetCtidProfileByTokenRes) Reset()
func (*ProtoOAGetCtidProfileByTokenRes) String ¶
func (x *ProtoOAGetCtidProfileByTokenRes) String() string
type ProtoOAGetDynamicLeverageByIDReq ¶
type ProtoOAGetDynamicLeverageByIDReq struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2177" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. LeverageId *int64 `protobuf:"varint,3,req,name=leverageId" json:"leverageId,omitempty"` // contains filtered or unexported fields }
* Request for getting a dynamic leverage entity referenced in ProtoOASymbol.leverageId.
func (*ProtoOAGetDynamicLeverageByIDReq) Descriptor
deprecated
func (*ProtoOAGetDynamicLeverageByIDReq) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAGetDynamicLeverageByIDReq.ProtoReflect.Descriptor instead.
func (*ProtoOAGetDynamicLeverageByIDReq) GetCtidTraderAccountId ¶
func (x *ProtoOAGetDynamicLeverageByIDReq) GetCtidTraderAccountId() int64
func (*ProtoOAGetDynamicLeverageByIDReq) GetLeverageId ¶
func (x *ProtoOAGetDynamicLeverageByIDReq) GetLeverageId() int64
func (*ProtoOAGetDynamicLeverageByIDReq) GetPayloadType ¶
func (x *ProtoOAGetDynamicLeverageByIDReq) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAGetDynamicLeverageByIDReq) ProtoMessage ¶
func (*ProtoOAGetDynamicLeverageByIDReq) ProtoMessage()
func (*ProtoOAGetDynamicLeverageByIDReq) ProtoReflect ¶
func (x *ProtoOAGetDynamicLeverageByIDReq) ProtoReflect() protoreflect.Message
func (*ProtoOAGetDynamicLeverageByIDReq) Reset ¶
func (x *ProtoOAGetDynamicLeverageByIDReq) Reset()
func (*ProtoOAGetDynamicLeverageByIDReq) String ¶
func (x *ProtoOAGetDynamicLeverageByIDReq) String() string
type ProtoOAGetDynamicLeverageByIDRes ¶
type ProtoOAGetDynamicLeverageByIDRes struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2178" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. Leverage *ProtoOADynamicLeverage `protobuf:"bytes,3,req,name=leverage" json:"leverage,omitempty"` // contains filtered or unexported fields }
* Response to the ProtoOAGetDynamicLeverageByIDReq request.
func (*ProtoOAGetDynamicLeverageByIDRes) Descriptor
deprecated
func (*ProtoOAGetDynamicLeverageByIDRes) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAGetDynamicLeverageByIDRes.ProtoReflect.Descriptor instead.
func (*ProtoOAGetDynamicLeverageByIDRes) GetCtidTraderAccountId ¶
func (x *ProtoOAGetDynamicLeverageByIDRes) GetCtidTraderAccountId() int64
func (*ProtoOAGetDynamicLeverageByIDRes) GetLeverage ¶
func (x *ProtoOAGetDynamicLeverageByIDRes) GetLeverage() *ProtoOADynamicLeverage
func (*ProtoOAGetDynamicLeverageByIDRes) GetPayloadType ¶
func (x *ProtoOAGetDynamicLeverageByIDRes) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAGetDynamicLeverageByIDRes) ProtoMessage ¶
func (*ProtoOAGetDynamicLeverageByIDRes) ProtoMessage()
func (*ProtoOAGetDynamicLeverageByIDRes) ProtoReflect ¶
func (x *ProtoOAGetDynamicLeverageByIDRes) ProtoReflect() protoreflect.Message
func (*ProtoOAGetDynamicLeverageByIDRes) Reset ¶
func (x *ProtoOAGetDynamicLeverageByIDRes) Reset()
func (*ProtoOAGetDynamicLeverageByIDRes) String ¶
func (x *ProtoOAGetDynamicLeverageByIDRes) String() string
type ProtoOAGetPositionUnrealizedPnLReq ¶
type ProtoOAGetPositionUnrealizedPnLReq struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2187" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // The unique identifier of the trader's account in cTrader platform. // contains filtered or unexported fields }
* Request for getting trader's positions' unrealized PnLs.
func (*ProtoOAGetPositionUnrealizedPnLReq) Descriptor
deprecated
func (*ProtoOAGetPositionUnrealizedPnLReq) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAGetPositionUnrealizedPnLReq.ProtoReflect.Descriptor instead.
func (*ProtoOAGetPositionUnrealizedPnLReq) GetCtidTraderAccountId ¶
func (x *ProtoOAGetPositionUnrealizedPnLReq) GetCtidTraderAccountId() int64
func (*ProtoOAGetPositionUnrealizedPnLReq) GetPayloadType ¶
func (x *ProtoOAGetPositionUnrealizedPnLReq) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAGetPositionUnrealizedPnLReq) ProtoMessage ¶
func (*ProtoOAGetPositionUnrealizedPnLReq) ProtoMessage()
func (*ProtoOAGetPositionUnrealizedPnLReq) ProtoReflect ¶
func (x *ProtoOAGetPositionUnrealizedPnLReq) ProtoReflect() protoreflect.Message
func (*ProtoOAGetPositionUnrealizedPnLReq) Reset ¶
func (x *ProtoOAGetPositionUnrealizedPnLReq) Reset()
func (*ProtoOAGetPositionUnrealizedPnLReq) String ¶
func (x *ProtoOAGetPositionUnrealizedPnLReq) String() string
type ProtoOAGetPositionUnrealizedPnLRes ¶
type ProtoOAGetPositionUnrealizedPnLRes struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2188" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // The unique identifier of the trader's account in cTrader platform. PositionUnrealizedPnL []*ProtoOAPositionUnrealizedPnL `protobuf:"bytes,3,rep,name=positionUnrealizedPnL" json:"positionUnrealizedPnL,omitempty"` // Information about trader's positions' unrealized PnLs. MoneyDigits *uint32 `protobuf:"varint,4,req,name=moneyDigits" json:"moneyDigits,omitempty"` // Specifies the exponent of various monetary values. E.g., moneyDigits = 8 should be interpreted as the value multiplied by 10^8 with the 'real' value equal to 10053099944 / 10^8 = 100.53099944. Affects positionUnrealizedPnL.grossUnrealizedPnL, positionUnrealizedPnL.netUnrealizedPnL. // contains filtered or unexported fields }
* Response to ProtoOAGetPositionUnrealizedPnLReq request.
func (*ProtoOAGetPositionUnrealizedPnLRes) Descriptor
deprecated
func (*ProtoOAGetPositionUnrealizedPnLRes) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAGetPositionUnrealizedPnLRes.ProtoReflect.Descriptor instead.
func (*ProtoOAGetPositionUnrealizedPnLRes) GetCtidTraderAccountId ¶
func (x *ProtoOAGetPositionUnrealizedPnLRes) GetCtidTraderAccountId() int64
func (*ProtoOAGetPositionUnrealizedPnLRes) GetMoneyDigits ¶
func (x *ProtoOAGetPositionUnrealizedPnLRes) GetMoneyDigits() uint32
func (*ProtoOAGetPositionUnrealizedPnLRes) GetPayloadType ¶
func (x *ProtoOAGetPositionUnrealizedPnLRes) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAGetPositionUnrealizedPnLRes) GetPositionUnrealizedPnL ¶
func (x *ProtoOAGetPositionUnrealizedPnLRes) GetPositionUnrealizedPnL() []*ProtoOAPositionUnrealizedPnL
func (*ProtoOAGetPositionUnrealizedPnLRes) ProtoMessage ¶
func (*ProtoOAGetPositionUnrealizedPnLRes) ProtoMessage()
func (*ProtoOAGetPositionUnrealizedPnLRes) ProtoReflect ¶
func (x *ProtoOAGetPositionUnrealizedPnLRes) ProtoReflect() protoreflect.Message
func (*ProtoOAGetPositionUnrealizedPnLRes) Reset ¶
func (x *ProtoOAGetPositionUnrealizedPnLRes) Reset()
func (*ProtoOAGetPositionUnrealizedPnLRes) String ¶
func (x *ProtoOAGetPositionUnrealizedPnLRes) String() string
type ProtoOAGetTickDataReq ¶
type ProtoOAGetTickDataReq struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2145" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. SymbolId *int64 `protobuf:"varint,3,req,name=symbolId" json:"symbolId,omitempty"` // Unique identifier of the Symbol in cTrader platform. Type *ProtoOAQuoteType `protobuf:"varint,4,req,name=type,enum=ProtoOAQuoteType" json:"type,omitempty"` // Bid/Ask (1/2). FromTimestamp *int64 `protobuf:"varint,5,opt,name=fromTimestamp" json:"fromTimestamp,omitempty"` // The Unix time in milliseconds of starting the search. Must be bigger or equal to zero (1st Jan 1970). ToTimestamp *int64 `protobuf:"varint,6,opt,name=toTimestamp" json:"toTimestamp,omitempty"` // The Unix time in milliseconds of finishing the search. <= 2147483646000 (19th Jan 2038). // contains filtered or unexported fields }
* Request for getting historical tick data for the symbol.
func (*ProtoOAGetTickDataReq) Descriptor
deprecated
func (*ProtoOAGetTickDataReq) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAGetTickDataReq.ProtoReflect.Descriptor instead.
func (*ProtoOAGetTickDataReq) GetCtidTraderAccountId ¶
func (x *ProtoOAGetTickDataReq) GetCtidTraderAccountId() int64
func (*ProtoOAGetTickDataReq) GetFromTimestamp ¶
func (x *ProtoOAGetTickDataReq) GetFromTimestamp() int64
func (*ProtoOAGetTickDataReq) GetPayloadType ¶
func (x *ProtoOAGetTickDataReq) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAGetTickDataReq) GetSymbolId ¶
func (x *ProtoOAGetTickDataReq) GetSymbolId() int64
func (*ProtoOAGetTickDataReq) GetToTimestamp ¶
func (x *ProtoOAGetTickDataReq) GetToTimestamp() int64
func (*ProtoOAGetTickDataReq) GetType ¶
func (x *ProtoOAGetTickDataReq) GetType() ProtoOAQuoteType
func (*ProtoOAGetTickDataReq) ProtoMessage ¶
func (*ProtoOAGetTickDataReq) ProtoMessage()
func (*ProtoOAGetTickDataReq) ProtoReflect ¶
func (x *ProtoOAGetTickDataReq) ProtoReflect() protoreflect.Message
func (*ProtoOAGetTickDataReq) Reset ¶
func (x *ProtoOAGetTickDataReq) Reset()
func (*ProtoOAGetTickDataReq) String ¶
func (x *ProtoOAGetTickDataReq) String() string
type ProtoOAGetTickDataRes ¶
type ProtoOAGetTickDataRes struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2146" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. TickData []*ProtoOATickData `protobuf:"bytes,3,rep,name=tickData" json:"tickData,omitempty"` // The list of ticks is in chronological order (newest first). The first tick contains Unix time in milliseconds while all subsequent ticks have the time difference in milliseconds between the previous and the current one. HasMore *bool `protobuf:"varint,4,req,name=hasMore" json:"hasMore,omitempty"` // If TRUE then the number of records by filter is larger than chunkSize, the response contains the number of records that is equal to chunkSize. // contains filtered or unexported fields }
* Response to the ProtoOAGetTickDataReq request.
func (*ProtoOAGetTickDataRes) Descriptor
deprecated
func (*ProtoOAGetTickDataRes) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAGetTickDataRes.ProtoReflect.Descriptor instead.
func (*ProtoOAGetTickDataRes) GetCtidTraderAccountId ¶
func (x *ProtoOAGetTickDataRes) GetCtidTraderAccountId() int64
func (*ProtoOAGetTickDataRes) GetHasMore ¶
func (x *ProtoOAGetTickDataRes) GetHasMore() bool
func (*ProtoOAGetTickDataRes) GetPayloadType ¶
func (x *ProtoOAGetTickDataRes) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAGetTickDataRes) GetTickData ¶
func (x *ProtoOAGetTickDataRes) GetTickData() []*ProtoOATickData
func (*ProtoOAGetTickDataRes) ProtoMessage ¶
func (*ProtoOAGetTickDataRes) ProtoMessage()
func (*ProtoOAGetTickDataRes) ProtoReflect ¶
func (x *ProtoOAGetTickDataRes) ProtoReflect() protoreflect.Message
func (*ProtoOAGetTickDataRes) Reset ¶
func (x *ProtoOAGetTickDataRes) Reset()
func (*ProtoOAGetTickDataRes) String ¶
func (x *ProtoOAGetTickDataRes) String() string
type ProtoOAGetTrendbarsReq ¶
type ProtoOAGetTrendbarsReq struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2137" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. FromTimestamp *int64 `protobuf:"varint,3,opt,name=fromTimestamp" json:"fromTimestamp,omitempty"` // The Unix time in milliseconds from which the search starts. Must be bigger or equal to zero (1st Jan 1970). ToTimestamp *int64 `protobuf:"varint,4,opt,name=toTimestamp" json:"toTimestamp,omitempty"` // The Unix time in milliseconds of finishing the search. Smaller or equal to 2147483646000 (19th Jan 2038). Period *ProtoOATrendbarPeriod `protobuf:"varint,5,req,name=period,enum=ProtoOATrendbarPeriod" json:"period,omitempty"` // Specifies period of trend bar series (e.g. M1, M10, etc.). SymbolId *int64 `protobuf:"varint,6,req,name=symbolId" json:"symbolId,omitempty"` // Unique identifier of the Symbol in cTrader platform. Count *uint32 `protobuf:"varint,7,opt,name=count" json:"count,omitempty"` // Limit number of trend bars in response back from toTimestamp. // contains filtered or unexported fields }
* Request for getting historical trend bars for the symbol.
func (*ProtoOAGetTrendbarsReq) Descriptor
deprecated
func (*ProtoOAGetTrendbarsReq) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAGetTrendbarsReq.ProtoReflect.Descriptor instead.
func (*ProtoOAGetTrendbarsReq) GetCount ¶
func (x *ProtoOAGetTrendbarsReq) GetCount() uint32
func (*ProtoOAGetTrendbarsReq) GetCtidTraderAccountId ¶
func (x *ProtoOAGetTrendbarsReq) GetCtidTraderAccountId() int64
func (*ProtoOAGetTrendbarsReq) GetFromTimestamp ¶
func (x *ProtoOAGetTrendbarsReq) GetFromTimestamp() int64
func (*ProtoOAGetTrendbarsReq) GetPayloadType ¶
func (x *ProtoOAGetTrendbarsReq) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAGetTrendbarsReq) GetPeriod ¶
func (x *ProtoOAGetTrendbarsReq) GetPeriod() ProtoOATrendbarPeriod
func (*ProtoOAGetTrendbarsReq) GetSymbolId ¶
func (x *ProtoOAGetTrendbarsReq) GetSymbolId() int64
func (*ProtoOAGetTrendbarsReq) GetToTimestamp ¶
func (x *ProtoOAGetTrendbarsReq) GetToTimestamp() int64
func (*ProtoOAGetTrendbarsReq) ProtoMessage ¶
func (*ProtoOAGetTrendbarsReq) ProtoMessage()
func (*ProtoOAGetTrendbarsReq) ProtoReflect ¶
func (x *ProtoOAGetTrendbarsReq) ProtoReflect() protoreflect.Message
func (*ProtoOAGetTrendbarsReq) Reset ¶
func (x *ProtoOAGetTrendbarsReq) Reset()
func (*ProtoOAGetTrendbarsReq) String ¶
func (x *ProtoOAGetTrendbarsReq) String() string
type ProtoOAGetTrendbarsRes ¶
type ProtoOAGetTrendbarsRes struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2138" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. Period *ProtoOATrendbarPeriod `protobuf:"varint,3,req,name=period,enum=ProtoOATrendbarPeriod" json:"period,omitempty"` // Specifies period of trend bar series (e.g. M1, M10, etc.). // Deprecated: Do not use. Timestamp *int64 `protobuf:"varint,4,opt,name=timestamp" json:"timestamp,omitempty"` // Simply don't use this field, as your original request already contains toTimestamp. Trendbar []*ProtoOATrendbar `protobuf:"bytes,5,rep,name=trendbar" json:"trendbar,omitempty"` // The list of trend bars. SymbolId *int64 `protobuf:"varint,6,opt,name=symbolId" json:"symbolId,omitempty"` // Unique identifier of the Symbol in cTrader platform. HasMore *bool `protobuf:"varint,7,opt,name=hasMore" json:"hasMore,omitempty"` // If TRUE then the number of records by filter is larger than chunkSize, the response contains the number of records that is equal to chunkSize. // contains filtered or unexported fields }
* Response to the ProtoOAGetTrendbarsReq request.
func (*ProtoOAGetTrendbarsRes) Descriptor
deprecated
func (*ProtoOAGetTrendbarsRes) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAGetTrendbarsRes.ProtoReflect.Descriptor instead.
func (*ProtoOAGetTrendbarsRes) GetCtidTraderAccountId ¶
func (x *ProtoOAGetTrendbarsRes) GetCtidTraderAccountId() int64
func (*ProtoOAGetTrendbarsRes) GetHasMore ¶
func (x *ProtoOAGetTrendbarsRes) GetHasMore() bool
func (*ProtoOAGetTrendbarsRes) GetPayloadType ¶
func (x *ProtoOAGetTrendbarsRes) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAGetTrendbarsRes) GetPeriod ¶
func (x *ProtoOAGetTrendbarsRes) GetPeriod() ProtoOATrendbarPeriod
func (*ProtoOAGetTrendbarsRes) GetSymbolId ¶
func (x *ProtoOAGetTrendbarsRes) GetSymbolId() int64
func (*ProtoOAGetTrendbarsRes) GetTimestamp
deprecated
func (x *ProtoOAGetTrendbarsRes) GetTimestamp() int64
Deprecated: Do not use.
func (*ProtoOAGetTrendbarsRes) GetTrendbar ¶
func (x *ProtoOAGetTrendbarsRes) GetTrendbar() []*ProtoOATrendbar
func (*ProtoOAGetTrendbarsRes) ProtoMessage ¶
func (*ProtoOAGetTrendbarsRes) ProtoMessage()
func (*ProtoOAGetTrendbarsRes) ProtoReflect ¶
func (x *ProtoOAGetTrendbarsRes) ProtoReflect() protoreflect.Message
func (*ProtoOAGetTrendbarsRes) Reset ¶
func (x *ProtoOAGetTrendbarsRes) Reset()
func (*ProtoOAGetTrendbarsRes) String ¶
func (x *ProtoOAGetTrendbarsRes) String() string
type ProtoOAHoliday ¶
type ProtoOAHoliday struct { HolidayId *int64 `protobuf:"varint,1,req,name=holidayId" json:"holidayId,omitempty"` // Unique ID of holiday. Name *string `protobuf:"bytes,2,req,name=name" json:"name,omitempty"` // Name of holiday. Description *string `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"` // Description of holiday. ScheduleTimeZone *string `protobuf:"bytes,4,req,name=scheduleTimeZone" json:"scheduleTimeZone,omitempty"` // Timezone used for holiday. HolidayDate *int64 `protobuf:"varint,5,req,name=holidayDate" json:"holidayDate,omitempty"` // Amount of days from 1st Jan 1970, multiply it by 86400000 to get Unix time in milliseconds. IsRecurring *bool `protobuf:"varint,6,req,name=isRecurring" json:"isRecurring,omitempty"` // If TRUE, then the holiday happens each year. StartSecond *int32 `protobuf:"varint,7,opt,name=startSecond" json:"startSecond,omitempty"` // Amount of seconds from 00:00:00 of the holiday day when holiday actually starts. EndSecond *int32 `protobuf:"varint,8,opt,name=endSecond" json:"endSecond,omitempty"` // Amount of seconds from 00:00:00 of the holiday day when holiday actually finishes. // contains filtered or unexported fields }
func (*ProtoOAHoliday) Descriptor
deprecated
func (*ProtoOAHoliday) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAHoliday.ProtoReflect.Descriptor instead.
func (*ProtoOAHoliday) GetDescription ¶
func (x *ProtoOAHoliday) GetDescription() string
func (*ProtoOAHoliday) GetEndSecond ¶
func (x *ProtoOAHoliday) GetEndSecond() int32
func (*ProtoOAHoliday) GetHolidayDate ¶
func (x *ProtoOAHoliday) GetHolidayDate() int64
func (*ProtoOAHoliday) GetHolidayId ¶
func (x *ProtoOAHoliday) GetHolidayId() int64
func (*ProtoOAHoliday) GetIsRecurring ¶
func (x *ProtoOAHoliday) GetIsRecurring() bool
func (*ProtoOAHoliday) GetName ¶
func (x *ProtoOAHoliday) GetName() string
func (*ProtoOAHoliday) GetScheduleTimeZone ¶
func (x *ProtoOAHoliday) GetScheduleTimeZone() string
func (*ProtoOAHoliday) GetStartSecond ¶
func (x *ProtoOAHoliday) GetStartSecond() int32
func (*ProtoOAHoliday) ProtoMessage ¶
func (*ProtoOAHoliday) ProtoMessage()
func (*ProtoOAHoliday) ProtoReflect ¶
func (x *ProtoOAHoliday) ProtoReflect() protoreflect.Message
func (*ProtoOAHoliday) Reset ¶
func (x *ProtoOAHoliday) Reset()
func (*ProtoOAHoliday) String ¶
func (x *ProtoOAHoliday) String() string
type ProtoOAInterval ¶
type ProtoOAInterval struct { StartSecond *uint32 `protobuf:"varint,3,req,name=startSecond" json:"startSecond,omitempty"` // Interval start, specified in seconds starting from SUNDAY 00:00 in specified time zone (inclusive to the interval). EndSecond *uint32 `protobuf:"varint,4,req,name=endSecond" json:"endSecond,omitempty"` // Interval end, specified in seconds starting from SUNDAY 00:00 in specified time zone (exclusive from the interval). // contains filtered or unexported fields }
* Symbol trading session entity.
func (*ProtoOAInterval) Descriptor
deprecated
func (*ProtoOAInterval) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAInterval.ProtoReflect.Descriptor instead.
func (*ProtoOAInterval) GetEndSecond ¶
func (x *ProtoOAInterval) GetEndSecond() uint32
func (*ProtoOAInterval) GetStartSecond ¶
func (x *ProtoOAInterval) GetStartSecond() uint32
func (*ProtoOAInterval) ProtoMessage ¶
func (*ProtoOAInterval) ProtoMessage()
func (*ProtoOAInterval) ProtoReflect ¶
func (x *ProtoOAInterval) ProtoReflect() protoreflect.Message
func (*ProtoOAInterval) Reset ¶
func (x *ProtoOAInterval) Reset()
func (*ProtoOAInterval) String ¶
func (x *ProtoOAInterval) String() string
type ProtoOALightSymbol ¶
type ProtoOALightSymbol struct { SymbolId *int64 `protobuf:"varint,1,req,name=symbolId" json:"symbolId,omitempty"` // The unique identifier of the symbol in specific server environment within cTrader platform. Different brokers might have different IDs. SymbolName *string `protobuf:"bytes,2,opt,name=symbolName" json:"symbolName,omitempty"` // Name of the symbol (e.g. EUR/USD). Enabled *bool `protobuf:"varint,3,opt,name=enabled" json:"enabled,omitempty"` // If TRUE then symbol is visible for traders. BaseAssetId *int64 `protobuf:"varint,4,opt,name=baseAssetId" json:"baseAssetId,omitempty"` // Base asset. QuoteAssetId *int64 `protobuf:"varint,5,opt,name=quoteAssetId" json:"quoteAssetId,omitempty"` // Quote asset. SymbolCategoryId *int64 `protobuf:"varint,6,opt,name=symbolCategoryId" json:"symbolCategoryId,omitempty"` // Id of the symbol category used for symbols grouping. Description *string `protobuf:"bytes,7,opt,name=description" json:"description,omitempty"` SortingNumber *float64 `protobuf:"fixed64,8,opt,name=sortingNumber" json:"sortingNumber,omitempty"` // The number used for sorting Symbols in the UI (lowest number should appear at the top). // contains filtered or unexported fields }
* Lightweight symbol entity.
func (*ProtoOALightSymbol) Descriptor
deprecated
func (*ProtoOALightSymbol) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOALightSymbol.ProtoReflect.Descriptor instead.
func (*ProtoOALightSymbol) GetBaseAssetId ¶
func (x *ProtoOALightSymbol) GetBaseAssetId() int64
func (*ProtoOALightSymbol) GetDescription ¶
func (x *ProtoOALightSymbol) GetDescription() string
func (*ProtoOALightSymbol) GetEnabled ¶
func (x *ProtoOALightSymbol) GetEnabled() bool
func (*ProtoOALightSymbol) GetQuoteAssetId ¶
func (x *ProtoOALightSymbol) GetQuoteAssetId() int64
func (*ProtoOALightSymbol) GetSortingNumber ¶
func (x *ProtoOALightSymbol) GetSortingNumber() float64
func (*ProtoOALightSymbol) GetSymbolCategoryId ¶
func (x *ProtoOALightSymbol) GetSymbolCategoryId() int64
func (*ProtoOALightSymbol) GetSymbolId ¶
func (x *ProtoOALightSymbol) GetSymbolId() int64
func (*ProtoOALightSymbol) GetSymbolName ¶
func (x *ProtoOALightSymbol) GetSymbolName() string
func (*ProtoOALightSymbol) ProtoMessage ¶
func (*ProtoOALightSymbol) ProtoMessage()
func (*ProtoOALightSymbol) ProtoReflect ¶
func (x *ProtoOALightSymbol) ProtoReflect() protoreflect.Message
func (*ProtoOALightSymbol) Reset ¶
func (x *ProtoOALightSymbol) Reset()
func (*ProtoOALightSymbol) String ¶
func (x *ProtoOALightSymbol) String() string
type ProtoOALimitedRiskMarginCalculationStrategy ¶
type ProtoOALimitedRiskMarginCalculationStrategy int32
const ( ProtoOALimitedRiskMarginCalculationStrategy_ACCORDING_TO_LEVERAGE ProtoOALimitedRiskMarginCalculationStrategy = 0 ProtoOALimitedRiskMarginCalculationStrategy_ACCORDING_TO_GSL ProtoOALimitedRiskMarginCalculationStrategy = 1 ProtoOALimitedRiskMarginCalculationStrategy_ACCORDING_TO_GSL_AND_LEVERAGE ProtoOALimitedRiskMarginCalculationStrategy = 2 )
func (ProtoOALimitedRiskMarginCalculationStrategy) Descriptor ¶
func (ProtoOALimitedRiskMarginCalculationStrategy) Descriptor() protoreflect.EnumDescriptor
func (ProtoOALimitedRiskMarginCalculationStrategy) EnumDescriptor
deprecated
func (ProtoOALimitedRiskMarginCalculationStrategy) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProtoOALimitedRiskMarginCalculationStrategy.Descriptor instead.
func (ProtoOALimitedRiskMarginCalculationStrategy) Number ¶
func (x ProtoOALimitedRiskMarginCalculationStrategy) Number() protoreflect.EnumNumber
func (ProtoOALimitedRiskMarginCalculationStrategy) String ¶
func (x ProtoOALimitedRiskMarginCalculationStrategy) String() string
func (ProtoOALimitedRiskMarginCalculationStrategy) Type ¶
func (ProtoOALimitedRiskMarginCalculationStrategy) Type() protoreflect.EnumType
func (*ProtoOALimitedRiskMarginCalculationStrategy) UnmarshalJSON
deprecated
func (x *ProtoOALimitedRiskMarginCalculationStrategy) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type ProtoOAMarginCall ¶
type ProtoOAMarginCall struct { MarginCallType *ProtoOANotificationType `protobuf:"varint,1,req,name=marginCallType,enum=ProtoOANotificationType" json:"marginCallType,omitempty"` // Type of margin call. All margin calls are similar, only difference is in marginLevelThreshold. MarginLevelThreshold *float64 `protobuf:"fixed64,2,req,name=marginLevelThreshold" json:"marginLevelThreshold,omitempty"` // Margin level threshold for margin call. UtcLastUpdateTimestamp *int64 `protobuf:"varint,3,opt,name=utcLastUpdateTimestamp" json:"utcLastUpdateTimestamp,omitempty"` // The Unix time in milliseconds of the last update of the margin call. // contains filtered or unexported fields }
* Margin call entity, specifies threshold for exact margin call type. Only 3 instances of margin calls are supported, identified by marginCallType. See ProtoOANotificationType for details.
func (*ProtoOAMarginCall) Descriptor
deprecated
func (*ProtoOAMarginCall) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAMarginCall.ProtoReflect.Descriptor instead.
func (*ProtoOAMarginCall) GetMarginCallType ¶
func (x *ProtoOAMarginCall) GetMarginCallType() ProtoOANotificationType
func (*ProtoOAMarginCall) GetMarginLevelThreshold ¶
func (x *ProtoOAMarginCall) GetMarginLevelThreshold() float64
func (*ProtoOAMarginCall) GetUtcLastUpdateTimestamp ¶
func (x *ProtoOAMarginCall) GetUtcLastUpdateTimestamp() int64
func (*ProtoOAMarginCall) ProtoMessage ¶
func (*ProtoOAMarginCall) ProtoMessage()
func (*ProtoOAMarginCall) ProtoReflect ¶
func (x *ProtoOAMarginCall) ProtoReflect() protoreflect.Message
func (*ProtoOAMarginCall) Reset ¶
func (x *ProtoOAMarginCall) Reset()
func (*ProtoOAMarginCall) String ¶
func (x *ProtoOAMarginCall) String() string
type ProtoOAMarginCallListReq ¶
type ProtoOAMarginCallListReq struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2167" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // contains filtered or unexported fields }
* Request for a list of existing margin call thresholds configured for a user.
func (*ProtoOAMarginCallListReq) Descriptor
deprecated
func (*ProtoOAMarginCallListReq) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAMarginCallListReq.ProtoReflect.Descriptor instead.
func (*ProtoOAMarginCallListReq) GetCtidTraderAccountId ¶
func (x *ProtoOAMarginCallListReq) GetCtidTraderAccountId() int64
func (*ProtoOAMarginCallListReq) GetPayloadType ¶
func (x *ProtoOAMarginCallListReq) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAMarginCallListReq) ProtoMessage ¶
func (*ProtoOAMarginCallListReq) ProtoMessage()
func (*ProtoOAMarginCallListReq) ProtoReflect ¶
func (x *ProtoOAMarginCallListReq) ProtoReflect() protoreflect.Message
func (*ProtoOAMarginCallListReq) Reset ¶
func (x *ProtoOAMarginCallListReq) Reset()
func (*ProtoOAMarginCallListReq) String ¶
func (x *ProtoOAMarginCallListReq) String() string
type ProtoOAMarginCallListRes ¶
type ProtoOAMarginCallListRes struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2168" json:"payloadType,omitempty"` MarginCall []*ProtoOAMarginCall `protobuf:"bytes,2,rep,name=marginCall" json:"marginCall,omitempty"` // contains filtered or unexported fields }
* Response with a list of existing user Margin Calls, usually contains 3 items.
func (*ProtoOAMarginCallListRes) Descriptor
deprecated
func (*ProtoOAMarginCallListRes) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAMarginCallListRes.ProtoReflect.Descriptor instead.
func (*ProtoOAMarginCallListRes) GetMarginCall ¶
func (x *ProtoOAMarginCallListRes) GetMarginCall() []*ProtoOAMarginCall
func (*ProtoOAMarginCallListRes) GetPayloadType ¶
func (x *ProtoOAMarginCallListRes) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAMarginCallListRes) ProtoMessage ¶
func (*ProtoOAMarginCallListRes) ProtoMessage()
func (*ProtoOAMarginCallListRes) ProtoReflect ¶
func (x *ProtoOAMarginCallListRes) ProtoReflect() protoreflect.Message
func (*ProtoOAMarginCallListRes) Reset ¶
func (x *ProtoOAMarginCallListRes) Reset()
func (*ProtoOAMarginCallListRes) String ¶
func (x *ProtoOAMarginCallListRes) String() string
type ProtoOAMarginCallTriggerEvent ¶
type ProtoOAMarginCallTriggerEvent struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2172" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` MarginCall *ProtoOAMarginCall `protobuf:"bytes,3,req,name=marginCall" json:"marginCall,omitempty"` // contains filtered or unexported fields }
* Event that is sent when account margin level reaches target marginLevelThreshold. Event is sent no more than once every 10 minutes to avoid spamming.
func (*ProtoOAMarginCallTriggerEvent) Descriptor
deprecated
func (*ProtoOAMarginCallTriggerEvent) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAMarginCallTriggerEvent.ProtoReflect.Descriptor instead.
func (*ProtoOAMarginCallTriggerEvent) GetCtidTraderAccountId ¶
func (x *ProtoOAMarginCallTriggerEvent) GetCtidTraderAccountId() int64
func (*ProtoOAMarginCallTriggerEvent) GetMarginCall ¶
func (x *ProtoOAMarginCallTriggerEvent) GetMarginCall() *ProtoOAMarginCall
func (*ProtoOAMarginCallTriggerEvent) GetPayloadType ¶
func (x *ProtoOAMarginCallTriggerEvent) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAMarginCallTriggerEvent) ProtoMessage ¶
func (*ProtoOAMarginCallTriggerEvent) ProtoMessage()
func (*ProtoOAMarginCallTriggerEvent) ProtoReflect ¶
func (x *ProtoOAMarginCallTriggerEvent) ProtoReflect() protoreflect.Message
func (*ProtoOAMarginCallTriggerEvent) Reset ¶
func (x *ProtoOAMarginCallTriggerEvent) Reset()
func (*ProtoOAMarginCallTriggerEvent) String ¶
func (x *ProtoOAMarginCallTriggerEvent) String() string
type ProtoOAMarginCallUpdateEvent ¶
type ProtoOAMarginCallUpdateEvent struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2171" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` MarginCall *ProtoOAMarginCall `protobuf:"bytes,3,req,name=marginCall" json:"marginCall,omitempty"` // contains filtered or unexported fields }
* Event that is sent when a Margin Call threshold configuration is updated.
func (*ProtoOAMarginCallUpdateEvent) Descriptor
deprecated
func (*ProtoOAMarginCallUpdateEvent) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAMarginCallUpdateEvent.ProtoReflect.Descriptor instead.
func (*ProtoOAMarginCallUpdateEvent) GetCtidTraderAccountId ¶
func (x *ProtoOAMarginCallUpdateEvent) GetCtidTraderAccountId() int64
func (*ProtoOAMarginCallUpdateEvent) GetMarginCall ¶
func (x *ProtoOAMarginCallUpdateEvent) GetMarginCall() *ProtoOAMarginCall
func (*ProtoOAMarginCallUpdateEvent) GetPayloadType ¶
func (x *ProtoOAMarginCallUpdateEvent) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAMarginCallUpdateEvent) ProtoMessage ¶
func (*ProtoOAMarginCallUpdateEvent) ProtoMessage()
func (*ProtoOAMarginCallUpdateEvent) ProtoReflect ¶
func (x *ProtoOAMarginCallUpdateEvent) ProtoReflect() protoreflect.Message
func (*ProtoOAMarginCallUpdateEvent) Reset ¶
func (x *ProtoOAMarginCallUpdateEvent) Reset()
func (*ProtoOAMarginCallUpdateEvent) String ¶
func (x *ProtoOAMarginCallUpdateEvent) String() string
type ProtoOAMarginCallUpdateReq ¶
type ProtoOAMarginCallUpdateReq struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2169" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` MarginCall *ProtoOAMarginCall `protobuf:"bytes,3,req,name=marginCall" json:"marginCall,omitempty"` // contains filtered or unexported fields }
* Request to modify marginLevelThreshold of specified marginCallType for ctidTraderAccountId.
func (*ProtoOAMarginCallUpdateReq) Descriptor
deprecated
func (*ProtoOAMarginCallUpdateReq) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAMarginCallUpdateReq.ProtoReflect.Descriptor instead.
func (*ProtoOAMarginCallUpdateReq) GetCtidTraderAccountId ¶
func (x *ProtoOAMarginCallUpdateReq) GetCtidTraderAccountId() int64
func (*ProtoOAMarginCallUpdateReq) GetMarginCall ¶
func (x *ProtoOAMarginCallUpdateReq) GetMarginCall() *ProtoOAMarginCall
func (*ProtoOAMarginCallUpdateReq) GetPayloadType ¶
func (x *ProtoOAMarginCallUpdateReq) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAMarginCallUpdateReq) ProtoMessage ¶
func (*ProtoOAMarginCallUpdateReq) ProtoMessage()
func (*ProtoOAMarginCallUpdateReq) ProtoReflect ¶
func (x *ProtoOAMarginCallUpdateReq) ProtoReflect() protoreflect.Message
func (*ProtoOAMarginCallUpdateReq) Reset ¶
func (x *ProtoOAMarginCallUpdateReq) Reset()
func (*ProtoOAMarginCallUpdateReq) String ¶
func (x *ProtoOAMarginCallUpdateReq) String() string
type ProtoOAMarginCallUpdateRes ¶
type ProtoOAMarginCallUpdateRes struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2170" json:"payloadType,omitempty"` // contains filtered or unexported fields }
* If this response received, it means that margin call was successfully updated.
func (*ProtoOAMarginCallUpdateRes) Descriptor
deprecated
func (*ProtoOAMarginCallUpdateRes) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAMarginCallUpdateRes.ProtoReflect.Descriptor instead.
func (*ProtoOAMarginCallUpdateRes) GetPayloadType ¶
func (x *ProtoOAMarginCallUpdateRes) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAMarginCallUpdateRes) ProtoMessage ¶
func (*ProtoOAMarginCallUpdateRes) ProtoMessage()
func (*ProtoOAMarginCallUpdateRes) ProtoReflect ¶
func (x *ProtoOAMarginCallUpdateRes) ProtoReflect() protoreflect.Message
func (*ProtoOAMarginCallUpdateRes) Reset ¶
func (x *ProtoOAMarginCallUpdateRes) Reset()
func (*ProtoOAMarginCallUpdateRes) String ¶
func (x *ProtoOAMarginCallUpdateRes) String() string
type ProtoOAMarginChangedEvent ¶
type ProtoOAMarginChangedEvent struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2141" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. PositionId *uint64 `protobuf:"varint,3,req,name=positionId" json:"positionId,omitempty"` // The unique ID of the position. UsedMargin *uint64 `protobuf:"varint,4,req,name=usedMargin" json:"usedMargin,omitempty"` // The new value of the margin used. MoneyDigits *uint32 `protobuf:"varint,5,opt,name=moneyDigits" json:"moneyDigits,omitempty"` // Specifies the exponent of the monetary values. E.g. moneyDigits = 8 must be interpret as business value multiplied by 10^8, then real balance would be 10053099944 / 10^8 = 100.53099944. Affects usedMargin. // contains filtered or unexported fields }
* Event that is sent when the margin allocated to a specific position is changed.
func (*ProtoOAMarginChangedEvent) Descriptor
deprecated
func (*ProtoOAMarginChangedEvent) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAMarginChangedEvent.ProtoReflect.Descriptor instead.
func (*ProtoOAMarginChangedEvent) GetCtidTraderAccountId ¶
func (x *ProtoOAMarginChangedEvent) GetCtidTraderAccountId() int64
func (*ProtoOAMarginChangedEvent) GetMoneyDigits ¶
func (x *ProtoOAMarginChangedEvent) GetMoneyDigits() uint32
func (*ProtoOAMarginChangedEvent) GetPayloadType ¶
func (x *ProtoOAMarginChangedEvent) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAMarginChangedEvent) GetPositionId ¶
func (x *ProtoOAMarginChangedEvent) GetPositionId() uint64
func (*ProtoOAMarginChangedEvent) GetUsedMargin ¶
func (x *ProtoOAMarginChangedEvent) GetUsedMargin() uint64
func (*ProtoOAMarginChangedEvent) ProtoMessage ¶
func (*ProtoOAMarginChangedEvent) ProtoMessage()
func (*ProtoOAMarginChangedEvent) ProtoReflect ¶
func (x *ProtoOAMarginChangedEvent) ProtoReflect() protoreflect.Message
func (*ProtoOAMarginChangedEvent) Reset ¶
func (x *ProtoOAMarginChangedEvent) Reset()
func (*ProtoOAMarginChangedEvent) String ¶
func (x *ProtoOAMarginChangedEvent) String() string
type ProtoOAMinCommissionType ¶
type ProtoOAMinCommissionType int32
* Enum for specifying type of minimum trading commission.
const ( ProtoOAMinCommissionType_CURRENCY ProtoOAMinCommissionType = 1 ProtoOAMinCommissionType_QUOTE_CURRENCY ProtoOAMinCommissionType = 2 )
func (ProtoOAMinCommissionType) Descriptor ¶
func (ProtoOAMinCommissionType) Descriptor() protoreflect.EnumDescriptor
func (ProtoOAMinCommissionType) Enum ¶
func (x ProtoOAMinCommissionType) Enum() *ProtoOAMinCommissionType
func (ProtoOAMinCommissionType) EnumDescriptor
deprecated
func (ProtoOAMinCommissionType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProtoOAMinCommissionType.Descriptor instead.
func (ProtoOAMinCommissionType) Number ¶
func (x ProtoOAMinCommissionType) Number() protoreflect.EnumNumber
func (ProtoOAMinCommissionType) String ¶
func (x ProtoOAMinCommissionType) String() string
func (ProtoOAMinCommissionType) Type ¶
func (ProtoOAMinCommissionType) Type() protoreflect.EnumType
func (*ProtoOAMinCommissionType) UnmarshalJSON
deprecated
func (x *ProtoOAMinCommissionType) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type ProtoOANewOrderReq ¶
type ProtoOANewOrderReq struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2106" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // The unique identifier of the trader's account in cTrader platform. SymbolId *int64 `protobuf:"varint,3,req,name=symbolId" json:"symbolId,omitempty"` // The unique identifier of a symbol in cTrader platform. OrderType *ProtoOAOrderType `protobuf:"varint,4,req,name=orderType,enum=ProtoOAOrderType" json:"orderType,omitempty"` // The type of an order - MARKET, LIMIT, STOP, MARKET_RANGE, STOP_LIMIT. TradeSide *ProtoOATradeSide `protobuf:"varint,5,req,name=tradeSide,enum=ProtoOATradeSide" json:"tradeSide,omitempty"` // The trade direction - BUY or SELL. Volume *int64 `protobuf:"varint,6,req,name=volume" json:"volume,omitempty"` // The volume represented in 0.01 of a unit (e.g. US$ 10.00 = 1000). LimitPrice *float64 `protobuf:"fixed64,7,opt,name=limitPrice" json:"limitPrice,omitempty"` // The limit price, can be specified for the LIMIT order only. StopPrice *float64 `protobuf:"fixed64,8,opt,name=stopPrice" json:"stopPrice,omitempty"` // Stop Price, can be specified for the STOP and the STOP_LIMIT orders only. TimeInForce *ProtoOATimeInForce `protobuf:"varint,9,opt,name=timeInForce,enum=ProtoOATimeInForce,def=2" json:"timeInForce,omitempty"` // The specific order execution or expiration instruction - GOOD_TILL_DATE, GOOD_TILL_CANCEL, IMMEDIATE_OR_CANCEL, FILL_OR_KILL, MARKET_ON_OPEN. ExpirationTimestamp *int64 `protobuf:"varint,10,opt,name=expirationTimestamp" json:"expirationTimestamp,omitempty"` // The Unix time in milliseconds of Order expiration. Should be set for the Good Till Date orders. StopLoss *float64 `protobuf:"fixed64,11,opt,name=stopLoss" json:"stopLoss,omitempty"` // The absolute Stop Loss price (1.23456 for example). Not supported for the MARKER orders. TakeProfit *float64 `protobuf:"fixed64,12,opt,name=takeProfit" json:"takeProfit,omitempty"` // The absolute Take Profit price (1.23456 for example). Unsupported for the MARKER orders. Comment *string `protobuf:"bytes,13,opt,name=comment" json:"comment,omitempty"` // User-specified comment. MaxLength = 512. BaseSlippagePrice *float64 `protobuf:"fixed64,14,opt,name=baseSlippagePrice" json:"baseSlippagePrice,omitempty"` // Base price to calculate relative slippage price for MARKET_RANGE order. SlippageInPoints *int32 `protobuf:"varint,15,opt,name=slippageInPoints" json:"slippageInPoints,omitempty"` // Slippage distance for MARKET_RANGE and STOP_LIMIT order. Label *string `protobuf:"bytes,16,opt,name=label" json:"label,omitempty"` // User-specified label. MaxLength = 100. PositionId *int64 `protobuf:"varint,17,opt,name=positionId" json:"positionId,omitempty"` // Reference to the existing position if the Order is intended to modify it. ClientOrderId *string `protobuf:"bytes,18,opt,name=clientOrderId" json:"clientOrderId,omitempty"` // Optional user-specific clientOrderId (similar to FIX ClOrderID). MaxLength = 50. RelativeStopLoss *int64 `protobuf:"varint,19,opt,name=relativeStopLoss" json:"relativeStopLoss,omitempty"` // Relative Stop Loss that can be specified instead of the absolute as one. Specified in 1/100000 of unit of a price. For BUY stopLoss = entryPrice - relativeStopLoss, for SELL stopLoss = entryPrice + relativeStopLoss. RelativeTakeProfit *int64 `protobuf:"varint,20,opt,name=relativeTakeProfit" json:"relativeTakeProfit,omitempty"` // Relative Take Profit that can be specified instead of the absolute one. Specified in 1/100000 of unit of a price. For BUY takeProfit = entryPrice + relativeTakeProfit, for SELL takeProfit = entryPrice - relativeTakeProfit. GuaranteedStopLoss *bool `protobuf:"varint,21,opt,name=guaranteedStopLoss" json:"guaranteedStopLoss,omitempty"` // If TRUE then stopLoss is guaranteed. Required to be set to TRUE for the Limited Risk accounts (ProtoOATrader.isLimitedRisk=true). TrailingStopLoss *bool `protobuf:"varint,22,opt,name=trailingStopLoss" json:"trailingStopLoss,omitempty"` // If TRUE then the Stop Loss is Trailing. StopTriggerMethod *ProtoOAOrderTriggerMethod `protobuf:"varint,23,opt,name=stopTriggerMethod,enum=ProtoOAOrderTriggerMethod,def=1" json:"stopTriggerMethod,omitempty"` // Trigger method for the STOP or the STOP_LIMIT pending order. // contains filtered or unexported fields }
* Request for sending a new trading order. Allowed only if the accessToken has the "trade" permissions for the trading account.
func (*ProtoOANewOrderReq) Descriptor
deprecated
func (*ProtoOANewOrderReq) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOANewOrderReq.ProtoReflect.Descriptor instead.
func (*ProtoOANewOrderReq) GetBaseSlippagePrice ¶
func (x *ProtoOANewOrderReq) GetBaseSlippagePrice() float64
func (*ProtoOANewOrderReq) GetClientOrderId ¶
func (x *ProtoOANewOrderReq) GetClientOrderId() string
func (*ProtoOANewOrderReq) GetComment ¶
func (x *ProtoOANewOrderReq) GetComment() string
func (*ProtoOANewOrderReq) GetCtidTraderAccountId ¶
func (x *ProtoOANewOrderReq) GetCtidTraderAccountId() int64
func (*ProtoOANewOrderReq) GetExpirationTimestamp ¶
func (x *ProtoOANewOrderReq) GetExpirationTimestamp() int64
func (*ProtoOANewOrderReq) GetGuaranteedStopLoss ¶
func (x *ProtoOANewOrderReq) GetGuaranteedStopLoss() bool
func (*ProtoOANewOrderReq) GetLabel ¶
func (x *ProtoOANewOrderReq) GetLabel() string
func (*ProtoOANewOrderReq) GetLimitPrice ¶
func (x *ProtoOANewOrderReq) GetLimitPrice() float64
func (*ProtoOANewOrderReq) GetOrderType ¶
func (x *ProtoOANewOrderReq) GetOrderType() ProtoOAOrderType
func (*ProtoOANewOrderReq) GetPayloadType ¶
func (x *ProtoOANewOrderReq) GetPayloadType() ProtoOAPayloadType
func (*ProtoOANewOrderReq) GetPositionId ¶
func (x *ProtoOANewOrderReq) GetPositionId() int64
func (*ProtoOANewOrderReq) GetRelativeStopLoss ¶
func (x *ProtoOANewOrderReq) GetRelativeStopLoss() int64
func (*ProtoOANewOrderReq) GetRelativeTakeProfit ¶
func (x *ProtoOANewOrderReq) GetRelativeTakeProfit() int64
func (*ProtoOANewOrderReq) GetSlippageInPoints ¶
func (x *ProtoOANewOrderReq) GetSlippageInPoints() int32
func (*ProtoOANewOrderReq) GetStopLoss ¶
func (x *ProtoOANewOrderReq) GetStopLoss() float64
func (*ProtoOANewOrderReq) GetStopPrice ¶
func (x *ProtoOANewOrderReq) GetStopPrice() float64
func (*ProtoOANewOrderReq) GetStopTriggerMethod ¶
func (x *ProtoOANewOrderReq) GetStopTriggerMethod() ProtoOAOrderTriggerMethod
func (*ProtoOANewOrderReq) GetSymbolId ¶
func (x *ProtoOANewOrderReq) GetSymbolId() int64
func (*ProtoOANewOrderReq) GetTakeProfit ¶
func (x *ProtoOANewOrderReq) GetTakeProfit() float64
func (*ProtoOANewOrderReq) GetTimeInForce ¶
func (x *ProtoOANewOrderReq) GetTimeInForce() ProtoOATimeInForce
func (*ProtoOANewOrderReq) GetTradeSide ¶
func (x *ProtoOANewOrderReq) GetTradeSide() ProtoOATradeSide
func (*ProtoOANewOrderReq) GetTrailingStopLoss ¶
func (x *ProtoOANewOrderReq) GetTrailingStopLoss() bool
func (*ProtoOANewOrderReq) GetVolume ¶
func (x *ProtoOANewOrderReq) GetVolume() int64
func (*ProtoOANewOrderReq) ProtoMessage ¶
func (*ProtoOANewOrderReq) ProtoMessage()
func (*ProtoOANewOrderReq) ProtoReflect ¶
func (x *ProtoOANewOrderReq) ProtoReflect() protoreflect.Message
func (*ProtoOANewOrderReq) Reset ¶
func (x *ProtoOANewOrderReq) Reset()
func (*ProtoOANewOrderReq) String ¶
func (x *ProtoOANewOrderReq) String() string
type ProtoOANotificationType ¶
type ProtoOANotificationType int32
* Type of notification, currently only 3 instances of marginCall are supported.
const ( ProtoOANotificationType_MARGIN_LEVEL_THRESHOLD_1 ProtoOANotificationType = 61 // one of three margin calls, they are all similar. ProtoOANotificationType_MARGIN_LEVEL_THRESHOLD_2 ProtoOANotificationType = 62 // one of three margin calls, they are all similar. ProtoOANotificationType_MARGIN_LEVEL_THRESHOLD_3 ProtoOANotificationType = 63 // one of three margin calls, they are all similar. )
func (ProtoOANotificationType) Descriptor ¶
func (ProtoOANotificationType) Descriptor() protoreflect.EnumDescriptor
func (ProtoOANotificationType) Enum ¶
func (x ProtoOANotificationType) Enum() *ProtoOANotificationType
func (ProtoOANotificationType) EnumDescriptor
deprecated
func (ProtoOANotificationType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProtoOANotificationType.Descriptor instead.
func (ProtoOANotificationType) Number ¶
func (x ProtoOANotificationType) Number() protoreflect.EnumNumber
func (ProtoOANotificationType) String ¶
func (x ProtoOANotificationType) String() string
func (ProtoOANotificationType) Type ¶
func (ProtoOANotificationType) Type() protoreflect.EnumType
func (*ProtoOANotificationType) UnmarshalJSON
deprecated
func (x *ProtoOANotificationType) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type ProtoOAOrder ¶
type ProtoOAOrder struct { OrderId *int64 `protobuf:"varint,1,req,name=orderId" json:"orderId,omitempty"` // The unique ID of the order. Note: trader might have two orders with the same id if orders are taken from accounts from different brokers. TradeData *ProtoOATradeData `protobuf:"bytes,2,req,name=tradeData" json:"tradeData,omitempty"` // Detailed trader data. OrderType *ProtoOAOrderType `protobuf:"varint,3,req,name=orderType,enum=ProtoOAOrderType" json:"orderType,omitempty"` // Order type. OrderStatus *ProtoOAOrderStatus `protobuf:"varint,4,req,name=orderStatus,enum=ProtoOAOrderStatus" json:"orderStatus,omitempty"` // Order status. ExpirationTimestamp *int64 `protobuf:"varint,6,opt,name=expirationTimestamp" json:"expirationTimestamp,omitempty"` // The Unix time in milliseconds of expiration if the order has time in force GTD. ExecutionPrice *float64 `protobuf:"fixed64,7,opt,name=executionPrice" json:"executionPrice,omitempty"` // Price at which an order was executed. For order with FILLED status. ExecutedVolume *int64 `protobuf:"varint,8,opt,name=executedVolume" json:"executedVolume,omitempty"` // Part of the volume that was filled. UtcLastUpdateTimestamp *int64 `protobuf:"varint,9,opt,name=utcLastUpdateTimestamp" json:"utcLastUpdateTimestamp,omitempty"` // The Unix time in milliseconds of the last update of the order. BaseSlippagePrice *float64 `protobuf:"fixed64,10,opt,name=baseSlippagePrice" json:"baseSlippagePrice,omitempty"` // Used for Market Range order with combination of slippageInPoints to specify price range were order can be executed. SlippageInPoints *int64 `protobuf:"varint,11,opt,name=slippageInPoints" json:"slippageInPoints,omitempty"` // Used for Market Range and STOP_LIMIT orders to to specify price range were order can be executed. ClosingOrder *bool `protobuf:"varint,12,opt,name=closingOrder" json:"closingOrder,omitempty"` // If TRUE then the order is closing part of whole position. Must have specified positionId. LimitPrice *float64 `protobuf:"fixed64,13,opt,name=limitPrice" json:"limitPrice,omitempty"` // Valid only for LIMIT orders. StopPrice *float64 `protobuf:"fixed64,14,opt,name=stopPrice" json:"stopPrice,omitempty"` // Valid only for STOP and STOP_LIMIT orders. StopLoss *float64 `protobuf:"fixed64,15,opt,name=stopLoss" json:"stopLoss,omitempty"` // Absolute stopLoss price. TakeProfit *float64 `protobuf:"fixed64,16,opt,name=takeProfit" json:"takeProfit,omitempty"` // Absolute takeProfit price. ClientOrderId *string `protobuf:"bytes,17,opt,name=clientOrderId" json:"clientOrderId,omitempty"` // Optional ClientOrderId. Max Length = 50 chars. TimeInForce *ProtoOATimeInForce `protobuf:"varint,18,opt,name=timeInForce,enum=ProtoOATimeInForce,def=3" json:"timeInForce,omitempty"` // Order's time in force. Depends on order type. PositionId *int64 `protobuf:"varint,19,opt,name=positionId" json:"positionId,omitempty"` // ID of the position linked to the order (e.g. closing order, order that increase volume of a specific position, etc.). RelativeStopLoss *int64 `protobuf:"varint,20,opt,name=relativeStopLoss" json:"relativeStopLoss,omitempty"` // Relative stopLoss that can be specified instead of absolute as one. Specified in 1/100_000 of unit of a price. For BUY stopLoss = entryPrice - relativeStopLoss, for SELL stopLoss = entryPrice + relativeStopLoss. RelativeTakeProfit *int64 `protobuf:"varint,21,opt,name=relativeTakeProfit" json:"relativeTakeProfit,omitempty"` // Relative takeProfit that can be specified instead of absolute one. Specified in 1/100_000 of unit of a price. ForBUY takeProfit = entryPrice + relativeTakeProfit, for SELL takeProfit = entryPrice - relativeTakeProfit. IsStopOut *bool `protobuf:"varint,22,opt,name=isStopOut" json:"isStopOut,omitempty"` // If TRUE then order was stopped out from server side. TrailingStopLoss *bool `protobuf:"varint,23,opt,name=trailingStopLoss" json:"trailingStopLoss,omitempty"` // If TRUE then order is trailingStopLoss. Valid for STOP_LOSS_TAKE_PROFIT order. StopTriggerMethod *ProtoOAOrderTriggerMethod `protobuf:"varint,24,opt,name=stopTriggerMethod,enum=ProtoOAOrderTriggerMethod,def=1" json:"stopTriggerMethod,omitempty"` // Trigger method for the order. Valid only for STOP and STOP_LIMIT orders. // contains filtered or unexported fields }
* Trade order entity.
func (*ProtoOAOrder) Descriptor
deprecated
func (*ProtoOAOrder) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAOrder.ProtoReflect.Descriptor instead.
func (*ProtoOAOrder) GetBaseSlippagePrice ¶
func (x *ProtoOAOrder) GetBaseSlippagePrice() float64
func (*ProtoOAOrder) GetClientOrderId ¶
func (x *ProtoOAOrder) GetClientOrderId() string
func (*ProtoOAOrder) GetClosingOrder ¶
func (x *ProtoOAOrder) GetClosingOrder() bool
func (*ProtoOAOrder) GetExecutedVolume ¶
func (x *ProtoOAOrder) GetExecutedVolume() int64
func (*ProtoOAOrder) GetExecutionPrice ¶
func (x *ProtoOAOrder) GetExecutionPrice() float64
func (*ProtoOAOrder) GetExpirationTimestamp ¶
func (x *ProtoOAOrder) GetExpirationTimestamp() int64
func (*ProtoOAOrder) GetIsStopOut ¶
func (x *ProtoOAOrder) GetIsStopOut() bool
func (*ProtoOAOrder) GetLimitPrice ¶
func (x *ProtoOAOrder) GetLimitPrice() float64
func (*ProtoOAOrder) GetOrderId ¶
func (x *ProtoOAOrder) GetOrderId() int64
func (*ProtoOAOrder) GetOrderStatus ¶
func (x *ProtoOAOrder) GetOrderStatus() ProtoOAOrderStatus
func (*ProtoOAOrder) GetOrderType ¶
func (x *ProtoOAOrder) GetOrderType() ProtoOAOrderType
func (*ProtoOAOrder) GetPositionId ¶
func (x *ProtoOAOrder) GetPositionId() int64
func (*ProtoOAOrder) GetRelativeStopLoss ¶
func (x *ProtoOAOrder) GetRelativeStopLoss() int64
func (*ProtoOAOrder) GetRelativeTakeProfit ¶
func (x *ProtoOAOrder) GetRelativeTakeProfit() int64
func (*ProtoOAOrder) GetSlippageInPoints ¶
func (x *ProtoOAOrder) GetSlippageInPoints() int64
func (*ProtoOAOrder) GetStopLoss ¶
func (x *ProtoOAOrder) GetStopLoss() float64
func (*ProtoOAOrder) GetStopPrice ¶
func (x *ProtoOAOrder) GetStopPrice() float64
func (*ProtoOAOrder) GetStopTriggerMethod ¶
func (x *ProtoOAOrder) GetStopTriggerMethod() ProtoOAOrderTriggerMethod
func (*ProtoOAOrder) GetTakeProfit ¶
func (x *ProtoOAOrder) GetTakeProfit() float64
func (*ProtoOAOrder) GetTimeInForce ¶
func (x *ProtoOAOrder) GetTimeInForce() ProtoOATimeInForce
func (*ProtoOAOrder) GetTradeData ¶
func (x *ProtoOAOrder) GetTradeData() *ProtoOATradeData
func (*ProtoOAOrder) GetTrailingStopLoss ¶
func (x *ProtoOAOrder) GetTrailingStopLoss() bool
func (*ProtoOAOrder) GetUtcLastUpdateTimestamp ¶
func (x *ProtoOAOrder) GetUtcLastUpdateTimestamp() int64
func (*ProtoOAOrder) ProtoMessage ¶
func (*ProtoOAOrder) ProtoMessage()
func (*ProtoOAOrder) ProtoReflect ¶
func (x *ProtoOAOrder) ProtoReflect() protoreflect.Message
func (*ProtoOAOrder) Reset ¶
func (x *ProtoOAOrder) Reset()
func (*ProtoOAOrder) String ¶
func (x *ProtoOAOrder) String() string
type ProtoOAOrderDetailsReq ¶
type ProtoOAOrderDetailsReq struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2181" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. OrderId *int64 `protobuf:"varint,3,req,name=orderId" json:"orderId,omitempty"` // The unique ID of the Order. // contains filtered or unexported fields }
* Request for getting Order and its related Deals.
func (*ProtoOAOrderDetailsReq) Descriptor
deprecated
func (*ProtoOAOrderDetailsReq) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAOrderDetailsReq.ProtoReflect.Descriptor instead.
func (*ProtoOAOrderDetailsReq) GetCtidTraderAccountId ¶
func (x *ProtoOAOrderDetailsReq) GetCtidTraderAccountId() int64
func (*ProtoOAOrderDetailsReq) GetOrderId ¶
func (x *ProtoOAOrderDetailsReq) GetOrderId() int64
func (*ProtoOAOrderDetailsReq) GetPayloadType ¶
func (x *ProtoOAOrderDetailsReq) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAOrderDetailsReq) ProtoMessage ¶
func (*ProtoOAOrderDetailsReq) ProtoMessage()
func (*ProtoOAOrderDetailsReq) ProtoReflect ¶
func (x *ProtoOAOrderDetailsReq) ProtoReflect() protoreflect.Message
func (*ProtoOAOrderDetailsReq) Reset ¶
func (x *ProtoOAOrderDetailsReq) Reset()
func (*ProtoOAOrderDetailsReq) String ¶
func (x *ProtoOAOrderDetailsReq) String() string
type ProtoOAOrderDetailsRes ¶
type ProtoOAOrderDetailsRes struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2182" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. Order *ProtoOAOrder `protobuf:"bytes,3,req,name=order" json:"order,omitempty"` // Order details. Deal []*ProtoOADeal `protobuf:"bytes,4,rep,name=deal" json:"deal,omitempty"` // All Deals created by filling the specified Order. // contains filtered or unexported fields }
* Response to the ProtoOAOrderDetailsReq request.
func (*ProtoOAOrderDetailsRes) Descriptor
deprecated
func (*ProtoOAOrderDetailsRes) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAOrderDetailsRes.ProtoReflect.Descriptor instead.
func (*ProtoOAOrderDetailsRes) GetCtidTraderAccountId ¶
func (x *ProtoOAOrderDetailsRes) GetCtidTraderAccountId() int64
func (*ProtoOAOrderDetailsRes) GetDeal ¶
func (x *ProtoOAOrderDetailsRes) GetDeal() []*ProtoOADeal
func (*ProtoOAOrderDetailsRes) GetOrder ¶
func (x *ProtoOAOrderDetailsRes) GetOrder() *ProtoOAOrder
func (*ProtoOAOrderDetailsRes) GetPayloadType ¶
func (x *ProtoOAOrderDetailsRes) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAOrderDetailsRes) ProtoMessage ¶
func (*ProtoOAOrderDetailsRes) ProtoMessage()
func (*ProtoOAOrderDetailsRes) ProtoReflect ¶
func (x *ProtoOAOrderDetailsRes) ProtoReflect() protoreflect.Message
func (*ProtoOAOrderDetailsRes) Reset ¶
func (x *ProtoOAOrderDetailsRes) Reset()
func (*ProtoOAOrderDetailsRes) String ¶
func (x *ProtoOAOrderDetailsRes) String() string
type ProtoOAOrderErrorEvent ¶
type ProtoOAOrderErrorEvent struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2132" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,5,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` //Unique identifier of the trader's account. Used to match responses to trader's accounts. ErrorCode *string `protobuf:"bytes,2,req,name=errorCode" json:"errorCode,omitempty"` // The name of the ProtoErrorCode or the other custom ErrorCodes (e.g. ProtoCHErrorCode). OrderId *int64 `protobuf:"varint,3,opt,name=orderId" json:"orderId,omitempty"` // The unique ID of the order. PositionId *int64 `protobuf:"varint,6,opt,name=positionId" json:"positionId,omitempty"` // The unique ID of the position. Description *string `protobuf:"bytes,7,opt,name=description" json:"description,omitempty"` // The error description. // contains filtered or unexported fields }
* Event that is sent when errors occur during the order requests.
func (*ProtoOAOrderErrorEvent) Descriptor
deprecated
func (*ProtoOAOrderErrorEvent) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAOrderErrorEvent.ProtoReflect.Descriptor instead.
func (*ProtoOAOrderErrorEvent) GetCtidTraderAccountId ¶
func (x *ProtoOAOrderErrorEvent) GetCtidTraderAccountId() int64
func (*ProtoOAOrderErrorEvent) GetDescription ¶
func (x *ProtoOAOrderErrorEvent) GetDescription() string
func (*ProtoOAOrderErrorEvent) GetErrorCode ¶
func (x *ProtoOAOrderErrorEvent) GetErrorCode() string
func (*ProtoOAOrderErrorEvent) GetOrderId ¶
func (x *ProtoOAOrderErrorEvent) GetOrderId() int64
func (*ProtoOAOrderErrorEvent) GetPayloadType ¶
func (x *ProtoOAOrderErrorEvent) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAOrderErrorEvent) GetPositionId ¶
func (x *ProtoOAOrderErrorEvent) GetPositionId() int64
func (*ProtoOAOrderErrorEvent) ProtoMessage ¶
func (*ProtoOAOrderErrorEvent) ProtoMessage()
func (*ProtoOAOrderErrorEvent) ProtoReflect ¶
func (x *ProtoOAOrderErrorEvent) ProtoReflect() protoreflect.Message
func (*ProtoOAOrderErrorEvent) Reset ¶
func (x *ProtoOAOrderErrorEvent) Reset()
func (*ProtoOAOrderErrorEvent) String ¶
func (x *ProtoOAOrderErrorEvent) String() string
type ProtoOAOrderListByPositionIdReq ¶
type ProtoOAOrderListByPositionIdReq struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2183" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. PositionId *int64 `protobuf:"varint,3,req,name=positionId" json:"positionId,omitempty"` // The unique ID of the Position. FromTimestamp *int64 `protobuf:"varint,4,opt,name=fromTimestamp" json:"fromTimestamp,omitempty"` // The Unix time from which the search starts >=0 (1st Jan 1970). Search by utcLastUpdateTimestamp of the Order. ToTimestamp *int64 `protobuf:"varint,5,opt,name=toTimestamp" json:"toTimestamp,omitempty"` // The Unix time where to stop searching <= 2147483646000 (19th Jan 2038). Search by utcLastUpdateTimestamp of the Order. // contains filtered or unexported fields }
* Request for retrieving Orders related to a Position by using Position ID. Filtered by utcLastUpdateTimestamp.
func (*ProtoOAOrderListByPositionIdReq) Descriptor
deprecated
func (*ProtoOAOrderListByPositionIdReq) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAOrderListByPositionIdReq.ProtoReflect.Descriptor instead.
func (*ProtoOAOrderListByPositionIdReq) GetCtidTraderAccountId ¶
func (x *ProtoOAOrderListByPositionIdReq) GetCtidTraderAccountId() int64
func (*ProtoOAOrderListByPositionIdReq) GetFromTimestamp ¶
func (x *ProtoOAOrderListByPositionIdReq) GetFromTimestamp() int64
func (*ProtoOAOrderListByPositionIdReq) GetPayloadType ¶
func (x *ProtoOAOrderListByPositionIdReq) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAOrderListByPositionIdReq) GetPositionId ¶
func (x *ProtoOAOrderListByPositionIdReq) GetPositionId() int64
func (*ProtoOAOrderListByPositionIdReq) GetToTimestamp ¶
func (x *ProtoOAOrderListByPositionIdReq) GetToTimestamp() int64
func (*ProtoOAOrderListByPositionIdReq) ProtoMessage ¶
func (*ProtoOAOrderListByPositionIdReq) ProtoMessage()
func (*ProtoOAOrderListByPositionIdReq) ProtoReflect ¶
func (x *ProtoOAOrderListByPositionIdReq) ProtoReflect() protoreflect.Message
func (*ProtoOAOrderListByPositionIdReq) Reset ¶
func (x *ProtoOAOrderListByPositionIdReq) Reset()
func (*ProtoOAOrderListByPositionIdReq) String ¶
func (x *ProtoOAOrderListByPositionIdReq) String() string
type ProtoOAOrderListByPositionIdRes ¶
type ProtoOAOrderListByPositionIdRes struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2184" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. Order []*ProtoOAOrder `protobuf:"bytes,3,rep,name=order" json:"order,omitempty"` // Orders related to the specified Position, sorted by utcLastUpdateTimestamp in descending order (newest first). HasMore *bool `protobuf:"varint,4,req,name=hasMore" json:"hasMore,omitempty"` // If TRUE then the number of records by filter is larger than chunkSize, the response contains the number of records that is equal to chunkSize. // contains filtered or unexported fields }
* Response to ProtoOAOrderListByPositionIdReq request.
func (*ProtoOAOrderListByPositionIdRes) Descriptor
deprecated
func (*ProtoOAOrderListByPositionIdRes) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAOrderListByPositionIdRes.ProtoReflect.Descriptor instead.
func (*ProtoOAOrderListByPositionIdRes) GetCtidTraderAccountId ¶
func (x *ProtoOAOrderListByPositionIdRes) GetCtidTraderAccountId() int64
func (*ProtoOAOrderListByPositionIdRes) GetHasMore ¶
func (x *ProtoOAOrderListByPositionIdRes) GetHasMore() bool
func (*ProtoOAOrderListByPositionIdRes) GetOrder ¶
func (x *ProtoOAOrderListByPositionIdRes) GetOrder() []*ProtoOAOrder
func (*ProtoOAOrderListByPositionIdRes) GetPayloadType ¶
func (x *ProtoOAOrderListByPositionIdRes) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAOrderListByPositionIdRes) ProtoMessage ¶
func (*ProtoOAOrderListByPositionIdRes) ProtoMessage()
func (*ProtoOAOrderListByPositionIdRes) ProtoReflect ¶
func (x *ProtoOAOrderListByPositionIdRes) ProtoReflect() protoreflect.Message
func (*ProtoOAOrderListByPositionIdRes) Reset ¶
func (x *ProtoOAOrderListByPositionIdRes) Reset()
func (*ProtoOAOrderListByPositionIdRes) String ¶
func (x *ProtoOAOrderListByPositionIdRes) String() string
type ProtoOAOrderListReq ¶
type ProtoOAOrderListReq struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2175" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. FromTimestamp *int64 `protobuf:"varint,3,opt,name=fromTimestamp" json:"fromTimestamp,omitempty"` // The Unix time from which the search starts >=0 (1st Jan 1970). ToTimestamp *int64 `protobuf:"varint,4,opt,name=toTimestamp" json:"toTimestamp,omitempty"` // The Unix time where to stop searching <= 2147483646000 (19th Jan 2038). // contains filtered or unexported fields }
* Request for getting Trader's orders filtered by timestamp
func (*ProtoOAOrderListReq) Descriptor
deprecated
func (*ProtoOAOrderListReq) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAOrderListReq.ProtoReflect.Descriptor instead.
func (*ProtoOAOrderListReq) GetCtidTraderAccountId ¶
func (x *ProtoOAOrderListReq) GetCtidTraderAccountId() int64
func (*ProtoOAOrderListReq) GetFromTimestamp ¶
func (x *ProtoOAOrderListReq) GetFromTimestamp() int64
func (*ProtoOAOrderListReq) GetPayloadType ¶
func (x *ProtoOAOrderListReq) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAOrderListReq) GetToTimestamp ¶
func (x *ProtoOAOrderListReq) GetToTimestamp() int64
func (*ProtoOAOrderListReq) ProtoMessage ¶
func (*ProtoOAOrderListReq) ProtoMessage()
func (*ProtoOAOrderListReq) ProtoReflect ¶
func (x *ProtoOAOrderListReq) ProtoReflect() protoreflect.Message
func (*ProtoOAOrderListReq) Reset ¶
func (x *ProtoOAOrderListReq) Reset()
func (*ProtoOAOrderListReq) String ¶
func (x *ProtoOAOrderListReq) String() string
type ProtoOAOrderListRes ¶
type ProtoOAOrderListRes struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2176" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. Order []*ProtoOAOrder `protobuf:"bytes,3,rep,name=order" json:"order,omitempty"` // The list of the orders. HasMore *bool `protobuf:"varint,4,req,name=hasMore" json:"hasMore,omitempty"` // If TRUE then the number of records by filter is larger than chunkSize, the response contains the number of records that is equal to chunkSize. // contains filtered or unexported fields }
* The response to the ProtoOAOrderListReq request.
func (*ProtoOAOrderListRes) Descriptor
deprecated
func (*ProtoOAOrderListRes) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAOrderListRes.ProtoReflect.Descriptor instead.
func (*ProtoOAOrderListRes) GetCtidTraderAccountId ¶
func (x *ProtoOAOrderListRes) GetCtidTraderAccountId() int64
func (*ProtoOAOrderListRes) GetHasMore ¶
func (x *ProtoOAOrderListRes) GetHasMore() bool
func (*ProtoOAOrderListRes) GetOrder ¶
func (x *ProtoOAOrderListRes) GetOrder() []*ProtoOAOrder
func (*ProtoOAOrderListRes) GetPayloadType ¶
func (x *ProtoOAOrderListRes) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAOrderListRes) ProtoMessage ¶
func (*ProtoOAOrderListRes) ProtoMessage()
func (*ProtoOAOrderListRes) ProtoReflect ¶
func (x *ProtoOAOrderListRes) ProtoReflect() protoreflect.Message
func (*ProtoOAOrderListRes) Reset ¶
func (x *ProtoOAOrderListRes) Reset()
func (*ProtoOAOrderListRes) String ¶
func (x *ProtoOAOrderListRes) String() string
type ProtoOAOrderStatus ¶
type ProtoOAOrderStatus int32
* Order status ENUM.
const ( ProtoOAOrderStatus_ORDER_STATUS_ACCEPTED ProtoOAOrderStatus = 1 // Order request validated and accepted for execution. ProtoOAOrderStatus_ORDER_STATUS_FILLED ProtoOAOrderStatus = 2 // Order is fully filled. ProtoOAOrderStatus_ORDER_STATUS_REJECTED ProtoOAOrderStatus = 3 // Order is rejected due to validation. ProtoOAOrderStatus_ORDER_STATUS_EXPIRED ProtoOAOrderStatus = 4 // Order expired. Might be valid for orders with partially filled volume that were expired on LP. ProtoOAOrderStatus_ORDER_STATUS_CANCELLED ProtoOAOrderStatus = 5 // Order is cancelled. Might be valid for orders with partially filled volume that were cancelled by LP. )
func (ProtoOAOrderStatus) Descriptor ¶
func (ProtoOAOrderStatus) Descriptor() protoreflect.EnumDescriptor
func (ProtoOAOrderStatus) Enum ¶
func (x ProtoOAOrderStatus) Enum() *ProtoOAOrderStatus
func (ProtoOAOrderStatus) EnumDescriptor
deprecated
func (ProtoOAOrderStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProtoOAOrderStatus.Descriptor instead.
func (ProtoOAOrderStatus) Number ¶
func (x ProtoOAOrderStatus) Number() protoreflect.EnumNumber
func (ProtoOAOrderStatus) String ¶
func (x ProtoOAOrderStatus) String() string
func (ProtoOAOrderStatus) Type ¶
func (ProtoOAOrderStatus) Type() protoreflect.EnumType
func (*ProtoOAOrderStatus) UnmarshalJSON
deprecated
func (x *ProtoOAOrderStatus) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type ProtoOAOrderTriggerMethod ¶
type ProtoOAOrderTriggerMethod int32
* Stop Order and Stop Lost triggering method ENUM.
const ( ProtoOAOrderTriggerMethod_TRADE ProtoOAOrderTriggerMethod = 1 // Stop Order: buy is triggered by ask, sell by bid; Stop Loss Order: for buy position is triggered by bid and for sell position by ask. ProtoOAOrderTriggerMethod_OPPOSITE ProtoOAOrderTriggerMethod = 2 // Stop Order: buy is triggered by bid, sell by ask; Stop Loss Order: for buy position is triggered by ask and for sell position by bid. ProtoOAOrderTriggerMethod_DOUBLE_TRADE ProtoOAOrderTriggerMethod = 3 // The same as TRADE, but trigger is checked after the second consecutive tick. ProtoOAOrderTriggerMethod_DOUBLE_OPPOSITE ProtoOAOrderTriggerMethod = 4 // The same as OPPOSITE, but trigger is checked after the second consecutive tick. )
func (ProtoOAOrderTriggerMethod) Descriptor ¶
func (ProtoOAOrderTriggerMethod) Descriptor() protoreflect.EnumDescriptor
func (ProtoOAOrderTriggerMethod) Enum ¶
func (x ProtoOAOrderTriggerMethod) Enum() *ProtoOAOrderTriggerMethod
func (ProtoOAOrderTriggerMethod) EnumDescriptor
deprecated
func (ProtoOAOrderTriggerMethod) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProtoOAOrderTriggerMethod.Descriptor instead.
func (ProtoOAOrderTriggerMethod) Number ¶
func (x ProtoOAOrderTriggerMethod) Number() protoreflect.EnumNumber
func (ProtoOAOrderTriggerMethod) String ¶
func (x ProtoOAOrderTriggerMethod) String() string
func (ProtoOAOrderTriggerMethod) Type ¶
func (ProtoOAOrderTriggerMethod) Type() protoreflect.EnumType
func (*ProtoOAOrderTriggerMethod) UnmarshalJSON
deprecated
func (x *ProtoOAOrderTriggerMethod) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type ProtoOAOrderType ¶
type ProtoOAOrderType int32
* Order type ENUM.
const ( ProtoOAOrderType_MARKET ProtoOAOrderType = 1 ProtoOAOrderType_LIMIT ProtoOAOrderType = 2 ProtoOAOrderType_STOP ProtoOAOrderType = 3 ProtoOAOrderType_STOP_LOSS_TAKE_PROFIT ProtoOAOrderType = 4 ProtoOAOrderType_MARKET_RANGE ProtoOAOrderType = 5 ProtoOAOrderType_STOP_LIMIT ProtoOAOrderType = 6 )
func (ProtoOAOrderType) Descriptor ¶
func (ProtoOAOrderType) Descriptor() protoreflect.EnumDescriptor
func (ProtoOAOrderType) Enum ¶
func (x ProtoOAOrderType) Enum() *ProtoOAOrderType
func (ProtoOAOrderType) EnumDescriptor
deprecated
func (ProtoOAOrderType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProtoOAOrderType.Descriptor instead.
func (ProtoOAOrderType) Number ¶
func (x ProtoOAOrderType) Number() protoreflect.EnumNumber
func (ProtoOAOrderType) String ¶
func (x ProtoOAOrderType) String() string
func (ProtoOAOrderType) Type ¶
func (ProtoOAOrderType) Type() protoreflect.EnumType
func (*ProtoOAOrderType) UnmarshalJSON
deprecated
func (x *ProtoOAOrderType) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type ProtoOAPayloadType ¶
type ProtoOAPayloadType int32
const ( ProtoOAPayloadType_PROTO_OA_APPLICATION_AUTH_REQ ProtoOAPayloadType = 2100 ProtoOAPayloadType_PROTO_OA_APPLICATION_AUTH_RES ProtoOAPayloadType = 2101 ProtoOAPayloadType_PROTO_OA_ACCOUNT_AUTH_REQ ProtoOAPayloadType = 2102 ProtoOAPayloadType_PROTO_OA_ACCOUNT_AUTH_RES ProtoOAPayloadType = 2103 ProtoOAPayloadType_PROTO_OA_VERSION_REQ ProtoOAPayloadType = 2104 ProtoOAPayloadType_PROTO_OA_VERSION_RES ProtoOAPayloadType = 2105 ProtoOAPayloadType_PROTO_OA_NEW_ORDER_REQ ProtoOAPayloadType = 2106 ProtoOAPayloadType_PROTO_OA_TRAILING_SL_CHANGED_EVENT ProtoOAPayloadType = 2107 ProtoOAPayloadType_PROTO_OA_CANCEL_ORDER_REQ ProtoOAPayloadType = 2108 ProtoOAPayloadType_PROTO_OA_AMEND_ORDER_REQ ProtoOAPayloadType = 2109 ProtoOAPayloadType_PROTO_OA_AMEND_POSITION_SLTP_REQ ProtoOAPayloadType = 2110 ProtoOAPayloadType_PROTO_OA_CLOSE_POSITION_REQ ProtoOAPayloadType = 2111 ProtoOAPayloadType_PROTO_OA_ASSET_LIST_REQ ProtoOAPayloadType = 2112 ProtoOAPayloadType_PROTO_OA_ASSET_LIST_RES ProtoOAPayloadType = 2113 ProtoOAPayloadType_PROTO_OA_SYMBOLS_LIST_REQ ProtoOAPayloadType = 2114 ProtoOAPayloadType_PROTO_OA_SYMBOLS_LIST_RES ProtoOAPayloadType = 2115 ProtoOAPayloadType_PROTO_OA_SYMBOL_BY_ID_REQ ProtoOAPayloadType = 2116 ProtoOAPayloadType_PROTO_OA_SYMBOL_BY_ID_RES ProtoOAPayloadType = 2117 ProtoOAPayloadType_PROTO_OA_SYMBOLS_FOR_CONVERSION_REQ ProtoOAPayloadType = 2118 ProtoOAPayloadType_PROTO_OA_SYMBOLS_FOR_CONVERSION_RES ProtoOAPayloadType = 2119 ProtoOAPayloadType_PROTO_OA_SYMBOL_CHANGED_EVENT ProtoOAPayloadType = 2120 ProtoOAPayloadType_PROTO_OA_TRADER_REQ ProtoOAPayloadType = 2121 ProtoOAPayloadType_PROTO_OA_TRADER_RES ProtoOAPayloadType = 2122 ProtoOAPayloadType_PROTO_OA_TRADER_UPDATE_EVENT ProtoOAPayloadType = 2123 ProtoOAPayloadType_PROTO_OA_RECONCILE_REQ ProtoOAPayloadType = 2124 ProtoOAPayloadType_PROTO_OA_RECONCILE_RES ProtoOAPayloadType = 2125 ProtoOAPayloadType_PROTO_OA_EXECUTION_EVENT ProtoOAPayloadType = 2126 ProtoOAPayloadType_PROTO_OA_SUBSCRIBE_SPOTS_REQ ProtoOAPayloadType = 2127 ProtoOAPayloadType_PROTO_OA_SUBSCRIBE_SPOTS_RES ProtoOAPayloadType = 2128 ProtoOAPayloadType_PROTO_OA_UNSUBSCRIBE_SPOTS_REQ ProtoOAPayloadType = 2129 ProtoOAPayloadType_PROTO_OA_UNSUBSCRIBE_SPOTS_RES ProtoOAPayloadType = 2130 ProtoOAPayloadType_PROTO_OA_SPOT_EVENT ProtoOAPayloadType = 2131 ProtoOAPayloadType_PROTO_OA_ORDER_ERROR_EVENT ProtoOAPayloadType = 2132 ProtoOAPayloadType_PROTO_OA_DEAL_LIST_REQ ProtoOAPayloadType = 2133 ProtoOAPayloadType_PROTO_OA_DEAL_LIST_RES ProtoOAPayloadType = 2134 ProtoOAPayloadType_PROTO_OA_SUBSCRIBE_LIVE_TRENDBAR_REQ ProtoOAPayloadType = 2135 ProtoOAPayloadType_PROTO_OA_UNSUBSCRIBE_LIVE_TRENDBAR_REQ ProtoOAPayloadType = 2136 ProtoOAPayloadType_PROTO_OA_GET_TRENDBARS_REQ ProtoOAPayloadType = 2137 ProtoOAPayloadType_PROTO_OA_GET_TRENDBARS_RES ProtoOAPayloadType = 2138 ProtoOAPayloadType_PROTO_OA_EXPECTED_MARGIN_REQ ProtoOAPayloadType = 2139 ProtoOAPayloadType_PROTO_OA_EXPECTED_MARGIN_RES ProtoOAPayloadType = 2140 ProtoOAPayloadType_PROTO_OA_MARGIN_CHANGED_EVENT ProtoOAPayloadType = 2141 ProtoOAPayloadType_PROTO_OA_ERROR_RES ProtoOAPayloadType = 2142 ProtoOAPayloadType_PROTO_OA_CASH_FLOW_HISTORY_LIST_REQ ProtoOAPayloadType = 2143 ProtoOAPayloadType_PROTO_OA_CASH_FLOW_HISTORY_LIST_RES ProtoOAPayloadType = 2144 ProtoOAPayloadType_PROTO_OA_GET_TICKDATA_REQ ProtoOAPayloadType = 2145 ProtoOAPayloadType_PROTO_OA_GET_TICKDATA_RES ProtoOAPayloadType = 2146 ProtoOAPayloadType_PROTO_OA_ACCOUNTS_TOKEN_INVALIDATED_EVENT ProtoOAPayloadType = 2147 ProtoOAPayloadType_PROTO_OA_CLIENT_DISCONNECT_EVENT ProtoOAPayloadType = 2148 ProtoOAPayloadType_PROTO_OA_GET_ACCOUNTS_BY_ACCESS_TOKEN_REQ ProtoOAPayloadType = 2149 ProtoOAPayloadType_PROTO_OA_GET_ACCOUNTS_BY_ACCESS_TOKEN_RES ProtoOAPayloadType = 2150 ProtoOAPayloadType_PROTO_OA_GET_CTID_PROFILE_BY_TOKEN_REQ ProtoOAPayloadType = 2151 ProtoOAPayloadType_PROTO_OA_GET_CTID_PROFILE_BY_TOKEN_RES ProtoOAPayloadType = 2152 ProtoOAPayloadType_PROTO_OA_ASSET_CLASS_LIST_REQ ProtoOAPayloadType = 2153 ProtoOAPayloadType_PROTO_OA_ASSET_CLASS_LIST_RES ProtoOAPayloadType = 2154 ProtoOAPayloadType_PROTO_OA_DEPTH_EVENT ProtoOAPayloadType = 2155 ProtoOAPayloadType_PROTO_OA_SUBSCRIBE_DEPTH_QUOTES_REQ ProtoOAPayloadType = 2156 ProtoOAPayloadType_PROTO_OA_SUBSCRIBE_DEPTH_QUOTES_RES ProtoOAPayloadType = 2157 ProtoOAPayloadType_PROTO_OA_UNSUBSCRIBE_DEPTH_QUOTES_REQ ProtoOAPayloadType = 2158 ProtoOAPayloadType_PROTO_OA_UNSUBSCRIBE_DEPTH_QUOTES_RES ProtoOAPayloadType = 2159 ProtoOAPayloadType_PROTO_OA_SYMBOL_CATEGORY_REQ ProtoOAPayloadType = 2160 ProtoOAPayloadType_PROTO_OA_SYMBOL_CATEGORY_RES ProtoOAPayloadType = 2161 ProtoOAPayloadType_PROTO_OA_ACCOUNT_LOGOUT_REQ ProtoOAPayloadType = 2162 ProtoOAPayloadType_PROTO_OA_ACCOUNT_LOGOUT_RES ProtoOAPayloadType = 2163 ProtoOAPayloadType_PROTO_OA_ACCOUNT_DISCONNECT_EVENT ProtoOAPayloadType = 2164 ProtoOAPayloadType_PROTO_OA_SUBSCRIBE_LIVE_TRENDBAR_RES ProtoOAPayloadType = 2165 ProtoOAPayloadType_PROTO_OA_UNSUBSCRIBE_LIVE_TRENDBAR_RES ProtoOAPayloadType = 2166 ProtoOAPayloadType_PROTO_OA_MARGIN_CALL_LIST_REQ ProtoOAPayloadType = 2167 ProtoOAPayloadType_PROTO_OA_MARGIN_CALL_LIST_RES ProtoOAPayloadType = 2168 ProtoOAPayloadType_PROTO_OA_MARGIN_CALL_UPDATE_REQ ProtoOAPayloadType = 2169 ProtoOAPayloadType_PROTO_OA_MARGIN_CALL_UPDATE_RES ProtoOAPayloadType = 2170 ProtoOAPayloadType_PROTO_OA_MARGIN_CALL_UPDATE_EVENT ProtoOAPayloadType = 2171 ProtoOAPayloadType_PROTO_OA_MARGIN_CALL_TRIGGER_EVENT ProtoOAPayloadType = 2172 ProtoOAPayloadType_PROTO_OA_REFRESH_TOKEN_REQ ProtoOAPayloadType = 2173 ProtoOAPayloadType_PROTO_OA_REFRESH_TOKEN_RES ProtoOAPayloadType = 2174 ProtoOAPayloadType_PROTO_OA_ORDER_LIST_REQ ProtoOAPayloadType = 2175 ProtoOAPayloadType_PROTO_OA_ORDER_LIST_RES ProtoOAPayloadType = 2176 ProtoOAPayloadType_PROTO_OA_GET_DYNAMIC_LEVERAGE_REQ ProtoOAPayloadType = 2177 ProtoOAPayloadType_PROTO_OA_GET_DYNAMIC_LEVERAGE_RES ProtoOAPayloadType = 2178 ProtoOAPayloadType_PROTO_OA_DEAL_LIST_BY_POSITION_ID_REQ ProtoOAPayloadType = 2179 ProtoOAPayloadType_PROTO_OA_DEAL_LIST_BY_POSITION_ID_RES ProtoOAPayloadType = 2180 ProtoOAPayloadType_PROTO_OA_ORDER_DETAILS_REQ ProtoOAPayloadType = 2181 ProtoOAPayloadType_PROTO_OA_ORDER_DETAILS_RES ProtoOAPayloadType = 2182 ProtoOAPayloadType_PROTO_OA_ORDER_LIST_BY_POSITION_ID_REQ ProtoOAPayloadType = 2183 ProtoOAPayloadType_PROTO_OA_ORDER_LIST_BY_POSITION_ID_RES ProtoOAPayloadType = 2184 ProtoOAPayloadType_PROTO_OA_DEAL_OFFSET_LIST_REQ ProtoOAPayloadType = 2185 ProtoOAPayloadType_PROTO_OA_DEAL_OFFSET_LIST_RES ProtoOAPayloadType = 2186 ProtoOAPayloadType_PROTO_OA_GET_POSITION_UNREALIZED_PNL_REQ ProtoOAPayloadType = 2187 ProtoOAPayloadType_PROTO_OA_GET_POSITION_UNREALIZED_PNL_RES ProtoOAPayloadType = 2188 )
func (ProtoOAPayloadType) Descriptor ¶
func (ProtoOAPayloadType) Descriptor() protoreflect.EnumDescriptor
func (ProtoOAPayloadType) Enum ¶
func (x ProtoOAPayloadType) Enum() *ProtoOAPayloadType
func (ProtoOAPayloadType) EnumDescriptor
deprecated
func (ProtoOAPayloadType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProtoOAPayloadType.Descriptor instead.
func (ProtoOAPayloadType) Number ¶
func (x ProtoOAPayloadType) Number() protoreflect.EnumNumber
func (ProtoOAPayloadType) String ¶
func (x ProtoOAPayloadType) String() string
func (ProtoOAPayloadType) Type ¶
func (ProtoOAPayloadType) Type() protoreflect.EnumType
func (*ProtoOAPayloadType) UnmarshalJSON
deprecated
func (x *ProtoOAPayloadType) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type ProtoOAPosition ¶
type ProtoOAPosition struct { PositionId *int64 `protobuf:"varint,1,req,name=positionId" json:"positionId,omitempty"` // The unique ID of the position. Note: trader might have two positions with the same id if positions are taken from accounts from different brokers. TradeData *ProtoOATradeData `protobuf:"bytes,2,req,name=tradeData" json:"tradeData,omitempty"` // Position details. See ProtoOATradeData for details. PositionStatus *ProtoOAPositionStatus `protobuf:"varint,3,req,name=positionStatus,enum=ProtoOAPositionStatus" json:"positionStatus,omitempty"` // Current status of the position. Swap *int64 `protobuf:"varint,4,req,name=swap" json:"swap,omitempty"` // Total amount of charged swap on open position. Price *float64 `protobuf:"fixed64,5,opt,name=price" json:"price,omitempty"` // VWAP price of the position based on all executions (orders) linked to the position. StopLoss *float64 `protobuf:"fixed64,6,opt,name=stopLoss" json:"stopLoss,omitempty"` // Current stop loss price. TakeProfit *float64 `protobuf:"fixed64,7,opt,name=takeProfit" json:"takeProfit,omitempty"` // Current take profit price. UtcLastUpdateTimestamp *int64 `protobuf:"varint,8,opt,name=utcLastUpdateTimestamp" json:"utcLastUpdateTimestamp,omitempty"` // The Unix time in milliseconds of the last change of the position, including amend SL/TP of the position, execution of related order, cancel or related order, etc. Commission *int64 `protobuf:"varint,9,opt,name=commission" json:"commission,omitempty"` // Current unrealized commission related to the position. MarginRate *float64 `protobuf:"fixed64,10,opt,name=marginRate" json:"marginRate,omitempty"` // Rate for used margin computation. Represented as Base/Deposit. MirroringCommission *int64 `protobuf:"varint,11,opt,name=mirroringCommission" json:"mirroringCommission,omitempty"` // Amount of unrealized commission related to following of strategy provider. GuaranteedStopLoss *bool `protobuf:"varint,12,opt,name=guaranteedStopLoss" json:"guaranteedStopLoss,omitempty"` // If TRUE then position's stop loss is guaranteedStopLoss. UsedMargin *uint64 `protobuf:"varint,13,opt,name=usedMargin" json:"usedMargin,omitempty"` // Amount of margin used for the position in deposit currency. StopLossTriggerMethod *ProtoOAOrderTriggerMethod `` // Stop trigger method for SL/TP of the position. /* 127-byte string literal not displayed */ MoneyDigits *uint32 `protobuf:"varint,15,opt,name=moneyDigits" json:"moneyDigits,omitempty"` // Specifies the exponent of the monetary values. E.g. moneyDigits = 8 must be interpret as business value multiplied by 10^8, then real balance would be 10053099944 / 10^8 = 100.53099944. Affects swap, commission, mirroringCommission, usedMargin. TrailingStopLoss *bool `protobuf:"varint,16,opt,name=trailingStopLoss" json:"trailingStopLoss,omitempty"` //If TRUE then the Trailing Stop Loss is applied. // contains filtered or unexported fields }
* Trade position entity.
func (*ProtoOAPosition) Descriptor
deprecated
func (*ProtoOAPosition) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAPosition.ProtoReflect.Descriptor instead.
func (*ProtoOAPosition) GetCommission ¶
func (x *ProtoOAPosition) GetCommission() int64
func (*ProtoOAPosition) GetGuaranteedStopLoss ¶
func (x *ProtoOAPosition) GetGuaranteedStopLoss() bool
func (*ProtoOAPosition) GetMarginRate ¶
func (x *ProtoOAPosition) GetMarginRate() float64
func (*ProtoOAPosition) GetMirroringCommission ¶
func (x *ProtoOAPosition) GetMirroringCommission() int64
func (*ProtoOAPosition) GetMoneyDigits ¶
func (x *ProtoOAPosition) GetMoneyDigits() uint32
func (*ProtoOAPosition) GetPositionId ¶
func (x *ProtoOAPosition) GetPositionId() int64
func (*ProtoOAPosition) GetPositionStatus ¶
func (x *ProtoOAPosition) GetPositionStatus() ProtoOAPositionStatus
func (*ProtoOAPosition) GetPrice ¶
func (x *ProtoOAPosition) GetPrice() float64
func (*ProtoOAPosition) GetStopLoss ¶
func (x *ProtoOAPosition) GetStopLoss() float64
func (*ProtoOAPosition) GetStopLossTriggerMethod ¶
func (x *ProtoOAPosition) GetStopLossTriggerMethod() ProtoOAOrderTriggerMethod
func (*ProtoOAPosition) GetSwap ¶
func (x *ProtoOAPosition) GetSwap() int64
func (*ProtoOAPosition) GetTakeProfit ¶
func (x *ProtoOAPosition) GetTakeProfit() float64
func (*ProtoOAPosition) GetTradeData ¶
func (x *ProtoOAPosition) GetTradeData() *ProtoOATradeData
func (*ProtoOAPosition) GetTrailingStopLoss ¶
func (x *ProtoOAPosition) GetTrailingStopLoss() bool
func (*ProtoOAPosition) GetUsedMargin ¶
func (x *ProtoOAPosition) GetUsedMargin() uint64
func (*ProtoOAPosition) GetUtcLastUpdateTimestamp ¶
func (x *ProtoOAPosition) GetUtcLastUpdateTimestamp() int64
func (*ProtoOAPosition) ProtoMessage ¶
func (*ProtoOAPosition) ProtoMessage()
func (*ProtoOAPosition) ProtoReflect ¶
func (x *ProtoOAPosition) ProtoReflect() protoreflect.Message
func (*ProtoOAPosition) Reset ¶
func (x *ProtoOAPosition) Reset()
func (*ProtoOAPosition) String ¶
func (x *ProtoOAPosition) String() string
type ProtoOAPositionStatus ¶
type ProtoOAPositionStatus int32
* Position status ENUM.
const ( ProtoOAPositionStatus_POSITION_STATUS_OPEN ProtoOAPositionStatus = 1 ProtoOAPositionStatus_POSITION_STATUS_CLOSED ProtoOAPositionStatus = 2 ProtoOAPositionStatus_POSITION_STATUS_CREATED ProtoOAPositionStatus = 3 // Empty position is created for pending order. ProtoOAPositionStatus_POSITION_STATUS_ERROR ProtoOAPositionStatus = 4 )
func (ProtoOAPositionStatus) Descriptor ¶
func (ProtoOAPositionStatus) Descriptor() protoreflect.EnumDescriptor
func (ProtoOAPositionStatus) Enum ¶
func (x ProtoOAPositionStatus) Enum() *ProtoOAPositionStatus
func (ProtoOAPositionStatus) EnumDescriptor
deprecated
func (ProtoOAPositionStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProtoOAPositionStatus.Descriptor instead.
func (ProtoOAPositionStatus) Number ¶
func (x ProtoOAPositionStatus) Number() protoreflect.EnumNumber
func (ProtoOAPositionStatus) String ¶
func (x ProtoOAPositionStatus) String() string
func (ProtoOAPositionStatus) Type ¶
func (ProtoOAPositionStatus) Type() protoreflect.EnumType
func (*ProtoOAPositionStatus) UnmarshalJSON
deprecated
func (x *ProtoOAPositionStatus) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type ProtoOAPositionUnrealizedPnL ¶
type ProtoOAPositionUnrealizedPnL struct { PositionId *int64 `protobuf:"varint,1,req,name=positionId" json:"positionId,omitempty"` // The position ID. GrossUnrealizedPnL *int64 `protobuf:"varint,2,req,name=grossUnrealizedPnL" json:"grossUnrealizedPnL,omitempty"` // The gross unrealized PnL of the position denoted in the account deposit currency. NetUnrealizedPnL *int64 `protobuf:"varint,3,req,name=netUnrealizedPnL" json:"netUnrealizedPnL,omitempty"` // The net unrealized PnL of the position denoted in the account deposit currency. It does not include potential closing commission. // contains filtered or unexported fields }
func (*ProtoOAPositionUnrealizedPnL) Descriptor
deprecated
func (*ProtoOAPositionUnrealizedPnL) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAPositionUnrealizedPnL.ProtoReflect.Descriptor instead.
func (*ProtoOAPositionUnrealizedPnL) GetGrossUnrealizedPnL ¶
func (x *ProtoOAPositionUnrealizedPnL) GetGrossUnrealizedPnL() int64
func (*ProtoOAPositionUnrealizedPnL) GetNetUnrealizedPnL ¶
func (x *ProtoOAPositionUnrealizedPnL) GetNetUnrealizedPnL() int64
func (*ProtoOAPositionUnrealizedPnL) GetPositionId ¶
func (x *ProtoOAPositionUnrealizedPnL) GetPositionId() int64
func (*ProtoOAPositionUnrealizedPnL) ProtoMessage ¶
func (*ProtoOAPositionUnrealizedPnL) ProtoMessage()
func (*ProtoOAPositionUnrealizedPnL) ProtoReflect ¶
func (x *ProtoOAPositionUnrealizedPnL) ProtoReflect() protoreflect.Message
func (*ProtoOAPositionUnrealizedPnL) Reset ¶
func (x *ProtoOAPositionUnrealizedPnL) Reset()
func (*ProtoOAPositionUnrealizedPnL) String ¶
func (x *ProtoOAPositionUnrealizedPnL) String() string
type ProtoOAQuoteType ¶
type ProtoOAQuoteType int32
* Price quote type.
const ( ProtoOAQuoteType_BID ProtoOAQuoteType = 1 ProtoOAQuoteType_ASK ProtoOAQuoteType = 2 )
func (ProtoOAQuoteType) Descriptor ¶
func (ProtoOAQuoteType) Descriptor() protoreflect.EnumDescriptor
func (ProtoOAQuoteType) Enum ¶
func (x ProtoOAQuoteType) Enum() *ProtoOAQuoteType
func (ProtoOAQuoteType) EnumDescriptor
deprecated
func (ProtoOAQuoteType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProtoOAQuoteType.Descriptor instead.
func (ProtoOAQuoteType) Number ¶
func (x ProtoOAQuoteType) Number() protoreflect.EnumNumber
func (ProtoOAQuoteType) String ¶
func (x ProtoOAQuoteType) String() string
func (ProtoOAQuoteType) Type ¶
func (ProtoOAQuoteType) Type() protoreflect.EnumType
func (*ProtoOAQuoteType) UnmarshalJSON
deprecated
func (x *ProtoOAQuoteType) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type ProtoOAReconcileReq ¶
type ProtoOAReconcileReq struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2124" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. ReturnProtectionOrders *bool `protobuf:"varint,3,opt,name=returnProtectionOrders" json:"returnProtectionOrders,omitempty"` // If TRUE, then current protection orders are returned separately, otherwise you can use position.stopLoss and position.takeProfit fields. // contains filtered or unexported fields }
* Request for getting Trader's current open positions and pending orders data.
func (*ProtoOAReconcileReq) Descriptor
deprecated
func (*ProtoOAReconcileReq) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAReconcileReq.ProtoReflect.Descriptor instead.
func (*ProtoOAReconcileReq) GetCtidTraderAccountId ¶
func (x *ProtoOAReconcileReq) GetCtidTraderAccountId() int64
func (*ProtoOAReconcileReq) GetPayloadType ¶
func (x *ProtoOAReconcileReq) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAReconcileReq) GetReturnProtectionOrders ¶
func (x *ProtoOAReconcileReq) GetReturnProtectionOrders() bool
func (*ProtoOAReconcileReq) ProtoMessage ¶
func (*ProtoOAReconcileReq) ProtoMessage()
func (*ProtoOAReconcileReq) ProtoReflect ¶
func (x *ProtoOAReconcileReq) ProtoReflect() protoreflect.Message
func (*ProtoOAReconcileReq) Reset ¶
func (x *ProtoOAReconcileReq) Reset()
func (*ProtoOAReconcileReq) String ¶
func (x *ProtoOAReconcileReq) String() string
type ProtoOAReconcileRes ¶
type ProtoOAReconcileRes struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2125" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. Position []*ProtoOAPosition `protobuf:"bytes,3,rep,name=position" json:"position,omitempty"` // The list of trader's account open positions. Order []*ProtoOAOrder `protobuf:"bytes,4,rep,name=order" json:"order,omitempty"` // The list of trader's account pending orders. // contains filtered or unexported fields }
* The response to the ProtoOAReconcileReq request.
func (*ProtoOAReconcileRes) Descriptor
deprecated
func (*ProtoOAReconcileRes) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAReconcileRes.ProtoReflect.Descriptor instead.
func (*ProtoOAReconcileRes) GetCtidTraderAccountId ¶
func (x *ProtoOAReconcileRes) GetCtidTraderAccountId() int64
func (*ProtoOAReconcileRes) GetOrder ¶
func (x *ProtoOAReconcileRes) GetOrder() []*ProtoOAOrder
func (*ProtoOAReconcileRes) GetPayloadType ¶
func (x *ProtoOAReconcileRes) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAReconcileRes) GetPosition ¶
func (x *ProtoOAReconcileRes) GetPosition() []*ProtoOAPosition
func (*ProtoOAReconcileRes) ProtoMessage ¶
func (*ProtoOAReconcileRes) ProtoMessage()
func (*ProtoOAReconcileRes) ProtoReflect ¶
func (x *ProtoOAReconcileRes) ProtoReflect() protoreflect.Message
func (*ProtoOAReconcileRes) Reset ¶
func (x *ProtoOAReconcileRes) Reset()
func (*ProtoOAReconcileRes) String ¶
func (x *ProtoOAReconcileRes) String() string
type ProtoOARefreshTokenReq ¶
type ProtoOARefreshTokenReq struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2173" json:"payloadType,omitempty"` RefreshToken *string `protobuf:"bytes,2,req,name=refreshToken" json:"refreshToken,omitempty"` // The Refresh Token issued for updating Access Token. // contains filtered or unexported fields }
* Request to refresh the access token using refresh token of granted trader's account.
func (*ProtoOARefreshTokenReq) Descriptor
deprecated
func (*ProtoOARefreshTokenReq) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOARefreshTokenReq.ProtoReflect.Descriptor instead.
func (*ProtoOARefreshTokenReq) GetPayloadType ¶
func (x *ProtoOARefreshTokenReq) GetPayloadType() ProtoOAPayloadType
func (*ProtoOARefreshTokenReq) GetRefreshToken ¶
func (x *ProtoOARefreshTokenReq) GetRefreshToken() string
func (*ProtoOARefreshTokenReq) ProtoMessage ¶
func (*ProtoOARefreshTokenReq) ProtoMessage()
func (*ProtoOARefreshTokenReq) ProtoReflect ¶
func (x *ProtoOARefreshTokenReq) ProtoReflect() protoreflect.Message
func (*ProtoOARefreshTokenReq) Reset ¶
func (x *ProtoOARefreshTokenReq) Reset()
func (*ProtoOARefreshTokenReq) String ¶
func (x *ProtoOARefreshTokenReq) String() string
type ProtoOARefreshTokenRes ¶
type ProtoOARefreshTokenRes struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2174" json:"payloadType,omitempty"` AccessToken *string `protobuf:"bytes,2,req,name=accessToken" json:"accessToken,omitempty"` // The Access Token issued for providing access to the Trader's Account. TokenType *string `protobuf:"bytes,3,req,name=tokenType" json:"tokenType,omitempty"` // bearer ExpiresIn *int64 `protobuf:"varint,4,req,name=expiresIn" json:"expiresIn,omitempty"` // Access Token expiration in seconds. RefreshToken *string `protobuf:"bytes,5,req,name=refreshToken" json:"refreshToken,omitempty"` // Your new Refresh Token. // contains filtered or unexported fields }
* Response to the ProtoOARefreshTokenReq request.
func (*ProtoOARefreshTokenRes) Descriptor
deprecated
func (*ProtoOARefreshTokenRes) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOARefreshTokenRes.ProtoReflect.Descriptor instead.
func (*ProtoOARefreshTokenRes) GetAccessToken ¶
func (x *ProtoOARefreshTokenRes) GetAccessToken() string
func (*ProtoOARefreshTokenRes) GetExpiresIn ¶
func (x *ProtoOARefreshTokenRes) GetExpiresIn() int64
func (*ProtoOARefreshTokenRes) GetPayloadType ¶
func (x *ProtoOARefreshTokenRes) GetPayloadType() ProtoOAPayloadType
func (*ProtoOARefreshTokenRes) GetRefreshToken ¶
func (x *ProtoOARefreshTokenRes) GetRefreshToken() string
func (*ProtoOARefreshTokenRes) GetTokenType ¶
func (x *ProtoOARefreshTokenRes) GetTokenType() string
func (*ProtoOARefreshTokenRes) ProtoMessage ¶
func (*ProtoOARefreshTokenRes) ProtoMessage()
func (*ProtoOARefreshTokenRes) ProtoReflect ¶
func (x *ProtoOARefreshTokenRes) ProtoReflect() protoreflect.Message
func (*ProtoOARefreshTokenRes) Reset ¶
func (x *ProtoOARefreshTokenRes) Reset()
func (*ProtoOARefreshTokenRes) String ¶
func (x *ProtoOARefreshTokenRes) String() string
type ProtoOASpotEvent ¶
type ProtoOASpotEvent struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2131" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. SymbolId *int64 `protobuf:"varint,3,req,name=symbolId" json:"symbolId,omitempty"` // Unique identifier of the Symbol in cTrader platform. Bid *uint64 `protobuf:"varint,4,opt,name=bid" json:"bid,omitempty"` // Bid price. Specified in 1/100_000 of unit of a price. (e.g. 1.23 -> 123_000) Ask *uint64 `protobuf:"varint,5,opt,name=ask" json:"ask,omitempty"` // Ask price. Specified in 1/100_000 of unit of a price. Trendbar []*ProtoOATrendbar `protobuf:"bytes,6,rep,name=trendbar" json:"trendbar,omitempty"` // Returns live trend bar. Requires subscription on the trend bars. SessionClose *uint64 `protobuf:"varint,7,opt,name=sessionClose" json:"sessionClose,omitempty"` // Last session close. Specified in 1/100_000 of unit of a price. Timestamp *int64 `protobuf:"varint,8,opt,name=timestamp" json:"timestamp,omitempty"` // The Unix time for spot. // contains filtered or unexported fields }
* Event that is sent when a new spot event is generated on the server side. Requires subscription on the spot events, see ProtoOASubscribeSpotsReq. First event, received after subscription will contain latest spot prices even if market is closed.
func (*ProtoOASpotEvent) Descriptor
deprecated
func (*ProtoOASpotEvent) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOASpotEvent.ProtoReflect.Descriptor instead.
func (*ProtoOASpotEvent) GetAsk ¶
func (x *ProtoOASpotEvent) GetAsk() uint64
func (*ProtoOASpotEvent) GetBid ¶
func (x *ProtoOASpotEvent) GetBid() uint64
func (*ProtoOASpotEvent) GetCtidTraderAccountId ¶
func (x *ProtoOASpotEvent) GetCtidTraderAccountId() int64
func (*ProtoOASpotEvent) GetPayloadType ¶
func (x *ProtoOASpotEvent) GetPayloadType() ProtoOAPayloadType
func (*ProtoOASpotEvent) GetSessionClose ¶
func (x *ProtoOASpotEvent) GetSessionClose() uint64
func (*ProtoOASpotEvent) GetSymbolId ¶
func (x *ProtoOASpotEvent) GetSymbolId() int64
func (*ProtoOASpotEvent) GetTimestamp ¶
func (x *ProtoOASpotEvent) GetTimestamp() int64
func (*ProtoOASpotEvent) GetTrendbar ¶
func (x *ProtoOASpotEvent) GetTrendbar() []*ProtoOATrendbar
func (*ProtoOASpotEvent) ProtoMessage ¶
func (*ProtoOASpotEvent) ProtoMessage()
func (*ProtoOASpotEvent) ProtoReflect ¶
func (x *ProtoOASpotEvent) ProtoReflect() protoreflect.Message
func (*ProtoOASpotEvent) Reset ¶
func (x *ProtoOASpotEvent) Reset()
func (*ProtoOASpotEvent) String ¶
func (x *ProtoOASpotEvent) String() string
type ProtoOAStopOutStrategy ¶
type ProtoOAStopOutStrategy int32
const ( ProtoOAStopOutStrategy_MOST_MARGIN_USED_FIRST ProtoOAStopOutStrategy = 0 //A Stop Out strategy that closes a Position with the largest Used Margin ProtoOAStopOutStrategy_MOST_LOSING_FIRST ProtoOAStopOutStrategy = 1 //A Stop Out strategy that closes a Position with the least PnL )
func (ProtoOAStopOutStrategy) Descriptor ¶
func (ProtoOAStopOutStrategy) Descriptor() protoreflect.EnumDescriptor
func (ProtoOAStopOutStrategy) Enum ¶
func (x ProtoOAStopOutStrategy) Enum() *ProtoOAStopOutStrategy
func (ProtoOAStopOutStrategy) EnumDescriptor
deprecated
func (ProtoOAStopOutStrategy) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProtoOAStopOutStrategy.Descriptor instead.
func (ProtoOAStopOutStrategy) Number ¶
func (x ProtoOAStopOutStrategy) Number() protoreflect.EnumNumber
func (ProtoOAStopOutStrategy) String ¶
func (x ProtoOAStopOutStrategy) String() string
func (ProtoOAStopOutStrategy) Type ¶
func (ProtoOAStopOutStrategy) Type() protoreflect.EnumType
func (*ProtoOAStopOutStrategy) UnmarshalJSON
deprecated
func (x *ProtoOAStopOutStrategy) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type ProtoOASubscribeDepthQuotesReq ¶
type ProtoOASubscribeDepthQuotesReq struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2156" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. SymbolId []int64 `protobuf:"varint,3,rep,name=symbolId" json:"symbolId,omitempty"` // Unique identifier of the Symbol in cTrader platform. // contains filtered or unexported fields }
* Request for subscribing on depth of market of the specified symbol.
func (*ProtoOASubscribeDepthQuotesReq) Descriptor
deprecated
func (*ProtoOASubscribeDepthQuotesReq) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOASubscribeDepthQuotesReq.ProtoReflect.Descriptor instead.
func (*ProtoOASubscribeDepthQuotesReq) GetCtidTraderAccountId ¶
func (x *ProtoOASubscribeDepthQuotesReq) GetCtidTraderAccountId() int64
func (*ProtoOASubscribeDepthQuotesReq) GetPayloadType ¶
func (x *ProtoOASubscribeDepthQuotesReq) GetPayloadType() ProtoOAPayloadType
func (*ProtoOASubscribeDepthQuotesReq) GetSymbolId ¶
func (x *ProtoOASubscribeDepthQuotesReq) GetSymbolId() []int64
func (*ProtoOASubscribeDepthQuotesReq) ProtoMessage ¶
func (*ProtoOASubscribeDepthQuotesReq) ProtoMessage()
func (*ProtoOASubscribeDepthQuotesReq) ProtoReflect ¶
func (x *ProtoOASubscribeDepthQuotesReq) ProtoReflect() protoreflect.Message
func (*ProtoOASubscribeDepthQuotesReq) Reset ¶
func (x *ProtoOASubscribeDepthQuotesReq) Reset()
func (*ProtoOASubscribeDepthQuotesReq) String ¶
func (x *ProtoOASubscribeDepthQuotesReq) String() string
type ProtoOASubscribeDepthQuotesRes ¶
type ProtoOASubscribeDepthQuotesRes struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2157" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. // contains filtered or unexported fields }
* Response to the ProtoOASubscribeDepthQuotesReq request.
func (*ProtoOASubscribeDepthQuotesRes) Descriptor
deprecated
func (*ProtoOASubscribeDepthQuotesRes) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOASubscribeDepthQuotesRes.ProtoReflect.Descriptor instead.
func (*ProtoOASubscribeDepthQuotesRes) GetCtidTraderAccountId ¶
func (x *ProtoOASubscribeDepthQuotesRes) GetCtidTraderAccountId() int64
func (*ProtoOASubscribeDepthQuotesRes) GetPayloadType ¶
func (x *ProtoOASubscribeDepthQuotesRes) GetPayloadType() ProtoOAPayloadType
func (*ProtoOASubscribeDepthQuotesRes) ProtoMessage ¶
func (*ProtoOASubscribeDepthQuotesRes) ProtoMessage()
func (*ProtoOASubscribeDepthQuotesRes) ProtoReflect ¶
func (x *ProtoOASubscribeDepthQuotesRes) ProtoReflect() protoreflect.Message
func (*ProtoOASubscribeDepthQuotesRes) Reset ¶
func (x *ProtoOASubscribeDepthQuotesRes) Reset()
func (*ProtoOASubscribeDepthQuotesRes) String ¶
func (x *ProtoOASubscribeDepthQuotesRes) String() string
type ProtoOASubscribeLiveTrendbarReq ¶
type ProtoOASubscribeLiveTrendbarReq struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2135" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. Period *ProtoOATrendbarPeriod `protobuf:"varint,3,req,name=period,enum=ProtoOATrendbarPeriod" json:"period,omitempty"` // Specifies period of trend bar series (e.g. M1, M10, etc.). SymbolId *int64 `protobuf:"varint,4,req,name=symbolId" json:"symbolId,omitempty"` // Unique identifier of the Symbol in cTrader platform. // contains filtered or unexported fields }
* Request for subscribing for live trend bars. Requires subscription on the spot events, see ProtoOASubscribeSpotsReq.
func (*ProtoOASubscribeLiveTrendbarReq) Descriptor
deprecated
func (*ProtoOASubscribeLiveTrendbarReq) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOASubscribeLiveTrendbarReq.ProtoReflect.Descriptor instead.
func (*ProtoOASubscribeLiveTrendbarReq) GetCtidTraderAccountId ¶
func (x *ProtoOASubscribeLiveTrendbarReq) GetCtidTraderAccountId() int64
func (*ProtoOASubscribeLiveTrendbarReq) GetPayloadType ¶
func (x *ProtoOASubscribeLiveTrendbarReq) GetPayloadType() ProtoOAPayloadType
func (*ProtoOASubscribeLiveTrendbarReq) GetPeriod ¶
func (x *ProtoOASubscribeLiveTrendbarReq) GetPeriod() ProtoOATrendbarPeriod
func (*ProtoOASubscribeLiveTrendbarReq) GetSymbolId ¶
func (x *ProtoOASubscribeLiveTrendbarReq) GetSymbolId() int64
func (*ProtoOASubscribeLiveTrendbarReq) ProtoMessage ¶
func (*ProtoOASubscribeLiveTrendbarReq) ProtoMessage()
func (*ProtoOASubscribeLiveTrendbarReq) ProtoReflect ¶
func (x *ProtoOASubscribeLiveTrendbarReq) ProtoReflect() protoreflect.Message
func (*ProtoOASubscribeLiveTrendbarReq) Reset ¶
func (x *ProtoOASubscribeLiveTrendbarReq) Reset()
func (*ProtoOASubscribeLiveTrendbarReq) String ¶
func (x *ProtoOASubscribeLiveTrendbarReq) String() string
type ProtoOASubscribeLiveTrendbarRes ¶
type ProtoOASubscribeLiveTrendbarRes struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2165" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. // contains filtered or unexported fields }
* Response to the ProtoOASubscribeLiveTrendbarReq request.
func (*ProtoOASubscribeLiveTrendbarRes) Descriptor
deprecated
func (*ProtoOASubscribeLiveTrendbarRes) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOASubscribeLiveTrendbarRes.ProtoReflect.Descriptor instead.
func (*ProtoOASubscribeLiveTrendbarRes) GetCtidTraderAccountId ¶
func (x *ProtoOASubscribeLiveTrendbarRes) GetCtidTraderAccountId() int64
func (*ProtoOASubscribeLiveTrendbarRes) GetPayloadType ¶
func (x *ProtoOASubscribeLiveTrendbarRes) GetPayloadType() ProtoOAPayloadType
func (*ProtoOASubscribeLiveTrendbarRes) ProtoMessage ¶
func (*ProtoOASubscribeLiveTrendbarRes) ProtoMessage()
func (*ProtoOASubscribeLiveTrendbarRes) ProtoReflect ¶
func (x *ProtoOASubscribeLiveTrendbarRes) ProtoReflect() protoreflect.Message
func (*ProtoOASubscribeLiveTrendbarRes) Reset ¶
func (x *ProtoOASubscribeLiveTrendbarRes) Reset()
func (*ProtoOASubscribeLiveTrendbarRes) String ¶
func (x *ProtoOASubscribeLiveTrendbarRes) String() string
type ProtoOASubscribeSpotsReq ¶
type ProtoOASubscribeSpotsReq struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2127" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. SymbolId []int64 `protobuf:"varint,3,rep,name=symbolId" json:"symbolId,omitempty"` // Unique identifier of the Symbol in cTrader platform. SubscribeToSpotTimestamp *bool `protobuf:"varint,4,opt,name=subscribeToSpotTimestamp" json:"subscribeToSpotTimestamp,omitempty"` // If TRUE you will also receive the timestamp in ProtoOASpotEvent. // contains filtered or unexported fields }
* Request for subscribing on spot events of the specified symbol. After successful subscription you'll receive technical ProtoOASpotEvent with latest price, after which you'll start receiving updates on prices via consequent ProtoOASpotEvents.
func (*ProtoOASubscribeSpotsReq) Descriptor
deprecated
func (*ProtoOASubscribeSpotsReq) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOASubscribeSpotsReq.ProtoReflect.Descriptor instead.
func (*ProtoOASubscribeSpotsReq) GetCtidTraderAccountId ¶
func (x *ProtoOASubscribeSpotsReq) GetCtidTraderAccountId() int64
func (*ProtoOASubscribeSpotsReq) GetPayloadType ¶
func (x *ProtoOASubscribeSpotsReq) GetPayloadType() ProtoOAPayloadType
func (*ProtoOASubscribeSpotsReq) GetSubscribeToSpotTimestamp ¶
func (x *ProtoOASubscribeSpotsReq) GetSubscribeToSpotTimestamp() bool
func (*ProtoOASubscribeSpotsReq) GetSymbolId ¶
func (x *ProtoOASubscribeSpotsReq) GetSymbolId() []int64
func (*ProtoOASubscribeSpotsReq) ProtoMessage ¶
func (*ProtoOASubscribeSpotsReq) ProtoMessage()
func (*ProtoOASubscribeSpotsReq) ProtoReflect ¶
func (x *ProtoOASubscribeSpotsReq) ProtoReflect() protoreflect.Message
func (*ProtoOASubscribeSpotsReq) Reset ¶
func (x *ProtoOASubscribeSpotsReq) Reset()
func (*ProtoOASubscribeSpotsReq) String ¶
func (x *ProtoOASubscribeSpotsReq) String() string
type ProtoOASubscribeSpotsRes ¶
type ProtoOASubscribeSpotsRes struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2128" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. // contains filtered or unexported fields }
* Response to the ProtoOASubscribeSpotsReq request. Reflects that your request to subscribe for symbol has been added to queue. You'll receive technical ProtoOASpotEvent with current price shortly after this response.
func (*ProtoOASubscribeSpotsRes) Descriptor
deprecated
func (*ProtoOASubscribeSpotsRes) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOASubscribeSpotsRes.ProtoReflect.Descriptor instead.
func (*ProtoOASubscribeSpotsRes) GetCtidTraderAccountId ¶
func (x *ProtoOASubscribeSpotsRes) GetCtidTraderAccountId() int64
func (*ProtoOASubscribeSpotsRes) GetPayloadType ¶
func (x *ProtoOASubscribeSpotsRes) GetPayloadType() ProtoOAPayloadType
func (*ProtoOASubscribeSpotsRes) ProtoMessage ¶
func (*ProtoOASubscribeSpotsRes) ProtoMessage()
func (*ProtoOASubscribeSpotsRes) ProtoReflect ¶
func (x *ProtoOASubscribeSpotsRes) ProtoReflect() protoreflect.Message
func (*ProtoOASubscribeSpotsRes) Reset ¶
func (x *ProtoOASubscribeSpotsRes) Reset()
func (*ProtoOASubscribeSpotsRes) String ¶
func (x *ProtoOASubscribeSpotsRes) String() string
type ProtoOASwapCalculationType ¶
type ProtoOASwapCalculationType int32
* Enum for specifying SWAP calculation type for symbol.
const ( ProtoOASwapCalculationType_PIPS ProtoOASwapCalculationType = 0 //Specifies type of SWAP computation as PIPS (0) ProtoOASwapCalculationType_PERCENTAGE ProtoOASwapCalculationType = 1 //Specifies type of SWAP computation as PERCENTAGE (1, annual, in percent) ProtoOASwapCalculationType_POINTS ProtoOASwapCalculationType = 2 // Specifies type of SWAP computation as POINTS (2) )
func (ProtoOASwapCalculationType) Descriptor ¶
func (ProtoOASwapCalculationType) Descriptor() protoreflect.EnumDescriptor
func (ProtoOASwapCalculationType) Enum ¶
func (x ProtoOASwapCalculationType) Enum() *ProtoOASwapCalculationType
func (ProtoOASwapCalculationType) EnumDescriptor
deprecated
func (ProtoOASwapCalculationType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProtoOASwapCalculationType.Descriptor instead.
func (ProtoOASwapCalculationType) Number ¶
func (x ProtoOASwapCalculationType) Number() protoreflect.EnumNumber
func (ProtoOASwapCalculationType) String ¶
func (x ProtoOASwapCalculationType) String() string
func (ProtoOASwapCalculationType) Type ¶
func (ProtoOASwapCalculationType) Type() protoreflect.EnumType
func (*ProtoOASwapCalculationType) UnmarshalJSON
deprecated
func (x *ProtoOASwapCalculationType) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type ProtoOASymbol ¶
type ProtoOASymbol struct { SymbolId *int64 `protobuf:"varint,1,req,name=symbolId" json:"symbolId,omitempty"` // The unique identifier of the symbol in specific server environment within cTrader platform. Different servers have different IDs. Digits *int32 `protobuf:"varint,2,req,name=digits" json:"digits,omitempty"` // Number of price digits to be displayed. PipPosition *int32 `protobuf:"varint,3,req,name=pipPosition" json:"pipPosition,omitempty"` // Pip position on digits. EnableShortSelling *bool `protobuf:"varint,4,opt,name=enableShortSelling" json:"enableShortSelling,omitempty"` // If TRUE then the short selling with the symbol is enabled. GuaranteedStopLoss *bool `protobuf:"varint,5,opt,name=guaranteedStopLoss" json:"guaranteedStopLoss,omitempty"` // If TRUE then setting of guaranteedStopLoss is available for limited risk accounts. SwapRollover3Days *ProtoOADayOfWeek `protobuf:"varint,6,opt,name=swapRollover3Days,enum=ProtoOADayOfWeek,def=1" json:"swapRollover3Days,omitempty"` // Day of the week when SWAP charge amount will be tripled. Doesn't impact Rollover Commission. SwapLong *float64 `protobuf:"fixed64,7,opt,name=swapLong" json:"swapLong,omitempty"` // SWAP charge for long positions. SwapShort *float64 `protobuf:"fixed64,8,opt,name=swapShort" json:"swapShort,omitempty"` // SWAP charge for short positions. MaxVolume *int64 `protobuf:"varint,9,opt,name=maxVolume" json:"maxVolume,omitempty"` // Maximum allowed volume in cents for an order with a symbol. MinVolume *int64 `protobuf:"varint,10,opt,name=minVolume" json:"minVolume,omitempty"` // Minimum allowed volume in cents for an order with a symbol. StepVolume *int64 `protobuf:"varint,11,opt,name=stepVolume" json:"stepVolume,omitempty"` // Step of the volume in cents for an order. MaxExposure *uint64 `protobuf:"varint,12,opt,name=maxExposure" json:"maxExposure,omitempty"` // Value of max exposure per symbol, per account. Blocks execution if breached. Schedule []*ProtoOAInterval `protobuf:"bytes,13,rep,name=schedule" json:"schedule,omitempty"` // Symbol trading interval, specified in seconds starting from SUNDAY 00:00 in specified time zone. // Deprecated: Do not use. Commission *int64 `protobuf:"varint,14,opt,name=commission" json:"commission,omitempty"` // Commission base amount. Total commission depends on commissionType. Use preciseTradingCommissionRate. CommissionType *ProtoOACommissionType `protobuf:"varint,15,opt,name=commissionType,enum=ProtoOACommissionType,def=1" json:"commissionType,omitempty"` // Commission type. See ProtoOACommissionType for details. SlDistance *uint32 `protobuf:"varint,16,opt,name=slDistance" json:"slDistance,omitempty"` // Minimum allowed distance between stop loss and current market price. TpDistance *uint32 `protobuf:"varint,17,opt,name=tpDistance" json:"tpDistance,omitempty"` // Minimum allowed distance between take profit and current market price. GslDistance *uint32 `protobuf:"varint,18,opt,name=gslDistance" json:"gslDistance,omitempty"` // Minimum allowed distance between guaranteed stop loss and current market price. GslCharge *int64 `protobuf:"varint,19,opt,name=gslCharge" json:"gslCharge,omitempty"` // Guaranteed stop loss fee. DistanceSetIn *ProtoOASymbolDistanceType `protobuf:"varint,20,opt,name=distanceSetIn,enum=ProtoOASymbolDistanceType,def=1" json:"distanceSetIn,omitempty"` // Unit of distance measure for slDistance, tpDistance, gslDistance. // Deprecated: Do not use. MinCommission *int64 `protobuf:"varint,21,opt,name=minCommission" json:"minCommission,omitempty"` // Minimum commission amount per trade. Use preciseMinCommission. MinCommissionType *ProtoOAMinCommissionType `protobuf:"varint,22,opt,name=minCommissionType,enum=ProtoOAMinCommissionType,def=1" json:"minCommissionType,omitempty"` // Minimum commission Type. See ProtoOAMinCommissionType for details. MinCommissionAsset *string `protobuf:"bytes,23,opt,name=minCommissionAsset,def=USD" json:"minCommissionAsset,omitempty"` // Currency for minimum commission. (USD or quote currency). RolloverCommission *int64 `protobuf:"varint,24,opt,name=rolloverCommission" json:"rolloverCommission,omitempty"` // Administrative Fee, charged instead of Swaps if the Account is marked as a "Shariah Compliant (Swap Free)". The Administrative Fee is charged daily as USD per current open volume of Position in lots. The Account charged in the Deposit currency. SkipRolloverDays *int32 `protobuf:"varint,25,opt,name=skipRolloverDays" json:"skipRolloverDays,omitempty"` // Initial period before the first rolloverCommission will be charged on the account. ScheduleTimeZone *string `protobuf:"bytes,26,opt,name=scheduleTimeZone" json:"scheduleTimeZone,omitempty"` // Time zone for the symbol trading intervals. TradingMode *ProtoOATradingMode `protobuf:"varint,27,opt,name=tradingMode,enum=ProtoOATradingMode,def=0" json:"tradingMode,omitempty"` // Rules for trading with the symbol. See ProtoOATradingMode for details. RolloverCommission3Days *ProtoOADayOfWeek `protobuf:"varint,28,opt,name=rolloverCommission3Days,enum=ProtoOADayOfWeek,def=1" json:"rolloverCommission3Days,omitempty"` // Day of the week (in UTC) when Administrative Fee charge amount will be tripled. Applied only if RolloverChargePeriod = 0 or 1. SwapCalculationType *ProtoOASwapCalculationType `protobuf:"varint,29,opt,name=swapCalculationType,enum=ProtoOASwapCalculationType,def=0" json:"swapCalculationType,omitempty"` // Specifies type of SWAP computation as PIPS (0) or PERCENTAGE (1, annual, in percent). LotSize *int64 `protobuf:"varint,30,opt,name=lotSize" json:"lotSize,omitempty"` // Lot size of the Symbol (in cents). PreciseTradingCommissionRate *int64 `protobuf:"varint,31,opt,name=preciseTradingCommissionRate" json:"preciseTradingCommissionRate,omitempty"` // Commission base amount. Total commission depends on commissionType: for non-percentage types it is multiplied by 10^8, for percentage of value commission type it is multiplied by 10^5. PreciseMinCommission *int64 `protobuf:"varint,32,opt,name=preciseMinCommission" json:"preciseMinCommission,omitempty"` // Minimum commission amount per trade multiplied by 10^8. Holiday []*ProtoOAHoliday `protobuf:"bytes,33,rep,name=holiday" json:"holiday,omitempty"` // List of holidays for this symbol specified by broker. PnlConversionFeeRate *int32 `protobuf:"varint,34,opt,name=pnlConversionFeeRate" json:"pnlConversionFeeRate,omitempty"` // Percentage (1 = 0.01%) of the realized Gross Profit, which will be paid by the Trader for any trade if the Quote Asset of the traded Symbol is not matched with the Deposit Asset. LeverageId *int64 `protobuf:"varint,35,opt,name=leverageId" json:"leverageId,omitempty"` // The unique identifier of dynamic leverage entity. https://help.ctrader.com/ctrader/trading/dynamic-leverage SwapPeriod *int32 `protobuf:"varint,36,opt,name=swapPeriod" json:"swapPeriod,omitempty"` // Period of charging swaps in hours. 24 means swaps will be charged 1 time per day, 12 - every 12 hours, 8 - every 8 hours, etc. SwapTime *int32 `protobuf:"varint,37,opt,name=swapTime" json:"swapTime,omitempty"` // Time in minutes from 00:00 (UTC) when intraday swaps are charged for the first time. SkipSWAPPeriods *int32 `protobuf:"varint,38,opt,name=skipSWAPPeriods" json:"skipSWAPPeriods,omitempty"` // Count of swapPeriods before the first SWAP charge. ChargeSwapAtWeekends *bool `protobuf:"varint,39,opt,name=chargeSwapAtWeekends" json:"chargeSwapAtWeekends,omitempty"` // If enabled, SWAP will be charged for all days of the week, including Saturday and Sunday. MeasurementUnits *string `protobuf:"bytes,40,opt,name=measurementUnits" json:"measurementUnits,omitempty"` // Specifies the units in which the base Asset of the Symbol is denominated. // contains filtered or unexported fields }
* Trading symbol entity.
func (*ProtoOASymbol) Descriptor
deprecated
func (*ProtoOASymbol) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOASymbol.ProtoReflect.Descriptor instead.
func (*ProtoOASymbol) GetChargeSwapAtWeekends ¶
func (x *ProtoOASymbol) GetChargeSwapAtWeekends() bool
func (*ProtoOASymbol) GetCommission
deprecated
func (x *ProtoOASymbol) GetCommission() int64
Deprecated: Do not use.
func (*ProtoOASymbol) GetCommissionType ¶
func (x *ProtoOASymbol) GetCommissionType() ProtoOACommissionType
func (*ProtoOASymbol) GetDigits ¶
func (x *ProtoOASymbol) GetDigits() int32
func (*ProtoOASymbol) GetDistanceSetIn ¶
func (x *ProtoOASymbol) GetDistanceSetIn() ProtoOASymbolDistanceType
func (*ProtoOASymbol) GetEnableShortSelling ¶
func (x *ProtoOASymbol) GetEnableShortSelling() bool
func (*ProtoOASymbol) GetGslCharge ¶
func (x *ProtoOASymbol) GetGslCharge() int64
func (*ProtoOASymbol) GetGslDistance ¶
func (x *ProtoOASymbol) GetGslDistance() uint32
func (*ProtoOASymbol) GetGuaranteedStopLoss ¶
func (x *ProtoOASymbol) GetGuaranteedStopLoss() bool
func (*ProtoOASymbol) GetHoliday ¶
func (x *ProtoOASymbol) GetHoliday() []*ProtoOAHoliday
func (*ProtoOASymbol) GetLeverageId ¶
func (x *ProtoOASymbol) GetLeverageId() int64
func (*ProtoOASymbol) GetLotSize ¶
func (x *ProtoOASymbol) GetLotSize() int64
func (*ProtoOASymbol) GetMaxExposure ¶
func (x *ProtoOASymbol) GetMaxExposure() uint64
func (*ProtoOASymbol) GetMaxVolume ¶
func (x *ProtoOASymbol) GetMaxVolume() int64
func (*ProtoOASymbol) GetMeasurementUnits ¶
func (x *ProtoOASymbol) GetMeasurementUnits() string
func (*ProtoOASymbol) GetMinCommission
deprecated
func (x *ProtoOASymbol) GetMinCommission() int64
Deprecated: Do not use.
func (*ProtoOASymbol) GetMinCommissionAsset ¶
func (x *ProtoOASymbol) GetMinCommissionAsset() string
func (*ProtoOASymbol) GetMinCommissionType ¶
func (x *ProtoOASymbol) GetMinCommissionType() ProtoOAMinCommissionType
func (*ProtoOASymbol) GetMinVolume ¶
func (x *ProtoOASymbol) GetMinVolume() int64
func (*ProtoOASymbol) GetPipPosition ¶
func (x *ProtoOASymbol) GetPipPosition() int32
func (*ProtoOASymbol) GetPnlConversionFeeRate ¶
func (x *ProtoOASymbol) GetPnlConversionFeeRate() int32
func (*ProtoOASymbol) GetPreciseMinCommission ¶
func (x *ProtoOASymbol) GetPreciseMinCommission() int64
func (*ProtoOASymbol) GetPreciseTradingCommissionRate ¶
func (x *ProtoOASymbol) GetPreciseTradingCommissionRate() int64
func (*ProtoOASymbol) GetRolloverCommission ¶
func (x *ProtoOASymbol) GetRolloverCommission() int64
func (*ProtoOASymbol) GetRolloverCommission3Days ¶
func (x *ProtoOASymbol) GetRolloverCommission3Days() ProtoOADayOfWeek
func (*ProtoOASymbol) GetSchedule ¶
func (x *ProtoOASymbol) GetSchedule() []*ProtoOAInterval
func (*ProtoOASymbol) GetScheduleTimeZone ¶
func (x *ProtoOASymbol) GetScheduleTimeZone() string
func (*ProtoOASymbol) GetSkipRolloverDays ¶
func (x *ProtoOASymbol) GetSkipRolloverDays() int32
func (*ProtoOASymbol) GetSkipSWAPPeriods ¶
func (x *ProtoOASymbol) GetSkipSWAPPeriods() int32
func (*ProtoOASymbol) GetSlDistance ¶
func (x *ProtoOASymbol) GetSlDistance() uint32
func (*ProtoOASymbol) GetStepVolume ¶
func (x *ProtoOASymbol) GetStepVolume() int64
func (*ProtoOASymbol) GetSwapCalculationType ¶
func (x *ProtoOASymbol) GetSwapCalculationType() ProtoOASwapCalculationType
func (*ProtoOASymbol) GetSwapLong ¶
func (x *ProtoOASymbol) GetSwapLong() float64
func (*ProtoOASymbol) GetSwapPeriod ¶
func (x *ProtoOASymbol) GetSwapPeriod() int32
func (*ProtoOASymbol) GetSwapRollover3Days ¶
func (x *ProtoOASymbol) GetSwapRollover3Days() ProtoOADayOfWeek
func (*ProtoOASymbol) GetSwapShort ¶
func (x *ProtoOASymbol) GetSwapShort() float64
func (*ProtoOASymbol) GetSwapTime ¶
func (x *ProtoOASymbol) GetSwapTime() int32
func (*ProtoOASymbol) GetSymbolId ¶
func (x *ProtoOASymbol) GetSymbolId() int64
func (*ProtoOASymbol) GetTpDistance ¶
func (x *ProtoOASymbol) GetTpDistance() uint32
func (*ProtoOASymbol) GetTradingMode ¶
func (x *ProtoOASymbol) GetTradingMode() ProtoOATradingMode
func (*ProtoOASymbol) ProtoMessage ¶
func (*ProtoOASymbol) ProtoMessage()
func (*ProtoOASymbol) ProtoReflect ¶
func (x *ProtoOASymbol) ProtoReflect() protoreflect.Message
func (*ProtoOASymbol) Reset ¶
func (x *ProtoOASymbol) Reset()
func (*ProtoOASymbol) String ¶
func (x *ProtoOASymbol) String() string
type ProtoOASymbolByIdReq ¶
type ProtoOASymbolByIdReq struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2116" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. SymbolId []int64 `protobuf:"varint,3,rep,name=symbolId" json:"symbolId,omitempty"` // Unique identifier of the symbol in cTrader platform. // contains filtered or unexported fields }
* Request for getting a full symbol entity.
func (*ProtoOASymbolByIdReq) Descriptor
deprecated
func (*ProtoOASymbolByIdReq) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOASymbolByIdReq.ProtoReflect.Descriptor instead.
func (*ProtoOASymbolByIdReq) GetCtidTraderAccountId ¶
func (x *ProtoOASymbolByIdReq) GetCtidTraderAccountId() int64
func (*ProtoOASymbolByIdReq) GetPayloadType ¶
func (x *ProtoOASymbolByIdReq) GetPayloadType() ProtoOAPayloadType
func (*ProtoOASymbolByIdReq) GetSymbolId ¶
func (x *ProtoOASymbolByIdReq) GetSymbolId() []int64
func (*ProtoOASymbolByIdReq) ProtoMessage ¶
func (*ProtoOASymbolByIdReq) ProtoMessage()
func (*ProtoOASymbolByIdReq) ProtoReflect ¶
func (x *ProtoOASymbolByIdReq) ProtoReflect() protoreflect.Message
func (*ProtoOASymbolByIdReq) Reset ¶
func (x *ProtoOASymbolByIdReq) Reset()
func (*ProtoOASymbolByIdReq) String ¶
func (x *ProtoOASymbolByIdReq) String() string
type ProtoOASymbolByIdRes ¶
type ProtoOASymbolByIdRes struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2117" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. Symbol []*ProtoOASymbol `protobuf:"bytes,3,rep,name=symbol" json:"symbol,omitempty"` // Symbol entity with the full set of fields. ArchivedSymbol []*ProtoOAArchivedSymbol `protobuf:"bytes,4,rep,name=archivedSymbol" json:"archivedSymbol,omitempty"` // Archived symbols. // contains filtered or unexported fields }
* Response to the ProtoOASymbolByIdReq request.
func (*ProtoOASymbolByIdRes) Descriptor
deprecated
func (*ProtoOASymbolByIdRes) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOASymbolByIdRes.ProtoReflect.Descriptor instead.
func (*ProtoOASymbolByIdRes) GetArchivedSymbol ¶
func (x *ProtoOASymbolByIdRes) GetArchivedSymbol() []*ProtoOAArchivedSymbol
func (*ProtoOASymbolByIdRes) GetCtidTraderAccountId ¶
func (x *ProtoOASymbolByIdRes) GetCtidTraderAccountId() int64
func (*ProtoOASymbolByIdRes) GetPayloadType ¶
func (x *ProtoOASymbolByIdRes) GetPayloadType() ProtoOAPayloadType
func (*ProtoOASymbolByIdRes) GetSymbol ¶
func (x *ProtoOASymbolByIdRes) GetSymbol() []*ProtoOASymbol
func (*ProtoOASymbolByIdRes) ProtoMessage ¶
func (*ProtoOASymbolByIdRes) ProtoMessage()
func (*ProtoOASymbolByIdRes) ProtoReflect ¶
func (x *ProtoOASymbolByIdRes) ProtoReflect() protoreflect.Message
func (*ProtoOASymbolByIdRes) Reset ¶
func (x *ProtoOASymbolByIdRes) Reset()
func (*ProtoOASymbolByIdRes) String ¶
func (x *ProtoOASymbolByIdRes) String() string
type ProtoOASymbolCategory ¶
type ProtoOASymbolCategory struct { Id *int64 `protobuf:"varint,1,req,name=id" json:"id,omitempty"` // The unique identifier of the symbol category. AssetClassId *int64 `protobuf:"varint,2,req,name=assetClassId" json:"assetClassId,omitempty"` // Link to the asset class. One asset class can have many symbol categories. Name *string `protobuf:"bytes,3,req,name=name" json:"name,omitempty"` // Category name. SortingNumber *float64 `protobuf:"fixed64,4,opt,name=sortingNumber" json:"sortingNumber,omitempty"` // The number used for sorting Symbol Categories in the UI (lowest number should appear at the top). // contains filtered or unexported fields }
* Symbol category entity.
func (*ProtoOASymbolCategory) Descriptor
deprecated
func (*ProtoOASymbolCategory) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOASymbolCategory.ProtoReflect.Descriptor instead.
func (*ProtoOASymbolCategory) GetAssetClassId ¶
func (x *ProtoOASymbolCategory) GetAssetClassId() int64
func (*ProtoOASymbolCategory) GetId ¶
func (x *ProtoOASymbolCategory) GetId() int64
func (*ProtoOASymbolCategory) GetName ¶
func (x *ProtoOASymbolCategory) GetName() string
func (*ProtoOASymbolCategory) GetSortingNumber ¶
func (x *ProtoOASymbolCategory) GetSortingNumber() float64
func (*ProtoOASymbolCategory) ProtoMessage ¶
func (*ProtoOASymbolCategory) ProtoMessage()
func (*ProtoOASymbolCategory) ProtoReflect ¶
func (x *ProtoOASymbolCategory) ProtoReflect() protoreflect.Message
func (*ProtoOASymbolCategory) Reset ¶
func (x *ProtoOASymbolCategory) Reset()
func (*ProtoOASymbolCategory) String ¶
func (x *ProtoOASymbolCategory) String() string
type ProtoOASymbolCategoryListReq ¶
type ProtoOASymbolCategoryListReq struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2160" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. // contains filtered or unexported fields }
* Request for a list of symbol categories available for a trading account.
func (*ProtoOASymbolCategoryListReq) Descriptor
deprecated
func (*ProtoOASymbolCategoryListReq) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOASymbolCategoryListReq.ProtoReflect.Descriptor instead.
func (*ProtoOASymbolCategoryListReq) GetCtidTraderAccountId ¶
func (x *ProtoOASymbolCategoryListReq) GetCtidTraderAccountId() int64
func (*ProtoOASymbolCategoryListReq) GetPayloadType ¶
func (x *ProtoOASymbolCategoryListReq) GetPayloadType() ProtoOAPayloadType
func (*ProtoOASymbolCategoryListReq) ProtoMessage ¶
func (*ProtoOASymbolCategoryListReq) ProtoMessage()
func (*ProtoOASymbolCategoryListReq) ProtoReflect ¶
func (x *ProtoOASymbolCategoryListReq) ProtoReflect() protoreflect.Message
func (*ProtoOASymbolCategoryListReq) Reset ¶
func (x *ProtoOASymbolCategoryListReq) Reset()
func (*ProtoOASymbolCategoryListReq) String ¶
func (x *ProtoOASymbolCategoryListReq) String() string
type ProtoOASymbolCategoryListRes ¶
type ProtoOASymbolCategoryListRes struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2161" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. SymbolCategory []*ProtoOASymbolCategory `protobuf:"bytes,3,rep,name=symbolCategory" json:"symbolCategory,omitempty"` // The list of symbol categories. // contains filtered or unexported fields }
* Response to the ProtoSymbolCategoryListReq request.
func (*ProtoOASymbolCategoryListRes) Descriptor
deprecated
func (*ProtoOASymbolCategoryListRes) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOASymbolCategoryListRes.ProtoReflect.Descriptor instead.
func (*ProtoOASymbolCategoryListRes) GetCtidTraderAccountId ¶
func (x *ProtoOASymbolCategoryListRes) GetCtidTraderAccountId() int64
func (*ProtoOASymbolCategoryListRes) GetPayloadType ¶
func (x *ProtoOASymbolCategoryListRes) GetPayloadType() ProtoOAPayloadType
func (*ProtoOASymbolCategoryListRes) GetSymbolCategory ¶
func (x *ProtoOASymbolCategoryListRes) GetSymbolCategory() []*ProtoOASymbolCategory
func (*ProtoOASymbolCategoryListRes) ProtoMessage ¶
func (*ProtoOASymbolCategoryListRes) ProtoMessage()
func (*ProtoOASymbolCategoryListRes) ProtoReflect ¶
func (x *ProtoOASymbolCategoryListRes) ProtoReflect() protoreflect.Message
func (*ProtoOASymbolCategoryListRes) Reset ¶
func (x *ProtoOASymbolCategoryListRes) Reset()
func (*ProtoOASymbolCategoryListRes) String ¶
func (x *ProtoOASymbolCategoryListRes) String() string
type ProtoOASymbolChangedEvent ¶
type ProtoOASymbolChangedEvent struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2120" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. SymbolId []int64 `protobuf:"varint,3,rep,name=symbolId" json:"symbolId,omitempty"` // Unique identifier of the Symbol in cTrader platform. // contains filtered or unexported fields }
* Event that is sent when the symbol is changed on the Server side.
func (*ProtoOASymbolChangedEvent) Descriptor
deprecated
func (*ProtoOASymbolChangedEvent) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOASymbolChangedEvent.ProtoReflect.Descriptor instead.
func (*ProtoOASymbolChangedEvent) GetCtidTraderAccountId ¶
func (x *ProtoOASymbolChangedEvent) GetCtidTraderAccountId() int64
func (*ProtoOASymbolChangedEvent) GetPayloadType ¶
func (x *ProtoOASymbolChangedEvent) GetPayloadType() ProtoOAPayloadType
func (*ProtoOASymbolChangedEvent) GetSymbolId ¶
func (x *ProtoOASymbolChangedEvent) GetSymbolId() []int64
func (*ProtoOASymbolChangedEvent) ProtoMessage ¶
func (*ProtoOASymbolChangedEvent) ProtoMessage()
func (*ProtoOASymbolChangedEvent) ProtoReflect ¶
func (x *ProtoOASymbolChangedEvent) ProtoReflect() protoreflect.Message
func (*ProtoOASymbolChangedEvent) Reset ¶
func (x *ProtoOASymbolChangedEvent) Reset()
func (*ProtoOASymbolChangedEvent) String ¶
func (x *ProtoOASymbolChangedEvent) String() string
type ProtoOASymbolDistanceType ¶
type ProtoOASymbolDistanceType int32
* Enum for specifying stop loss and take profit distances.
const ( ProtoOASymbolDistanceType_SYMBOL_DISTANCE_IN_POINTS ProtoOASymbolDistanceType = 1 ProtoOASymbolDistanceType_SYMBOL_DISTANCE_IN_PERCENTAGE ProtoOASymbolDistanceType = 2 )
func (ProtoOASymbolDistanceType) Descriptor ¶
func (ProtoOASymbolDistanceType) Descriptor() protoreflect.EnumDescriptor
func (ProtoOASymbolDistanceType) Enum ¶
func (x ProtoOASymbolDistanceType) Enum() *ProtoOASymbolDistanceType
func (ProtoOASymbolDistanceType) EnumDescriptor
deprecated
func (ProtoOASymbolDistanceType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProtoOASymbolDistanceType.Descriptor instead.
func (ProtoOASymbolDistanceType) Number ¶
func (x ProtoOASymbolDistanceType) Number() protoreflect.EnumNumber
func (ProtoOASymbolDistanceType) String ¶
func (x ProtoOASymbolDistanceType) String() string
func (ProtoOASymbolDistanceType) Type ¶
func (ProtoOASymbolDistanceType) Type() protoreflect.EnumType
func (*ProtoOASymbolDistanceType) UnmarshalJSON
deprecated
func (x *ProtoOASymbolDistanceType) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type ProtoOASymbolsForConversionReq ¶
type ProtoOASymbolsForConversionReq struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2118" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. FirstAssetId *int64 `protobuf:"varint,3,req,name=firstAssetId" json:"firstAssetId,omitempty"` // The ID of the firs asset in the conversation chain. e.g.: for EUR/USD the firstAssetId is EUR ID and lastAssetId is USD ID. LastAssetId *int64 `protobuf:"varint,4,req,name=lastAssetId" json:"lastAssetId,omitempty"` // The ID of the last asset in the conversation chain. e.g.: for EUR/USD the firstAssetId is EUR ID and lastAssetId is USD ID. // contains filtered or unexported fields }
* Request for getting a conversion chain between two assets that consists of several symbols. Use when no direct quote is available.
func (*ProtoOASymbolsForConversionReq) Descriptor
deprecated
func (*ProtoOASymbolsForConversionReq) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOASymbolsForConversionReq.ProtoReflect.Descriptor instead.
func (*ProtoOASymbolsForConversionReq) GetCtidTraderAccountId ¶
func (x *ProtoOASymbolsForConversionReq) GetCtidTraderAccountId() int64
func (*ProtoOASymbolsForConversionReq) GetFirstAssetId ¶
func (x *ProtoOASymbolsForConversionReq) GetFirstAssetId() int64
func (*ProtoOASymbolsForConversionReq) GetLastAssetId ¶
func (x *ProtoOASymbolsForConversionReq) GetLastAssetId() int64
func (*ProtoOASymbolsForConversionReq) GetPayloadType ¶
func (x *ProtoOASymbolsForConversionReq) GetPayloadType() ProtoOAPayloadType
func (*ProtoOASymbolsForConversionReq) ProtoMessage ¶
func (*ProtoOASymbolsForConversionReq) ProtoMessage()
func (*ProtoOASymbolsForConversionReq) ProtoReflect ¶
func (x *ProtoOASymbolsForConversionReq) ProtoReflect() protoreflect.Message
func (*ProtoOASymbolsForConversionReq) Reset ¶
func (x *ProtoOASymbolsForConversionReq) Reset()
func (*ProtoOASymbolsForConversionReq) String ¶
func (x *ProtoOASymbolsForConversionReq) String() string
type ProtoOASymbolsForConversionRes ¶
type ProtoOASymbolsForConversionRes struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2119" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. Symbol []*ProtoOALightSymbol `protobuf:"bytes,3,rep,name=symbol" json:"symbol,omitempty"` // Conversion chain of the symbols (e.g. EUR/USD, USD/JPY, GBP/JPY -> EUR/GBP). // contains filtered or unexported fields }
* Response to the ProtoOASymbolsForConversionReq request.
func (*ProtoOASymbolsForConversionRes) Descriptor
deprecated
func (*ProtoOASymbolsForConversionRes) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOASymbolsForConversionRes.ProtoReflect.Descriptor instead.
func (*ProtoOASymbolsForConversionRes) GetCtidTraderAccountId ¶
func (x *ProtoOASymbolsForConversionRes) GetCtidTraderAccountId() int64
func (*ProtoOASymbolsForConversionRes) GetPayloadType ¶
func (x *ProtoOASymbolsForConversionRes) GetPayloadType() ProtoOAPayloadType
func (*ProtoOASymbolsForConversionRes) GetSymbol ¶
func (x *ProtoOASymbolsForConversionRes) GetSymbol() []*ProtoOALightSymbol
func (*ProtoOASymbolsForConversionRes) ProtoMessage ¶
func (*ProtoOASymbolsForConversionRes) ProtoMessage()
func (*ProtoOASymbolsForConversionRes) ProtoReflect ¶
func (x *ProtoOASymbolsForConversionRes) ProtoReflect() protoreflect.Message
func (*ProtoOASymbolsForConversionRes) Reset ¶
func (x *ProtoOASymbolsForConversionRes) Reset()
func (*ProtoOASymbolsForConversionRes) String ¶
func (x *ProtoOASymbolsForConversionRes) String() string
type ProtoOASymbolsListReq ¶
type ProtoOASymbolsListReq struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2114" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. IncludeArchivedSymbols *bool `protobuf:"varint,3,opt,name=includeArchivedSymbols,def=0" json:"includeArchivedSymbols,omitempty"` // Whether to include old archived symbols into response. // contains filtered or unexported fields }
* Request for a list of symbols available for a trading account. Symbol entries are returned with the limited set of fields.
func (*ProtoOASymbolsListReq) Descriptor
deprecated
func (*ProtoOASymbolsListReq) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOASymbolsListReq.ProtoReflect.Descriptor instead.
func (*ProtoOASymbolsListReq) GetCtidTraderAccountId ¶
func (x *ProtoOASymbolsListReq) GetCtidTraderAccountId() int64
func (*ProtoOASymbolsListReq) GetIncludeArchivedSymbols ¶
func (x *ProtoOASymbolsListReq) GetIncludeArchivedSymbols() bool
func (*ProtoOASymbolsListReq) GetPayloadType ¶
func (x *ProtoOASymbolsListReq) GetPayloadType() ProtoOAPayloadType
func (*ProtoOASymbolsListReq) ProtoMessage ¶
func (*ProtoOASymbolsListReq) ProtoMessage()
func (*ProtoOASymbolsListReq) ProtoReflect ¶
func (x *ProtoOASymbolsListReq) ProtoReflect() protoreflect.Message
func (*ProtoOASymbolsListReq) Reset ¶
func (x *ProtoOASymbolsListReq) Reset()
func (*ProtoOASymbolsListReq) String ¶
func (x *ProtoOASymbolsListReq) String() string
type ProtoOASymbolsListRes ¶
type ProtoOASymbolsListRes struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2115" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. Symbol []*ProtoOALightSymbol `protobuf:"bytes,3,rep,name=symbol" json:"symbol,omitempty"` // The list of symbols. ArchivedSymbol []*ProtoOAArchivedSymbol `protobuf:"bytes,4,rep,name=archivedSymbol" json:"archivedSymbol,omitempty"` // The list of archived symbols. // contains filtered or unexported fields }
* Response to the ProtoOASymbolsListReq request.
func (*ProtoOASymbolsListRes) Descriptor
deprecated
func (*ProtoOASymbolsListRes) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOASymbolsListRes.ProtoReflect.Descriptor instead.
func (*ProtoOASymbolsListRes) GetArchivedSymbol ¶
func (x *ProtoOASymbolsListRes) GetArchivedSymbol() []*ProtoOAArchivedSymbol
func (*ProtoOASymbolsListRes) GetCtidTraderAccountId ¶
func (x *ProtoOASymbolsListRes) GetCtidTraderAccountId() int64
func (*ProtoOASymbolsListRes) GetPayloadType ¶
func (x *ProtoOASymbolsListRes) GetPayloadType() ProtoOAPayloadType
func (*ProtoOASymbolsListRes) GetSymbol ¶
func (x *ProtoOASymbolsListRes) GetSymbol() []*ProtoOALightSymbol
func (*ProtoOASymbolsListRes) ProtoMessage ¶
func (*ProtoOASymbolsListRes) ProtoMessage()
func (*ProtoOASymbolsListRes) ProtoReflect ¶
func (x *ProtoOASymbolsListRes) ProtoReflect() protoreflect.Message
func (*ProtoOASymbolsListRes) Reset ¶
func (x *ProtoOASymbolsListRes) Reset()
func (*ProtoOASymbolsListRes) String ¶
func (x *ProtoOASymbolsListRes) String() string
type ProtoOATickData ¶
type ProtoOATickData struct { Timestamp *int64 `protobuf:"varint,1,req,name=timestamp" json:"timestamp,omitempty"` // The Unix time in milliseconds of the tick. See ProtoOAGetTickDataRes.tickData for details. Tick *int64 `protobuf:"varint,2,req,name=tick" json:"tick,omitempty"` // Tick price. // contains filtered or unexported fields }
* Historical tick data type.
func (*ProtoOATickData) Descriptor
deprecated
func (*ProtoOATickData) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOATickData.ProtoReflect.Descriptor instead.
func (*ProtoOATickData) GetTick ¶
func (x *ProtoOATickData) GetTick() int64
func (*ProtoOATickData) GetTimestamp ¶
func (x *ProtoOATickData) GetTimestamp() int64
func (*ProtoOATickData) ProtoMessage ¶
func (*ProtoOATickData) ProtoMessage()
func (*ProtoOATickData) ProtoReflect ¶
func (x *ProtoOATickData) ProtoReflect() protoreflect.Message
func (*ProtoOATickData) Reset ¶
func (x *ProtoOATickData) Reset()
func (*ProtoOATickData) String ¶
func (x *ProtoOATickData) String() string
type ProtoOATimeInForce ¶
type ProtoOATimeInForce int32
* Order's time in force ENUM.
const ( ProtoOATimeInForce_GOOD_TILL_DATE ProtoOATimeInForce = 1 ProtoOATimeInForce_GOOD_TILL_CANCEL ProtoOATimeInForce = 2 ProtoOATimeInForce_IMMEDIATE_OR_CANCEL ProtoOATimeInForce = 3 ProtoOATimeInForce_FILL_OR_KILL ProtoOATimeInForce = 4 ProtoOATimeInForce_MARKET_ON_OPEN ProtoOATimeInForce = 5 )
func (ProtoOATimeInForce) Descriptor ¶
func (ProtoOATimeInForce) Descriptor() protoreflect.EnumDescriptor
func (ProtoOATimeInForce) Enum ¶
func (x ProtoOATimeInForce) Enum() *ProtoOATimeInForce
func (ProtoOATimeInForce) EnumDescriptor
deprecated
func (ProtoOATimeInForce) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProtoOATimeInForce.Descriptor instead.
func (ProtoOATimeInForce) Number ¶
func (x ProtoOATimeInForce) Number() protoreflect.EnumNumber
func (ProtoOATimeInForce) String ¶
func (x ProtoOATimeInForce) String() string
func (ProtoOATimeInForce) Type ¶
func (ProtoOATimeInForce) Type() protoreflect.EnumType
func (*ProtoOATimeInForce) UnmarshalJSON
deprecated
func (x *ProtoOATimeInForce) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type ProtoOATotalMarginCalculationType ¶
type ProtoOATotalMarginCalculationType int32
* Enum for specifying margin calculation type for an account.
const ( ProtoOATotalMarginCalculationType_MAX ProtoOATotalMarginCalculationType = 0 ProtoOATotalMarginCalculationType_SUM ProtoOATotalMarginCalculationType = 1 ProtoOATotalMarginCalculationType_NET ProtoOATotalMarginCalculationType = 2 )
func (ProtoOATotalMarginCalculationType) Descriptor ¶
func (ProtoOATotalMarginCalculationType) Descriptor() protoreflect.EnumDescriptor
func (ProtoOATotalMarginCalculationType) Enum ¶
func (x ProtoOATotalMarginCalculationType) Enum() *ProtoOATotalMarginCalculationType
func (ProtoOATotalMarginCalculationType) EnumDescriptor
deprecated
func (ProtoOATotalMarginCalculationType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProtoOATotalMarginCalculationType.Descriptor instead.
func (ProtoOATotalMarginCalculationType) Number ¶
func (x ProtoOATotalMarginCalculationType) Number() protoreflect.EnumNumber
func (ProtoOATotalMarginCalculationType) String ¶
func (x ProtoOATotalMarginCalculationType) String() string
func (ProtoOATotalMarginCalculationType) Type ¶
func (ProtoOATotalMarginCalculationType) Type() protoreflect.EnumType
func (*ProtoOATotalMarginCalculationType) UnmarshalJSON
deprecated
func (x *ProtoOATotalMarginCalculationType) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type ProtoOATradeData ¶
type ProtoOATradeData struct { SymbolId *int64 `protobuf:"varint,1,req,name=symbolId" json:"symbolId,omitempty"` // The unique identifier of the symbol in specific server environment within cTrader platform. Different brokers might have different IDs. Volume *int64 `protobuf:"varint,2,req,name=volume" json:"volume,omitempty"` // Volume in cents. TradeSide *ProtoOATradeSide `protobuf:"varint,3,req,name=tradeSide,enum=ProtoOATradeSide" json:"tradeSide,omitempty"` // Buy, Sell. OpenTimestamp *int64 `protobuf:"varint,4,opt,name=openTimestamp" json:"openTimestamp,omitempty"` // The Unix time in milliseconds when position was opened or order was created. Label *string `protobuf:"bytes,5,opt,name=label" json:"label,omitempty"` // Text label specified during order request. GuaranteedStopLoss *bool `protobuf:"varint,6,opt,name=guaranteedStopLoss" json:"guaranteedStopLoss,omitempty"` // If TRUE then position/order stop loss is guaranteedStopLoss. Comment *string `protobuf:"bytes,7,opt,name=comment" json:"comment,omitempty"` // User-specified comment. MeasurementUnits *string `protobuf:"bytes,8,opt,name=measurementUnits" json:"measurementUnits,omitempty"` // Specifies the units in which the Symbol is denominated. CloseTimestamp *uint64 `protobuf:"varint,9,opt,name=closeTimestamp" json:"closeTimestamp,omitempty"` // The Unix time in milliseconds when a Position was closed // contains filtered or unexported fields }
* Position/order trading details entity.
func (*ProtoOATradeData) Descriptor
deprecated
func (*ProtoOATradeData) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOATradeData.ProtoReflect.Descriptor instead.
func (*ProtoOATradeData) GetCloseTimestamp ¶
func (x *ProtoOATradeData) GetCloseTimestamp() uint64
func (*ProtoOATradeData) GetComment ¶
func (x *ProtoOATradeData) GetComment() string
func (*ProtoOATradeData) GetGuaranteedStopLoss ¶
func (x *ProtoOATradeData) GetGuaranteedStopLoss() bool
func (*ProtoOATradeData) GetLabel ¶
func (x *ProtoOATradeData) GetLabel() string
func (*ProtoOATradeData) GetMeasurementUnits ¶
func (x *ProtoOATradeData) GetMeasurementUnits() string
func (*ProtoOATradeData) GetOpenTimestamp ¶
func (x *ProtoOATradeData) GetOpenTimestamp() int64
func (*ProtoOATradeData) GetSymbolId ¶
func (x *ProtoOATradeData) GetSymbolId() int64
func (*ProtoOATradeData) GetTradeSide ¶
func (x *ProtoOATradeData) GetTradeSide() ProtoOATradeSide
func (*ProtoOATradeData) GetVolume ¶
func (x *ProtoOATradeData) GetVolume() int64
func (*ProtoOATradeData) ProtoMessage ¶
func (*ProtoOATradeData) ProtoMessage()
func (*ProtoOATradeData) ProtoReflect ¶
func (x *ProtoOATradeData) ProtoReflect() protoreflect.Message
func (*ProtoOATradeData) Reset ¶
func (x *ProtoOATradeData) Reset()
func (*ProtoOATradeData) String ¶
func (x *ProtoOATradeData) String() string
type ProtoOATradeSide ¶
type ProtoOATradeSide int32
* Trader side ENUM. Used for order, position, deal.
const ( ProtoOATradeSide_BUY ProtoOATradeSide = 1 ProtoOATradeSide_SELL ProtoOATradeSide = 2 )
func (ProtoOATradeSide) Descriptor ¶
func (ProtoOATradeSide) Descriptor() protoreflect.EnumDescriptor
func (ProtoOATradeSide) Enum ¶
func (x ProtoOATradeSide) Enum() *ProtoOATradeSide
func (ProtoOATradeSide) EnumDescriptor
deprecated
func (ProtoOATradeSide) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProtoOATradeSide.Descriptor instead.
func (ProtoOATradeSide) Number ¶
func (x ProtoOATradeSide) Number() protoreflect.EnumNumber
func (ProtoOATradeSide) String ¶
func (x ProtoOATradeSide) String() string
func (ProtoOATradeSide) Type ¶
func (ProtoOATradeSide) Type() protoreflect.EnumType
func (*ProtoOATradeSide) UnmarshalJSON
deprecated
func (x *ProtoOATradeSide) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type ProtoOATrader ¶
type ProtoOATrader struct { CtidTraderAccountId *int64 `protobuf:"varint,1,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // The unique Trader's Account ID used to match the responses to the Trader's Account. Balance *int64 `protobuf:"varint,2,req,name=balance" json:"balance,omitempty"` // Current account balance. BalanceVersion *int64 `protobuf:"varint,3,opt,name=balanceVersion" json:"balanceVersion,omitempty"` // Balance version used to identify the final balance. Increments each time when the trader's account balance is changed. ManagerBonus *int64 `protobuf:"varint,4,opt,name=managerBonus" json:"managerBonus,omitempty"` // Amount of broker's bonus allocated to the account. IbBonus *int64 `protobuf:"varint,5,opt,name=ibBonus" json:"ibBonus,omitempty"` // Amount of introducing broker bonus allocated to the account. NonWithdrawableBonus *int64 `protobuf:"varint,6,opt,name=nonWithdrawableBonus" json:"nonWithdrawableBonus,omitempty"` // Broker's bonus that cannot be withdrew from the account as cash. AccessRights *ProtoOAAccessRights `protobuf:"varint,7,opt,name=accessRights,enum=ProtoOAAccessRights,def=0" json:"accessRights,omitempty"` // Access rights that an owner has to the account in cTrader platform. See ProtoOAAccessRights for details. DepositAssetId *int64 `protobuf:"varint,8,req,name=depositAssetId" json:"depositAssetId,omitempty"` // Deposit currency of the account. SwapFree *bool `protobuf:"varint,9,opt,name=swapFree" json:"swapFree,omitempty"` // If TRUE then account is Shariah compliant. LeverageInCents *uint32 `protobuf:"varint,10,opt,name=leverageInCents" json:"leverageInCents,omitempty"` // Account leverage (e.g. If leverage = 1:50 then value = 5000). TotalMarginCalculationType *ProtoOATotalMarginCalculationType `` // Margin computation type for the account (MAX, SUM, NET). /* 139-byte string literal not displayed */ MaxLeverage *uint32 `protobuf:"varint,12,opt,name=maxLeverage" json:"maxLeverage,omitempty"` // Maximum allowed leverage for the account. Used as validation when a Trader can change leverage value. // Deprecated: Do not use. FrenchRisk *bool `protobuf:"varint,13,opt,name=frenchRisk" json:"frenchRisk,omitempty"` // If TRUE then account is AMF compliant. Use isLimitedRisk and limitedRiskMarginCalculationStrategy. TraderLogin *int64 `protobuf:"varint,14,opt,name=traderLogin" json:"traderLogin,omitempty"` // ID of the account that is unique per server (Broker). AccountType *ProtoOAAccountType `protobuf:"varint,15,opt,name=accountType,enum=ProtoOAAccountType,def=0" json:"accountType,omitempty"` // Account type: HEDGED, NETTED, etc. BrokerName *string `protobuf:"bytes,16,opt,name=brokerName" json:"brokerName,omitempty"` // Some whitelabel assigned to trader by broker at the moment of account creation. RegistrationTimestamp *int64 `protobuf:"varint,17,opt,name=registrationTimestamp" json:"registrationTimestamp,omitempty"` // The Unix timestamp in milliseconds of the account registration. Should be used as minimal date in historical data requests. IsLimitedRisk *bool `protobuf:"varint,18,opt,name=isLimitedRisk" json:"isLimitedRisk,omitempty"` // If TRUE then account is compliant to use specific margin calculation strategy. Such accounts are require to have guaranteed stop loss on all positions. LimitedRiskMarginCalculationStrategy *ProtoOALimitedRiskMarginCalculationStrategy `` // Special strategy used in margin calculations for this account (if account isLimitedRisk). /* 175-byte string literal not displayed */ MoneyDigits *uint32 `protobuf:"varint,20,opt,name=moneyDigits" json:"moneyDigits,omitempty"` // Specifies the exponent of the monetary values. E.g. moneyDigits = 8 must be interpret as business value multiplied by 10^8, then real balance would be 10053099944 / 10^8 = 100.53099944. Affects balance, managerBonus, ibBonus, nonWithdrawableBonus. FairStopOut *bool `protobuf:"varint,21,opt,name=fairStopOut" json:"fairStopOut,omitempty"` // If TRUE - Position is fully closed on Stop Out, if FALSE - smart (partial closing) Stop Out is applied, if unspecified - Stop Out format is determined by Broker. StopOutStrategy *ProtoOAStopOutStrategy `protobuf:"varint,22,opt,name=stopOutStrategy,enum=ProtoOAStopOutStrategy,def=0" json:"stopOutStrategy,omitempty"` //The Stop Out strategy that is used for this Trader. The Trader can change the value in the cTrader UI if this option is not disabled by the Broker // contains filtered or unexported fields }
* Trading account entity.
func (*ProtoOATrader) Descriptor
deprecated
func (*ProtoOATrader) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOATrader.ProtoReflect.Descriptor instead.
func (*ProtoOATrader) GetAccessRights ¶
func (x *ProtoOATrader) GetAccessRights() ProtoOAAccessRights
func (*ProtoOATrader) GetAccountType ¶
func (x *ProtoOATrader) GetAccountType() ProtoOAAccountType
func (*ProtoOATrader) GetBalance ¶
func (x *ProtoOATrader) GetBalance() int64
func (*ProtoOATrader) GetBalanceVersion ¶
func (x *ProtoOATrader) GetBalanceVersion() int64
func (*ProtoOATrader) GetBrokerName ¶
func (x *ProtoOATrader) GetBrokerName() string
func (*ProtoOATrader) GetCtidTraderAccountId ¶
func (x *ProtoOATrader) GetCtidTraderAccountId() int64
func (*ProtoOATrader) GetDepositAssetId ¶
func (x *ProtoOATrader) GetDepositAssetId() int64
func (*ProtoOATrader) GetFairStopOut ¶
func (x *ProtoOATrader) GetFairStopOut() bool
func (*ProtoOATrader) GetFrenchRisk
deprecated
func (x *ProtoOATrader) GetFrenchRisk() bool
Deprecated: Do not use.
func (*ProtoOATrader) GetIbBonus ¶
func (x *ProtoOATrader) GetIbBonus() int64
func (*ProtoOATrader) GetIsLimitedRisk ¶
func (x *ProtoOATrader) GetIsLimitedRisk() bool
func (*ProtoOATrader) GetLeverageInCents ¶
func (x *ProtoOATrader) GetLeverageInCents() uint32
func (*ProtoOATrader) GetLimitedRiskMarginCalculationStrategy ¶
func (x *ProtoOATrader) GetLimitedRiskMarginCalculationStrategy() ProtoOALimitedRiskMarginCalculationStrategy
func (*ProtoOATrader) GetManagerBonus ¶
func (x *ProtoOATrader) GetManagerBonus() int64
func (*ProtoOATrader) GetMaxLeverage ¶
func (x *ProtoOATrader) GetMaxLeverage() uint32
func (*ProtoOATrader) GetMoneyDigits ¶
func (x *ProtoOATrader) GetMoneyDigits() uint32
func (*ProtoOATrader) GetNonWithdrawableBonus ¶
func (x *ProtoOATrader) GetNonWithdrawableBonus() int64
func (*ProtoOATrader) GetRegistrationTimestamp ¶
func (x *ProtoOATrader) GetRegistrationTimestamp() int64
func (*ProtoOATrader) GetStopOutStrategy ¶
func (x *ProtoOATrader) GetStopOutStrategy() ProtoOAStopOutStrategy
func (*ProtoOATrader) GetSwapFree ¶
func (x *ProtoOATrader) GetSwapFree() bool
func (*ProtoOATrader) GetTotalMarginCalculationType ¶
func (x *ProtoOATrader) GetTotalMarginCalculationType() ProtoOATotalMarginCalculationType
func (*ProtoOATrader) GetTraderLogin ¶
func (x *ProtoOATrader) GetTraderLogin() int64
func (*ProtoOATrader) ProtoMessage ¶
func (*ProtoOATrader) ProtoMessage()
func (*ProtoOATrader) ProtoReflect ¶
func (x *ProtoOATrader) ProtoReflect() protoreflect.Message
func (*ProtoOATrader) Reset ¶
func (x *ProtoOATrader) Reset()
func (*ProtoOATrader) String ¶
func (x *ProtoOATrader) String() string
type ProtoOATraderReq ¶
type ProtoOATraderReq struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2121" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. // contains filtered or unexported fields }
* Request for getting data of Trader's Account.
func (*ProtoOATraderReq) Descriptor
deprecated
func (*ProtoOATraderReq) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOATraderReq.ProtoReflect.Descriptor instead.
func (*ProtoOATraderReq) GetCtidTraderAccountId ¶
func (x *ProtoOATraderReq) GetCtidTraderAccountId() int64
func (*ProtoOATraderReq) GetPayloadType ¶
func (x *ProtoOATraderReq) GetPayloadType() ProtoOAPayloadType
func (*ProtoOATraderReq) ProtoMessage ¶
func (*ProtoOATraderReq) ProtoMessage()
func (*ProtoOATraderReq) ProtoReflect ¶
func (x *ProtoOATraderReq) ProtoReflect() protoreflect.Message
func (*ProtoOATraderReq) Reset ¶
func (x *ProtoOATraderReq) Reset()
func (*ProtoOATraderReq) String ¶
func (x *ProtoOATraderReq) String() string
type ProtoOATraderRes ¶
type ProtoOATraderRes struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2122" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. Trader *ProtoOATrader `protobuf:"bytes,3,req,name=trader" json:"trader,omitempty"` // The Trader account information. // contains filtered or unexported fields }
* Response to the ProtoOATraderReq request.
func (*ProtoOATraderRes) Descriptor
deprecated
func (*ProtoOATraderRes) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOATraderRes.ProtoReflect.Descriptor instead.
func (*ProtoOATraderRes) GetCtidTraderAccountId ¶
func (x *ProtoOATraderRes) GetCtidTraderAccountId() int64
func (*ProtoOATraderRes) GetPayloadType ¶
func (x *ProtoOATraderRes) GetPayloadType() ProtoOAPayloadType
func (*ProtoOATraderRes) GetTrader ¶
func (x *ProtoOATraderRes) GetTrader() *ProtoOATrader
func (*ProtoOATraderRes) ProtoMessage ¶
func (*ProtoOATraderRes) ProtoMessage()
func (*ProtoOATraderRes) ProtoReflect ¶
func (x *ProtoOATraderRes) ProtoReflect() protoreflect.Message
func (*ProtoOATraderRes) Reset ¶
func (x *ProtoOATraderRes) Reset()
func (*ProtoOATraderRes) String ¶
func (x *ProtoOATraderRes) String() string
type ProtoOATraderUpdatedEvent ¶
type ProtoOATraderUpdatedEvent struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2123" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. Trader *ProtoOATrader `protobuf:"bytes,3,req,name=trader" json:"trader,omitempty"` // The Trader account information. // contains filtered or unexported fields }
* Event that is sent when a Trader is updated on Server side.
func (*ProtoOATraderUpdatedEvent) Descriptor
deprecated
func (*ProtoOATraderUpdatedEvent) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOATraderUpdatedEvent.ProtoReflect.Descriptor instead.
func (*ProtoOATraderUpdatedEvent) GetCtidTraderAccountId ¶
func (x *ProtoOATraderUpdatedEvent) GetCtidTraderAccountId() int64
func (*ProtoOATraderUpdatedEvent) GetPayloadType ¶
func (x *ProtoOATraderUpdatedEvent) GetPayloadType() ProtoOAPayloadType
func (*ProtoOATraderUpdatedEvent) GetTrader ¶
func (x *ProtoOATraderUpdatedEvent) GetTrader() *ProtoOATrader
func (*ProtoOATraderUpdatedEvent) ProtoMessage ¶
func (*ProtoOATraderUpdatedEvent) ProtoMessage()
func (*ProtoOATraderUpdatedEvent) ProtoReflect ¶
func (x *ProtoOATraderUpdatedEvent) ProtoReflect() protoreflect.Message
func (*ProtoOATraderUpdatedEvent) Reset ¶
func (x *ProtoOATraderUpdatedEvent) Reset()
func (*ProtoOATraderUpdatedEvent) String ¶
func (x *ProtoOATraderUpdatedEvent) String() string
type ProtoOATradingMode ¶
type ProtoOATradingMode int32
* Enum for specifying symbol trading mode.
const ( ProtoOATradingMode_ENABLED ProtoOATradingMode = 0 ProtoOATradingMode_DISABLED_WITHOUT_PENDINGS_EXECUTION ProtoOATradingMode = 1 ProtoOATradingMode_DISABLED_WITH_PENDINGS_EXECUTION ProtoOATradingMode = 2 ProtoOATradingMode_CLOSE_ONLY_MODE ProtoOATradingMode = 3 )
func (ProtoOATradingMode) Descriptor ¶
func (ProtoOATradingMode) Descriptor() protoreflect.EnumDescriptor
func (ProtoOATradingMode) Enum ¶
func (x ProtoOATradingMode) Enum() *ProtoOATradingMode
func (ProtoOATradingMode) EnumDescriptor
deprecated
func (ProtoOATradingMode) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProtoOATradingMode.Descriptor instead.
func (ProtoOATradingMode) Number ¶
func (x ProtoOATradingMode) Number() protoreflect.EnumNumber
func (ProtoOATradingMode) String ¶
func (x ProtoOATradingMode) String() string
func (ProtoOATradingMode) Type ¶
func (ProtoOATradingMode) Type() protoreflect.EnumType
func (*ProtoOATradingMode) UnmarshalJSON
deprecated
func (x *ProtoOATradingMode) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type ProtoOATrailingSLChangedEvent ¶
type ProtoOATrailingSLChangedEvent struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2107" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. PositionId *int64 `protobuf:"varint,3,req,name=positionId" json:"positionId,omitempty"` // The unique ID of the position. OrderId *int64 `protobuf:"varint,4,req,name=orderId" json:"orderId,omitempty"` // The unique ID of the order. StopPrice *float64 `protobuf:"fixed64,5,req,name=stopPrice" json:"stopPrice,omitempty"` // New value of the Stop Loss price. UtcLastUpdateTimestamp *int64 `protobuf:"varint,6,req,name=utcLastUpdateTimestamp" json:"utcLastUpdateTimestamp,omitempty"` // The Unix time in milliseconds when the Stop Loss was updated. // contains filtered or unexported fields }
* Event that is sent when the level of the Trailing Stop Loss is changed due to the price level changes.
func (*ProtoOATrailingSLChangedEvent) Descriptor
deprecated
func (*ProtoOATrailingSLChangedEvent) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOATrailingSLChangedEvent.ProtoReflect.Descriptor instead.
func (*ProtoOATrailingSLChangedEvent) GetCtidTraderAccountId ¶
func (x *ProtoOATrailingSLChangedEvent) GetCtidTraderAccountId() int64
func (*ProtoOATrailingSLChangedEvent) GetOrderId ¶
func (x *ProtoOATrailingSLChangedEvent) GetOrderId() int64
func (*ProtoOATrailingSLChangedEvent) GetPayloadType ¶
func (x *ProtoOATrailingSLChangedEvent) GetPayloadType() ProtoOAPayloadType
func (*ProtoOATrailingSLChangedEvent) GetPositionId ¶
func (x *ProtoOATrailingSLChangedEvent) GetPositionId() int64
func (*ProtoOATrailingSLChangedEvent) GetStopPrice ¶
func (x *ProtoOATrailingSLChangedEvent) GetStopPrice() float64
func (*ProtoOATrailingSLChangedEvent) GetUtcLastUpdateTimestamp ¶
func (x *ProtoOATrailingSLChangedEvent) GetUtcLastUpdateTimestamp() int64
func (*ProtoOATrailingSLChangedEvent) ProtoMessage ¶
func (*ProtoOATrailingSLChangedEvent) ProtoMessage()
func (*ProtoOATrailingSLChangedEvent) ProtoReflect ¶
func (x *ProtoOATrailingSLChangedEvent) ProtoReflect() protoreflect.Message
func (*ProtoOATrailingSLChangedEvent) Reset ¶
func (x *ProtoOATrailingSLChangedEvent) Reset()
func (*ProtoOATrailingSLChangedEvent) String ¶
func (x *ProtoOATrailingSLChangedEvent) String() string
type ProtoOATrendbar ¶
type ProtoOATrendbar struct { Volume *int64 `protobuf:"varint,3,req,name=volume" json:"volume,omitempty"` // Bar volume in ticks. Period *ProtoOATrendbarPeriod `protobuf:"varint,4,opt,name=period,enum=ProtoOATrendbarPeriod,def=1" json:"period,omitempty"` // Bar period. Low *int64 `protobuf:"varint,5,opt,name=low" json:"low,omitempty"` // Low price of the bar. DeltaOpen *uint64 `protobuf:"varint,6,opt,name=deltaOpen" json:"deltaOpen,omitempty"` // Delta between open and low price. open = low + deltaOpen. DeltaClose *uint64 `protobuf:"varint,7,opt,name=deltaClose" json:"deltaClose,omitempty"` // Delta between close and low price. close = low + deltaClose. DeltaHigh *uint64 `protobuf:"varint,8,opt,name=deltaHigh" json:"deltaHigh,omitempty"` // Delta between high and low price. high = low + deltaHigh. UtcTimestampInMinutes *uint32 `protobuf:"varint,9,opt,name=utcTimestampInMinutes" json:"utcTimestampInMinutes,omitempty"` // The Unix time in minutes of the bar, equal to the timestamp of the open tick. // contains filtered or unexported fields }
* Historical Trendbar entity.
func (*ProtoOATrendbar) Descriptor
deprecated
func (*ProtoOATrendbar) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOATrendbar.ProtoReflect.Descriptor instead.
func (*ProtoOATrendbar) GetDeltaClose ¶
func (x *ProtoOATrendbar) GetDeltaClose() uint64
func (*ProtoOATrendbar) GetDeltaHigh ¶
func (x *ProtoOATrendbar) GetDeltaHigh() uint64
func (*ProtoOATrendbar) GetDeltaOpen ¶
func (x *ProtoOATrendbar) GetDeltaOpen() uint64
func (*ProtoOATrendbar) GetLow ¶
func (x *ProtoOATrendbar) GetLow() int64
func (*ProtoOATrendbar) GetPeriod ¶
func (x *ProtoOATrendbar) GetPeriod() ProtoOATrendbarPeriod
func (*ProtoOATrendbar) GetUtcTimestampInMinutes ¶
func (x *ProtoOATrendbar) GetUtcTimestampInMinutes() uint32
func (*ProtoOATrendbar) GetVolume ¶
func (x *ProtoOATrendbar) GetVolume() int64
func (*ProtoOATrendbar) ProtoMessage ¶
func (*ProtoOATrendbar) ProtoMessage()
func (*ProtoOATrendbar) ProtoReflect ¶
func (x *ProtoOATrendbar) ProtoReflect() protoreflect.Message
func (*ProtoOATrendbar) Reset ¶
func (x *ProtoOATrendbar) Reset()
func (*ProtoOATrendbar) String ¶
func (x *ProtoOATrendbar) String() string
type ProtoOATrendbarPeriod ¶
type ProtoOATrendbarPeriod int32
* Trendbar period ENUM.
const ( ProtoOATrendbarPeriod_M1 ProtoOATrendbarPeriod = 1 ProtoOATrendbarPeriod_M2 ProtoOATrendbarPeriod = 2 ProtoOATrendbarPeriod_M3 ProtoOATrendbarPeriod = 3 ProtoOATrendbarPeriod_M4 ProtoOATrendbarPeriod = 4 ProtoOATrendbarPeriod_M5 ProtoOATrendbarPeriod = 5 ProtoOATrendbarPeriod_M10 ProtoOATrendbarPeriod = 6 ProtoOATrendbarPeriod_M15 ProtoOATrendbarPeriod = 7 ProtoOATrendbarPeriod_M30 ProtoOATrendbarPeriod = 8 ProtoOATrendbarPeriod_H1 ProtoOATrendbarPeriod = 9 ProtoOATrendbarPeriod_H4 ProtoOATrendbarPeriod = 10 ProtoOATrendbarPeriod_H12 ProtoOATrendbarPeriod = 11 ProtoOATrendbarPeriod_D1 ProtoOATrendbarPeriod = 12 ProtoOATrendbarPeriod_W1 ProtoOATrendbarPeriod = 13 ProtoOATrendbarPeriod_MN1 ProtoOATrendbarPeriod = 14 )
func (ProtoOATrendbarPeriod) Descriptor ¶
func (ProtoOATrendbarPeriod) Descriptor() protoreflect.EnumDescriptor
func (ProtoOATrendbarPeriod) Enum ¶
func (x ProtoOATrendbarPeriod) Enum() *ProtoOATrendbarPeriod
func (ProtoOATrendbarPeriod) EnumDescriptor
deprecated
func (ProtoOATrendbarPeriod) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProtoOATrendbarPeriod.Descriptor instead.
func (ProtoOATrendbarPeriod) Number ¶
func (x ProtoOATrendbarPeriod) Number() protoreflect.EnumNumber
func (ProtoOATrendbarPeriod) String ¶
func (x ProtoOATrendbarPeriod) String() string
func (ProtoOATrendbarPeriod) Type ¶
func (ProtoOATrendbarPeriod) Type() protoreflect.EnumType
func (*ProtoOATrendbarPeriod) UnmarshalJSON
deprecated
func (x *ProtoOATrendbarPeriod) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type ProtoOAUnsubscribeDepthQuotesReq ¶
type ProtoOAUnsubscribeDepthQuotesReq struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2158" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. SymbolId []int64 `protobuf:"varint,3,rep,name=symbolId" json:"symbolId,omitempty"` // Unique identifier of the Symbol in cTrader platform. // contains filtered or unexported fields }
* Request for unsubscribing from the depth of market of the specified symbol.
func (*ProtoOAUnsubscribeDepthQuotesReq) Descriptor
deprecated
func (*ProtoOAUnsubscribeDepthQuotesReq) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAUnsubscribeDepthQuotesReq.ProtoReflect.Descriptor instead.
func (*ProtoOAUnsubscribeDepthQuotesReq) GetCtidTraderAccountId ¶
func (x *ProtoOAUnsubscribeDepthQuotesReq) GetCtidTraderAccountId() int64
func (*ProtoOAUnsubscribeDepthQuotesReq) GetPayloadType ¶
func (x *ProtoOAUnsubscribeDepthQuotesReq) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAUnsubscribeDepthQuotesReq) GetSymbolId ¶
func (x *ProtoOAUnsubscribeDepthQuotesReq) GetSymbolId() []int64
func (*ProtoOAUnsubscribeDepthQuotesReq) ProtoMessage ¶
func (*ProtoOAUnsubscribeDepthQuotesReq) ProtoMessage()
func (*ProtoOAUnsubscribeDepthQuotesReq) ProtoReflect ¶
func (x *ProtoOAUnsubscribeDepthQuotesReq) ProtoReflect() protoreflect.Message
func (*ProtoOAUnsubscribeDepthQuotesReq) Reset ¶
func (x *ProtoOAUnsubscribeDepthQuotesReq) Reset()
func (*ProtoOAUnsubscribeDepthQuotesReq) String ¶
func (x *ProtoOAUnsubscribeDepthQuotesReq) String() string
type ProtoOAUnsubscribeDepthQuotesRes ¶
type ProtoOAUnsubscribeDepthQuotesRes struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2159" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. // contains filtered or unexported fields }
* Response to the ProtoOAUnsubscribeDepthQuotesReq request.
func (*ProtoOAUnsubscribeDepthQuotesRes) Descriptor
deprecated
func (*ProtoOAUnsubscribeDepthQuotesRes) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAUnsubscribeDepthQuotesRes.ProtoReflect.Descriptor instead.
func (*ProtoOAUnsubscribeDepthQuotesRes) GetCtidTraderAccountId ¶
func (x *ProtoOAUnsubscribeDepthQuotesRes) GetCtidTraderAccountId() int64
func (*ProtoOAUnsubscribeDepthQuotesRes) GetPayloadType ¶
func (x *ProtoOAUnsubscribeDepthQuotesRes) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAUnsubscribeDepthQuotesRes) ProtoMessage ¶
func (*ProtoOAUnsubscribeDepthQuotesRes) ProtoMessage()
func (*ProtoOAUnsubscribeDepthQuotesRes) ProtoReflect ¶
func (x *ProtoOAUnsubscribeDepthQuotesRes) ProtoReflect() protoreflect.Message
func (*ProtoOAUnsubscribeDepthQuotesRes) Reset ¶
func (x *ProtoOAUnsubscribeDepthQuotesRes) Reset()
func (*ProtoOAUnsubscribeDepthQuotesRes) String ¶
func (x *ProtoOAUnsubscribeDepthQuotesRes) String() string
type ProtoOAUnsubscribeLiveTrendbarReq ¶
type ProtoOAUnsubscribeLiveTrendbarReq struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2136" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. Period *ProtoOATrendbarPeriod `protobuf:"varint,3,req,name=period,enum=ProtoOATrendbarPeriod" json:"period,omitempty"` // Specifies period of trend bar series (e.g. M1, M10, etc.). SymbolId *int64 `protobuf:"varint,4,req,name=symbolId" json:"symbolId,omitempty"` // Unique identifier of the Symbol in cTrader platform. // contains filtered or unexported fields }
* Request for unsubscribing from the live trend bars.
func (*ProtoOAUnsubscribeLiveTrendbarReq) Descriptor
deprecated
func (*ProtoOAUnsubscribeLiveTrendbarReq) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAUnsubscribeLiveTrendbarReq.ProtoReflect.Descriptor instead.
func (*ProtoOAUnsubscribeLiveTrendbarReq) GetCtidTraderAccountId ¶
func (x *ProtoOAUnsubscribeLiveTrendbarReq) GetCtidTraderAccountId() int64
func (*ProtoOAUnsubscribeLiveTrendbarReq) GetPayloadType ¶
func (x *ProtoOAUnsubscribeLiveTrendbarReq) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAUnsubscribeLiveTrendbarReq) GetPeriod ¶
func (x *ProtoOAUnsubscribeLiveTrendbarReq) GetPeriod() ProtoOATrendbarPeriod
func (*ProtoOAUnsubscribeLiveTrendbarReq) GetSymbolId ¶
func (x *ProtoOAUnsubscribeLiveTrendbarReq) GetSymbolId() int64
func (*ProtoOAUnsubscribeLiveTrendbarReq) ProtoMessage ¶
func (*ProtoOAUnsubscribeLiveTrendbarReq) ProtoMessage()
func (*ProtoOAUnsubscribeLiveTrendbarReq) ProtoReflect ¶
func (x *ProtoOAUnsubscribeLiveTrendbarReq) ProtoReflect() protoreflect.Message
func (*ProtoOAUnsubscribeLiveTrendbarReq) Reset ¶
func (x *ProtoOAUnsubscribeLiveTrendbarReq) Reset()
func (*ProtoOAUnsubscribeLiveTrendbarReq) String ¶
func (x *ProtoOAUnsubscribeLiveTrendbarReq) String() string
type ProtoOAUnsubscribeLiveTrendbarRes ¶
type ProtoOAUnsubscribeLiveTrendbarRes struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2166" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. // contains filtered or unexported fields }
* Response to the ProtoOASubscribeLiveTrendbarReq request.
func (*ProtoOAUnsubscribeLiveTrendbarRes) Descriptor
deprecated
func (*ProtoOAUnsubscribeLiveTrendbarRes) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAUnsubscribeLiveTrendbarRes.ProtoReflect.Descriptor instead.
func (*ProtoOAUnsubscribeLiveTrendbarRes) GetCtidTraderAccountId ¶
func (x *ProtoOAUnsubscribeLiveTrendbarRes) GetCtidTraderAccountId() int64
func (*ProtoOAUnsubscribeLiveTrendbarRes) GetPayloadType ¶
func (x *ProtoOAUnsubscribeLiveTrendbarRes) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAUnsubscribeLiveTrendbarRes) ProtoMessage ¶
func (*ProtoOAUnsubscribeLiveTrendbarRes) ProtoMessage()
func (*ProtoOAUnsubscribeLiveTrendbarRes) ProtoReflect ¶
func (x *ProtoOAUnsubscribeLiveTrendbarRes) ProtoReflect() protoreflect.Message
func (*ProtoOAUnsubscribeLiveTrendbarRes) Reset ¶
func (x *ProtoOAUnsubscribeLiveTrendbarRes) Reset()
func (*ProtoOAUnsubscribeLiveTrendbarRes) String ¶
func (x *ProtoOAUnsubscribeLiveTrendbarRes) String() string
type ProtoOAUnsubscribeSpotsReq ¶
type ProtoOAUnsubscribeSpotsReq struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2129" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. SymbolId []int64 `protobuf:"varint,3,rep,name=symbolId" json:"symbolId,omitempty"` // Unique identifier of the Symbol in cTrader platform. // contains filtered or unexported fields }
* Request for unsubscribing from the spot events of the specified symbol. Request to stop receiving ProtoOASpotEvents related to particular symbols. Unsubscription is useful to minimize traffic, especially during high volatility events.
func (*ProtoOAUnsubscribeSpotsReq) Descriptor
deprecated
func (*ProtoOAUnsubscribeSpotsReq) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAUnsubscribeSpotsReq.ProtoReflect.Descriptor instead.
func (*ProtoOAUnsubscribeSpotsReq) GetCtidTraderAccountId ¶
func (x *ProtoOAUnsubscribeSpotsReq) GetCtidTraderAccountId() int64
func (*ProtoOAUnsubscribeSpotsReq) GetPayloadType ¶
func (x *ProtoOAUnsubscribeSpotsReq) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAUnsubscribeSpotsReq) GetSymbolId ¶
func (x *ProtoOAUnsubscribeSpotsReq) GetSymbolId() []int64
func (*ProtoOAUnsubscribeSpotsReq) ProtoMessage ¶
func (*ProtoOAUnsubscribeSpotsReq) ProtoMessage()
func (*ProtoOAUnsubscribeSpotsReq) ProtoReflect ¶
func (x *ProtoOAUnsubscribeSpotsReq) ProtoReflect() protoreflect.Message
func (*ProtoOAUnsubscribeSpotsReq) Reset ¶
func (x *ProtoOAUnsubscribeSpotsReq) Reset()
func (*ProtoOAUnsubscribeSpotsReq) String ¶
func (x *ProtoOAUnsubscribeSpotsReq) String() string
type ProtoOAUnsubscribeSpotsRes ¶
type ProtoOAUnsubscribeSpotsRes struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2130" json:"payloadType,omitempty"` CtidTraderAccountId *int64 `protobuf:"varint,2,req,name=ctidTraderAccountId" json:"ctidTraderAccountId,omitempty"` // Unique identifier of the trader's account. Used to match responses to trader's accounts. // contains filtered or unexported fields }
* Response to the ProtoOASubscribeSpotsRes request. Reflects that your request to unsubscribe will has been added to queue and will be completed shortly. You may still occasionally receive ProtoOASpotEvents until request processing is complete.
func (*ProtoOAUnsubscribeSpotsRes) Descriptor
deprecated
func (*ProtoOAUnsubscribeSpotsRes) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAUnsubscribeSpotsRes.ProtoReflect.Descriptor instead.
func (*ProtoOAUnsubscribeSpotsRes) GetCtidTraderAccountId ¶
func (x *ProtoOAUnsubscribeSpotsRes) GetCtidTraderAccountId() int64
func (*ProtoOAUnsubscribeSpotsRes) GetPayloadType ¶
func (x *ProtoOAUnsubscribeSpotsRes) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAUnsubscribeSpotsRes) ProtoMessage ¶
func (*ProtoOAUnsubscribeSpotsRes) ProtoMessage()
func (*ProtoOAUnsubscribeSpotsRes) ProtoReflect ¶
func (x *ProtoOAUnsubscribeSpotsRes) ProtoReflect() protoreflect.Message
func (*ProtoOAUnsubscribeSpotsRes) Reset ¶
func (x *ProtoOAUnsubscribeSpotsRes) Reset()
func (*ProtoOAUnsubscribeSpotsRes) String ¶
func (x *ProtoOAUnsubscribeSpotsRes) String() string
type ProtoOAVersionReq ¶
type ProtoOAVersionReq struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2104" json:"payloadType,omitempty"` // contains filtered or unexported fields }
* Request for getting the proxy version. Can be used to check the current version of the Open API scheme.
func (*ProtoOAVersionReq) Descriptor
deprecated
func (*ProtoOAVersionReq) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAVersionReq.ProtoReflect.Descriptor instead.
func (*ProtoOAVersionReq) GetPayloadType ¶
func (x *ProtoOAVersionReq) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAVersionReq) ProtoMessage ¶
func (*ProtoOAVersionReq) ProtoMessage()
func (*ProtoOAVersionReq) ProtoReflect ¶
func (x *ProtoOAVersionReq) ProtoReflect() protoreflect.Message
func (*ProtoOAVersionReq) Reset ¶
func (x *ProtoOAVersionReq) Reset()
func (*ProtoOAVersionReq) String ¶
func (x *ProtoOAVersionReq) String() string
type ProtoOAVersionRes ¶
type ProtoOAVersionRes struct { PayloadType *ProtoOAPayloadType `protobuf:"varint,1,opt,name=payloadType,enum=ProtoOAPayloadType,def=2105" json:"payloadType,omitempty"` Version *string `protobuf:"bytes,2,req,name=version" json:"version,omitempty"` // The current version of the server application. // contains filtered or unexported fields }
* Response to the ProtoOAVersionReq request.
func (*ProtoOAVersionRes) Descriptor
deprecated
func (*ProtoOAVersionRes) Descriptor() ([]byte, []int)
Deprecated: Use ProtoOAVersionRes.ProtoReflect.Descriptor instead.
func (*ProtoOAVersionRes) GetPayloadType ¶
func (x *ProtoOAVersionRes) GetPayloadType() ProtoOAPayloadType
func (*ProtoOAVersionRes) GetVersion ¶
func (x *ProtoOAVersionRes) GetVersion() string
func (*ProtoOAVersionRes) ProtoMessage ¶
func (*ProtoOAVersionRes) ProtoMessage()
func (*ProtoOAVersionRes) ProtoReflect ¶
func (x *ProtoOAVersionRes) ProtoReflect() protoreflect.Message
func (*ProtoOAVersionRes) Reset ¶
func (x *ProtoOAVersionRes) Reset()
func (*ProtoOAVersionRes) String ¶
func (x *ProtoOAVersionRes) String() string
type ProtoPayloadType ¶
type ProtoPayloadType int32
--- INTENSIVE COMMANDS 1 - 49 --- COMMON API 50 - 69
const ( // common intensive ProtoPayloadType_PROTO_MESSAGE ProtoPayloadType = 5 // common commands ProtoPayloadType_ERROR_RES ProtoPayloadType = 50 ProtoPayloadType_HEARTBEAT_EVENT ProtoPayloadType = 51 )
func (ProtoPayloadType) Descriptor ¶
func (ProtoPayloadType) Descriptor() protoreflect.EnumDescriptor
func (ProtoPayloadType) Enum ¶
func (x ProtoPayloadType) Enum() *ProtoPayloadType
func (ProtoPayloadType) EnumDescriptor
deprecated
func (ProtoPayloadType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProtoPayloadType.Descriptor instead.
func (ProtoPayloadType) Number ¶
func (x ProtoPayloadType) Number() protoreflect.EnumNumber
func (ProtoPayloadType) String ¶
func (x ProtoPayloadType) String() string
func (ProtoPayloadType) Type ¶
func (ProtoPayloadType) Type() protoreflect.EnumType
func (*ProtoPayloadType) UnmarshalJSON
deprecated
func (x *ProtoPayloadType) UnmarshalJSON(b []byte) error
Deprecated: Do not use.