openapi

package
v0.0.0-...-6aa2f3e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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.

View Source
const (
	Default_ProtoOAAmendOrderReq_PayloadType       = ProtoOAPayloadType_PROTO_OA_AMEND_ORDER_REQ
	Default_ProtoOAAmendOrderReq_StopTriggerMethod = ProtoOAOrderTriggerMethod_TRADE
)

Default values for ProtoOAAmendOrderReq fields.

View Source
const (
	Default_ProtoOAAmendPositionSLTPReq_PayloadType           = ProtoOAPayloadType_PROTO_OA_AMEND_POSITION_SLTP_REQ
	Default_ProtoOAAmendPositionSLTPReq_StopLossTriggerMethod = ProtoOAOrderTriggerMethod_TRADE
)

Default values for ProtoOAAmendPositionSLTPReq fields.

View Source
const (
	Default_ProtoOASymbolsListReq_PayloadType            = ProtoOAPayloadType_PROTO_OA_SYMBOLS_LIST_REQ
	Default_ProtoOASymbolsListReq_IncludeArchivedSymbols = bool(false)
)

Default values for ProtoOASymbolsListReq fields.

View Source
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.

View Source
const (
	Default_ProtoOATrader_AccessRights                         = ProtoOAAccessRights_FULL_ACCESS
	Default_ProtoOATrader_AccountType                          = ProtoOAAccountType_HEDGED
	Default_ProtoOATrader_LimitedRiskMarginCalculationStrategy = ProtoOALimitedRiskMarginCalculationStrategy_ACCORDING_TO_LEVERAGE
)

Default values for ProtoOATrader fields.

View Source
const (
	Default_ProtoOAOrder_TimeInForce       = ProtoOATimeInForce_IMMEDIATE_OR_CANCEL
	Default_ProtoOAOrder_StopTriggerMethod = ProtoOAOrderTriggerMethod_TRADE
)

Default values for ProtoOAOrder fields.

View Source
const (
	Default_ProtoErrorRes_PayloadType = ProtoPayloadType_ERROR_RES
)

Default values for ProtoErrorRes fields.

View Source
const (
	Default_ProtoHeartbeatEvent_PayloadType = ProtoPayloadType_HEARTBEAT_EVENT
)

Default values for ProtoHeartbeatEvent fields.

View Source
const (
	Default_ProtoOAAccountAuthReq_PayloadType = ProtoOAPayloadType_PROTO_OA_ACCOUNT_AUTH_REQ
)

Default values for ProtoOAAccountAuthReq fields.

View Source
const (
	Default_ProtoOAAccountAuthRes_PayloadType = ProtoOAPayloadType_PROTO_OA_ACCOUNT_AUTH_RES
)

Default values for ProtoOAAccountAuthRes fields.

View Source
const (
	Default_ProtoOAAccountDisconnectEvent_PayloadType = ProtoOAPayloadType_PROTO_OA_ACCOUNT_DISCONNECT_EVENT
)

Default values for ProtoOAAccountDisconnectEvent fields.

View Source
const (
	Default_ProtoOAAccountLogoutReq_PayloadType = ProtoOAPayloadType_PROTO_OA_ACCOUNT_LOGOUT_REQ
)

Default values for ProtoOAAccountLogoutReq fields.

View Source
const (
	Default_ProtoOAAccountLogoutRes_PayloadType = ProtoOAPayloadType_PROTO_OA_ACCOUNT_LOGOUT_RES
)

Default values for ProtoOAAccountLogoutRes fields.

View Source
const (
	Default_ProtoOAAccountsTokenInvalidatedEvent_PayloadType = ProtoOAPayloadType_PROTO_OA_ACCOUNTS_TOKEN_INVALIDATED_EVENT
)

Default values for ProtoOAAccountsTokenInvalidatedEvent fields.

View Source
const (
	Default_ProtoOAApplicationAuthReq_PayloadType = ProtoOAPayloadType_PROTO_OA_APPLICATION_AUTH_REQ
)

Default values for ProtoOAApplicationAuthReq fields.

View Source
const (
	Default_ProtoOAApplicationAuthRes_PayloadType = ProtoOAPayloadType_PROTO_OA_APPLICATION_AUTH_RES
)

Default values for ProtoOAApplicationAuthRes fields.

View Source
const (
	Default_ProtoOAAssetClassListReq_PayloadType = ProtoOAPayloadType_PROTO_OA_ASSET_CLASS_LIST_REQ
)

Default values for ProtoOAAssetClassListReq fields.

View Source
const (
	Default_ProtoOAAssetClassListRes_PayloadType = ProtoOAPayloadType_PROTO_OA_ASSET_CLASS_LIST_RES
)

Default values for ProtoOAAssetClassListRes fields.

View Source
const (
	Default_ProtoOAAssetListReq_PayloadType = ProtoOAPayloadType_PROTO_OA_ASSET_LIST_REQ
)

Default values for ProtoOAAssetListReq fields.

View Source
const (
	Default_ProtoOAAssetListRes_PayloadType = ProtoOAPayloadType_PROTO_OA_ASSET_LIST_RES
)

Default values for ProtoOAAssetListRes fields.

View Source
const (
	Default_ProtoOACancelOrderReq_PayloadType = ProtoOAPayloadType_PROTO_OA_CANCEL_ORDER_REQ
)

Default values for ProtoOACancelOrderReq fields.

View Source
const (
	Default_ProtoOACashFlowHistoryListReq_PayloadType = ProtoOAPayloadType_PROTO_OA_CASH_FLOW_HISTORY_LIST_REQ
)

Default values for ProtoOACashFlowHistoryListReq fields.

View Source
const (
	Default_ProtoOACashFlowHistoryListRes_PayloadType = ProtoOAPayloadType_PROTO_OA_CASH_FLOW_HISTORY_LIST_RES
)

Default values for ProtoOACashFlowHistoryListRes fields.

View Source
const (
	Default_ProtoOAClientDisconnectEvent_PayloadType = ProtoOAPayloadType_PROTO_OA_CLIENT_DISCONNECT_EVENT
)

Default values for ProtoOAClientDisconnectEvent fields.

View Source
const (
	Default_ProtoOAClosePositionReq_PayloadType = ProtoOAPayloadType_PROTO_OA_CLOSE_POSITION_REQ
)

Default values for ProtoOAClosePositionReq fields.

View Source
const (
	Default_ProtoOADealListByPositionIdReq_PayloadType = ProtoOAPayloadType_PROTO_OA_DEAL_LIST_BY_POSITION_ID_REQ
)

Default values for ProtoOADealListByPositionIdReq fields.

View Source
const (
	Default_ProtoOADealListByPositionIdRes_PayloadType = ProtoOAPayloadType_PROTO_OA_DEAL_LIST_BY_POSITION_ID_RES
)

Default values for ProtoOADealListByPositionIdRes fields.

View Source
const (
	Default_ProtoOADealListReq_PayloadType = ProtoOAPayloadType_PROTO_OA_DEAL_LIST_REQ
)

Default values for ProtoOADealListReq fields.

View Source
const (
	Default_ProtoOADealListRes_PayloadType = ProtoOAPayloadType_PROTO_OA_DEAL_LIST_RES
)

Default values for ProtoOADealListRes fields.

View Source
const (
	Default_ProtoOADealOffsetListReq_PayloadType = ProtoOAPayloadType_PROTO_OA_DEAL_OFFSET_LIST_REQ
)

Default values for ProtoOADealOffsetListReq fields.

View Source
const (
	Default_ProtoOADealOffsetListRes_PayloadType = ProtoOAPayloadType_PROTO_OA_DEAL_OFFSET_LIST_RES
)

Default values for ProtoOADealOffsetListRes fields.

View Source
const (
	Default_ProtoOADepthEvent_PayloadType = ProtoOAPayloadType_PROTO_OA_DEPTH_EVENT
)

Default values for ProtoOADepthEvent fields.

View Source
const (
	Default_ProtoOAErrorRes_PayloadType = ProtoOAPayloadType_PROTO_OA_ERROR_RES
)

Default values for ProtoOAErrorRes fields.

View Source
const (
	Default_ProtoOAExecutionEvent_PayloadType = ProtoOAPayloadType_PROTO_OA_EXECUTION_EVENT
)

Default values for ProtoOAExecutionEvent fields.

View Source
const (
	Default_ProtoOAExpectedMarginReq_PayloadType = ProtoOAPayloadType_PROTO_OA_EXPECTED_MARGIN_REQ
)

Default values for ProtoOAExpectedMarginReq fields.

View Source
const (
	Default_ProtoOAExpectedMarginRes_PayloadType = ProtoOAPayloadType_PROTO_OA_EXPECTED_MARGIN_RES
)

Default values for ProtoOAExpectedMarginRes fields.

View Source
const (
	Default_ProtoOAGetAccountListByAccessTokenReq_PayloadType = ProtoOAPayloadType_PROTO_OA_GET_ACCOUNTS_BY_ACCESS_TOKEN_REQ
)

Default values for ProtoOAGetAccountListByAccessTokenReq fields.

View Source
const (
	Default_ProtoOAGetAccountListByAccessTokenRes_PayloadType = ProtoOAPayloadType_PROTO_OA_GET_ACCOUNTS_BY_ACCESS_TOKEN_RES
)

Default values for ProtoOAGetAccountListByAccessTokenRes fields.

View Source
const (
	Default_ProtoOAGetCtidProfileByTokenReq_PayloadType = ProtoOAPayloadType_PROTO_OA_GET_CTID_PROFILE_BY_TOKEN_REQ
)

Default values for ProtoOAGetCtidProfileByTokenReq fields.

View Source
const (
	Default_ProtoOAGetCtidProfileByTokenRes_PayloadType = ProtoOAPayloadType_PROTO_OA_GET_CTID_PROFILE_BY_TOKEN_RES
)

Default values for ProtoOAGetCtidProfileByTokenRes fields.

View Source
const (
	Default_ProtoOAGetDynamicLeverageByIDReq_PayloadType = ProtoOAPayloadType_PROTO_OA_GET_DYNAMIC_LEVERAGE_REQ
)

Default values for ProtoOAGetDynamicLeverageByIDReq fields.

View Source
const (
	Default_ProtoOAGetDynamicLeverageByIDRes_PayloadType = ProtoOAPayloadType_PROTO_OA_GET_DYNAMIC_LEVERAGE_RES
)

Default values for ProtoOAGetDynamicLeverageByIDRes fields.

View Source
const (
	Default_ProtoOAGetPositionUnrealizedPnLReq_PayloadType = ProtoOAPayloadType_PROTO_OA_GET_POSITION_UNREALIZED_PNL_REQ
)

Default values for ProtoOAGetPositionUnrealizedPnLReq fields.

View Source
const (
	Default_ProtoOAGetPositionUnrealizedPnLRes_PayloadType = ProtoOAPayloadType_PROTO_OA_GET_POSITION_UNREALIZED_PNL_RES
)

Default values for ProtoOAGetPositionUnrealizedPnLRes fields.

View Source
const (
	Default_ProtoOAGetTickDataReq_PayloadType = ProtoOAPayloadType_PROTO_OA_GET_TICKDATA_REQ
)

Default values for ProtoOAGetTickDataReq fields.

View Source
const (
	Default_ProtoOAGetTickDataRes_PayloadType = ProtoOAPayloadType_PROTO_OA_GET_TICKDATA_RES
)

Default values for ProtoOAGetTickDataRes fields.

View Source
const (
	Default_ProtoOAGetTrendbarsReq_PayloadType = ProtoOAPayloadType_PROTO_OA_GET_TRENDBARS_REQ
)

Default values for ProtoOAGetTrendbarsReq fields.

View Source
const (
	Default_ProtoOAGetTrendbarsRes_PayloadType = ProtoOAPayloadType_PROTO_OA_GET_TRENDBARS_RES
)

Default values for ProtoOAGetTrendbarsRes fields.

View Source
const (
	Default_ProtoOAMarginCallListReq_PayloadType = ProtoOAPayloadType_PROTO_OA_MARGIN_CALL_LIST_REQ
)

Default values for ProtoOAMarginCallListReq fields.

View Source
const (
	Default_ProtoOAMarginCallListRes_PayloadType = ProtoOAPayloadType_PROTO_OA_MARGIN_CALL_LIST_RES
)

Default values for ProtoOAMarginCallListRes fields.

View Source
const (
	Default_ProtoOAMarginCallTriggerEvent_PayloadType = ProtoOAPayloadType_PROTO_OA_MARGIN_CALL_TRIGGER_EVENT
)

Default values for ProtoOAMarginCallTriggerEvent fields.

View Source
const (
	Default_ProtoOAMarginCallUpdateEvent_PayloadType = ProtoOAPayloadType_PROTO_OA_MARGIN_CALL_UPDATE_EVENT
)

Default values for ProtoOAMarginCallUpdateEvent fields.

View Source
const (
	Default_ProtoOAMarginCallUpdateReq_PayloadType = ProtoOAPayloadType_PROTO_OA_MARGIN_CALL_UPDATE_REQ
)

Default values for ProtoOAMarginCallUpdateReq fields.

View Source
const (
	Default_ProtoOAMarginCallUpdateRes_PayloadType = ProtoOAPayloadType_PROTO_OA_MARGIN_CALL_UPDATE_RES
)

Default values for ProtoOAMarginCallUpdateRes fields.

View Source
const (
	Default_ProtoOAMarginChangedEvent_PayloadType = ProtoOAPayloadType_PROTO_OA_MARGIN_CHANGED_EVENT
)

Default values for ProtoOAMarginChangedEvent fields.

View Source
const (
	Default_ProtoOAOrderDetailsReq_PayloadType = ProtoOAPayloadType_PROTO_OA_ORDER_DETAILS_REQ
)

Default values for ProtoOAOrderDetailsReq fields.

View Source
const (
	Default_ProtoOAOrderDetailsRes_PayloadType = ProtoOAPayloadType_PROTO_OA_ORDER_DETAILS_RES
)

Default values for ProtoOAOrderDetailsRes fields.

View Source
const (
	Default_ProtoOAOrderErrorEvent_PayloadType = ProtoOAPayloadType_PROTO_OA_ORDER_ERROR_EVENT
)

Default values for ProtoOAOrderErrorEvent fields.

View Source
const (
	Default_ProtoOAOrderListByPositionIdReq_PayloadType = ProtoOAPayloadType_PROTO_OA_ORDER_LIST_BY_POSITION_ID_REQ
)

Default values for ProtoOAOrderListByPositionIdReq fields.

View Source
const (
	Default_ProtoOAOrderListByPositionIdRes_PayloadType = ProtoOAPayloadType_PROTO_OA_ORDER_LIST_BY_POSITION_ID_RES
)

Default values for ProtoOAOrderListByPositionIdRes fields.

View Source
const (
	Default_ProtoOAOrderListReq_PayloadType = ProtoOAPayloadType_PROTO_OA_ORDER_LIST_REQ
)

Default values for ProtoOAOrderListReq fields.

View Source
const (
	Default_ProtoOAOrderListRes_PayloadType = ProtoOAPayloadType_PROTO_OA_ORDER_LIST_RES
)

Default values for ProtoOAOrderListRes fields.

View Source
const (
	Default_ProtoOAPosition_StopLossTriggerMethod = ProtoOAOrderTriggerMethod_TRADE
)

Default values for ProtoOAPosition fields.

View Source
const (
	Default_ProtoOAReconcileReq_PayloadType = ProtoOAPayloadType_PROTO_OA_RECONCILE_REQ
)

Default values for ProtoOAReconcileReq fields.

View Source
const (
	Default_ProtoOAReconcileRes_PayloadType = ProtoOAPayloadType_PROTO_OA_RECONCILE_RES
)

Default values for ProtoOAReconcileRes fields.

View Source
const (
	Default_ProtoOARefreshTokenReq_PayloadType = ProtoOAPayloadType_PROTO_OA_REFRESH_TOKEN_REQ
)

Default values for ProtoOARefreshTokenReq fields.

View Source
const (
	Default_ProtoOARefreshTokenRes_PayloadType = ProtoOAPayloadType_PROTO_OA_REFRESH_TOKEN_RES
)

Default values for ProtoOARefreshTokenRes fields.

View Source
const (
	Default_ProtoOASpotEvent_PayloadType = ProtoOAPayloadType_PROTO_OA_SPOT_EVENT
)

Default values for ProtoOASpotEvent fields.

View Source
const (
	Default_ProtoOASubscribeDepthQuotesReq_PayloadType = ProtoOAPayloadType_PROTO_OA_SUBSCRIBE_DEPTH_QUOTES_REQ
)

Default values for ProtoOASubscribeDepthQuotesReq fields.

View Source
const (
	Default_ProtoOASubscribeDepthQuotesRes_PayloadType = ProtoOAPayloadType_PROTO_OA_SUBSCRIBE_DEPTH_QUOTES_RES
)

Default values for ProtoOASubscribeDepthQuotesRes fields.

View Source
const (
	Default_ProtoOASubscribeLiveTrendbarReq_PayloadType = ProtoOAPayloadType_PROTO_OA_SUBSCRIBE_LIVE_TRENDBAR_REQ
)

Default values for ProtoOASubscribeLiveTrendbarReq fields.

View Source
const (
	Default_ProtoOASubscribeLiveTrendbarRes_PayloadType = ProtoOAPayloadType_PROTO_OA_SUBSCRIBE_LIVE_TRENDBAR_RES
)

Default values for ProtoOASubscribeLiveTrendbarRes fields.

View Source
const (
	Default_ProtoOASubscribeSpotsReq_PayloadType = ProtoOAPayloadType_PROTO_OA_SUBSCRIBE_SPOTS_REQ
)

Default values for ProtoOASubscribeSpotsReq fields.

View Source
const (
	Default_ProtoOASubscribeSpotsRes_PayloadType = ProtoOAPayloadType_PROTO_OA_SUBSCRIBE_SPOTS_RES
)

Default values for ProtoOASubscribeSpotsRes fields.

View Source
const (
	Default_ProtoOASymbolByIdReq_PayloadType = ProtoOAPayloadType_PROTO_OA_SYMBOL_BY_ID_REQ
)

Default values for ProtoOASymbolByIdReq fields.

View Source
const (
	Default_ProtoOASymbolByIdRes_PayloadType = ProtoOAPayloadType_PROTO_OA_SYMBOL_BY_ID_RES
)

Default values for ProtoOASymbolByIdRes fields.

View Source
const (
	Default_ProtoOASymbolCategoryListReq_PayloadType = ProtoOAPayloadType_PROTO_OA_SYMBOL_CATEGORY_REQ
)

Default values for ProtoOASymbolCategoryListReq fields.

View Source
const (
	Default_ProtoOASymbolCategoryListRes_PayloadType = ProtoOAPayloadType_PROTO_OA_SYMBOL_CATEGORY_RES
)

Default values for ProtoOASymbolCategoryListRes fields.

View Source
const (
	Default_ProtoOASymbolChangedEvent_PayloadType = ProtoOAPayloadType_PROTO_OA_SYMBOL_CHANGED_EVENT
)

Default values for ProtoOASymbolChangedEvent fields.

View Source
const (
	Default_ProtoOASymbolsForConversionReq_PayloadType = ProtoOAPayloadType_PROTO_OA_SYMBOLS_FOR_CONVERSION_REQ
)

Default values for ProtoOASymbolsForConversionReq fields.

View Source
const (
	Default_ProtoOASymbolsForConversionRes_PayloadType = ProtoOAPayloadType_PROTO_OA_SYMBOLS_FOR_CONVERSION_RES
)

Default values for ProtoOASymbolsForConversionRes fields.

View Source
const (
	Default_ProtoOASymbolsListRes_PayloadType = ProtoOAPayloadType_PROTO_OA_SYMBOLS_LIST_RES
)

Default values for ProtoOASymbolsListRes fields.

View Source
const (
	Default_ProtoOATraderReq_PayloadType = ProtoOAPayloadType_PROTO_OA_TRADER_REQ
)

Default values for ProtoOATraderReq fields.

View Source
const (
	Default_ProtoOATraderRes_PayloadType = ProtoOAPayloadType_PROTO_OA_TRADER_RES
)

Default values for ProtoOATraderRes fields.

View Source
const (
	Default_ProtoOATraderUpdatedEvent_PayloadType = ProtoOAPayloadType_PROTO_OA_TRADER_UPDATE_EVENT
)

Default values for ProtoOATraderUpdatedEvent fields.

View Source
const (
	Default_ProtoOATrailingSLChangedEvent_PayloadType = ProtoOAPayloadType_PROTO_OA_TRAILING_SL_CHANGED_EVENT
)

Default values for ProtoOATrailingSLChangedEvent fields.

View Source
const (
	Default_ProtoOATrendbar_Period = ProtoOATrendbarPeriod_M1
)

Default values for ProtoOATrendbar fields.

View Source
const (
	Default_ProtoOAUnsubscribeDepthQuotesReq_PayloadType = ProtoOAPayloadType_PROTO_OA_UNSUBSCRIBE_DEPTH_QUOTES_REQ
)

Default values for ProtoOAUnsubscribeDepthQuotesReq fields.

View Source
const (
	Default_ProtoOAUnsubscribeDepthQuotesRes_PayloadType = ProtoOAPayloadType_PROTO_OA_UNSUBSCRIBE_DEPTH_QUOTES_RES
)

Default values for ProtoOAUnsubscribeDepthQuotesRes fields.

View Source
const (
	Default_ProtoOAUnsubscribeLiveTrendbarReq_PayloadType = ProtoOAPayloadType_PROTO_OA_UNSUBSCRIBE_LIVE_TRENDBAR_REQ
)

Default values for ProtoOAUnsubscribeLiveTrendbarReq fields.

View Source
const (
	Default_ProtoOAUnsubscribeLiveTrendbarRes_PayloadType = ProtoOAPayloadType_PROTO_OA_UNSUBSCRIBE_LIVE_TRENDBAR_RES
)

Default values for ProtoOAUnsubscribeLiveTrendbarRes fields.

View Source
const (
	Default_ProtoOAUnsubscribeSpotsReq_PayloadType = ProtoOAPayloadType_PROTO_OA_UNSUBSCRIBE_SPOTS_REQ
)

Default values for ProtoOAUnsubscribeSpotsReq fields.

View Source
const (
	Default_ProtoOAUnsubscribeSpotsRes_PayloadType = ProtoOAPayloadType_PROTO_OA_UNSUBSCRIBE_SPOTS_RES
)

Default values for ProtoOAUnsubscribeSpotsRes fields.

View Source
const (
	Default_ProtoOAVersionReq_PayloadType = ProtoOAPayloadType_PROTO_OA_VERSION_REQ
)

Default values for ProtoOAVersionReq fields.

View Source
const (
	Default_ProtoOAVersionRes_PayloadType = ProtoOAPayloadType_PROTO_OA_VERSION_RES
)

Default values for ProtoOAVersionRes fields.

Variables

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
var (
	ProtoOASwapCalculationType_name = map[int32]string{
		0: "PIPS",
		1: "PERCENTAGE",
	}
	ProtoOASwapCalculationType_value = map[string]int32{
		"PIPS":       0,
		"PERCENTAGE": 1,
	}
)

Enum value maps for ProtoOASwapCalculationType.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
var (
	ProtoOATradeSide_name = map[int32]string{
		1: "BUY",
		2: "SELL",
	}
	ProtoOATradeSide_value = map[string]int32{
		"BUY":  1,
		"SELL": 2,
	}
)

Enum value maps for ProtoOATradeSide.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
var (
	ProtoOAQuoteType_name = map[int32]string{
		1: "BID",
		2: "ASK",
	}
	ProtoOAQuoteType_value = map[string]int32{
		"BID": 1,
		"ASK": 2,
	}
)

Enum value maps for ProtoOAQuoteType.

View Source
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.

View Source
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.

View Source
var (
	ProtoOAErrorCode_name = map[int32]string{
		1:   "OA_AUTH_TOKEN_EXPIRED",
		2:   "ACCOUNT_NOT_AUTHORIZED",
		14:  "ALREADY_LOGGED_IN",
		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,
		"ALREADY_LOGGED_IN":                 14,
		"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.

View Source
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.

View Source
var File_proto_OpenApiCommonMessages_proto protoreflect.FileDescriptor
View Source
var File_proto_OpenApiCommonModelMessages_proto protoreflect.FileDescriptor
View Source
var File_proto_OpenApiMessages_proto protoreflect.FileDescriptor
View Source
var File_proto_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.
)

func (ProtoErrorCode) Descriptor

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 (ProtoErrorCode) String

func (x ProtoErrorCode) String() string

func (ProtoErrorCode) Type

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"` // CS-10489 Epoch timestamp in second
	// contains filtered or unexported fields
}

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
}

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) Enum

func (ProtoOAAccessRights) EnumDescriptor deprecated

func (ProtoOAAccessRights) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProtoOAAccessRights.Descriptor instead.

func (ProtoOAAccessRights) Number

func (ProtoOAAccessRights) String

func (x ProtoOAAccessRights) String() string

func (ProtoOAAccessRights) Type

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 (*ProtoOAAccountDisconnectEvent) ProtoMessage

func (*ProtoOAAccountDisconnectEvent) ProtoMessage()

func (*ProtoOAAccountDisconnectEvent) ProtoReflect

func (*ProtoOAAccountDisconnectEvent) Reset

func (x *ProtoOAAccountDisconnectEvent) Reset()

func (*ProtoOAAccountDisconnectEvent) 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.

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) Enum

func (ProtoOAAccountType) EnumDescriptor deprecated

func (ProtoOAAccountType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProtoOAAccountType.Descriptor instead.

func (ProtoOAAccountType) Number

func (ProtoOAAccountType) String

func (x ProtoOAAccountType) String() string

func (ProtoOAAccountType) Type

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 (*ProtoOAAccountsTokenInvalidatedEvent) GetReason

func (*ProtoOAAccountsTokenInvalidatedEvent) ProtoMessage

func (*ProtoOAAccountsTokenInvalidatedEvent) ProtoMessage()

func (*ProtoOAAccountsTokenInvalidatedEvent) ProtoReflect

func (*ProtoOAAccountsTokenInvalidatedEvent) Reset

func (*ProtoOAAccountsTokenInvalidatedEvent) 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 exact Order expiration time. 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 MARKET 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 MARKET 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 (*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 (*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 (*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"`
	Name                   *string `protobuf:"bytes,2,req,name=name" json:"name,omitempty"`
	UtcLastUpdateTimestamp *int64  `protobuf:"varint,3,req,name=utcLastUpdateTimestamp" json:"utcLastUpdateTimestamp,omitempty"`
	Description            *string `protobuf:"bytes,4,opt,name=description" json:"description,omitempty"`
	// 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"`               // Time 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 (*ProtoOABonusDepositWithdraw) ProtoMessage

func (*ProtoOABonusDepositWithdraw) ProtoMessage()

func (*ProtoOABonusDepositWithdraw) ProtoReflect

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 (1-1-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 (19-1-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 (*ProtoOACashFlowHistoryListReq) GetToTimestamp

func (x *ProtoOACashFlowHistoryListReq) GetToTimestamp() int64

func (*ProtoOACashFlowHistoryListReq) ProtoMessage

func (*ProtoOACashFlowHistoryListReq) ProtoMessage()

func (*ProtoOACashFlowHistoryListReq) ProtoReflect

func (*ProtoOACashFlowHistoryListReq) Reset

func (x *ProtoOACashFlowHistoryListReq) Reset()

func (*ProtoOACashFlowHistoryListReq) 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 (*ProtoOACashFlowHistoryListRes) ProtoMessage

func (*ProtoOACashFlowHistoryListRes) ProtoMessage()

func (*ProtoOACashFlowHistoryListRes) ProtoReflect

func (*ProtoOACashFlowHistoryListRes) Reset

func (x *ProtoOACashFlowHistoryListRes) Reset()

func (*ProtoOACashFlowHistoryListRes) 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) Enum

func (ProtoOAChangeBalanceType) EnumDescriptor deprecated

func (ProtoOAChangeBalanceType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProtoOAChangeBalanceType.Descriptor instead.

func (ProtoOAChangeBalanceType) Number

func (ProtoOAChangeBalanceType) String

func (x ProtoOAChangeBalanceType) String() string

func (ProtoOAChangeBalanceType) Type

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) Enum

func (ProtoOAChangeBonusType) EnumDescriptor deprecated

func (ProtoOAChangeBonusType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProtoOAChangeBonusType.Descriptor instead.

func (ProtoOAChangeBonusType) Number

func (ProtoOAChangeBonusType) String

func (x ProtoOAChangeBonusType) String() string

func (ProtoOAChangeBonusType) Type

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 (*ProtoOAClientDisconnectEvent) GetReason

func (x *ProtoOAClientDisconnectEvent) GetReason() string

func (*ProtoOAClientDisconnectEvent) ProtoMessage

func (*ProtoOAClientDisconnectEvent) ProtoMessage()

func (*ProtoOAClientDisconnectEvent) ProtoReflect

func (*ProtoOAClientDisconnectEvent) Reset

func (x *ProtoOAClientDisconnectEvent) Reset()

func (*ProtoOAClientDisconnectEvent) 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) Enum

func (ProtoOAClientPermissionScope) EnumDescriptor deprecated

func (ProtoOAClientPermissionScope) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProtoOAClientPermissionScope.Descriptor instead.

func (ProtoOAClientPermissionScope) Number

func (ProtoOAClientPermissionScope) String

func (ProtoOAClientPermissionScope) Type

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 (*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) Enum

func (ProtoOACommissionType) EnumDescriptor deprecated

func (ProtoOACommissionType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProtoOACommissionType.Descriptor instead.

func (ProtoOACommissionType) Number

func (ProtoOACommissionType) String

func (x ProtoOACommissionType) String() string

func (ProtoOACommissionType) Type

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"`     // Timestamp of the last ProtoOAClosePositionDetail happened to this account.
	LastBalanceUpdateTimestamp *int64  `protobuf:"varint,5,opt,name=lastBalanceUpdateTimestamp" json:"lastBalanceUpdateTimestamp,omitempty"` // Timestamp of the last ProtoOADepositWithdraw happened to this account.
	// 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) 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) Enum

func (ProtoOADayOfWeek) EnumDescriptor deprecated

func (ProtoOADayOfWeek) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProtoOADayOfWeek.Descriptor instead.

func (ProtoOADayOfWeek) Number

func (ProtoOADayOfWeek) String

func (x ProtoOADayOfWeek) String() string

func (ProtoOADayOfWeek) Type

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"`                   // Time when the deal was sent for execution.
	ExecutionTimestamp      *int64                      `protobuf:"varint,8,req,name=executionTimestamp" json:"executionTimestamp,omitempty"`             // Time when the deal was executed.
	UtcLastUpdateTimestamp  *int64                      `protobuf:"varint,9,opt,name=utcLastUpdateTimestamp" json:"utcLastUpdateTimestamp,omitempty"`     // Timestamp 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,req,name=fromTimestamp" json:"fromTimestamp,omitempty"`             // The exact time of starting the search in milliseconds. Must be bigger of equal to zero (1-1-1970). Validation: toTimestamp - fromTimestamp <= 604800000 (1 week).
	ToTimestamp         *int64              `protobuf:"varint,5,req,name=toTimestamp" json:"toTimestamp,omitempty"`                 // The exact time of finishing the search in milliseconds <= 2147483646000 (19-1-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 (*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 (*ProtoOADealListByPositionIdReq) Reset

func (x *ProtoOADealListByPositionIdReq) Reset()

func (*ProtoOADealListByPositionIdReq) 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 (*ProtoOADealListByPositionIdRes) GetHasMore

func (x *ProtoOADealListByPositionIdRes) GetHasMore() bool

func (*ProtoOADealListByPositionIdRes) GetPayloadType

func (*ProtoOADealListByPositionIdRes) ProtoMessage

func (*ProtoOADealListByPositionIdRes) ProtoMessage()

func (*ProtoOADealListByPositionIdRes) ProtoReflect

func (*ProtoOADealListByPositionIdRes) Reset

func (x *ProtoOADealListByPositionIdRes) Reset()

func (*ProtoOADealListByPositionIdRes) 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,req,name=fromTimestamp" json:"fromTimestamp,omitempty"`             // The UNIX time from which the search starts >=0 (1-1-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 (19-1-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"` // Time 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) Enum

func (ProtoOADealStatus) EnumDescriptor deprecated

func (ProtoOADealStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProtoOADealStatus.Descriptor instead.

func (ProtoOADealStatus) Number

func (ProtoOADealStatus) String

func (x ProtoOADealStatus) String() string

func (ProtoOADealStatus) Type

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"`             // Time 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 (*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 (*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_ALREADY_LOGGED_IN                ProtoOAErrorCode = 14  // When client tries to authorize after it was already authorized
	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) Enum

func (ProtoOAErrorCode) EnumDescriptor deprecated

func (ProtoOAErrorCode) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProtoOAErrorCode.Descriptor instead.

func (ProtoOAErrorCode) Number

func (ProtoOAErrorCode) String

func (x ProtoOAErrorCode) String() string

func (ProtoOAErrorCode) Type

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 timestamp in seconds when the current maintenance session will be ended.
	// 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) 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) Enum

func (ProtoOAExecutionType) EnumDescriptor deprecated

func (ProtoOAExecutionType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProtoOAExecutionType.Descriptor instead.

func (ProtoOAExecutionType) Number

func (ProtoOAExecutionType) String

func (x ProtoOAExecutionType) String() string

func (ProtoOAExecutionType) Type

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. Can be used before sending a new order request.

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 (*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 (*ProtoOAGetAccountListByAccessTokenReq) ProtoMessage

func (*ProtoOAGetAccountListByAccessTokenReq) ProtoMessage()

func (*ProtoOAGetAccountListByAccessTokenReq) ProtoReflect

func (*ProtoOAGetAccountListByAccessTokenReq) Reset

func (*ProtoOAGetAccountListByAccessTokenReq) 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 (*ProtoOAGetAccountListByAccessTokenRes) GetPayloadType

func (*ProtoOAGetAccountListByAccessTokenRes) GetPermissionScope

func (*ProtoOAGetAccountListByAccessTokenRes) ProtoMessage

func (*ProtoOAGetAccountListByAccessTokenRes) ProtoMessage()

func (*ProtoOAGetAccountListByAccessTokenRes) ProtoReflect

func (*ProtoOAGetAccountListByAccessTokenRes) Reset

func (*ProtoOAGetAccountListByAccessTokenRes) 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 (*ProtoOAGetCtidProfileByTokenReq) ProtoMessage

func (*ProtoOAGetCtidProfileByTokenReq) ProtoMessage()

func (*ProtoOAGetCtidProfileByTokenReq) ProtoReflect

func (*ProtoOAGetCtidProfileByTokenReq) Reset

func (*ProtoOAGetCtidProfileByTokenReq) 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 (*ProtoOAGetCtidProfileByTokenRes) GetProfile

func (*ProtoOAGetCtidProfileByTokenRes) ProtoMessage

func (*ProtoOAGetCtidProfileByTokenRes) ProtoMessage()

func (*ProtoOAGetCtidProfileByTokenRes) ProtoReflect

func (*ProtoOAGetCtidProfileByTokenRes) Reset

func (*ProtoOAGetCtidProfileByTokenRes) 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 (*ProtoOAGetDynamicLeverageByIDReq) ProtoMessage

func (*ProtoOAGetDynamicLeverageByIDReq) ProtoMessage()

func (*ProtoOAGetDynamicLeverageByIDReq) ProtoReflect

func (*ProtoOAGetDynamicLeverageByIDReq) Reset

func (*ProtoOAGetDynamicLeverageByIDReq) 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 (*ProtoOAGetDynamicLeverageByIDRes) GetPayloadType

func (*ProtoOAGetDynamicLeverageByIDRes) ProtoMessage

func (*ProtoOAGetDynamicLeverageByIDRes) ProtoMessage()

func (*ProtoOAGetDynamicLeverageByIDRes) ProtoReflect

func (*ProtoOAGetDynamicLeverageByIDRes) Reset

func (*ProtoOAGetDynamicLeverageByIDRes) 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
}

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 (*ProtoOAGetPositionUnrealizedPnLReq) ProtoMessage

func (*ProtoOAGetPositionUnrealizedPnLReq) ProtoMessage()

func (*ProtoOAGetPositionUnrealizedPnLReq) ProtoReflect

func (*ProtoOAGetPositionUnrealizedPnLReq) Reset

func (*ProtoOAGetPositionUnrealizedPnLReq) 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
}

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 (*ProtoOAGetPositionUnrealizedPnLRes) GetPositionUnrealizedPnL

func (x *ProtoOAGetPositionUnrealizedPnLRes) GetPositionUnrealizedPnL() []*ProtoOAPositionUnrealizedPnL

func (*ProtoOAGetPositionUnrealizedPnLRes) ProtoMessage

func (*ProtoOAGetPositionUnrealizedPnLRes) ProtoMessage()

func (*ProtoOAGetPositionUnrealizedPnLRes) ProtoReflect

func (*ProtoOAGetPositionUnrealizedPnLRes) Reset

func (*ProtoOAGetPositionUnrealizedPnLRes) 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,req,name=fromTimestamp" json:"fromTimestamp,omitempty"`             // The exact time of starting the search in milliseconds. Must be bigger of equal to zero (1-1-1970). Validation: toTimestamp - fromTimestamp <= 604800000 (1 week).
	ToTimestamp         *int64              `protobuf:"varint,6,req,name=toTimestamp" json:"toTimestamp,omitempty"`                 // The exact time of finishing the search in milliseconds <= 2147483646000 (19-1-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 (*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. The first tick contains Unix timestamp 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,req,name=fromTimestamp" json:"fromTimestamp,omitempty"`              // The exact time of starting the search in milliseconds. Must be bigger or equal to zero (1-1-1970). Validation: toTimestamp - fromTimestamp <= X, where X depends on series period: M1, M2, M3, M4, M5: 3024000000 (5 weeks); M10, M15, M30, H1: 21168000000 (35 weeks), H4, H12, D1: 31622400000 (1 year); W1, MN1: 158112000000 (5 years).
	ToTimestamp         *int64                 `protobuf:"varint,4,req,name=toTimestamp" json:"toTimestamp,omitempty"`                  // The exact time of finishing the search in milliseconds. Smaller or equal to 2147483646000 (19-1-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 (*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.).
	Timestamp           *int64                 `protobuf:"varint,4,req,name=timestamp" json:"timestamp,omitempty"`                      // Equals to toTimestamp from the request.
	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.
	// 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) GetPayloadType

func (x *ProtoOAGetTrendbarsRes) GetPayloadType() ProtoOAPayloadType

func (*ProtoOAGetTrendbarsRes) GetPeriod

func (*ProtoOAGetTrendbarsRes) GetSymbolId

func (x *ProtoOAGetTrendbarsRes) GetSymbolId() int64

func (*ProtoOAGetTrendbarsRes) GetTimestamp

func (x *ProtoOAGetTrendbarsRes) GetTimestamp() int64

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 01-01-1970, multiply it by 86400000 to get unix timestamp.
	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) Enum

func (ProtoOALimitedRiskMarginCalculationStrategy) EnumDescriptor deprecated

func (ProtoOALimitedRiskMarginCalculationStrategy) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProtoOALimitedRiskMarginCalculationStrategy.Descriptor instead.

func (ProtoOALimitedRiskMarginCalculationStrategy) Number

func (ProtoOALimitedRiskMarginCalculationStrategy) String

func (ProtoOALimitedRiskMarginCalculationStrategy) Type

func (*ProtoOALimitedRiskMarginCalculationStrategy) UnmarshalJSON deprecated

Deprecated: Do not use.

type ProtoOAMarginCall

type ProtoOAMarginCall struct {
	MarginCallType         *ProtoOANotificationType `protobuf:"varint,1,req,name=marginCallType,enum=ProtoOANotificationType" json:"marginCallType,omitempty"`
	MarginLevelThreshold   *float64                 `protobuf:"fixed64,2,req,name=marginLevelThreshold" json:"marginLevelThreshold,omitempty"`
	UtcLastUpdateTimestamp *int64                   `protobuf:"varint,3,opt,name=utcLastUpdateTimestamp" json:"utcLastUpdateTimestamp,omitempty"`
	// 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 (*ProtoOAMarginCallTriggerEvent) GetPayloadType

func (*ProtoOAMarginCallTriggerEvent) ProtoMessage

func (*ProtoOAMarginCallTriggerEvent) ProtoMessage()

func (*ProtoOAMarginCallTriggerEvent) ProtoReflect

func (*ProtoOAMarginCallTriggerEvent) Reset

func (x *ProtoOAMarginCallTriggerEvent) Reset()

func (*ProtoOAMarginCallTriggerEvent) 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 (*ProtoOAMarginCallUpdateEvent) ProtoMessage

func (*ProtoOAMarginCallUpdateEvent) ProtoMessage()

func (*ProtoOAMarginCallUpdateEvent) ProtoReflect

func (*ProtoOAMarginCallUpdateEvent) Reset

func (x *ProtoOAMarginCallUpdateEvent) Reset()

func (*ProtoOAMarginCallUpdateEvent) 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 (*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 (*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 (*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) Enum

func (ProtoOAMinCommissionType) EnumDescriptor deprecated

func (ProtoOAMinCommissionType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProtoOAMinCommissionType.Descriptor instead.

func (ProtoOAMinCommissionType) Number

func (ProtoOAMinCommissionType) String

func (x ProtoOAMinCommissionType) String() string

func (ProtoOAMinCommissionType) Type

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 exact Order expiration time. 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 MARKET orders; for these orders, please use relativeStopLoss.
	TakeProfit          *float64                   `protobuf:"fixed64,12,opt,name=takeProfit" json:"takeProfit,omitempty"`                                                   // The absolute Take Profit price (1.23456 for example). Not supported for MARKET orders; for these orders, please use relativeTakeProfit.
	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"`                                        // Used in MARKET orders only. 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"`                                    // Used in MARKET orders only. 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. Available for the French Risk or the Guaranteed Stop Loss Accounts.
	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. The default value is ProtoOAOrderTriggerMethod.TRADE.
	// 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) Enum

func (ProtoOANotificationType) EnumDescriptor deprecated

func (ProtoOANotificationType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProtoOANotificationType.Descriptor instead.

func (ProtoOANotificationType) Number

func (ProtoOANotificationType) String

func (x ProtoOANotificationType) String() string

func (ProtoOANotificationType) Type

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"`                                   // If the order has time in force GTD then expiration is specified.
	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"`                             // Timestamp 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,req,name=fromTimestamp" json:"fromTimestamp,omitempty"`             // The UNIX time from which the search starts >=0 (1-1-1970). Validation: toTimestamp - fromTimestamp <= 604800000 (1 week). Search by utcLastUpdateTimestamp of the Order.
	ToTimestamp         *int64              `protobuf:"varint,5,req,name=toTimestamp" json:"toTimestamp,omitempty"`                 // The UNIX time where to stop searching <= 2147483646000 (19-1-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 (*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 (*ProtoOAOrderListByPositionIdReq) Reset

func (*ProtoOAOrderListByPositionIdReq) 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 (*ProtoOAOrderListByPositionIdRes) GetPayloadType

func (*ProtoOAOrderListByPositionIdRes) ProtoMessage

func (*ProtoOAOrderListByPositionIdRes) ProtoMessage()

func (*ProtoOAOrderListByPositionIdRes) ProtoReflect

func (*ProtoOAOrderListByPositionIdRes) Reset

func (*ProtoOAOrderListByPositionIdRes) 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,req,name=fromTimestamp" json:"fromTimestamp,omitempty"`             // The UNIX time from which the search starts >=0 (1-1-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 (19-1-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) Enum

func (ProtoOAOrderStatus) EnumDescriptor deprecated

func (ProtoOAOrderStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProtoOAOrderStatus.Descriptor instead.

func (ProtoOAOrderStatus) Number

func (ProtoOAOrderStatus) String

func (x ProtoOAOrderStatus) String() string

func (ProtoOAOrderStatus) Type

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) Enum

func (ProtoOAOrderTriggerMethod) EnumDescriptor deprecated

func (ProtoOAOrderTriggerMethod) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProtoOAOrderTriggerMethod.Descriptor instead.

func (ProtoOAOrderTriggerMethod) Number

func (ProtoOAOrderTriggerMethod) String

func (x ProtoOAOrderTriggerMethod) String() string

func (ProtoOAOrderTriggerMethod) Type

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) Enum

func (ProtoOAOrderType) EnumDescriptor deprecated

func (ProtoOAOrderType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProtoOAOrderType.Descriptor instead.

func (ProtoOAOrderType) Number

func (ProtoOAOrderType) String

func (x ProtoOAOrderType) String() string

func (ProtoOAOrderType) Type

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) Enum

func (ProtoOAPayloadType) EnumDescriptor deprecated

func (ProtoOAPayloadType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProtoOAPayloadType.Descriptor instead.

func (ProtoOAPayloadType) Number

func (ProtoOAPayloadType) String

func (x ProtoOAPayloadType) String() string

func (ProtoOAPayloadType) Type

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"`            // Time 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) Enum

func (ProtoOAPositionStatus) EnumDescriptor deprecated

func (ProtoOAPositionStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProtoOAPositionStatus.Descriptor instead.

func (ProtoOAPositionStatus) Number

func (ProtoOAPositionStatus) String

func (x ProtoOAPositionStatus) String() string

func (ProtoOAPositionStatus) Type

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 (*ProtoOAPositionUnrealizedPnL) Reset

func (x *ProtoOAPositionUnrealizedPnL) Reset()

func (*ProtoOAPositionUnrealizedPnL) String

type ProtoOAQuoteType

type ProtoOAQuoteType int32

* Price quote type.

const (
	ProtoOAQuoteType_BID ProtoOAQuoteType = 1
	ProtoOAQuoteType_ASK ProtoOAQuoteType = 2
)

func (ProtoOAQuoteType) Descriptor

func (ProtoOAQuoteType) Enum

func (ProtoOAQuoteType) EnumDescriptor deprecated

func (ProtoOAQuoteType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProtoOAQuoteType.Descriptor instead.

func (ProtoOAQuoteType) Number

func (ProtoOAQuoteType) String

func (x ProtoOAQuoteType) String() string

func (ProtoOAQuoteType) Type

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 timestamp 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 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 (*ProtoOASubscribeDepthQuotesReq) GetSymbolId

func (x *ProtoOASubscribeDepthQuotesReq) GetSymbolId() []int64

func (*ProtoOASubscribeDepthQuotesReq) ProtoMessage

func (*ProtoOASubscribeDepthQuotesReq) ProtoMessage()

func (*ProtoOASubscribeDepthQuotesReq) ProtoReflect

func (*ProtoOASubscribeDepthQuotesReq) Reset

func (x *ProtoOASubscribeDepthQuotesReq) Reset()

func (*ProtoOASubscribeDepthQuotesReq) 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 (*ProtoOASubscribeDepthQuotesRes) ProtoMessage

func (*ProtoOASubscribeDepthQuotesRes) ProtoMessage()

func (*ProtoOASubscribeDepthQuotesRes) ProtoReflect

func (*ProtoOASubscribeDepthQuotesRes) Reset

func (x *ProtoOASubscribeDepthQuotesRes) Reset()

func (*ProtoOASubscribeDepthQuotesRes) 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 (*ProtoOASubscribeLiveTrendbarReq) GetPeriod

func (*ProtoOASubscribeLiveTrendbarReq) GetSymbolId

func (x *ProtoOASubscribeLiveTrendbarReq) GetSymbolId() int64

func (*ProtoOASubscribeLiveTrendbarReq) ProtoMessage

func (*ProtoOASubscribeLiveTrendbarReq) ProtoMessage()

func (*ProtoOASubscribeLiveTrendbarReq) ProtoReflect

func (*ProtoOASubscribeLiveTrendbarReq) Reset

func (*ProtoOASubscribeLiveTrendbarReq) 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 (*ProtoOASubscribeLiveTrendbarRes) ProtoMessage

func (*ProtoOASubscribeLiveTrendbarRes) ProtoMessage()

func (*ProtoOASubscribeLiveTrendbarRes) ProtoReflect

func (*ProtoOASubscribeLiveTrendbarRes) Reset

func (*ProtoOASubscribeLiveTrendbarRes) 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.

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.

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)
)

func (ProtoOASwapCalculationType) Descriptor

func (ProtoOASwapCalculationType) Enum

func (ProtoOASwapCalculationType) EnumDescriptor deprecated

func (ProtoOASwapCalculationType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProtoOASwapCalculationType.Descriptor instead.

func (ProtoOASwapCalculationType) Number

func (ProtoOASwapCalculationType) String

func (ProtoOASwapCalculationType) Type

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/trading-with-ctrader/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 (*ProtoOASymbolCategoryListReq) ProtoMessage

func (*ProtoOASymbolCategoryListReq) ProtoMessage()

func (*ProtoOASymbolCategoryListReq) ProtoReflect

func (*ProtoOASymbolCategoryListReq) Reset

func (x *ProtoOASymbolCategoryListReq) Reset()

func (*ProtoOASymbolCategoryListReq) 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 (*ProtoOASymbolCategoryListRes) GetSymbolCategory

func (x *ProtoOASymbolCategoryListRes) GetSymbolCategory() []*ProtoOASymbolCategory

func (*ProtoOASymbolCategoryListRes) ProtoMessage

func (*ProtoOASymbolCategoryListRes) ProtoMessage()

func (*ProtoOASymbolCategoryListRes) ProtoReflect

func (*ProtoOASymbolCategoryListRes) Reset

func (x *ProtoOASymbolCategoryListRes) Reset()

func (*ProtoOASymbolCategoryListRes) 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 (*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) Enum

func (ProtoOASymbolDistanceType) EnumDescriptor deprecated

func (ProtoOASymbolDistanceType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProtoOASymbolDistanceType.Descriptor instead.

func (ProtoOASymbolDistanceType) Number

func (ProtoOASymbolDistanceType) String

func (x ProtoOASymbolDistanceType) String() string

func (ProtoOASymbolDistanceType) Type

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 (*ProtoOASymbolsForConversionReq) ProtoMessage

func (*ProtoOASymbolsForConversionReq) ProtoMessage()

func (*ProtoOASymbolsForConversionReq) ProtoReflect

func (*ProtoOASymbolsForConversionReq) Reset

func (x *ProtoOASymbolsForConversionReq) Reset()

func (*ProtoOASymbolsForConversionReq) 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 (*ProtoOASymbolsForConversionRes) GetSymbol

func (*ProtoOASymbolsForConversionRes) ProtoMessage

func (*ProtoOASymbolsForConversionRes) ProtoMessage()

func (*ProtoOASymbolsForConversionRes) ProtoReflect

func (*ProtoOASymbolsForConversionRes) Reset

func (x *ProtoOASymbolsForConversionRes) Reset()

func (*ProtoOASymbolsForConversionRes) 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"` // Unix timestamp of the tick in milliseconds. 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) Enum

func (ProtoOATimeInForce) EnumDescriptor deprecated

func (ProtoOATimeInForce) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProtoOATimeInForce.Descriptor instead.

func (ProtoOATimeInForce) Number

func (ProtoOATimeInForce) String

func (x ProtoOATimeInForce) String() string

func (ProtoOATimeInForce) Type

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) Enum

func (ProtoOATotalMarginCalculationType) EnumDescriptor deprecated

func (ProtoOATotalMarginCalculationType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProtoOATotalMarginCalculationType.Descriptor instead.

func (ProtoOATotalMarginCalculationType) Number

func (ProtoOATotalMarginCalculationType) String

func (ProtoOATotalMarginCalculationType) Type

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"`               // Time 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 timestamp 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) Enum

func (ProtoOATradeSide) EnumDescriptor deprecated

func (ProtoOATradeSide) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProtoOATradeSide.Descriptor instead.

func (ProtoOATradeSide) Number

func (ProtoOATradeSide) String

func (x ProtoOATradeSide) String() string

func (ProtoOATradeSide) Type

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"`           // Unix timestamp 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.
	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.
	// 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) 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 (*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) Enum

func (ProtoOATradingMode) EnumDescriptor deprecated

func (ProtoOATradingMode) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProtoOATradingMode.Descriptor instead.

func (ProtoOATradingMode) Number

func (ProtoOATradingMode) String

func (x ProtoOATradingMode) String() string

func (ProtoOATradingMode) Type

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 exact UTC time 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 (*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 (*ProtoOATrailingSLChangedEvent) Reset

func (x *ProtoOATrailingSLChangedEvent) Reset()

func (*ProtoOATrailingSLChangedEvent) 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"`    // Timestamp 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) Enum

func (ProtoOATrendbarPeriod) EnumDescriptor deprecated

func (ProtoOATrendbarPeriod) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProtoOATrendbarPeriod.Descriptor instead.

func (ProtoOATrendbarPeriod) Number

func (ProtoOATrendbarPeriod) String

func (x ProtoOATrendbarPeriod) String() string

func (ProtoOATrendbarPeriod) Type

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 (*ProtoOAUnsubscribeDepthQuotesReq) GetSymbolId

func (x *ProtoOAUnsubscribeDepthQuotesReq) GetSymbolId() []int64

func (*ProtoOAUnsubscribeDepthQuotesReq) ProtoMessage

func (*ProtoOAUnsubscribeDepthQuotesReq) ProtoMessage()

func (*ProtoOAUnsubscribeDepthQuotesReq) ProtoReflect

func (*ProtoOAUnsubscribeDepthQuotesReq) Reset

func (*ProtoOAUnsubscribeDepthQuotesReq) 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 (*ProtoOAUnsubscribeDepthQuotesRes) ProtoMessage

func (*ProtoOAUnsubscribeDepthQuotesRes) ProtoMessage()

func (*ProtoOAUnsubscribeDepthQuotesRes) ProtoReflect

func (*ProtoOAUnsubscribeDepthQuotesRes) Reset

func (*ProtoOAUnsubscribeDepthQuotesRes) 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 (*ProtoOAUnsubscribeLiveTrendbarReq) GetPeriod

func (*ProtoOAUnsubscribeLiveTrendbarReq) GetSymbolId

func (x *ProtoOAUnsubscribeLiveTrendbarReq) GetSymbolId() int64

func (*ProtoOAUnsubscribeLiveTrendbarReq) ProtoMessage

func (*ProtoOAUnsubscribeLiveTrendbarReq) ProtoMessage()

func (*ProtoOAUnsubscribeLiveTrendbarReq) ProtoReflect

func (*ProtoOAUnsubscribeLiveTrendbarReq) Reset

func (*ProtoOAUnsubscribeLiveTrendbarReq) 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 (*ProtoOAUnsubscribeLiveTrendbarRes) ProtoMessage

func (*ProtoOAUnsubscribeLiveTrendbarRes) ProtoMessage()

func (*ProtoOAUnsubscribeLiveTrendbarRes) ProtoReflect

func (*ProtoOAUnsubscribeLiveTrendbarRes) Reset

func (*ProtoOAUnsubscribeLiveTrendbarRes) 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.

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 (*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.

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 (*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) Enum

func (ProtoPayloadType) EnumDescriptor deprecated

func (ProtoPayloadType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProtoPayloadType.Descriptor instead.

func (ProtoPayloadType) Number

func (ProtoPayloadType) String

func (x ProtoPayloadType) String() string

func (ProtoPayloadType) Type

func (*ProtoPayloadType) UnmarshalJSON deprecated

func (x *ProtoPayloadType) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL