v1

package
v0.31.2 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

View Source
const (
	TickerBeatsService_GetTickerBeats_FullMethodName             = "/tickerbeats.v1.TickerBeatsService/GetTickerBeats"
	TickerBeatsService_GetTickerBeatsNotification_FullMethodName = "/tickerbeats.v1.TickerBeatsService/GetTickerBeatsNotification"
	TickerBeatsService_ConfirmBeatsTransaction_FullMethodName    = "/tickerbeats.v1.TickerBeatsService/ConfirmBeatsTransaction"
)
View Source
const (
	TransactionsService_CreateAccount_FullMethodName          = "/tickerbeats.v1.TransactionsService/CreateAccount"
	TransactionsService_CreateDeals_FullMethodName            = "/tickerbeats.v1.TransactionsService/CreateDeals"
	TransactionsService_CreateOrders_FullMethodName           = "/tickerbeats.v1.TransactionsService/CreateOrders"
	TransactionsService_CreatePositions_FullMethodName        = "/tickerbeats.v1.TransactionsService/CreatePositions"
	TransactionsService_CreateTradeTransaction_FullMethodName = "/tickerbeats.v1.TransactionsService/CreateTradeTransaction"
)
View Source
const (
	TestingStatisticsService_Create_FullMethodName = "/tickerbeats.v1.TestingStatisticsService/Create"
)

Variables

View Source
var (
	AccountTradeMode_name = map[int32]string{
		0: "ACCOUNT_TRADE_MODE_DEMO",
		1: "ACCOUNT_TRADE_MODE_CONTEST",
		2: "ACCOUNT_TRADE_MODE_REAL",
		3: "ACCOUNT_TRADE_MODE_INTERNAL",
		4: "ACCOUNT_TRADE_MODE_BINANCE",
	}
	AccountTradeMode_value = map[string]int32{
		"ACCOUNT_TRADE_MODE_DEMO":     0,
		"ACCOUNT_TRADE_MODE_CONTEST":  1,
		"ACCOUNT_TRADE_MODE_REAL":     2,
		"ACCOUNT_TRADE_MODE_INTERNAL": 3,
		"ACCOUNT_TRADE_MODE_BINANCE":  4,
	}
)

Enum value maps for AccountTradeMode.

View Source
var (
	AccountStopoutMode_name = map[int32]string{
		0: "ACCOUNT_STOPOUT_MODE_PERCENT",
		1: "ACCOUNT_STOPOUT_MODE_MONEY",
	}
	AccountStopoutMode_value = map[string]int32{
		"ACCOUNT_STOPOUT_MODE_PERCENT": 0,
		"ACCOUNT_STOPOUT_MODE_MONEY":   1,
	}
)

Enum value maps for AccountStopoutMode.

View Source
var (
	AccountMarginMode_name = map[int32]string{
		0: "ACCOUNT_MARGIN_MODE_RETAIL_NETTING",
		1: "ACCOUNT_MARGIN_MODE_EXCHANGE",
		2: "ACCOUNT_MARGIN_MODE_RETAIL_HEDGING",
	}
	AccountMarginMode_value = map[string]int32{
		"ACCOUNT_MARGIN_MODE_RETAIL_NETTING": 0,
		"ACCOUNT_MARGIN_MODE_EXCHANGE":       1,
		"ACCOUNT_MARGIN_MODE_RETAIL_HEDGING": 2,
	}
)

Enum value maps for AccountMarginMode.

View Source
var (
	DealType_name = map[int32]string{
		0:  "DEAL_TYPE_BUY",
		1:  "DEAL_TYPE_SELL",
		2:  "DEAL_TYPE_BALANCE",
		3:  "DEAL_TYPE_CREDIT",
		4:  "DEAL_TYPE_CHARGE",
		5:  "DEAL_TYPE_CORRECTION",
		6:  "DEAL_TYPE_BONUS",
		7:  "DEAL_TYPE_COMMISSION",
		8:  "DEAL_TYPE_COMMISSION_DAILY",
		9:  "DEAL_TYPE_COMMISSION_MONTHLY",
		10: "DEAL_TYPE_COMMISSION_AGENT_DAILY",
		11: "DEAL_TYPE_COMMISSION_AGENT_MONTHLY",
		12: "DEAL_TYPE_INTEREST",
		13: "DEAL_TYPE_BUY_CANCELED",
		14: "DEAL_TYPE_SELL_CANCELED",
		15: "DEAL_DIVIDEND",
		16: "DEAL_DIVIDEND_FRANKED",
		17: "DEAL_TAX",
	}
	DealType_value = map[string]int32{
		"DEAL_TYPE_BUY":                      0,
		"DEAL_TYPE_SELL":                     1,
		"DEAL_TYPE_BALANCE":                  2,
		"DEAL_TYPE_CREDIT":                   3,
		"DEAL_TYPE_CHARGE":                   4,
		"DEAL_TYPE_CORRECTION":               5,
		"DEAL_TYPE_BONUS":                    6,
		"DEAL_TYPE_COMMISSION":               7,
		"DEAL_TYPE_COMMISSION_DAILY":         8,
		"DEAL_TYPE_COMMISSION_MONTHLY":       9,
		"DEAL_TYPE_COMMISSION_AGENT_DAILY":   10,
		"DEAL_TYPE_COMMISSION_AGENT_MONTHLY": 11,
		"DEAL_TYPE_INTEREST":                 12,
		"DEAL_TYPE_BUY_CANCELED":             13,
		"DEAL_TYPE_SELL_CANCELED":            14,
		"DEAL_DIVIDEND":                      15,
		"DEAL_DIVIDEND_FRANKED":              16,
		"DEAL_TAX":                           17,
	}
)

Enum value maps for DealType.

View Source
var (
	DealEntry_name = map[int32]string{
		0: "DEAL_ENTRY_IN",
		1: "DEAL_ENTRY_OUT",
		2: "DEAL_ENTRY_INOUT",
		3: "DEAL_ENTRY_OUT_BY",
	}
	DealEntry_value = map[string]int32{
		"DEAL_ENTRY_IN":     0,
		"DEAL_ENTRY_OUT":    1,
		"DEAL_ENTRY_INOUT":  2,
		"DEAL_ENTRY_OUT_BY": 3,
	}
)

Enum value maps for DealEntry.

View Source
var (
	DealReason_name = map[int32]string{
		0: "DEAL_REASON_CLIENT",
		1: "DEAL_REASON_MOBILE",
		2: "DEAL_REASON_WEB",
		3: "DEAL_REASON_EXPERT",
		4: "DEAL_REASON_SL",
		5: "DEAL_REASON_TP",
		6: "DEAL_REASON_SO",
		7: "DEAL_REASON_ROLLOVER",
		8: "DEAL_REASON_VMARGIN",
		9: "DEAL_REASON_SPLIT",
	}
	DealReason_value = map[string]int32{
		"DEAL_REASON_CLIENT":   0,
		"DEAL_REASON_MOBILE":   1,
		"DEAL_REASON_WEB":      2,
		"DEAL_REASON_EXPERT":   3,
		"DEAL_REASON_SL":       4,
		"DEAL_REASON_TP":       5,
		"DEAL_REASON_SO":       6,
		"DEAL_REASON_ROLLOVER": 7,
		"DEAL_REASON_VMARGIN":  8,
		"DEAL_REASON_SPLIT":    9,
	}
)

Enum value maps for DealReason.

View Source
var (
	OrderType_name = map[int32]string{
		0: "ORDER_TYPE_BUY",
		1: "ORDER_TYPE_SELL",
		2: "ORDER_TYPE_BUY_LIMIT",
		3: "ORDER_TYPE_SELL_LIMIT",
		4: "ORDER_TYPE_BUY_STOP",
		5: "ORDER_TYPE_SELL_STOP",
		6: "ORDER_TYPE_BUY_STOP_LIMIT",
		7: "ORDER_TYPE_SELL_STOP_LIMIT",
		8: "ORDER_TYPE_CLOSE_BY",
	}
	OrderType_value = map[string]int32{
		"ORDER_TYPE_BUY":             0,
		"ORDER_TYPE_SELL":            1,
		"ORDER_TYPE_BUY_LIMIT":       2,
		"ORDER_TYPE_SELL_LIMIT":      3,
		"ORDER_TYPE_BUY_STOP":        4,
		"ORDER_TYPE_SELL_STOP":       5,
		"ORDER_TYPE_BUY_STOP_LIMIT":  6,
		"ORDER_TYPE_SELL_STOP_LIMIT": 7,
		"ORDER_TYPE_CLOSE_BY":        8,
	}
)

Enum value maps for OrderType.

View Source
var (
	OrderState_name = map[int32]string{
		0: "ORDER_STATE_STARTED",
		1: "ORDER_STATE_PLACED",
		2: "ORDER_STATE_CANCELED",
		3: "ORDER_STATE_PARTIAL",
		4: "ORDER_STATE_FILLED",
		5: "ORDER_STATE_REJECTED",
		6: "ORDER_STATE_EXPIRED",
		7: "ORDER_STATE_REQUEST_ADD",
		8: "ORDER_STATE_REQUEST_MODIFY",
		9: "ORDER_STATE_REQUEST_CANCEL",
	}
	OrderState_value = map[string]int32{
		"ORDER_STATE_STARTED":        0,
		"ORDER_STATE_PLACED":         1,
		"ORDER_STATE_CANCELED":       2,
		"ORDER_STATE_PARTIAL":        3,
		"ORDER_STATE_FILLED":         4,
		"ORDER_STATE_REJECTED":       5,
		"ORDER_STATE_EXPIRED":        6,
		"ORDER_STATE_REQUEST_ADD":    7,
		"ORDER_STATE_REQUEST_MODIFY": 8,
		"ORDER_STATE_REQUEST_CANCEL": 9,
	}
)

Enum value maps for OrderState.

View Source
var (
	OrderFillingType_name = map[int32]string{
		0: "ORDER_FILLING_FOK",
		1: "ORDER_FILLING_IOC",
		2: "ORDER_FILLING_RETURN",
	}
	OrderFillingType_value = map[string]int32{
		"ORDER_FILLING_FOK":    0,
		"ORDER_FILLING_IOC":    1,
		"ORDER_FILLING_RETURN": 2,
	}
)

Enum value maps for OrderFillingType.

View Source
var (
	OrderTypeTime_name = map[int32]string{
		0: "ORDER_TIME_GTC",
		1: "ORDER_TIME_DAY",
		2: "ORDER_TIME_SPECIFIED",
		3: "ORDER_TIME_SPECIFIED_DAY",
	}
	OrderTypeTime_value = map[string]int32{
		"ORDER_TIME_GTC":           0,
		"ORDER_TIME_DAY":           1,
		"ORDER_TIME_SPECIFIED":     2,
		"ORDER_TIME_SPECIFIED_DAY": 3,
	}
)

Enum value maps for OrderTypeTime.

View Source
var (
	OrderReason_name = map[int32]string{
		0: "ORDER_REASON_CLIENT",
		1: "ORDER_REASON_MOBILE",
		2: "ORDER_REASON_WEB",
		3: "ORDER_REASON_EXPERT",
		4: "ORDER_REASON_SL",
		5: "ORDER_REASON_TP",
		6: "ORDER_REASON_SO",
	}
	OrderReason_value = map[string]int32{
		"ORDER_REASON_CLIENT": 0,
		"ORDER_REASON_MOBILE": 1,
		"ORDER_REASON_WEB":    2,
		"ORDER_REASON_EXPERT": 3,
		"ORDER_REASON_SL":     4,
		"ORDER_REASON_TP":     5,
		"ORDER_REASON_SO":     6,
	}
)

Enum value maps for OrderReason.

View Source
var (
	PositionType_name = map[int32]string{
		0: "POSITION_TYPE_BUY",
		1: "POSITION_TYPE_SELL",
	}
	PositionType_value = map[string]int32{
		"POSITION_TYPE_BUY":  0,
		"POSITION_TYPE_SELL": 1,
	}
)

Enum value maps for PositionType.

View Source
var (
	PositionReason_name = map[int32]string{
		0: "POSITION_REASON_CLIENT",
		1: "POSITION_REASON_MOBILE",
		2: "POSITION_REASON_WEB",
		3: "POSITION_REASON_EXPERT",
	}
	PositionReason_value = map[string]int32{
		"POSITION_REASON_CLIENT": 0,
		"POSITION_REASON_MOBILE": 1,
		"POSITION_REASON_WEB":    2,
		"POSITION_REASON_EXPERT": 3,
	}
)

Enum value maps for PositionReason.

View Source
var (
	SignalType_name = map[int32]string{
		0: "SIGINAL_TYPE_GET_ALL",
		1: "SIGINAL_TYPE_ORDER",
		2: "SIGINAL_TYPE_POSITION",
		3: "SIGINAL_TYPE_TRADE_REQUEST",
		4: "SIGINAL_TYPE_DEAL",
		5: "SIGINAL_TYPE_STOP_TAKE",
	}
	SignalType_value = map[string]int32{
		"SIGINAL_TYPE_GET_ALL":       0,
		"SIGINAL_TYPE_ORDER":         1,
		"SIGINAL_TYPE_POSITION":      2,
		"SIGINAL_TYPE_TRADE_REQUEST": 3,
		"SIGINAL_TYPE_DEAL":          4,
		"SIGINAL_TYPE_STOP_TAKE":     5,
	}
)

Enum value maps for SignalType.

View Source
var (
	CopyTradeAction_name = map[int32]string{
		0:  "_UNDEFINED_00",
		1:  "AS_ORIGIN_ORDER",
		2:  "MARKET_ORDER",
		3:  "_UNDEFINED_01",
		4:  "PENDING_ORDER",
		5:  "_UNDEFINED_05",
		6:  "_UNDEFINED_06",
		7:  "_UNDEFINED_07",
		8:  "SLTP_ORDER",
		9:  "_UNDEFINED_09",
		10: "_UNDEFINED_10",
		11: "_UNDEFINED_11",
		12: "_UNDEFINED_12",
		13: "_UNDEFINED_13",
		14: "_UNDEFINED_14",
		15: "_UNDEFINED_15",
		16: "PENDING_SLTP_ORDER",
		17: "_UNDEFINED_17",
		18: "_UNDEFINED_18",
		19: "_UNDEFINED_19",
		20: "_UNDEFINED_20",
		21: "_UNDEFINED_21",
		22: "_UNDEFINED_22",
		23: "_UNDEFINED_23",
		24: "_UNDEFINED_24",
		25: "_UNDEFINED_25",
		26: "_UNDEFINED_26",
		27: "_UNDEFINED_27",
		28: "_UNDEFINED_28",
		29: "_UNDEFINED_29",
		30: "_UNDEFINED_30",
		31: "_UNDEFINED_31",
		32: "CLOSE_POSITION_ORDER",
	}
	CopyTradeAction_value = map[string]int32{
		"_UNDEFINED_00":        0,
		"AS_ORIGIN_ORDER":      1,
		"MARKET_ORDER":         2,
		"_UNDEFINED_01":        3,
		"PENDING_ORDER":        4,
		"_UNDEFINED_05":        5,
		"_UNDEFINED_06":        6,
		"_UNDEFINED_07":        7,
		"SLTP_ORDER":           8,
		"_UNDEFINED_09":        9,
		"_UNDEFINED_10":        10,
		"_UNDEFINED_11":        11,
		"_UNDEFINED_12":        12,
		"_UNDEFINED_13":        13,
		"_UNDEFINED_14":        14,
		"_UNDEFINED_15":        15,
		"PENDING_SLTP_ORDER":   16,
		"_UNDEFINED_17":        17,
		"_UNDEFINED_18":        18,
		"_UNDEFINED_19":        19,
		"_UNDEFINED_20":        20,
		"_UNDEFINED_21":        21,
		"_UNDEFINED_22":        22,
		"_UNDEFINED_23":        23,
		"_UNDEFINED_24":        24,
		"_UNDEFINED_25":        25,
		"_UNDEFINED_26":        26,
		"_UNDEFINED_27":        27,
		"_UNDEFINED_28":        28,
		"_UNDEFINED_29":        29,
		"_UNDEFINED_30":        30,
		"_UNDEFINED_31":        31,
		"CLOSE_POSITION_ORDER": 32,
	}
)

Enum value maps for CopyTradeAction.

View Source
var (
	TradeRequestActions_name = map[int32]string{
		0:  "UNDEFINED_00_ACTION_DEAL",
		1:  "TRADE_ACTION_DEAL",
		2:  "UNDEFINED_01_ACTION_DEAL",
		3:  "UNDEFINED_02_ACTION_DEAL",
		4:  "UNDEFINED_03_ACTION_DEAL",
		5:  "TRADE_ACTION_PENDING",
		6:  "TRADE_ACTION_SLTP",
		7:  "TRADE_ACTION_MODIFY",
		8:  "TRADE_ACTION_REMOVE",
		9:  "UNDEFINED_04_ACTION_DEAL",
		10: "TRADE_ACTION_CLOSE_BY",
	}
	TradeRequestActions_value = map[string]int32{
		"UNDEFINED_00_ACTION_DEAL": 0,
		"TRADE_ACTION_DEAL":        1,
		"UNDEFINED_01_ACTION_DEAL": 2,
		"UNDEFINED_02_ACTION_DEAL": 3,
		"UNDEFINED_03_ACTION_DEAL": 4,
		"TRADE_ACTION_PENDING":     5,
		"TRADE_ACTION_SLTP":        6,
		"TRADE_ACTION_MODIFY":      7,
		"TRADE_ACTION_REMOVE":      8,
		"UNDEFINED_04_ACTION_DEAL": 9,
		"TRADE_ACTION_CLOSE_BY":    10,
	}
)

Enum value maps for TradeRequestActions.

View Source
var (
	TradeTransactionType_name = map[int32]string{
		0:  "TRADE_TRANSACTION_ORDER_ADD",
		1:  "TRADE_TRANSACTION_ORDER_UPDATE",
		2:  "TRADE_TRANSACTION_ORDER_DELETE",
		3:  "TRADE_TRANSACTION_HISTORY_ADD",
		4:  "TRADE_TRANSACTION_HISTORY_UPDATE",
		5:  "TRADE_TRANSACTION_HISTORY_DELETE",
		6:  "TRADE_TRANSACTION_DEAL_ADD",
		7:  "TRADE_TRANSACTION_DEAL_UPDATE",
		8:  "TRADE_TRANSACTION_DEAL_DELETE",
		9:  "TRADE_TRANSACTION_POSITION",
		10: "TRADE_TRANSACTION_REQUEST",
	}
	TradeTransactionType_value = map[string]int32{
		"TRADE_TRANSACTION_ORDER_ADD":      0,
		"TRADE_TRANSACTION_ORDER_UPDATE":   1,
		"TRADE_TRANSACTION_ORDER_DELETE":   2,
		"TRADE_TRANSACTION_HISTORY_ADD":    3,
		"TRADE_TRANSACTION_HISTORY_UPDATE": 4,
		"TRADE_TRANSACTION_HISTORY_DELETE": 5,
		"TRADE_TRANSACTION_DEAL_ADD":       6,
		"TRADE_TRANSACTION_DEAL_UPDATE":    7,
		"TRADE_TRANSACTION_DEAL_DELETE":    8,
		"TRADE_TRANSACTION_POSITION":       9,
		"TRADE_TRANSACTION_REQUEST":        10,
	}
)

Enum value maps for TradeTransactionType.

View Source
var File_account_proto protoreflect.FileDescriptor
View Source
var File_order_proto protoreflect.FileDescriptor
View Source
var File_position_proto protoreflect.FileDescriptor
View Source
var File_signal_proto protoreflect.FileDescriptor
View Source
var File_testingstatistics_proto protoreflect.FileDescriptor
View Source
var File_tradetransaction_proto protoreflect.FileDescriptor
View Source
var TestingStatisticsService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "tickerbeats.v1.TestingStatisticsService",
	HandlerType: (*TestingStatisticsServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Create",
			Handler:    _TestingStatisticsService_Create_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api.proto",
}

TestingStatisticsService_ServiceDesc is the grpc.ServiceDesc for TestingStatisticsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var TickerBeatsService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "tickerbeats.v1.TickerBeatsService",
	HandlerType: (*TickerBeatsServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetTickerBeats",
			Handler:    _TickerBeatsService_GetTickerBeats_Handler,
		},
		{
			MethodName: "GetTickerBeatsNotification",
			Handler:    _TickerBeatsService_GetTickerBeatsNotification_Handler,
		},
		{
			MethodName: "ConfirmBeatsTransaction",
			Handler:    _TickerBeatsService_ConfirmBeatsTransaction_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api.proto",
}

TickerBeatsService_ServiceDesc is the grpc.ServiceDesc for TickerBeatsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var TransactionsService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "tickerbeats.v1.TransactionsService",
	HandlerType: (*TransactionsServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateAccount",
			Handler:    _TransactionsService_CreateAccount_Handler,
		},
		{
			MethodName: "CreateDeals",
			Handler:    _TransactionsService_CreateDeals_Handler,
		},
		{
			MethodName: "CreateOrders",
			Handler:    _TransactionsService_CreateOrders_Handler,
		},
		{
			MethodName: "CreatePositions",
			Handler:    _TransactionsService_CreatePositions_Handler,
		},
		{
			MethodName: "CreateTradeTransaction",
			Handler:    _TransactionsService_CreateTradeTransaction_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api.proto",
}

TransactionsService_ServiceDesc is the grpc.ServiceDesc for TransactionsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterTestingStatisticsServiceServer added in v0.24.2

func RegisterTestingStatisticsServiceServer(s grpc.ServiceRegistrar, srv TestingStatisticsServiceServer)

func RegisterTickerBeatsServiceServer added in v0.19.0

func RegisterTickerBeatsServiceServer(s grpc.ServiceRegistrar, srv TickerBeatsServiceServer)

func RegisterTransactionsServiceServer added in v0.19.1

func RegisterTransactionsServiceServer(s grpc.ServiceRegistrar, srv TransactionsServiceServer)

Types

type Account

type Account struct {
	AccountId           int64              `protobuf:"varint,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	TradeMode           AccountTradeMode   `` /* 126-byte string literal not displayed */
	Leverage            int64              `protobuf:"varint,3,opt,name=leverage,proto3" json:"leverage,omitempty"`
	MarginMode          AccountMarginMode  `` /* 130-byte string literal not displayed */
	StopoutMode         AccountStopoutMode `` /* 134-byte string literal not displayed */
	TradeAllowed        bool               `protobuf:"varint,6,opt,name=trade_allowed,json=tradeAllowed,proto3" json:"trade_allowed,omitempty"`
	TradeExpert         bool               `protobuf:"varint,7,opt,name=trade_expert,json=tradeExpert,proto3" json:"trade_expert,omitempty"`
	LimitOrders         int64              `protobuf:"varint,8,opt,name=limit_orders,json=limitOrders,proto3" json:"limit_orders,omitempty"`
	Name                string             `protobuf:"bytes,9,opt,name=name,proto3" json:"name,omitempty"`
	Server              string             `protobuf:"bytes,10,opt,name=server,proto3" json:"server,omitempty"`
	Currency            string             `protobuf:"bytes,11,opt,name=currency,proto3" json:"currency,omitempty"`
	Company             string             `protobuf:"bytes,12,opt,name=company,proto3" json:"company,omitempty"`
	Balance             float64            `protobuf:"fixed64,13,opt,name=balance,proto3" json:"balance,omitempty"`
	Credit              float64            `protobuf:"fixed64,14,opt,name=credit,proto3" json:"credit,omitempty"`
	Profit              float64            `protobuf:"fixed64,15,opt,name=profit,proto3" json:"profit,omitempty"`
	Equity              float64            `protobuf:"fixed64,16,opt,name=equity,proto3" json:"equity,omitempty"`
	Margin              float64            `protobuf:"fixed64,17,opt,name=margin,proto3" json:"margin,omitempty"`
	FreeMargin          float64            `protobuf:"fixed64,18,opt,name=free_margin,json=freeMargin,proto3" json:"free_margin,omitempty"`
	MarginLevel         float64            `protobuf:"fixed64,19,opt,name=margin_level,json=marginLevel,proto3" json:"margin_level,omitempty"`
	MarginCall          float64            `protobuf:"fixed64,20,opt,name=margin_call,json=marginCall,proto3" json:"margin_call,omitempty"`
	MarginStopout       float64            `protobuf:"fixed64,21,opt,name=margin_stopout,json=marginStopout,proto3" json:"margin_stopout,omitempty"`
	Created             int64              `protobuf:"varint,22,opt,name=created,proto3" json:"created,omitempty"`
	Updated             int64              `protobuf:"varint,23,opt,name=updated,proto3" json:"updated,omitempty"`
	Deleted             int64              `protobuf:"varint,24,opt,name=deleted,proto3" json:"deleted,omitempty"`
	TimeTradeServer     int64              `protobuf:"varint,25,opt,name=TimeTradeServer,proto3" json:"TimeTradeServer,omitempty"`
	TimeCurrent         int64              `protobuf:"varint,26,opt,name=TimeCurrent,proto3" json:"TimeCurrent,omitempty"`
	TimeLocal           int64              `protobuf:"varint,27,opt,name=TimeLocal,proto3" json:"TimeLocal,omitempty"`
	TimeGMT             int64              `protobuf:"varint,28,opt,name=TimeGMT,proto3" json:"TimeGMT,omitempty"`
	LocalTimeGMTOffset  int64              `protobuf:"varint,29,opt,name=LocalTimeGMTOffset,proto3" json:"LocalTimeGMTOffset,omitempty"`
	ServerTimeGMTOffset int64              `protobuf:"varint,30,opt,name=ServerTimeGMTOffset,proto3" json:"ServerTimeGMTOffset,omitempty"`
	TestingType         string             `protobuf:"bytes,31,opt,name=testing_type,json=testingType,proto3" json:"testing_type,omitempty"`
	Description         string             `protobuf:"bytes,32,opt,name=description,proto3" json:"description,omitempty"`
	Command             string             `protobuf:"bytes,33,opt,name=command,proto3" json:"command,omitempty"`
	InfoId              int64              `protobuf:"varint,34,opt,name=info_id,json=infoId,proto3" json:"info_id,omitempty"`
	Active              bool               `protobuf:"varint,35,opt,name=active,proto3" json:"active,omitempty"`
	NotificationAccount bool               `protobuf:"varint,36,opt,name=notification_account,json=notificationAccount,proto3" json:"notification_account,omitempty"`
	// contains filtered or unexported fields
}

Account: Account Properties

func (*Account) Descriptor deprecated

func (*Account) Descriptor() ([]byte, []int)

Deprecated: Use Account.ProtoReflect.Descriptor instead.

func (*Account) GetAccountId

func (x *Account) GetAccountId() int64

func (*Account) GetActive added in v0.31.2

func (x *Account) GetActive() bool

func (*Account) GetBalance

func (x *Account) GetBalance() float64

func (*Account) GetCommand added in v0.29.0

func (x *Account) GetCommand() string

func (*Account) GetCompany

func (x *Account) GetCompany() string

func (*Account) GetCreated

func (x *Account) GetCreated() int64

func (*Account) GetCredit

func (x *Account) GetCredit() float64

func (*Account) GetCurrency

func (x *Account) GetCurrency() string

func (*Account) GetDeleted

func (x *Account) GetDeleted() int64

func (*Account) GetDescription added in v0.29.0

func (x *Account) GetDescription() string

func (*Account) GetEquity

func (x *Account) GetEquity() float64

func (*Account) GetFreeMargin

func (x *Account) GetFreeMargin() float64

func (*Account) GetInfoId added in v0.29.0

func (x *Account) GetInfoId() int64

func (*Account) GetLeverage

func (x *Account) GetLeverage() int64

func (*Account) GetLimitOrders

func (x *Account) GetLimitOrders() int64

func (*Account) GetLocalTimeGMTOffset added in v0.22.8

func (x *Account) GetLocalTimeGMTOffset() int64

func (*Account) GetMargin

func (x *Account) GetMargin() float64

func (*Account) GetMarginCall

func (x *Account) GetMarginCall() float64

func (*Account) GetMarginLevel

func (x *Account) GetMarginLevel() float64

func (*Account) GetMarginMode

func (x *Account) GetMarginMode() AccountMarginMode

func (*Account) GetMarginStopout

func (x *Account) GetMarginStopout() float64

func (*Account) GetName

func (x *Account) GetName() string

func (*Account) GetNotificationAccount added in v0.31.0

func (x *Account) GetNotificationAccount() bool

func (*Account) GetProfit

func (x *Account) GetProfit() float64

func (*Account) GetServer

func (x *Account) GetServer() string

func (*Account) GetServerTimeGMTOffset added in v0.22.8

func (x *Account) GetServerTimeGMTOffset() int64

func (*Account) GetStopoutMode

func (x *Account) GetStopoutMode() AccountStopoutMode

func (*Account) GetTestingType added in v0.30.3

func (x *Account) GetTestingType() string

func (*Account) GetTimeCurrent added in v0.22.8

func (x *Account) GetTimeCurrent() int64

func (*Account) GetTimeGMT added in v0.22.8

func (x *Account) GetTimeGMT() int64

func (*Account) GetTimeLocal added in v0.22.8

func (x *Account) GetTimeLocal() int64

func (*Account) GetTimeTradeServer added in v0.22.8

func (x *Account) GetTimeTradeServer() int64

func (*Account) GetTradeAllowed

func (x *Account) GetTradeAllowed() bool

func (*Account) GetTradeExpert

func (x *Account) GetTradeExpert() bool

func (*Account) GetTradeMode

func (x *Account) GetTradeMode() AccountTradeMode

func (*Account) GetUpdated

func (x *Account) GetUpdated() int64

func (*Account) ProtoMessage

func (*Account) ProtoMessage()

func (*Account) ProtoReflect

func (x *Account) ProtoReflect() protoreflect.Message

func (*Account) Reset

func (x *Account) Reset()

func (*Account) String

func (x *Account) String() string

type AccountMarginMode

type AccountMarginMode int32

AccountStopoutMode: Margin calculation mode

const (
	AccountMarginMode_ACCOUNT_MARGIN_MODE_RETAIL_NETTING AccountMarginMode = 0 //Used for the OTC markets to interpret positions in the "netting" mode (only one position can exist for one symbol).
	AccountMarginMode_ACCOUNT_MARGIN_MODE_EXCHANGE       AccountMarginMode = 1 //Used for the exchange markets.
	AccountMarginMode_ACCOUNT_MARGIN_MODE_RETAIL_HEDGING AccountMarginMode = 2 //Used for the exchange markets where individual positions are possible (hedging, multiple positions can exist for one symbol).
)

func (AccountMarginMode) Descriptor

func (AccountMarginMode) Enum

func (AccountMarginMode) EnumDescriptor deprecated

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

Deprecated: Use AccountMarginMode.Descriptor instead.

func (AccountMarginMode) Number

func (AccountMarginMode) String

func (x AccountMarginMode) String() string

func (AccountMarginMode) Type

type AccountStopoutMode

type AccountStopoutMode int32

AccountStopoutMode: Mode for setting the minimal allowed margin

const (
	AccountStopoutMode_ACCOUNT_STOPOUT_MODE_PERCENT AccountStopoutMode = 0 //Account stop out mode in percents
	AccountStopoutMode_ACCOUNT_STOPOUT_MODE_MONEY   AccountStopoutMode = 1 //Account stop out mode in money
)

func (AccountStopoutMode) Descriptor

func (AccountStopoutMode) Enum

func (AccountStopoutMode) EnumDescriptor deprecated

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

Deprecated: Use AccountStopoutMode.Descriptor instead.

func (AccountStopoutMode) Number

func (AccountStopoutMode) String

func (x AccountStopoutMode) String() string

func (AccountStopoutMode) Type

type AccountTradeMode

type AccountTradeMode int32

AccountTradeMode represents the modes an account could have

const (
	AccountTradeMode_ACCOUNT_TRADE_MODE_DEMO     AccountTradeMode = 0 //Demo account
	AccountTradeMode_ACCOUNT_TRADE_MODE_CONTEST  AccountTradeMode = 1 //Contest account
	AccountTradeMode_ACCOUNT_TRADE_MODE_REAL     AccountTradeMode = 2 //Real account
	AccountTradeMode_ACCOUNT_TRADE_MODE_INTERNAL AccountTradeMode = 3 //Demo account ran internally by our own system
	AccountTradeMode_ACCOUNT_TRADE_MODE_BINANCE  AccountTradeMode = 4 //Binance account
)

func (AccountTradeMode) Descriptor

func (AccountTradeMode) Enum

func (AccountTradeMode) EnumDescriptor deprecated

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

Deprecated: Use AccountTradeMode.Descriptor instead.

func (AccountTradeMode) Number

func (AccountTradeMode) String

func (x AccountTradeMode) String() string

func (AccountTradeMode) Type

type CopyTradeAction added in v0.30.7

type CopyTradeAction int32
const (
	CopyTradeAction__UNDEFINED_00        CopyTradeAction = 0  // Should not be used
	CopyTradeAction_AS_ORIGIN_ORDER      CopyTradeAction = 1  // Order type is the same as the origin order type
	CopyTradeAction_MARKET_ORDER         CopyTradeAction = 2  // Market order
	CopyTradeAction__UNDEFINED_01        CopyTradeAction = 3  // Should not be used
	CopyTradeAction_PENDING_ORDER        CopyTradeAction = 4  // Pending order
	CopyTradeAction__UNDEFINED_05        CopyTradeAction = 5  // Should not be used
	CopyTradeAction__UNDEFINED_06        CopyTradeAction = 6  // Should not be used
	CopyTradeAction__UNDEFINED_07        CopyTradeAction = 7  // Should not be used
	CopyTradeAction_SLTP_ORDER           CopyTradeAction = 8  // Stop Loss or Take Profit order
	CopyTradeAction__UNDEFINED_09        CopyTradeAction = 9  // Should not be used
	CopyTradeAction__UNDEFINED_10        CopyTradeAction = 10 // Should not be used
	CopyTradeAction__UNDEFINED_11        CopyTradeAction = 11 // Should not be used
	CopyTradeAction__UNDEFINED_12        CopyTradeAction = 12 // Should not be used
	CopyTradeAction__UNDEFINED_13        CopyTradeAction = 13 // Should not be used
	CopyTradeAction__UNDEFINED_14        CopyTradeAction = 14 // Should not be used
	CopyTradeAction__UNDEFINED_15        CopyTradeAction = 15 // Should not be used
	CopyTradeAction_PENDING_SLTP_ORDER   CopyTradeAction = 16 // Pending order with Stop Loss and Take Profit
	CopyTradeAction__UNDEFINED_17        CopyTradeAction = 17 // Should not be used
	CopyTradeAction__UNDEFINED_18        CopyTradeAction = 18 // Should not be used
	CopyTradeAction__UNDEFINED_19        CopyTradeAction = 19 // Should not be used
	CopyTradeAction__UNDEFINED_20        CopyTradeAction = 20 // Should not be used
	CopyTradeAction__UNDEFINED_21        CopyTradeAction = 21 // Should not be used
	CopyTradeAction__UNDEFINED_22        CopyTradeAction = 22 // Should not be used
	CopyTradeAction__UNDEFINED_23        CopyTradeAction = 23 // Should not be used
	CopyTradeAction__UNDEFINED_24        CopyTradeAction = 24 // Should not be used
	CopyTradeAction__UNDEFINED_25        CopyTradeAction = 25 // Should not be used
	CopyTradeAction__UNDEFINED_26        CopyTradeAction = 26 // Should not be used
	CopyTradeAction__UNDEFINED_27        CopyTradeAction = 27 // Should not be used
	CopyTradeAction__UNDEFINED_28        CopyTradeAction = 28 // Should not be used
	CopyTradeAction__UNDEFINED_29        CopyTradeAction = 29 // Should not be used
	CopyTradeAction__UNDEFINED_30        CopyTradeAction = 30 // Should not be used
	CopyTradeAction__UNDEFINED_31        CopyTradeAction = 31 // Should not be used
	CopyTradeAction_CLOSE_POSITION_ORDER CopyTradeAction = 32 // Close position order
)

func (CopyTradeAction) Descriptor added in v0.30.7

func (CopyTradeAction) Enum added in v0.30.7

func (x CopyTradeAction) Enum() *CopyTradeAction

func (CopyTradeAction) EnumDescriptor deprecated added in v0.30.7

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

Deprecated: Use CopyTradeAction.Descriptor instead.

func (CopyTradeAction) Number added in v0.30.7

func (CopyTradeAction) String added in v0.30.7

func (x CopyTradeAction) String() string

func (CopyTradeAction) Type added in v0.30.7

type CreateAccountRequest

type CreateAccountRequest struct {
	Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	// contains filtered or unexported fields
}

******************* Requests *******************

func (*CreateAccountRequest) Descriptor deprecated

func (*CreateAccountRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateAccountRequest.ProtoReflect.Descriptor instead.

func (*CreateAccountRequest) GetAccount

func (x *CreateAccountRequest) GetAccount() *Account

func (*CreateAccountRequest) ProtoMessage

func (*CreateAccountRequest) ProtoMessage()

func (*CreateAccountRequest) ProtoReflect

func (x *CreateAccountRequest) ProtoReflect() protoreflect.Message

func (*CreateAccountRequest) Reset

func (x *CreateAccountRequest) Reset()

func (*CreateAccountRequest) String

func (x *CreateAccountRequest) String() string

type CreateDealsRequest

type CreateDealsRequest struct {
	Deals     []*Deal `protobuf:"bytes,1,rep,name=deals,proto3" json:"deals,omitempty"`
	AccountId int64   `protobuf:"varint,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	AllItems  bool    `protobuf:"varint,3,opt,name=all_items,json=allItems,proto3" json:"all_items,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateDealsRequest) Descriptor deprecated

func (*CreateDealsRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateDealsRequest.ProtoReflect.Descriptor instead.

func (*CreateDealsRequest) GetAccountId added in v0.28.0

func (x *CreateDealsRequest) GetAccountId() int64

func (*CreateDealsRequest) GetAllItems added in v0.28.0

func (x *CreateDealsRequest) GetAllItems() bool

func (*CreateDealsRequest) GetDeals

func (x *CreateDealsRequest) GetDeals() []*Deal

func (*CreateDealsRequest) ProtoMessage

func (*CreateDealsRequest) ProtoMessage()

func (*CreateDealsRequest) ProtoReflect

func (x *CreateDealsRequest) ProtoReflect() protoreflect.Message

func (*CreateDealsRequest) Reset

func (x *CreateDealsRequest) Reset()

func (*CreateDealsRequest) String

func (x *CreateDealsRequest) String() string

type CreateOrdersRequest

type CreateOrdersRequest struct {
	Orders    []*Order `protobuf:"bytes,1,rep,name=orders,proto3" json:"orders,omitempty"`
	AccountId int64    `protobuf:"varint,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	AllItems  bool     `protobuf:"varint,3,opt,name=all_items,json=allItems,proto3" json:"all_items,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateOrdersRequest) Descriptor deprecated

func (*CreateOrdersRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateOrdersRequest.ProtoReflect.Descriptor instead.

func (*CreateOrdersRequest) GetAccountId added in v0.28.0

func (x *CreateOrdersRequest) GetAccountId() int64

func (*CreateOrdersRequest) GetAllItems added in v0.28.0

func (x *CreateOrdersRequest) GetAllItems() bool

func (*CreateOrdersRequest) GetOrders

func (x *CreateOrdersRequest) GetOrders() []*Order

func (*CreateOrdersRequest) ProtoMessage

func (*CreateOrdersRequest) ProtoMessage()

func (*CreateOrdersRequest) ProtoReflect

func (x *CreateOrdersRequest) ProtoReflect() protoreflect.Message

func (*CreateOrdersRequest) Reset

func (x *CreateOrdersRequest) Reset()

func (*CreateOrdersRequest) String

func (x *CreateOrdersRequest) String() string

type CreatePositionsRequest

type CreatePositionsRequest struct {
	Positions []*Position `protobuf:"bytes,1,rep,name=positions,proto3" json:"positions,omitempty"`
	AccountId int64       `protobuf:"varint,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` //Used to close all open positions in the case there is no positions open
	TimeGMT   int64       `protobuf:"varint,3,opt,name=TimeGMT,proto3" json:"TimeGMT,omitempty"`                      //Used to close all open positions in the case there is no positions open
	AllItems  bool        `protobuf:"varint,4,opt,name=all_items,json=allItems,proto3" json:"all_items,omitempty"`
	// contains filtered or unexported fields
}

func (*CreatePositionsRequest) Descriptor deprecated

func (*CreatePositionsRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreatePositionsRequest.ProtoReflect.Descriptor instead.

func (*CreatePositionsRequest) GetAccountId

func (x *CreatePositionsRequest) GetAccountId() int64

func (*CreatePositionsRequest) GetAllItems added in v0.28.0

func (x *CreatePositionsRequest) GetAllItems() bool

func (*CreatePositionsRequest) GetPositions

func (x *CreatePositionsRequest) GetPositions() []*Position

func (*CreatePositionsRequest) GetTimeGMT added in v0.22.12

func (x *CreatePositionsRequest) GetTimeGMT() int64

func (*CreatePositionsRequest) ProtoMessage

func (*CreatePositionsRequest) ProtoMessage()

func (*CreatePositionsRequest) ProtoReflect

func (x *CreatePositionsRequest) ProtoReflect() protoreflect.Message

func (*CreatePositionsRequest) Reset

func (x *CreatePositionsRequest) Reset()

func (*CreatePositionsRequest) String

func (x *CreatePositionsRequest) String() string

type CreateTestingStatisticsRequest added in v0.24.2

type CreateTestingStatisticsRequest struct {
	Test []*TestingStatistics `protobuf:"bytes,1,rep,name=test,proto3" json:"test,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateTestingStatisticsRequest) Descriptor deprecated added in v0.24.2

func (*CreateTestingStatisticsRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateTestingStatisticsRequest.ProtoReflect.Descriptor instead.

func (*CreateTestingStatisticsRequest) GetTest added in v0.24.2

func (*CreateTestingStatisticsRequest) ProtoMessage added in v0.24.2

func (*CreateTestingStatisticsRequest) ProtoMessage()

func (*CreateTestingStatisticsRequest) ProtoReflect added in v0.24.2

func (*CreateTestingStatisticsRequest) Reset added in v0.24.2

func (x *CreateTestingStatisticsRequest) Reset()

func (*CreateTestingStatisticsRequest) String added in v0.24.2

type CreateTradeTransactionRequest

type CreateTradeTransactionRequest struct {
	AccountId        int64             `protobuf:"varint,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	CreationOrder    int64             `protobuf:"varint,2,opt,name=creation_order,json=creationOrder,proto3" json:"creation_order,omitempty"`
	TradeTransaction *TradeTransaction `protobuf:"bytes,4,opt,name=trade_transaction,json=tradeTransaction,proto3" json:"trade_transaction,omitempty"`
	TradeRequest     *TradeRequest     `protobuf:"bytes,5,opt,name=trade_request,json=tradeRequest,proto3" json:"trade_request,omitempty"`
	TradeResult      *TradeResult      `protobuf:"bytes,6,opt,name=trade_result,json=tradeResult,proto3" json:"trade_result,omitempty"`
	TimeGMT          int64             `protobuf:"varint,7,opt,name=TimeGMT,proto3" json:"TimeGMT,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateTradeTransactionRequest) Descriptor deprecated

func (*CreateTradeTransactionRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateTradeTransactionRequest.ProtoReflect.Descriptor instead.

func (*CreateTradeTransactionRequest) GetAccountId

func (x *CreateTradeTransactionRequest) GetAccountId() int64

func (*CreateTradeTransactionRequest) GetCreationOrder

func (x *CreateTradeTransactionRequest) GetCreationOrder() int64

func (*CreateTradeTransactionRequest) GetTimeGMT added in v0.22.14

func (x *CreateTradeTransactionRequest) GetTimeGMT() int64

func (*CreateTradeTransactionRequest) GetTradeRequest

func (x *CreateTradeTransactionRequest) GetTradeRequest() *TradeRequest

func (*CreateTradeTransactionRequest) GetTradeResult

func (x *CreateTradeTransactionRequest) GetTradeResult() *TradeResult

func (*CreateTradeTransactionRequest) GetTradeTransaction

func (x *CreateTradeTransactionRequest) GetTradeTransaction() *TradeTransaction

func (*CreateTradeTransactionRequest) ProtoMessage

func (*CreateTradeTransactionRequest) ProtoMessage()

func (*CreateTradeTransactionRequest) ProtoReflect

func (*CreateTradeTransactionRequest) Reset

func (x *CreateTradeTransactionRequest) Reset()

func (*CreateTradeTransactionRequest) String

type Deal

type Deal struct {
	DealId        int64     `protobuf:"varint,1,opt,name=deal_id,json=dealId,proto3" json:"deal_id,omitempty"`
	AccountId     int64     `protobuf:"varint,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	Ticket        int64     `protobuf:"varint,3,opt,name=ticket,proto3" json:"ticket,omitempty"`
	Magic         int64     `protobuf:"varint,4,opt,name=magic,proto3" json:"magic,omitempty"`
	OrderId       int64     `protobuf:"varint,5,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
	Symbol        string    `protobuf:"bytes,6,opt,name=symbol,proto3" json:"symbol,omitempty"`
	DealTime      int64     `protobuf:"varint,7,opt,name=deal_time,json=dealTime,proto3" json:"deal_time,omitempty"`
	DealType      DealType  `protobuf:"varint,8,opt,name=deal_type,json=dealType,proto3,enum=tickerbeats.v1.DealType" json:"deal_type,omitempty"`
	Entry         DealEntry `protobuf:"varint,9,opt,name=entry,proto3,enum=tickerbeats.v1.DealEntry" json:"entry,omitempty"`
	PositionId    int64     `protobuf:"varint,10,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"`
	Volume        float64   `protobuf:"fixed64,11,opt,name=volume,proto3" json:"volume,omitempty"`
	Price         float64   `protobuf:"fixed64,12,opt,name=price,proto3" json:"price,omitempty"`
	Commission    float64   `protobuf:"fixed64,13,opt,name=commission,proto3" json:"commission,omitempty"`
	Swap          float64   `protobuf:"fixed64,14,opt,name=swap,proto3" json:"swap,omitempty"`
	Profit        float64   `protobuf:"fixed64,15,opt,name=profit,proto3" json:"profit,omitempty"`
	Comment       string    `protobuf:"bytes,16,opt,name=comment,proto3" json:"comment,omitempty"`
	ExternalId    string    `protobuf:"bytes,17,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"`
	Created       int64     `protobuf:"varint,18,opt,name=created,proto3" json:"created,omitempty"`
	Updated       int64     `protobuf:"varint,19,opt,name=updated,proto3" json:"updated,omitempty"`
	Deleted       int64     `protobuf:"varint,20,opt,name=deleted,proto3" json:"deleted,omitempty"`
	Reason        int64     `protobuf:"varint,21,opt,name=reason,proto3" json:"reason,omitempty"`
	DealFee       float64   `protobuf:"fixed64,22,opt,name=deal_fee,json=dealFee,proto3" json:"deal_fee,omitempty"`
	TimeGMTOffset int64     `protobuf:"varint,23,opt,name=TimeGMTOffset,proto3" json:"TimeGMTOffset,omitempty"`
	// contains filtered or unexported fields
}

Deal: A deal is the reflection of the fact of a trade operation execution based on an order that contains a trade request

func (*Deal) Descriptor deprecated

func (*Deal) Descriptor() ([]byte, []int)

Deprecated: Use Deal.ProtoReflect.Descriptor instead.

func (*Deal) GetAccountId

func (x *Deal) GetAccountId() int64

func (*Deal) GetComment

func (x *Deal) GetComment() string

func (*Deal) GetCommission

func (x *Deal) GetCommission() float64

func (*Deal) GetCreated

func (x *Deal) GetCreated() int64

func (*Deal) GetDealFee

func (x *Deal) GetDealFee() float64

func (*Deal) GetDealId

func (x *Deal) GetDealId() int64

func (*Deal) GetDealTime

func (x *Deal) GetDealTime() int64

func (*Deal) GetDealType

func (x *Deal) GetDealType() DealType

func (*Deal) GetDeleted

func (x *Deal) GetDeleted() int64

func (*Deal) GetEntry

func (x *Deal) GetEntry() DealEntry

func (*Deal) GetExternalId

func (x *Deal) GetExternalId() string

func (*Deal) GetMagic

func (x *Deal) GetMagic() int64

func (*Deal) GetOrderId

func (x *Deal) GetOrderId() int64

func (*Deal) GetPositionId

func (x *Deal) GetPositionId() int64

func (*Deal) GetPrice

func (x *Deal) GetPrice() float64

func (*Deal) GetProfit

func (x *Deal) GetProfit() float64

func (*Deal) GetReason

func (x *Deal) GetReason() int64

func (*Deal) GetSwap

func (x *Deal) GetSwap() float64

func (*Deal) GetSymbol

func (x *Deal) GetSymbol() string

func (*Deal) GetTicket

func (x *Deal) GetTicket() int64

func (*Deal) GetTimeGMTOffset added in v0.22.6

func (x *Deal) GetTimeGMTOffset() int64

func (*Deal) GetUpdated

func (x *Deal) GetUpdated() int64

func (*Deal) GetVolume

func (x *Deal) GetVolume() float64

func (*Deal) ProtoMessage

func (*Deal) ProtoMessage()

func (*Deal) ProtoReflect

func (x *Deal) ProtoReflect() protoreflect.Message

func (*Deal) Reset

func (x *Deal) Reset()

func (*Deal) String

func (x *Deal) String() string

type DealEntry

type DealEntry int32

DealEntry: Deal entry - entry in, entry out, reverse

const (
	DealEntry_DEAL_ENTRY_IN     DealEntry = 0 //Entry in
	DealEntry_DEAL_ENTRY_OUT    DealEntry = 1 //Entry out
	DealEntry_DEAL_ENTRY_INOUT  DealEntry = 2 //Reverse
	DealEntry_DEAL_ENTRY_OUT_BY DealEntry = 3 //Close a position by an opposite one
)

func (DealEntry) Descriptor

func (DealEntry) Descriptor() protoreflect.EnumDescriptor

func (DealEntry) Enum

func (x DealEntry) Enum() *DealEntry

func (DealEntry) EnumDescriptor deprecated

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

Deprecated: Use DealEntry.Descriptor instead.

func (DealEntry) Number

func (x DealEntry) Number() protoreflect.EnumNumber

func (DealEntry) String

func (x DealEntry) String() string

func (DealEntry) Type

type DealReason added in v0.31.0

type DealReason int32
const (
	DealReason_DEAL_REASON_CLIENT   DealReason = 0 //The deal was executed as a result of activation of an order placed from a desktop terminal
	DealReason_DEAL_REASON_MOBILE   DealReason = 1 //The deal was executed as a result of activation of an order placed from a mobile application
	DealReason_DEAL_REASON_WEB      DealReason = 2 //The deal was executed as a result of activation of an order placed from the web platform
	DealReason_DEAL_REASON_EXPERT   DealReason = 3 //The deal was executed as a result of activation of an order placed from an MQL5 program, i.e. an Expert Advisor or a script
	DealReason_DEAL_REASON_SL       DealReason = 4 //The deal was executed as a result of Stop Loss activation
	DealReason_DEAL_REASON_TP       DealReason = 5 //The deal was executed as a result of Take Profit activation
	DealReason_DEAL_REASON_SO       DealReason = 6 //The deal was executed as a result of the Stop Out event
	DealReason_DEAL_REASON_ROLLOVER DealReason = 7 //The deal was executed due to a rollover
	DealReason_DEAL_REASON_VMARGIN  DealReason = 8 //The deal was executed after charging the variation margin
	DealReason_DEAL_REASON_SPLIT    DealReason = 9 //The deal was executed after the split (price reduction) of an instrument, which had an open position during split announcement
)

func (DealReason) Descriptor added in v0.31.0

func (DealReason) Descriptor() protoreflect.EnumDescriptor

func (DealReason) Enum added in v0.31.0

func (x DealReason) Enum() *DealReason

func (DealReason) EnumDescriptor deprecated added in v0.31.0

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

Deprecated: Use DealReason.Descriptor instead.

func (DealReason) Number added in v0.31.0

func (x DealReason) Number() protoreflect.EnumNumber

func (DealReason) String added in v0.31.0

func (x DealReason) String() string

func (DealReason) Type added in v0.31.0

type DealType

type DealType int32

DealType: Deal type

const (
	DealType_DEAL_TYPE_BUY                      DealType = 0  //Buy
	DealType_DEAL_TYPE_SELL                     DealType = 1  //Sell
	DealType_DEAL_TYPE_BALANCE                  DealType = 2  //Balance
	DealType_DEAL_TYPE_CREDIT                   DealType = 3  //Credit
	DealType_DEAL_TYPE_CHARGE                   DealType = 4  //Additional charge
	DealType_DEAL_TYPE_CORRECTION               DealType = 5  //Correction
	DealType_DEAL_TYPE_BONUS                    DealType = 6  //Bonus
	DealType_DEAL_TYPE_COMMISSION               DealType = 7  //Additional commission
	DealType_DEAL_TYPE_COMMISSION_DAILY         DealType = 8  //Daily commission
	DealType_DEAL_TYPE_COMMISSION_MONTHLY       DealType = 9  //Monthly commission
	DealType_DEAL_TYPE_COMMISSION_AGENT_DAILY   DealType = 10 //Daily agent commission
	DealType_DEAL_TYPE_COMMISSION_AGENT_MONTHLY DealType = 11 //Monthly agent commission
	DealType_DEAL_TYPE_INTEREST                 DealType = 12 //Interest rate
	DealType_DEAL_TYPE_BUY_CANCELED             DealType = 13 //Canceled buy deal.
	DealType_DEAL_TYPE_SELL_CANCELED            DealType = 14 //Canceled sell deal.
	DealType_DEAL_DIVIDEND                      DealType = 15 //Dividend operations
	DealType_DEAL_DIVIDEND_FRANKED              DealType = 16 //Franked (non-taxable) dividend operations
	DealType_DEAL_TAX                           DealType = 17 //Tax charges
)

func (DealType) Descriptor

func (DealType) Descriptor() protoreflect.EnumDescriptor

func (DealType) Enum

func (x DealType) Enum() *DealType

func (DealType) EnumDescriptor deprecated

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

Deprecated: Use DealType.Descriptor instead.

func (DealType) Number

func (x DealType) Number() protoreflect.EnumNumber

func (DealType) String

func (x DealType) String() string

func (DealType) Type

type Order

type Order struct {
	OrderId        int64            `protobuf:"varint,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
	AccountId      int64            `protobuf:"varint,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	Ticket         int64            `protobuf:"varint,3,opt,name=ticket,proto3" json:"ticket,omitempty"`
	Symbol         string           `protobuf:"bytes,4,opt,name=symbol,proto3" json:"symbol,omitempty"`
	TimeSetup      int64            `protobuf:"varint,5,opt,name=time_setup,json=timeSetup,proto3" json:"time_setup,omitempty"`
	OrderType      OrderType        `protobuf:"varint,6,opt,name=order_type,json=orderType,proto3,enum=tickerbeats.v1.OrderType" json:"order_type,omitempty"`
	State          OrderState       `protobuf:"varint,7,opt,name=state,proto3,enum=tickerbeats.v1.OrderState" json:"state,omitempty"`
	TimeExpiration int64            `protobuf:"varint,8,opt,name=time_expiration,json=timeExpiration,proto3" json:"time_expiration,omitempty"`
	TimeDone       int64            `protobuf:"varint,9,opt,name=time_done,json=timeDone,proto3" json:"time_done,omitempty"`
	TypeFilling    OrderFillingType `` /* 133-byte string literal not displayed */
	TypeTime       OrderTypeTime    `protobuf:"varint,11,opt,name=type_time,json=typeTime,proto3,enum=tickerbeats.v1.OrderTypeTime" json:"type_time,omitempty"`
	Magic          int64            `protobuf:"varint,12,opt,name=magic,proto3" json:"magic,omitempty"`
	PositionId     int64            `protobuf:"varint,13,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"`
	Reason         OrderReason      `protobuf:"varint,14,opt,name=reason,proto3,enum=tickerbeats.v1.OrderReason" json:"reason,omitempty"`
	VolumeInitial  float64          `protobuf:"fixed64,15,opt,name=volume_initial,json=volumeInitial,proto3" json:"volume_initial,omitempty"`
	VolumeCurrent  float64          `protobuf:"fixed64,16,opt,name=volume_current,json=volumeCurrent,proto3" json:"volume_current,omitempty"`
	PriceOpen      float64          `protobuf:"fixed64,17,opt,name=price_open,json=priceOpen,proto3" json:"price_open,omitempty"`
	StopLoss       float64          `protobuf:"fixed64,18,opt,name=stop_loss,json=stopLoss,proto3" json:"stop_loss,omitempty"`
	TakeProfit     float64          `protobuf:"fixed64,19,opt,name=take_profit,json=takeProfit,proto3" json:"take_profit,omitempty"`
	PriceCurrent   float64          `protobuf:"fixed64,20,opt,name=price_current,json=priceCurrent,proto3" json:"price_current,omitempty"`
	PriceStopLimit float64          `protobuf:"fixed64,21,opt,name=price_stop_limit,json=priceStopLimit,proto3" json:"price_stop_limit,omitempty"`
	Comment        string           `protobuf:"bytes,22,opt,name=comment,proto3" json:"comment,omitempty"`
	ExternalId     string           `protobuf:"bytes,23,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"`
	Created        int64            `protobuf:"varint,24,opt,name=created,proto3" json:"created,omitempty"`
	Updated        int64            `protobuf:"varint,25,opt,name=updated,proto3" json:"updated,omitempty"`
	Deleted        int64            `protobuf:"varint,26,opt,name=deleted,proto3" json:"deleted,omitempty"`
	PositionById   int64            `protobuf:"varint,27,opt,name=position_by_id,json=positionById,proto3" json:"position_by_id,omitempty"`
	Direction      bool             `protobuf:"varint,28,opt,name=direction,proto3" json:"direction,omitempty"`
	TimeGMTOffset  int64            `protobuf:"varint,29,opt,name=TimeGMTOffset,proto3" json:"TimeGMTOffset,omitempty"`
	ProviderId     string           `protobuf:"bytes,30,opt,name=provider_id,json=providerId,proto3" json:"provider_id,omitempty"`
	InternalId     string           `protobuf:"bytes,31,opt,name=internal_id,json=internalId,proto3" json:"internal_id,omitempty"`
	// contains filtered or unexported fields
}

Order represents an trade order

func (*Order) Descriptor deprecated

func (*Order) Descriptor() ([]byte, []int)

Deprecated: Use Order.ProtoReflect.Descriptor instead.

func (*Order) GetAccountId

func (x *Order) GetAccountId() int64

func (*Order) GetComment

func (x *Order) GetComment() string

func (*Order) GetCreated

func (x *Order) GetCreated() int64

func (*Order) GetDeleted

func (x *Order) GetDeleted() int64

func (*Order) GetDirection added in v0.21.10

func (x *Order) GetDirection() bool

func (*Order) GetExternalId

func (x *Order) GetExternalId() string

func (*Order) GetInternalId added in v0.30.2

func (x *Order) GetInternalId() string

func (*Order) GetMagic

func (x *Order) GetMagic() int64

func (*Order) GetOrderId

func (x *Order) GetOrderId() int64

func (*Order) GetOrderType

func (x *Order) GetOrderType() OrderType

func (*Order) GetPositionById

func (x *Order) GetPositionById() int64

func (*Order) GetPositionId

func (x *Order) GetPositionId() int64

func (*Order) GetPriceCurrent

func (x *Order) GetPriceCurrent() float64

func (*Order) GetPriceOpen

func (x *Order) GetPriceOpen() float64

func (*Order) GetPriceStopLimit

func (x *Order) GetPriceStopLimit() float64

func (*Order) GetProviderId added in v0.30.2

func (x *Order) GetProviderId() string

func (*Order) GetReason

func (x *Order) GetReason() OrderReason

func (*Order) GetState

func (x *Order) GetState() OrderState

func (*Order) GetStopLoss

func (x *Order) GetStopLoss() float64

func (*Order) GetSymbol

func (x *Order) GetSymbol() string

func (*Order) GetTakeProfit

func (x *Order) GetTakeProfit() float64

func (*Order) GetTicket

func (x *Order) GetTicket() int64

func (*Order) GetTimeDone

func (x *Order) GetTimeDone() int64

func (*Order) GetTimeExpiration

func (x *Order) GetTimeExpiration() int64

func (*Order) GetTimeGMTOffset added in v0.22.6

func (x *Order) GetTimeGMTOffset() int64

func (*Order) GetTimeSetup

func (x *Order) GetTimeSetup() int64

func (*Order) GetTypeFilling

func (x *Order) GetTypeFilling() OrderFillingType

func (*Order) GetTypeTime

func (x *Order) GetTypeTime() OrderTypeTime

func (*Order) GetUpdated

func (x *Order) GetUpdated() int64

func (*Order) GetVolumeCurrent

func (x *Order) GetVolumeCurrent() float64

func (*Order) GetVolumeInitial

func (x *Order) GetVolumeInitial() float64

func (*Order) ProtoMessage

func (*Order) ProtoMessage()

func (*Order) ProtoReflect

func (x *Order) ProtoReflect() protoreflect.Message

func (*Order) Reset

func (x *Order) Reset()

func (*Order) String

func (x *Order) String() string

type OrderFillingType

type OrderFillingType int32

OrderFillingType: Order filling type

const (
	OrderFillingType_ORDER_FILLING_FOK    OrderFillingType = 0 //This filling policy means that an order can be filled only in the specified amount.
	OrderFillingType_ORDER_FILLING_IOC    OrderFillingType = 1 //This mode means that a trader agrees to execute a deal with the volume maximally available in the market within that indicated in the order.
	OrderFillingType_ORDER_FILLING_RETURN OrderFillingType = 2 //This policy is used only for market orders (ORDER_TYPE_BUY and ORDER_TYPE_SELL), limit and stop limit orders (ORDER_TYPE_BUY_LIMIT, ORDER_TYPE_SELL_LIMIT, ORDER_TYPE_BUY_STOP_LIMIT and ORDER_TYPE_SELL_STOP_LIMIT ) and only for the symbols with Market or Exchange execution.
)

func (OrderFillingType) Descriptor

func (OrderFillingType) Enum

func (OrderFillingType) EnumDescriptor deprecated

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

Deprecated: Use OrderFillingType.Descriptor instead.

func (OrderFillingType) Number

func (OrderFillingType) String

func (x OrderFillingType) String() string

func (OrderFillingType) Type

type OrderReason

type OrderReason int32

OrderReason: The reason for order placing. An order can be placed by an MQL5 program, from a mobile application, as a result of StopOut, etc.

const (
	OrderReason_ORDER_REASON_CLIENT OrderReason = 0 //The order was placed from a desktop terminal
	OrderReason_ORDER_REASON_MOBILE OrderReason = 1 //The order was placed from a mobile application
	OrderReason_ORDER_REASON_WEB    OrderReason = 2 //The order was placed from a web platform
	OrderReason_ORDER_REASON_EXPERT OrderReason = 3 //The order was placed from an MQL5-program, i.e. by an Expert Advisor or a script
	OrderReason_ORDER_REASON_SL     OrderReason = 4 //The order was placed as a result of Stop Loss activation
	OrderReason_ORDER_REASON_TP     OrderReason = 5 //The order was placed as a result of Take Profit activation
	OrderReason_ORDER_REASON_SO     OrderReason = 6 //The order was placed as a result of the Stop Out event
)

func (OrderReason) Descriptor

func (OrderReason) Enum

func (x OrderReason) Enum() *OrderReason

func (OrderReason) EnumDescriptor deprecated

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

Deprecated: Use OrderReason.Descriptor instead.

func (OrderReason) Number

func (x OrderReason) Number() protoreflect.EnumNumber

func (OrderReason) String

func (x OrderReason) String() string

func (OrderReason) Type

type OrderState

type OrderState int32

OrderType: Order state

const (
	OrderState_ORDER_STATE_STARTED        OrderState = 0 //Order checked, but not yet accepted by broker
	OrderState_ORDER_STATE_PLACED         OrderState = 1 //Order accepted
	OrderState_ORDER_STATE_CANCELED       OrderState = 2 //Order canceled by client
	OrderState_ORDER_STATE_PARTIAL        OrderState = 3 //Order partially executed
	OrderState_ORDER_STATE_FILLED         OrderState = 4 //Order fully executed
	OrderState_ORDER_STATE_REJECTED       OrderState = 5 //Order rejected
	OrderState_ORDER_STATE_EXPIRED        OrderState = 6 //Order expired
	OrderState_ORDER_STATE_REQUEST_ADD    OrderState = 7 //Order is being registered (placing to the trading system)
	OrderState_ORDER_STATE_REQUEST_MODIFY OrderState = 8 //Order is being modified (changing its parameters)
	OrderState_ORDER_STATE_REQUEST_CANCEL OrderState = 9 //Order is being deleted (deleting from the trading system)
)

func (OrderState) Descriptor

func (OrderState) Descriptor() protoreflect.EnumDescriptor

func (OrderState) Enum

func (x OrderState) Enum() *OrderState

func (OrderState) EnumDescriptor deprecated

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

Deprecated: Use OrderState.Descriptor instead.

func (OrderState) Number

func (x OrderState) Number() protoreflect.EnumNumber

func (OrderState) String

func (x OrderState) String() string

func (OrderState) Type

type OrderType

type OrderType int32

OrderType: Order type

const (
	OrderType_ORDER_TYPE_BUY             OrderType = 0 //Market Buy order
	OrderType_ORDER_TYPE_SELL            OrderType = 1 //Market Sell order
	OrderType_ORDER_TYPE_BUY_LIMIT       OrderType = 2 //Buy Limit pending order
	OrderType_ORDER_TYPE_SELL_LIMIT      OrderType = 3 //Sell Limit pending order
	OrderType_ORDER_TYPE_BUY_STOP        OrderType = 4 //Buy Stop pending order
	OrderType_ORDER_TYPE_SELL_STOP       OrderType = 5 //Sell Stop pending order
	OrderType_ORDER_TYPE_BUY_STOP_LIMIT  OrderType = 6 //Upon reaching the order price, a pending Buy Limit order is placed at the StopLimit price
	OrderType_ORDER_TYPE_SELL_STOP_LIMIT OrderType = 7 //Upon reaching the order price, a pending Sell Limit order is placed at the StopLimit price
	OrderType_ORDER_TYPE_CLOSE_BY        OrderType = 8 //Order to close a position by an opposite one
)

func (OrderType) Descriptor

func (OrderType) Descriptor() protoreflect.EnumDescriptor

func (OrderType) Enum

func (x OrderType) Enum() *OrderType

func (OrderType) EnumDescriptor deprecated

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

Deprecated: Use OrderType.Descriptor instead.

func (OrderType) Number

func (x OrderType) Number() protoreflect.EnumNumber

func (OrderType) String

func (x OrderType) String() string

func (OrderType) Type

type OrderTypeTime

type OrderTypeTime int32

OrderTypeTime: Order lifetime

const (
	OrderTypeTime_ORDER_TIME_GTC           OrderTypeTime = 0 //Good till cancel order
	OrderTypeTime_ORDER_TIME_DAY           OrderTypeTime = 1 //Good till current trade day order
	OrderTypeTime_ORDER_TIME_SPECIFIED     OrderTypeTime = 2 //Good till expired order
	OrderTypeTime_ORDER_TIME_SPECIFIED_DAY OrderTypeTime = 3 //The order will be effective till 23:59:59 of the specified day.
)

func (OrderTypeTime) Descriptor

func (OrderTypeTime) Enum

func (x OrderTypeTime) Enum() *OrderTypeTime

func (OrderTypeTime) EnumDescriptor deprecated

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

Deprecated: Use OrderTypeTime.Descriptor instead.

func (OrderTypeTime) Number

func (OrderTypeTime) String

func (x OrderTypeTime) String() string

func (OrderTypeTime) Type

type PagedRequestOptions

type PagedRequestOptions struct {

	// cursor can be passed to retrieve the next page of results keyed by the cursor
	Cursor int64 `protobuf:"varint,1,opt,name=cursor,proto3" json:"cursor,omitempty"`
	// page_size specifies the number of items to return in the next page
	PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// contains filtered or unexported fields
}

func (*PagedRequestOptions) Descriptor deprecated

func (*PagedRequestOptions) Descriptor() ([]byte, []int)

Deprecated: Use PagedRequestOptions.ProtoReflect.Descriptor instead.

func (*PagedRequestOptions) GetCursor

func (x *PagedRequestOptions) GetCursor() int64

func (*PagedRequestOptions) GetPageSize

func (x *PagedRequestOptions) GetPageSize() int64

func (*PagedRequestOptions) ProtoMessage

func (*PagedRequestOptions) ProtoMessage()

func (*PagedRequestOptions) ProtoReflect

func (x *PagedRequestOptions) ProtoReflect() protoreflect.Message

func (*PagedRequestOptions) Reset

func (x *PagedRequestOptions) Reset()

func (*PagedRequestOptions) String

func (x *PagedRequestOptions) String() string

type PagedResponseMetadata

type PagedResponseMetadata struct {

	// A cursor that can be provided to retrieve the next page of results
	NextCursor int64 `protobuf:"varint,1,opt,name=next_cursor,json=nextCursor,proto3" json:"next_cursor,omitempty"`
	// Whether or not more results exist
	HasMore bool `protobuf:"varint,2,opt,name=has_more,json=hasMore,proto3" json:"has_more,omitempty"`
	// contains filtered or unexported fields
}

func (*PagedResponseMetadata) Descriptor deprecated

func (*PagedResponseMetadata) Descriptor() ([]byte, []int)

Deprecated: Use PagedResponseMetadata.ProtoReflect.Descriptor instead.

func (*PagedResponseMetadata) GetHasMore

func (x *PagedResponseMetadata) GetHasMore() bool

func (*PagedResponseMetadata) GetNextCursor

func (x *PagedResponseMetadata) GetNextCursor() int64

func (*PagedResponseMetadata) ProtoMessage

func (*PagedResponseMetadata) ProtoMessage()

func (*PagedResponseMetadata) ProtoReflect

func (x *PagedResponseMetadata) ProtoReflect() protoreflect.Message

func (*PagedResponseMetadata) Reset

func (x *PagedResponseMetadata) Reset()

func (*PagedResponseMetadata) String

func (x *PagedResponseMetadata) String() string

type Position

type Position struct {
	PositionId     int64          `protobuf:"varint,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"`
	AccountId      int64          `protobuf:"varint,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	Ticket         int64          `protobuf:"varint,3,opt,name=ticket,proto3" json:"ticket,omitempty"`
	Symbol         string         `protobuf:"bytes,4,opt,name=symbol,proto3" json:"symbol,omitempty"`
	PositionTime   int64          `protobuf:"varint,5,opt,name=position_time,json=positionTime,proto3" json:"position_time,omitempty"`
	PositionType   PositionType   `` /* 131-byte string literal not displayed */
	Volume         float64        `protobuf:"fixed64,7,opt,name=volume,proto3" json:"volume,omitempty"`
	PriceOpen      float64        `protobuf:"fixed64,8,opt,name=price_open,json=priceOpen,proto3" json:"price_open,omitempty"`
	StopLoss       float64        `protobuf:"fixed64,9,opt,name=stop_loss,json=stopLoss,proto3" json:"stop_loss,omitempty"`
	TakeProfit     float64        `protobuf:"fixed64,10,opt,name=take_profit,json=takeProfit,proto3" json:"take_profit,omitempty"`
	PriceCurrent   float64        `protobuf:"fixed64,11,opt,name=price_current,json=priceCurrent,proto3" json:"price_current,omitempty"`
	Commission     float64        `protobuf:"fixed64,12,opt,name=commission,proto3" json:"commission,omitempty"`
	Swap           float64        `protobuf:"fixed64,13,opt,name=swap,proto3" json:"swap,omitempty"`
	Profit         float64        `protobuf:"fixed64,14,opt,name=profit,proto3" json:"profit,omitempty"`
	Identifier     int64          `protobuf:"varint,15,opt,name=identifier,proto3" json:"identifier,omitempty"`
	Comment        string         `protobuf:"bytes,16,opt,name=comment,proto3" json:"comment,omitempty"`
	Created        int64          `protobuf:"varint,17,opt,name=created,proto3" json:"created,omitempty"`
	Updated        int64          `protobuf:"varint,18,opt,name=updated,proto3" json:"updated,omitempty"`
	Deleted        int64          `protobuf:"varint,19,opt,name=deleted,proto3" json:"deleted,omitempty"`
	PositionUpdate int64          `protobuf:"varint,20,opt,name=position_update,json=positionUpdate,proto3" json:"position_update,omitempty"`
	Reason         PositionReason `protobuf:"varint,21,opt,name=reason,proto3,enum=tickerbeats.v1.PositionReason" json:"reason,omitempty"`
	ExternalId     string         `protobuf:"bytes,22,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"`
	Magic          int64          `protobuf:"varint,23,opt,name=magic,proto3" json:"magic,omitempty"`
	TimeGMTOffset  int64          `protobuf:"varint,24,opt,name=TimeGMTOffset,proto3" json:"TimeGMTOffset,omitempty"`
	// contains filtered or unexported fields
}

Position: Execution of trade operations results in the opening of a position

func (*Position) Descriptor deprecated

func (*Position) Descriptor() ([]byte, []int)

Deprecated: Use Position.ProtoReflect.Descriptor instead.

func (*Position) GetAccountId

func (x *Position) GetAccountId() int64

func (*Position) GetComment

func (x *Position) GetComment() string

func (*Position) GetCommission

func (x *Position) GetCommission() float64

func (*Position) GetCreated

func (x *Position) GetCreated() int64

func (*Position) GetDeleted

func (x *Position) GetDeleted() int64

func (*Position) GetExternalId

func (x *Position) GetExternalId() string

func (*Position) GetIdentifier

func (x *Position) GetIdentifier() int64

func (*Position) GetMagic added in v0.19.12

func (x *Position) GetMagic() int64

func (*Position) GetPositionId

func (x *Position) GetPositionId() int64

func (*Position) GetPositionTime

func (x *Position) GetPositionTime() int64

func (*Position) GetPositionType

func (x *Position) GetPositionType() PositionType

func (*Position) GetPositionUpdate

func (x *Position) GetPositionUpdate() int64

func (*Position) GetPriceCurrent

func (x *Position) GetPriceCurrent() float64

func (*Position) GetPriceOpen

func (x *Position) GetPriceOpen() float64

func (*Position) GetProfit

func (x *Position) GetProfit() float64

func (*Position) GetReason

func (x *Position) GetReason() PositionReason

func (*Position) GetStopLoss

func (x *Position) GetStopLoss() float64

func (*Position) GetSwap

func (x *Position) GetSwap() float64

func (*Position) GetSymbol

func (x *Position) GetSymbol() string

func (*Position) GetTakeProfit

func (x *Position) GetTakeProfit() float64

func (*Position) GetTicket

func (x *Position) GetTicket() int64

func (*Position) GetTimeGMTOffset added in v0.22.6

func (x *Position) GetTimeGMTOffset() int64

func (*Position) GetUpdated

func (x *Position) GetUpdated() int64

func (*Position) GetVolume

func (x *Position) GetVolume() float64

func (*Position) ProtoMessage

func (*Position) ProtoMessage()

func (*Position) ProtoReflect

func (x *Position) ProtoReflect() protoreflect.Message

func (*Position) Reset

func (x *Position) Reset()

func (*Position) String

func (x *Position) String() string

type PositionReason added in v0.22.12

type PositionReason int32
const (
	PositionReason_POSITION_REASON_CLIENT PositionReason = 0 //The position was opened as a result of activation of an order placed from a desktop terminal
	PositionReason_POSITION_REASON_MOBILE PositionReason = 1 //The position was opened as a result of activation of an order placed from a mobile application
	PositionReason_POSITION_REASON_WEB    PositionReason = 2 //The position was opened as a result of activation of an order placed from the web platform
	PositionReason_POSITION_REASON_EXPERT PositionReason = 3 //The position was opened as a result of activation of an order placed from an MQL5 program, i.e. an Expert Advisor or a script
)

func (PositionReason) Descriptor added in v0.22.12

func (PositionReason) Enum added in v0.22.12

func (x PositionReason) Enum() *PositionReason

func (PositionReason) EnumDescriptor deprecated added in v0.22.12

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

Deprecated: Use PositionReason.Descriptor instead.

func (PositionReason) Number added in v0.22.12

func (PositionReason) String added in v0.22.12

func (x PositionReason) String() string

func (PositionReason) Type added in v0.22.12

type PositionType

type PositionType int32

PositionType: Position Type

const (
	PositionType_POSITION_TYPE_BUY  PositionType = 0 //Buy
	PositionType_POSITION_TYPE_SELL PositionType = 1 //Sell
)

func (PositionType) Descriptor

func (PositionType) Enum

func (x PositionType) Enum() *PositionType

func (PositionType) EnumDescriptor deprecated

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

Deprecated: Use PositionType.Descriptor instead.

func (PositionType) Number

func (PositionType) String

func (x PositionType) String() string

func (PositionType) Type

type Signal added in v0.19.0

type Signal struct {
	SignalId             int64 `protobuf:"varint,1,opt,name=SignalId,proto3" json:"SignalId,omitempty"`
	SourceAccountId      int64 `protobuf:"varint,2,opt,name=SourceAccountId,proto3" json:"SourceAccountId,omitempty"`
	DestinationAccountId int64 `protobuf:"varint,3,opt,name=DestinationAccountId,proto3" json:"DestinationAccountId,omitempty"`
	Active               bool  `protobuf:"varint,4,opt,name=Active,proto3" json:"Active,omitempty"`
	MaxDeposit           int32 `protobuf:"varint,5,opt,name=MaxDeposit,proto3" json:"MaxDeposit,omitempty"`
	StopIfLessThan       int32 `protobuf:"varint,6,opt,name=StopIfLessThan,proto3" json:"StopIfLessThan,omitempty"`
	Deviation            int64 `protobuf:"varint,7,opt,name=Deviation,proto3" json:"Deviation,omitempty"`
	MinutesToExpire      int32 `protobuf:"varint,8,opt,name=MinutesToExpire,proto3" json:"MinutesToExpire,omitempty"`
	// contains filtered or unexported fields
}

func (*Signal) Descriptor deprecated added in v0.19.0

func (*Signal) Descriptor() ([]byte, []int)

Deprecated: Use Signal.ProtoReflect.Descriptor instead.

func (*Signal) GetActive added in v0.19.0

func (x *Signal) GetActive() bool

func (*Signal) GetDestinationAccountId added in v0.19.4

func (x *Signal) GetDestinationAccountId() int64

func (*Signal) GetDeviation added in v0.27.0

func (x *Signal) GetDeviation() int64

func (*Signal) GetMaxDeposit added in v0.19.0

func (x *Signal) GetMaxDeposit() int32

func (*Signal) GetMinutesToExpire added in v0.19.0

func (x *Signal) GetMinutesToExpire() int32

func (*Signal) GetSignalId added in v0.21.1

func (x *Signal) GetSignalId() int64

func (*Signal) GetSourceAccountId added in v0.19.4

func (x *Signal) GetSourceAccountId() int64

func (*Signal) GetStopIfLessThan added in v0.19.0

func (x *Signal) GetStopIfLessThan() int32

func (*Signal) ProtoMessage added in v0.19.0

func (*Signal) ProtoMessage()

func (*Signal) ProtoReflect added in v0.19.0

func (x *Signal) ProtoReflect() protoreflect.Message

func (*Signal) Reset added in v0.19.0

func (x *Signal) Reset()

func (*Signal) String added in v0.19.0

func (x *Signal) String() string

type SignalResult added in v0.19.4

type SignalResult struct {
	SignalResultId       int64 `protobuf:"varint,1,opt,name=SignalResultId,proto3" json:"SignalResultId,omitempty"`
	SourceAccountId      int64 `protobuf:"varint,2,opt,name=SourceAccountId,proto3" json:"SourceAccountId,omitempty"`
	DestinationAccountId int64 `protobuf:"varint,3,opt,name=DestinationAccountId,proto3" json:"DestinationAccountId,omitempty"`
	SourceBeatsId        int64 `protobuf:"varint,4,opt,name=SourceBeatsId,proto3" json:"SourceBeatsId,omitempty"`
	DestinationBeatsId   int64 `protobuf:"varint,5,opt,name=DestinationBeatsId,proto3" json:"DestinationBeatsId,omitempty"`
	ExternalId           int64 `protobuf:"varint,6,opt,name=ExternalId,proto3" json:"ExternalId,omitempty"`
	SentTime             int64 `protobuf:"varint,7,opt,name=SentTime,proto3" json:"SentTime,omitempty"`
	ConfirmationTime     int64 `protobuf:"varint,8,opt,name=ConfirmationTime,proto3" json:"ConfirmationTime,omitempty"`
	Created              int64 `protobuf:"varint,9,opt,name=Created,proto3" json:"Created,omitempty"`
	Updated              int64 `protobuf:"varint,10,opt,name=Updated,proto3" json:"Updated,omitempty"`
	// contains filtered or unexported fields
}

func (*SignalResult) Descriptor deprecated added in v0.19.4

func (*SignalResult) Descriptor() ([]byte, []int)

Deprecated: Use SignalResult.ProtoReflect.Descriptor instead.

func (*SignalResult) GetConfirmationTime added in v0.19.4

func (x *SignalResult) GetConfirmationTime() int64

func (*SignalResult) GetCreated added in v0.19.4

func (x *SignalResult) GetCreated() int64

func (*SignalResult) GetDestinationAccountId added in v0.19.4

func (x *SignalResult) GetDestinationAccountId() int64

func (*SignalResult) GetDestinationBeatsId added in v0.21.0

func (x *SignalResult) GetDestinationBeatsId() int64

func (*SignalResult) GetExternalId added in v0.19.4

func (x *SignalResult) GetExternalId() int64

func (*SignalResult) GetSentTime added in v0.19.4

func (x *SignalResult) GetSentTime() int64

func (*SignalResult) GetSignalResultId added in v0.21.1

func (x *SignalResult) GetSignalResultId() int64

func (*SignalResult) GetSourceAccountId added in v0.19.4

func (x *SignalResult) GetSourceAccountId() int64

func (*SignalResult) GetSourceBeatsId added in v0.21.0

func (x *SignalResult) GetSourceBeatsId() int64

func (*SignalResult) GetUpdated added in v0.19.4

func (x *SignalResult) GetUpdated() int64

func (*SignalResult) ProtoMessage added in v0.19.4

func (*SignalResult) ProtoMessage()

func (*SignalResult) ProtoReflect added in v0.19.4

func (x *SignalResult) ProtoReflect() protoreflect.Message

func (*SignalResult) Reset added in v0.19.4

func (x *SignalResult) Reset()

func (*SignalResult) String added in v0.19.4

func (x *SignalResult) String() string

type SignalType added in v0.21.5

type SignalType int32

SignalType: type of the signal

const (
	SignalType_SIGINAL_TYPE_GET_ALL       SignalType = 0 // Return all types of signal
	SignalType_SIGINAL_TYPE_ORDER         SignalType = 1 // Return all unsynced orders
	SignalType_SIGINAL_TYPE_POSITION      SignalType = 2 // Return all unsynced positions
	SignalType_SIGINAL_TYPE_TRADE_REQUEST SignalType = 3 // Return all pending trades
	SignalType_SIGINAL_TYPE_DEAL          SignalType = 4 // Return all unsynced deals
	SignalType_SIGINAL_TYPE_STOP_TAKE     SignalType = 5 // Return all Stop Loss or Take Profit changes
)

func (SignalType) Descriptor added in v0.21.5

func (SignalType) Descriptor() protoreflect.EnumDescriptor

func (SignalType) Enum added in v0.21.5

func (x SignalType) Enum() *SignalType

func (SignalType) EnumDescriptor deprecated added in v0.21.5

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

Deprecated: Use SignalType.Descriptor instead.

func (SignalType) Number added in v0.21.5

func (x SignalType) Number() protoreflect.EnumNumber

func (SignalType) String added in v0.21.5

func (x SignalType) String() string

func (SignalType) Type added in v0.21.5

type TestingStatistics added in v0.24.2

type TestingStatistics struct {
	TestingID           int64                         `protobuf:"varint,1,opt,name=TestingID,proto3" json:"TestingID,omitempty"`
	ExpertName          string                        `protobuf:"bytes,2,opt,name=ExpertName,proto3" json:"ExpertName,omitempty"`
	ExpertVersion       string                        `protobuf:"bytes,3,opt,name=ExpertVersion,proto3" json:"ExpertVersion,omitempty"`
	InitialDeposit      float64                       `protobuf:"fixed64,4,opt,name=InitialDeposit,proto3" json:"InitialDeposit,omitempty"`            //The value of the initial deposit
	Withdrawal          float64                       `protobuf:"fixed64,5,opt,name=Withdrawal,proto3" json:"Withdrawal,omitempty"`                    //Money withdrawn from an account
	Profit              float64                       `protobuf:"fixed64,6,opt,name=Profit,proto3" json:"Profit,omitempty"`                            //Net profit after testing, the sum of GROSS_PROFIT and GROSS_LOSS (GROSS_LOSS is always less than or equal to zero)
	GrossProfit         float64                       `protobuf:"fixed64,7,opt,name=GrossProfit,proto3" json:"GrossProfit,omitempty"`                  //Total profit, the sum of all profitable (positive) trades. The value is greater than or equal to zero
	GrossLoss           float64                       `protobuf:"fixed64,8,opt,name=GrossLoss,proto3" json:"GrossLoss,omitempty"`                      //Total loss, the sum of all negative trades. The value is less than or equal to zero
	MaxProfittrade      float64                       `protobuf:"fixed64,9,opt,name=MaxProfittrade,proto3" json:"MaxProfittrade,omitempty"`            //Maximum profit – the largest value of all profitable trades. The value is greater than or equal to zero
	MaxLosstrade        float64                       `protobuf:"fixed64,10,opt,name=MaxLosstrade,proto3" json:"MaxLosstrade,omitempty"`               //Maximum loss – the lowest value of all losing trades. The value is less than or equal to zero
	ConProfitMax        float64                       `protobuf:"fixed64,11,opt,name=ConProfitMax,proto3" json:"ConProfitMax,omitempty"`               //Maximum profit in a series of profitable trades. The value is greater than or equal to zero
	ConProfitMaxTrades  int32                         `protobuf:"varint,12,opt,name=ConProfitMaxTrades,proto3" json:"ConProfitMaxTrades,omitempty"`    //The number of trades that have formed CONPROFITMAX (maximum profit in a series of profitable trades)
	MaxConWins          float64                       `protobuf:"fixed64,13,opt,name=MaxConWins,proto3" json:"MaxConWins,omitempty"`                   //The total profit of the longest series of profitable trades
	MaxConProfitTrades  int32                         `protobuf:"varint,14,opt,name=MaxConProfitTrades,proto3" json:"MaxConProfitTrades,omitempty"`    //The number of trades in the longest series of profitable trades MAX_CONWINS
	ConLossMax          float64                       `protobuf:"fixed64,15,opt,name=ConLossMax,proto3" json:"ConLossMax,omitempty"`                   //Maximum loss in a series of losing trades. The value is less than or equal to zero
	ConLossMaxTrades    int32                         `protobuf:"varint,16,opt,name=ConLossMaxTrades,proto3" json:"ConLossMaxTrades,omitempty"`        //The number of trades that have formed CONLOSSMAX (maximum loss in a series of losing trades)
	MaxConlosses        float64                       `protobuf:"fixed64,17,opt,name=MaxConlosses,proto3" json:"MaxConlosses,omitempty"`               //The total loss of the longest series of losing trades
	MaxConlossTrades    int32                         `protobuf:"varint,18,opt,name=MaxConlossTrades,proto3" json:"MaxConlossTrades,omitempty"`        //The number of trades in the longest series of losing trades MAX_CONLOSSES
	BalanceMin          float64                       `protobuf:"fixed64,19,opt,name=BalanceMin,proto3" json:"BalanceMin,omitempty"`                   //Minimum balance value
	BalanceDD           float64                       `protobuf:"fixed64,20,opt,name=BalanceDD,proto3" json:"BalanceDD,omitempty"`                     //Maximum balance drawdown in monetary terms. In the process of trading, a balance may have numerous drawdowns; here the largest value is taken
	BalanceDDPercent    float64                       `protobuf:"fixed64,21,opt,name=BalanceDDPercent,proto3" json:"BalanceDDPercent,omitempty"`       //Balance drawdown as a percentage that was recorded at the moment of the maximum balance drawdown in monetary terms (BALANCE_DD).
	BalanceDDRelPercent float64                       `protobuf:"fixed64,22,opt,name=BalanceDDRelPercent,proto3" json:"BalanceDDRelPercent,omitempty"` //Maximum balance drawdown as a percentage. In the process of trading, a balance may have numerous drawdowns, for each of which the relative drawdown value in percents is calculated. The greatest value is returned
	BalanceDDRelative   float64                       `protobuf:"fixed64,23,opt,name=BalanceDDRelative,proto3" json:"BalanceDDRelative,omitempty"`     //Balance drawdown in monetary terms that was recorded at the moment of the maximum balance drawdown as a percentage (BALANCE_DDREL_PERCENT).
	EquityMin           float64                       `protobuf:"fixed64,24,opt,name=EquityMin,proto3" json:"EquityMin,omitempty"`                     //Minimum equity value
	EquityDD            float64                       `protobuf:"fixed64,25,opt,name=EquityDD,proto3" json:"EquityDD,omitempty"`                       //Maximum equity drawdown in monetary terms. In the process of trading, numerous drawdowns may appear on the equity; here the largest value is taken
	EquityDDPercent     float64                       `protobuf:"fixed64,26,opt,name=EquityDDPercent,proto3" json:"EquityDDPercent,omitempty"`         //Drawdown in percent that was recorded at the moment of the maximum equity drawdown in monetary terms (EQUITY_DD).
	EquityDDRelPercent  float64                       `protobuf:"fixed64,27,opt,name=EquityDDRelPercent,proto3" json:"EquityDDRelPercent,omitempty"`   //Maximum equity drawdown as a percentage. In the process of trading, an equity may have numerous drawdowns, for each of which the relative drawdown value in percents is calculated. The greatest value is returned
	EquityDDRelative    float64                       `protobuf:"fixed64,28,opt,name=EquityDDRelative,proto3" json:"EquityDDRelative,omitempty"`       //Equity drawdown in monetary terms that was recorded at the moment of the maximum equity drawdown in percent (EQUITY_DDREL_PERCENT).
	ExpectedPayoff      float64                       `protobuf:"fixed64,29,opt,name=ExpectedPayoff,proto3" json:"ExpectedPayoff,omitempty"`           //Expected payoff
	ProfitFactor        float64                       `protobuf:"fixed64,30,opt,name=ProfitFactor,proto3" json:"ProfitFactor,omitempty"`               //Profit factor, equal to the ratio of GROSS_PROFIT/GROSS_LOSS. If GROSS_LOSS=0, the profit factor is equal to DBL_MAX
	RecoveryFactor      float64                       `protobuf:"fixed64,31,opt,name=RecoveryFactor,proto3" json:"RecoveryFactor,omitempty"`           //Recovery factor, equal to the ratio of PROFIT/BALANCE_DD
	SharpeRatio         float64                       `protobuf:"fixed64,32,opt,name=SharpeRatio,proto3" json:"SharpeRatio,omitempty"`                 //Sharpe ratio
	MinMarginlevel      float64                       `protobuf:"fixed64,33,opt,name=MinMarginlevel,proto3" json:"MinMarginlevel,omitempty"`           //Minimum value of the margin level
	CustomOnTester      float64                       `protobuf:"fixed64,34,opt,name=CustomOnTester,proto3" json:"CustomOnTester,omitempty"`           //The value of the calculated custom optimization criterion returned by the OnTester() function
	Deals               int32                         `protobuf:"varint,35,opt,name=Deals,proto3" json:"Deals,omitempty"`                              //The number of deals
	Trades              int32                         `protobuf:"varint,36,opt,name=Trades,proto3" json:"Trades,omitempty"`                            //The number of trades
	ProfitTrades        int32                         `protobuf:"varint,37,opt,name=ProfitTrades,proto3" json:"ProfitTrades,omitempty"`                //Profitable trades
	LossTrades          int32                         `protobuf:"varint,38,opt,name=LossTrades,proto3" json:"LossTrades,omitempty"`                    //Losing trades
	ShortTrades         int32                         `protobuf:"varint,39,opt,name=ShortTrades,proto3" json:"ShortTrades,omitempty"`                  //Short trades
	LongTrades          int32                         `protobuf:"varint,40,opt,name=LongTrades,proto3" json:"LongTrades,omitempty"`                    //Long trades
	ProfitShorttrades   int32                         `protobuf:"varint,41,opt,name=ProfitShorttrades,proto3" json:"ProfitShorttrades,omitempty"`      //Profitable short trades
	ProfitLongtrades    int32                         `protobuf:"varint,42,opt,name=ProfitLongtrades,proto3" json:"ProfitLongtrades,omitempty"`        //Profitable long trades
	ProfitTradesAvgcon  int32                         `protobuf:"varint,43,opt,name=ProfitTradesAvgcon,proto3" json:"ProfitTradesAvgcon,omitempty"`    //Average length of a profitable series of trades
	LossTradesAvgCon    int32                         `protobuf:"varint,44,opt,name=LossTradesAvgCon,proto3" json:"LossTradesAvgCon,omitempty"`        //Average length of a losing series of trades
	MagicNumber         int64                         `protobuf:"varint,45,opt,name=MagicNumber,proto3" json:"MagicNumber,omitempty"`
	Created             int64                         `protobuf:"varint,46,opt,name=Created,proto3" json:"Created,omitempty"`
	Variables           []*TestingStatisticsVariables `protobuf:"bytes,47,rep,name=Variables,proto3" json:"Variables,omitempty"` //Expert variables
	// contains filtered or unexported fields
}

func (*TestingStatistics) Descriptor deprecated added in v0.24.2

func (*TestingStatistics) Descriptor() ([]byte, []int)

Deprecated: Use TestingStatistics.ProtoReflect.Descriptor instead.

func (*TestingStatistics) GetBalanceDD added in v0.24.2

func (x *TestingStatistics) GetBalanceDD() float64

func (*TestingStatistics) GetBalanceDDPercent added in v0.24.2

func (x *TestingStatistics) GetBalanceDDPercent() float64

func (*TestingStatistics) GetBalanceDDRelPercent added in v0.24.2

func (x *TestingStatistics) GetBalanceDDRelPercent() float64

func (*TestingStatistics) GetBalanceDDRelative added in v0.24.2

func (x *TestingStatistics) GetBalanceDDRelative() float64

func (*TestingStatistics) GetBalanceMin added in v0.24.2

func (x *TestingStatistics) GetBalanceMin() float64

func (*TestingStatistics) GetConLossMax added in v0.24.2

func (x *TestingStatistics) GetConLossMax() float64

func (*TestingStatistics) GetConLossMaxTrades added in v0.24.2

func (x *TestingStatistics) GetConLossMaxTrades() int32

func (*TestingStatistics) GetConProfitMax added in v0.24.2

func (x *TestingStatistics) GetConProfitMax() float64

func (*TestingStatistics) GetConProfitMaxTrades added in v0.24.2

func (x *TestingStatistics) GetConProfitMaxTrades() int32

func (*TestingStatistics) GetCreated added in v0.24.2

func (x *TestingStatistics) GetCreated() int64

func (*TestingStatistics) GetCustomOnTester added in v0.24.2

func (x *TestingStatistics) GetCustomOnTester() float64

func (*TestingStatistics) GetDeals added in v0.24.2

func (x *TestingStatistics) GetDeals() int32

func (*TestingStatistics) GetEquityDD added in v0.24.2

func (x *TestingStatistics) GetEquityDD() float64

func (*TestingStatistics) GetEquityDDPercent added in v0.24.2

func (x *TestingStatistics) GetEquityDDPercent() float64

func (*TestingStatistics) GetEquityDDRelPercent added in v0.24.2

func (x *TestingStatistics) GetEquityDDRelPercent() float64

func (*TestingStatistics) GetEquityDDRelative added in v0.24.2

func (x *TestingStatistics) GetEquityDDRelative() float64

func (*TestingStatistics) GetEquityMin added in v0.24.2

func (x *TestingStatistics) GetEquityMin() float64

func (*TestingStatistics) GetExpectedPayoff added in v0.24.2

func (x *TestingStatistics) GetExpectedPayoff() float64

func (*TestingStatistics) GetExpertName added in v0.24.2

func (x *TestingStatistics) GetExpertName() string

func (*TestingStatistics) GetExpertVersion added in v0.24.2

func (x *TestingStatistics) GetExpertVersion() string

func (*TestingStatistics) GetGrossLoss added in v0.24.2

func (x *TestingStatistics) GetGrossLoss() float64

func (*TestingStatistics) GetGrossProfit added in v0.24.2

func (x *TestingStatistics) GetGrossProfit() float64

func (*TestingStatistics) GetInitialDeposit added in v0.24.2

func (x *TestingStatistics) GetInitialDeposit() float64

func (*TestingStatistics) GetLongTrades added in v0.24.2

func (x *TestingStatistics) GetLongTrades() int32

func (*TestingStatistics) GetLossTrades added in v0.24.2

func (x *TestingStatistics) GetLossTrades() int32

func (*TestingStatistics) GetLossTradesAvgCon added in v0.24.2

func (x *TestingStatistics) GetLossTradesAvgCon() int32

func (*TestingStatistics) GetMagicNumber added in v0.24.2

func (x *TestingStatistics) GetMagicNumber() int64

func (*TestingStatistics) GetMaxConProfitTrades added in v0.24.2

func (x *TestingStatistics) GetMaxConProfitTrades() int32

func (*TestingStatistics) GetMaxConWins added in v0.24.2

func (x *TestingStatistics) GetMaxConWins() float64

func (*TestingStatistics) GetMaxConlossTrades added in v0.24.2

func (x *TestingStatistics) GetMaxConlossTrades() int32

func (*TestingStatistics) GetMaxConlosses added in v0.24.2

func (x *TestingStatistics) GetMaxConlosses() float64

func (*TestingStatistics) GetMaxLosstrade added in v0.24.2

func (x *TestingStatistics) GetMaxLosstrade() float64

func (*TestingStatistics) GetMaxProfittrade added in v0.24.2

func (x *TestingStatistics) GetMaxProfittrade() float64

func (*TestingStatistics) GetMinMarginlevel added in v0.24.2

func (x *TestingStatistics) GetMinMarginlevel() float64

func (*TestingStatistics) GetProfit added in v0.24.2

func (x *TestingStatistics) GetProfit() float64

func (*TestingStatistics) GetProfitFactor added in v0.24.2

func (x *TestingStatistics) GetProfitFactor() float64

func (*TestingStatistics) GetProfitLongtrades added in v0.24.2

func (x *TestingStatistics) GetProfitLongtrades() int32

func (*TestingStatistics) GetProfitShorttrades added in v0.24.2

func (x *TestingStatistics) GetProfitShorttrades() int32

func (*TestingStatistics) GetProfitTrades added in v0.24.2

func (x *TestingStatistics) GetProfitTrades() int32

func (*TestingStatistics) GetProfitTradesAvgcon added in v0.24.2

func (x *TestingStatistics) GetProfitTradesAvgcon() int32

func (*TestingStatistics) GetRecoveryFactor added in v0.24.2

func (x *TestingStatistics) GetRecoveryFactor() float64

func (*TestingStatistics) GetSharpeRatio added in v0.24.2

func (x *TestingStatistics) GetSharpeRatio() float64

func (*TestingStatistics) GetShortTrades added in v0.24.2

func (x *TestingStatistics) GetShortTrades() int32

func (*TestingStatistics) GetTestingID added in v0.24.2

func (x *TestingStatistics) GetTestingID() int64

func (*TestingStatistics) GetTrades added in v0.24.2

func (x *TestingStatistics) GetTrades() int32

func (*TestingStatistics) GetVariables added in v0.24.2

func (x *TestingStatistics) GetVariables() []*TestingStatisticsVariables

func (*TestingStatistics) GetWithdrawal added in v0.24.2

func (x *TestingStatistics) GetWithdrawal() float64

func (*TestingStatistics) ProtoMessage added in v0.24.2

func (*TestingStatistics) ProtoMessage()

func (*TestingStatistics) ProtoReflect added in v0.24.2

func (x *TestingStatistics) ProtoReflect() protoreflect.Message

func (*TestingStatistics) Reset added in v0.24.2

func (x *TestingStatistics) Reset()

func (*TestingStatistics) String added in v0.24.2

func (x *TestingStatistics) String() string

type TestingStatisticsServiceClient added in v0.24.2

type TestingStatisticsServiceClient interface {
	Create(ctx context.Context, in *CreateTestingStatisticsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

TestingStatisticsServiceClient is the client API for TestingStatisticsService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewTestingStatisticsServiceClient added in v0.24.2

func NewTestingStatisticsServiceClient(cc grpc.ClientConnInterface) TestingStatisticsServiceClient

type TestingStatisticsServiceServer added in v0.24.2

type TestingStatisticsServiceServer interface {
	Create(context.Context, *CreateTestingStatisticsRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

TestingStatisticsServiceServer is the server API for TestingStatisticsService service. All implementations must embed UnimplementedTestingStatisticsServiceServer for forward compatibility

type TestingStatisticsVariables added in v0.24.2

type TestingStatisticsVariables struct {
	Name  string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=Value,proto3" json:"Value,omitempty"`
	// contains filtered or unexported fields
}

func (*TestingStatisticsVariables) Descriptor deprecated added in v0.24.2

func (*TestingStatisticsVariables) Descriptor() ([]byte, []int)

Deprecated: Use TestingStatisticsVariables.ProtoReflect.Descriptor instead.

func (*TestingStatisticsVariables) GetName added in v0.24.2

func (x *TestingStatisticsVariables) GetName() string

func (*TestingStatisticsVariables) GetValue added in v0.24.2

func (x *TestingStatisticsVariables) GetValue() string

func (*TestingStatisticsVariables) ProtoMessage added in v0.24.2

func (*TestingStatisticsVariables) ProtoMessage()

func (*TestingStatisticsVariables) ProtoReflect added in v0.24.2

func (*TestingStatisticsVariables) Reset added in v0.24.2

func (x *TestingStatisticsVariables) Reset()

func (*TestingStatisticsVariables) String added in v0.24.2

func (x *TestingStatisticsVariables) String() string

type TickerBeatsConfirmationRequest added in v0.22.0

type TickerBeatsConfirmationRequest struct {
	AccountId    int64      `protobuf:"varint,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	ServerTime   int64      `protobuf:"varint,2,opt,name=server_time,json=serverTime,proto3" json:"server_time,omitempty"`
	BeatsId      int64      `protobuf:"varint,3,opt,name=beats_id,json=beatsId,proto3" json:"beats_id,omitempty"`
	GroupId      string     `protobuf:"bytes,4,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
	TradeRetcode int32      `protobuf:"varint,5,opt,name=trade_retcode,json=tradeRetcode,proto3" json:"trade_retcode,omitempty"`
	SignalType   SignalType `protobuf:"varint,6,opt,name=signal_type,json=signalType,proto3,enum=tickerbeats.v1.SignalType" json:"signal_type,omitempty"`
	// contains filtered or unexported fields
}

func (*TickerBeatsConfirmationRequest) Descriptor deprecated added in v0.22.0

func (*TickerBeatsConfirmationRequest) Descriptor() ([]byte, []int)

Deprecated: Use TickerBeatsConfirmationRequest.ProtoReflect.Descriptor instead.

func (*TickerBeatsConfirmationRequest) GetAccountId added in v0.22.0

func (x *TickerBeatsConfirmationRequest) GetAccountId() int64

func (*TickerBeatsConfirmationRequest) GetBeatsId added in v0.22.0

func (x *TickerBeatsConfirmationRequest) GetBeatsId() int64

func (*TickerBeatsConfirmationRequest) GetGroupId added in v0.25.1

func (x *TickerBeatsConfirmationRequest) GetGroupId() string

func (*TickerBeatsConfirmationRequest) GetServerTime added in v0.22.0

func (x *TickerBeatsConfirmationRequest) GetServerTime() int64

func (*TickerBeatsConfirmationRequest) GetSignalType added in v0.26.0

func (x *TickerBeatsConfirmationRequest) GetSignalType() SignalType

func (*TickerBeatsConfirmationRequest) GetTradeRetcode added in v0.25.1

func (x *TickerBeatsConfirmationRequest) GetTradeRetcode() int32

func (*TickerBeatsConfirmationRequest) ProtoMessage added in v0.22.0

func (*TickerBeatsConfirmationRequest) ProtoMessage()

func (*TickerBeatsConfirmationRequest) ProtoReflect added in v0.22.0

func (*TickerBeatsConfirmationRequest) Reset added in v0.22.0

func (x *TickerBeatsConfirmationRequest) Reset()

func (*TickerBeatsConfirmationRequest) String added in v0.22.0

type TickerBeatsRequest added in v0.19.8

type TickerBeatsRequest struct {
	AccountId   int64      `protobuf:"varint,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	ServerTime  int64      `protobuf:"varint,2,opt,name=server_time,json=serverTime,proto3" json:"server_time,omitempty"`
	SignalType  SignalType `protobuf:"varint,3,opt,name=signal_type,json=signalType,proto3,enum=tickerbeats.v1.SignalType" json:"signal_type,omitempty"`
	LastOrderId int64      `protobuf:"varint,4,opt,name=last_order_id,json=lastOrderId,proto3" json:"last_order_id,omitempty"`
	// contains filtered or unexported fields
}

func (*TickerBeatsRequest) Descriptor deprecated added in v0.19.8

func (*TickerBeatsRequest) Descriptor() ([]byte, []int)

Deprecated: Use TickerBeatsRequest.ProtoReflect.Descriptor instead.

func (*TickerBeatsRequest) GetAccountId added in v0.19.8

func (x *TickerBeatsRequest) GetAccountId() int64

func (*TickerBeatsRequest) GetLastOrderId added in v0.22.0

func (x *TickerBeatsRequest) GetLastOrderId() int64

func (*TickerBeatsRequest) GetServerTime added in v0.19.8

func (x *TickerBeatsRequest) GetServerTime() int64

func (*TickerBeatsRequest) GetSignalType added in v0.22.1

func (x *TickerBeatsRequest) GetSignalType() SignalType

func (*TickerBeatsRequest) ProtoMessage added in v0.19.8

func (*TickerBeatsRequest) ProtoMessage()

func (*TickerBeatsRequest) ProtoReflect added in v0.19.8

func (x *TickerBeatsRequest) ProtoReflect() protoreflect.Message

func (*TickerBeatsRequest) Reset added in v0.19.8

func (x *TickerBeatsRequest) Reset()

func (*TickerBeatsRequest) String added in v0.19.8

func (x *TickerBeatsRequest) String() string

type TickerBeatsResponse added in v0.19.10

type TickerBeatsResponse struct {
	Beats []*TradeBeats `protobuf:"bytes,1,rep,name=beats,proto3" json:"beats,omitempty"`
	// contains filtered or unexported fields
}

func (*TickerBeatsResponse) Descriptor deprecated added in v0.19.10

func (*TickerBeatsResponse) Descriptor() ([]byte, []int)

Deprecated: Use TickerBeatsResponse.ProtoReflect.Descriptor instead.

func (*TickerBeatsResponse) GetBeats added in v0.19.10

func (x *TickerBeatsResponse) GetBeats() []*TradeBeats

func (*TickerBeatsResponse) ProtoMessage added in v0.19.10

func (*TickerBeatsResponse) ProtoMessage()

func (*TickerBeatsResponse) ProtoReflect added in v0.19.10

func (x *TickerBeatsResponse) ProtoReflect() protoreflect.Message

func (*TickerBeatsResponse) Reset added in v0.19.10

func (x *TickerBeatsResponse) Reset()

func (*TickerBeatsResponse) String added in v0.19.10

func (x *TickerBeatsResponse) String() string

type TickerBeatsServiceClient added in v0.19.0

type TickerBeatsServiceClient interface {
	GetTickerBeats(ctx context.Context, in *TickerBeatsRequest, opts ...grpc.CallOption) (*TickerBeatsResponse, error)
	GetTickerBeatsNotification(ctx context.Context, in *TickerBeatsRequest, opts ...grpc.CallOption) (*TickerBeatsResponse, error)
	ConfirmBeatsTransaction(ctx context.Context, in *TickerBeatsConfirmationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

TickerBeatsServiceClient is the client API for TickerBeatsService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewTickerBeatsServiceClient added in v0.19.0

func NewTickerBeatsServiceClient(cc grpc.ClientConnInterface) TickerBeatsServiceClient

type TickerBeatsServiceServer added in v0.19.0

type TickerBeatsServiceServer interface {
	GetTickerBeats(context.Context, *TickerBeatsRequest) (*TickerBeatsResponse, error)
	GetTickerBeatsNotification(context.Context, *TickerBeatsRequest) (*TickerBeatsResponse, error)
	ConfirmBeatsTransaction(context.Context, *TickerBeatsConfirmationRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

TickerBeatsServiceServer is the server API for TickerBeatsService service. All implementations must embed UnimplementedTickerBeatsServiceServer for forward compatibility

type TradeBeats added in v0.19.6

type TradeBeats struct {
	Signal       *Signal         `protobuf:"bytes,1,opt,name=signal,proto3" json:"signal,omitempty"`
	TradeRequest []*TradeRequest `protobuf:"bytes,2,rep,name=trade_request,json=tradeRequest,proto3" json:"trade_request,omitempty"`
	// contains filtered or unexported fields
}

******************* Response *******************

func (*TradeBeats) Descriptor deprecated added in v0.19.6

func (*TradeBeats) Descriptor() ([]byte, []int)

Deprecated: Use TradeBeats.ProtoReflect.Descriptor instead.

func (*TradeBeats) GetSignal added in v0.19.8

func (x *TradeBeats) GetSignal() *Signal

func (*TradeBeats) GetTradeRequest added in v0.19.6

func (x *TradeBeats) GetTradeRequest() []*TradeRequest

func (*TradeBeats) ProtoMessage added in v0.19.6

func (*TradeBeats) ProtoMessage()

func (*TradeBeats) ProtoReflect added in v0.19.6

func (x *TradeBeats) ProtoReflect() protoreflect.Message

func (*TradeBeats) Reset added in v0.19.6

func (x *TradeBeats) Reset()

func (*TradeBeats) String added in v0.19.6

func (x *TradeBeats) String() string

type TradeRequest

type TradeRequest struct {
	AccountId     int64               `protobuf:"varint,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`                                // Account ID
	OrderId       int64               `protobuf:"varint,2,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`                                      // Order ticket
	CreationOrder int64               `protobuf:"varint,3,opt,name=creation_order,json=creationOrder,proto3" json:"creation_order,omitempty"`                    // Creation order
	Action        TradeRequestActions `protobuf:"varint,4,opt,name=action,proto3,enum=tickerbeats.v1.TradeRequestActions" json:"action,omitempty"`               // Trade operation type
	Magic         int64               `protobuf:"varint,5,opt,name=magic,proto3" json:"magic,omitempty"`                                                         // Expert Advisor ID (magic number)
	Symbol        string              `protobuf:"bytes,6,opt,name=symbol,proto3" json:"symbol,omitempty"`                                                        // Trade symbol
	Volume        float64             `protobuf:"fixed64,7,opt,name=volume,proto3" json:"volume,omitempty"`                                                      // Requested volume for a deal in lots
	Price         float64             `protobuf:"fixed64,8,opt,name=price,proto3" json:"price,omitempty"`                                                        // Price
	StopLimit     float64             `protobuf:"fixed64,9,opt,name=stop_limit,json=stopLimit,proto3" json:"stop_limit,omitempty"`                               // Stop Limit level of the order
	StopLoss      float64             `protobuf:"fixed64,10,opt,name=stop_loss,json=stopLoss,proto3" json:"stop_loss,omitempty"`                                 // Stop Loss level of the order
	TakeProfit    float64             `protobuf:"fixed64,11,opt,name=take_profit,json=takeProfit,proto3" json:"take_profit,omitempty"`                           // Take Profit level of the order
	Deviation     int64               `protobuf:"varint,12,opt,name=deviation,proto3" json:"deviation,omitempty"`                                                // The maximal price deviation, specified in points
	OrderType     OrderType           `protobuf:"varint,13,opt,name=order_type,json=orderType,proto3,enum=tickerbeats.v1.OrderType" json:"order_type,omitempty"` // Order type
	TypeFilling   OrderFillingType    ``                                                                                                                         // Order execution type
	/* 133-byte string literal not displayed */
	TypeTime        OrderTypeTime   `protobuf:"varint,15,opt,name=type_time,json=typeTime,proto3,enum=tickerbeats.v1.OrderTypeTime" json:"type_time,omitempty"` // Order expiration type
	TimeExpiration  int64           `protobuf:"varint,16,opt,name=time_expiration,json=timeExpiration,proto3" json:"time_expiration,omitempty"`                 // Order expiration time (for the orders of ORDER_TIME_SPECIFIED type)
	Comment         string          `protobuf:"bytes,17,opt,name=comment,proto3" json:"comment,omitempty"`                                                      // Order comment
	PositionId      int64           `protobuf:"varint,18,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"`                             // TradeTransaction ticket
	PositionBy      int64           `protobuf:"varint,19,opt,name=position_by,json=positionBy,proto3" json:"position_by,omitempty"`                             // The ticket of an opposite tradetransaction
	Created         int64           `protobuf:"varint,20,opt,name=created,proto3" json:"created,omitempty"`
	Updated         int64           `protobuf:"varint,21,opt,name=updated,proto3" json:"updated,omitempty"`
	Deleted         int64           `protobuf:"varint,22,opt,name=deleted,proto3" json:"deleted,omitempty"`
	Entry           DealEntry       `protobuf:"varint,23,opt,name=entry,proto3,enum=tickerbeats.v1.DealEntry" json:"entry,omitempty"`                           // DealEntry: Deal entry - entry in, entry out, reverse
	TimeGMTOffset   int64           `protobuf:"varint,24,opt,name=TimeGMTOffset,proto3" json:"TimeGMTOffset,omitempty"`                                         // TimeGMTOffset: Time GMT Offset
	CopyTradeAction CopyTradeAction `protobuf:"varint,25,opt,name=CopyTradeAction,proto3,enum=tickerbeats.v1.CopyTradeAction" json:"CopyTradeAction,omitempty"` // CopyTradeAction: Copy trade action
	SignalID        int64           `protobuf:"varint,26,opt,name=SignalID,proto3" json:"SignalID,omitempty"`                                                   // Signal ID
	// contains filtered or unexported fields
}

TradeRequest: The Structure of a Trade Request

func (*TradeRequest) Descriptor deprecated

func (*TradeRequest) Descriptor() ([]byte, []int)

Deprecated: Use TradeRequest.ProtoReflect.Descriptor instead.

func (*TradeRequest) GetAccountId added in v0.20.0

func (x *TradeRequest) GetAccountId() int64

func (*TradeRequest) GetAction

func (x *TradeRequest) GetAction() TradeRequestActions

func (*TradeRequest) GetComment

func (x *TradeRequest) GetComment() string

func (*TradeRequest) GetCopyTradeAction added in v0.30.8

func (x *TradeRequest) GetCopyTradeAction() CopyTradeAction

func (*TradeRequest) GetCreated

func (x *TradeRequest) GetCreated() int64

func (*TradeRequest) GetCreationOrder added in v0.20.0

func (x *TradeRequest) GetCreationOrder() int64

func (*TradeRequest) GetDeleted

func (x *TradeRequest) GetDeleted() int64

func (*TradeRequest) GetDeviation

func (x *TradeRequest) GetDeviation() int64

func (*TradeRequest) GetEntry added in v0.22.5

func (x *TradeRequest) GetEntry() DealEntry

func (*TradeRequest) GetMagic

func (x *TradeRequest) GetMagic() int64

func (*TradeRequest) GetOrderId

func (x *TradeRequest) GetOrderId() int64

func (*TradeRequest) GetOrderType

func (x *TradeRequest) GetOrderType() OrderType

func (*TradeRequest) GetPositionBy

func (x *TradeRequest) GetPositionBy() int64

func (*TradeRequest) GetPositionId added in v0.20.0

func (x *TradeRequest) GetPositionId() int64

func (*TradeRequest) GetPrice

func (x *TradeRequest) GetPrice() float64

func (*TradeRequest) GetSignalID added in v0.30.8

func (x *TradeRequest) GetSignalID() int64

func (*TradeRequest) GetStopLimit added in v0.20.0

func (x *TradeRequest) GetStopLimit() float64

func (*TradeRequest) GetStopLoss

func (x *TradeRequest) GetStopLoss() float64

func (*TradeRequest) GetSymbol

func (x *TradeRequest) GetSymbol() string

func (*TradeRequest) GetTakeProfit

func (x *TradeRequest) GetTakeProfit() float64

func (*TradeRequest) GetTimeExpiration

func (x *TradeRequest) GetTimeExpiration() int64

func (*TradeRequest) GetTimeGMTOffset added in v0.22.6

func (x *TradeRequest) GetTimeGMTOffset() int64

func (*TradeRequest) GetTypeFilling

func (x *TradeRequest) GetTypeFilling() OrderFillingType

func (*TradeRequest) GetTypeTime

func (x *TradeRequest) GetTypeTime() OrderTypeTime

func (*TradeRequest) GetUpdated

func (x *TradeRequest) GetUpdated() int64

func (*TradeRequest) GetVolume

func (x *TradeRequest) GetVolume() float64

func (*TradeRequest) ProtoMessage

func (*TradeRequest) ProtoMessage()

func (*TradeRequest) ProtoReflect

func (x *TradeRequest) ProtoReflect() protoreflect.Message

func (*TradeRequest) Reset

func (x *TradeRequest) Reset()

func (*TradeRequest) String

func (x *TradeRequest) String() string

type TradeRequestActions

type TradeRequestActions int32

TradeRequestActions: Interaction between the client terminal and a trade server for executing the order placing operation is performed by using trade requests

const (
	TradeRequestActions_UNDEFINED_00_ACTION_DEAL TradeRequestActions = 0  // Should not be used
	TradeRequestActions_TRADE_ACTION_DEAL        TradeRequestActions = 1  // Place a trade order for an immediate execution with the specified parameters (market order)
	TradeRequestActions_UNDEFINED_01_ACTION_DEAL TradeRequestActions = 2  // Should not be used
	TradeRequestActions_UNDEFINED_02_ACTION_DEAL TradeRequestActions = 3  // Should not be used
	TradeRequestActions_UNDEFINED_03_ACTION_DEAL TradeRequestActions = 4  // Should not be used
	TradeRequestActions_TRADE_ACTION_PENDING     TradeRequestActions = 5  // Place a trade order for the execution under specified conditions (pending order)
	TradeRequestActions_TRADE_ACTION_SLTP        TradeRequestActions = 6  // Modify Stop Loss and Take Profit values of an opened position
	TradeRequestActions_TRADE_ACTION_MODIFY      TradeRequestActions = 7  // Modify the parameters of the order placed previously
	TradeRequestActions_TRADE_ACTION_REMOVE      TradeRequestActions = 8  // Delete the pending order placed previously
	TradeRequestActions_UNDEFINED_04_ACTION_DEAL TradeRequestActions = 9  // Should not be used
	TradeRequestActions_TRADE_ACTION_CLOSE_BY    TradeRequestActions = 10 // Close a position by an opposite one
)

func (TradeRequestActions) Descriptor

func (TradeRequestActions) Enum

func (TradeRequestActions) EnumDescriptor deprecated

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

Deprecated: Use TradeRequestActions.Descriptor instead.

func (TradeRequestActions) Number

func (TradeRequestActions) String

func (x TradeRequestActions) String() string

func (TradeRequestActions) Type

type TradeResult

type TradeResult struct {
	AccountId       int64   `protobuf:"varint,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`                    // Account ID
	OrderId         int64   `protobuf:"varint,2,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`                          // Order ticket, if it is placed
	CreationOrder   int64   `protobuf:"varint,3,opt,name=creation_order,json=creationOrder,proto3" json:"creation_order,omitempty"`        // Creation order
	Retcode         uint32  `protobuf:"varint,4,opt,name=retcode,proto3" json:"retcode,omitempty"`                                         // Operation return code
	DealId          int64   `protobuf:"varint,5,opt,name=deal_id,json=dealId,proto3" json:"deal_id,omitempty"`                             // Deal ticket, if it is performed
	Volume          float64 `protobuf:"fixed64,6,opt,name=volume,proto3" json:"volume,omitempty"`                                          // Deal volume, confirmed by broker
	Price           float64 `protobuf:"fixed64,7,opt,name=price,proto3" json:"price,omitempty"`                                            // Deal price, confirmed by broker
	Bid             float64 `protobuf:"fixed64,8,opt,name=bid,proto3" json:"bid,omitempty"`                                                // Current Bid price
	Ask             float64 `protobuf:"fixed64,9,opt,name=ask,proto3" json:"ask,omitempty"`                                                // Current Ask price
	Comment         string  `protobuf:"bytes,10,opt,name=comment,proto3" json:"comment,omitempty"`                                         // Broker comment to operation (by default it is filled by description of trade server return code)
	RequestId       uint32  `protobuf:"varint,11,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`                   // Request ID set by the terminal during the dispatch
	RetcodeExternal uint32  `protobuf:"varint,12,opt,name=retcode_external,json=retcodeExternal,proto3" json:"retcode_external,omitempty"` // Return code of an external trading system
	Created         int64   `protobuf:"varint,13,opt,name=created,proto3" json:"created,omitempty"`
	Updated         int64   `protobuf:"varint,14,opt,name=updated,proto3" json:"updated,omitempty"`
	Deleted         int64   `protobuf:"varint,15,opt,name=deleted,proto3" json:"deleted,omitempty"`
	// contains filtered or unexported fields
}

TradeResult: The Structure of a Trade Result

func (*TradeResult) Descriptor deprecated

func (*TradeResult) Descriptor() ([]byte, []int)

Deprecated: Use TradeResult.ProtoReflect.Descriptor instead.

func (*TradeResult) GetAccountId added in v0.20.0

func (x *TradeResult) GetAccountId() int64

func (*TradeResult) GetAsk

func (x *TradeResult) GetAsk() float64

func (*TradeResult) GetBid

func (x *TradeResult) GetBid() float64

func (*TradeResult) GetComment

func (x *TradeResult) GetComment() string

func (*TradeResult) GetCreated

func (x *TradeResult) GetCreated() int64

func (*TradeResult) GetCreationOrder added in v0.20.0

func (x *TradeResult) GetCreationOrder() int64

func (*TradeResult) GetDealId

func (x *TradeResult) GetDealId() int64

func (*TradeResult) GetDeleted

func (x *TradeResult) GetDeleted() int64

func (*TradeResult) GetOrderId

func (x *TradeResult) GetOrderId() int64

func (*TradeResult) GetPrice

func (x *TradeResult) GetPrice() float64

func (*TradeResult) GetRequestId

func (x *TradeResult) GetRequestId() uint32

func (*TradeResult) GetRetcode

func (x *TradeResult) GetRetcode() uint32

func (*TradeResult) GetRetcodeExternal

func (x *TradeResult) GetRetcodeExternal() uint32

func (*TradeResult) GetUpdated

func (x *TradeResult) GetUpdated() int64

func (*TradeResult) GetVolume

func (x *TradeResult) GetVolume() float64

func (*TradeResult) ProtoMessage

func (*TradeResult) ProtoMessage()

func (*TradeResult) ProtoReflect

func (x *TradeResult) ProtoReflect() protoreflect.Message

func (*TradeResult) Reset

func (x *TradeResult) Reset()

func (*TradeResult) String

func (x *TradeResult) String() string

type TradeTransaction

type TradeTransaction struct {
	AccountId     int64                `protobuf:"varint,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`             // Account ID
	OrderId       int64                `protobuf:"varint,2,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`                   // Order ticket
	CreationOrder int64                `protobuf:"varint,3,opt,name=creation_order,json=creationOrder,proto3" json:"creation_order,omitempty"` // Creation order
	DealId        int64                `protobuf:"varint,4,opt,name=deal_id,json=dealId,proto3" json:"deal_id,omitempty"`                      // Deal ticket
	Symbol        string               `protobuf:"bytes,5,opt,name=symbol,proto3" json:"symbol,omitempty"`                                     // Trade symbol name
	TradeType     TradeTransactionType ``                                                                                                      // Trade transaction type
	/* 130-byte string literal not displayed */
	OrderType       OrderType     `protobuf:"varint,7,opt,name=order_type,json=orderType,proto3,enum=tickerbeats.v1.OrderType" json:"order_type,omitempty"`     // Order type
	OrderState      OrderState    `protobuf:"varint,8,opt,name=order_state,json=orderState,proto3,enum=tickerbeats.v1.OrderState" json:"order_state,omitempty"` // Order state
	DealType        DealType      `protobuf:"varint,9,opt,name=deal_type,json=dealType,proto3,enum=tickerbeats.v1.DealType" json:"deal_type,omitempty"`         // Deal type
	TimeType        OrderTypeTime `protobuf:"varint,10,opt,name=time_type,json=timeType,proto3,enum=tickerbeats.v1.OrderTypeTime" json:"time_type,omitempty"`   // Order type by action period
	TimeExpiration  int64         `protobuf:"varint,11,opt,name=time_expiration,json=timeExpiration,proto3" json:"time_expiration,omitempty"`                   // Order expiration time
	Price           float64       `protobuf:"fixed64,12,opt,name=price,proto3" json:"price,omitempty"`                                                          // Price
	PriceTrigger    float64       `protobuf:"fixed64,13,opt,name=price_trigger,json=priceTrigger,proto3" json:"price_trigger,omitempty"`                        // Stop limit order activation price
	PriceStopLoss   float64       `protobuf:"fixed64,14,opt,name=price_stop_loss,json=priceStopLoss,proto3" json:"price_stop_loss,omitempty"`                   // Stop Loss level
	PriceTakeProfit float64       `protobuf:"fixed64,15,opt,name=price_take_profit,json=priceTakeProfit,proto3" json:"price_take_profit,omitempty"`             // Take Profit level
	Volume          float64       `protobuf:"fixed64,16,opt,name=volume,proto3" json:"volume,omitempty"`                                                        // Volume in lots
	PositionId      int64         `protobuf:"varint,17,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"`                               // Position ticket
	PositionBy      int64         `protobuf:"varint,18,opt,name=position_by,json=positionBy,proto3" json:"position_by,omitempty"`                               // Ticket of an opposite position
	Created         int64         `protobuf:"varint,19,opt,name=created,proto3" json:"created,omitempty"`
	Updated         int64         `protobuf:"varint,20,opt,name=updated,proto3" json:"updated,omitempty"`
	Deleted         int64         `protobuf:"varint,21,opt,name=deleted,proto3" json:"deleted,omitempty"`
	TimeGMTOffset   int64         `protobuf:"varint,22,opt,name=TimeGMTOffset,proto3" json:"TimeGMTOffset,omitempty"`
	InternalId      int32         `protobuf:"varint,23,opt,name=internal_id,json=internalId,proto3" json:"internal_id,omitempty"` // Internal ID
	// contains filtered or unexported fields
}

TradeTransaction: Structure of a Trade Transaction

func (*TradeTransaction) Descriptor deprecated

func (*TradeTransaction) Descriptor() ([]byte, []int)

Deprecated: Use TradeTransaction.ProtoReflect.Descriptor instead.

func (*TradeTransaction) GetAccountId added in v0.20.0

func (x *TradeTransaction) GetAccountId() int64

func (*TradeTransaction) GetCreated

func (x *TradeTransaction) GetCreated() int64

func (*TradeTransaction) GetCreationOrder added in v0.20.0

func (x *TradeTransaction) GetCreationOrder() int64

func (*TradeTransaction) GetDealId

func (x *TradeTransaction) GetDealId() int64

func (*TradeTransaction) GetDealType

func (x *TradeTransaction) GetDealType() DealType

func (*TradeTransaction) GetDeleted

func (x *TradeTransaction) GetDeleted() int64

func (*TradeTransaction) GetInternalId added in v0.24.3

func (x *TradeTransaction) GetInternalId() int32

func (*TradeTransaction) GetOrderId

func (x *TradeTransaction) GetOrderId() int64

func (*TradeTransaction) GetOrderState

func (x *TradeTransaction) GetOrderState() OrderState

func (*TradeTransaction) GetOrderType

func (x *TradeTransaction) GetOrderType() OrderType

func (*TradeTransaction) GetPositionBy

func (x *TradeTransaction) GetPositionBy() int64

func (*TradeTransaction) GetPositionId added in v0.20.0

func (x *TradeTransaction) GetPositionId() int64

func (*TradeTransaction) GetPrice

func (x *TradeTransaction) GetPrice() float64

func (*TradeTransaction) GetPriceStopLoss

func (x *TradeTransaction) GetPriceStopLoss() float64

func (*TradeTransaction) GetPriceTakeProfit

func (x *TradeTransaction) GetPriceTakeProfit() float64

func (*TradeTransaction) GetPriceTrigger

func (x *TradeTransaction) GetPriceTrigger() float64

func (*TradeTransaction) GetSymbol

func (x *TradeTransaction) GetSymbol() string

func (*TradeTransaction) GetTimeExpiration

func (x *TradeTransaction) GetTimeExpiration() int64

func (*TradeTransaction) GetTimeGMTOffset added in v0.22.6

func (x *TradeTransaction) GetTimeGMTOffset() int64

func (*TradeTransaction) GetTimeType

func (x *TradeTransaction) GetTimeType() OrderTypeTime

func (*TradeTransaction) GetTradeType

func (x *TradeTransaction) GetTradeType() TradeTransactionType

func (*TradeTransaction) GetUpdated

func (x *TradeTransaction) GetUpdated() int64

func (*TradeTransaction) GetVolume

func (x *TradeTransaction) GetVolume() float64

func (*TradeTransaction) ProtoMessage

func (*TradeTransaction) ProtoMessage()

func (*TradeTransaction) ProtoReflect

func (x *TradeTransaction) ProtoReflect() protoreflect.Message

func (*TradeTransaction) Reset

func (x *TradeTransaction) Reset()

func (*TradeTransaction) String

func (x *TradeTransaction) String() string

type TradeTransactionType

type TradeTransactionType int32

When performing some definite actions on a trade account, its state changes.

const (
	TradeTransactionType_TRADE_TRANSACTION_ORDER_ADD      TradeTransactionType = 0  // Adding a new open order.
	TradeTransactionType_TRADE_TRANSACTION_ORDER_UPDATE   TradeTransactionType = 1  // Updating an open order. The updates include not only evident changes from the client terminal or a trade server sides but also changes of an order state when setting it (for example, transition from ORDER_STATE_STARTED to ORDER_STATE_PLACED or from ORDER_STATE_PLACED to ORDER_STATE_PARTIAL, etc.).
	TradeTransactionType_TRADE_TRANSACTION_ORDER_DELETE   TradeTransactionType = 2  // Removing an order from the list of the open ones. An order can be deleted from the open ones as a result of setting an appropriate request or execution (filling) and moving to the history.
	TradeTransactionType_TRADE_TRANSACTION_HISTORY_ADD    TradeTransactionType = 3  // Adding an order to the history as a result of execution or cancellation.
	TradeTransactionType_TRADE_TRANSACTION_HISTORY_UPDATE TradeTransactionType = 4  // Changing an order located in the orders history. This type is provided for enhancing functionality on a trade server side.
	TradeTransactionType_TRADE_TRANSACTION_HISTORY_DELETE TradeTransactionType = 5  // Deleting an order from the orders history. This type is provided for enhancing functionality on a trade server side.
	TradeTransactionType_TRADE_TRANSACTION_DEAL_ADD       TradeTransactionType = 6  // Adding a deal to the history. The action is performed as a result of an order execution or performing operations with an account balance.
	TradeTransactionType_TRADE_TRANSACTION_DEAL_UPDATE    TradeTransactionType = 7  // Updating a deal in the history. There may be cases when a previously executed deal is changed on a server. For example, a deal has been changed in an external trading system (exchange) where it was previously transferred by a broker.
	TradeTransactionType_TRADE_TRANSACTION_DEAL_DELETE    TradeTransactionType = 8  // Deleting a deal from the history. There may be cases when a previously executed deal is deleted from a server. For example, a deal has been deleted in an external trading system (exchange) where it was previously transferred by a broker.
	TradeTransactionType_TRADE_TRANSACTION_POSITION       TradeTransactionType = 9  // Changing a position not related to a deal execution. This type of transaction shows that a position has been changed on a trade server side. Position volume, open price, Stop Loss and Take Profit levels can be changed. Data on changes are submitted in MqlTradeTransaction structure via OnTradeTransaction handler. Position change (adding, changing or closing), as a result of a deal execution, does not lead to the occurrence of TRADE_TRANSACTION_POSITION transaction.
	TradeTransactionType_TRADE_TRANSACTION_REQUEST        TradeTransactionType = 10 // Notification of the fact that a trade request has been processed by a server and processing result has been received. Only type field (trade transaction type) must be analyzed for such transactions in MqlTradeTransaction structure. The second and third parameters of OnTradeTransaction (request and result) must be analyzed for additional data.
)

func (TradeTransactionType) Descriptor

func (TradeTransactionType) Enum

func (TradeTransactionType) EnumDescriptor deprecated

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

Deprecated: Use TradeTransactionType.Descriptor instead.

func (TradeTransactionType) Number

func (TradeTransactionType) String

func (x TradeTransactionType) String() string

func (TradeTransactionType) Type

type TransactionsServiceClient added in v0.19.1

type TransactionsServiceClient interface {
	// Creates a new account
	CreateAccount(ctx context.Context, in *CreateAccountRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Creates a new deal
	CreateDeals(ctx context.Context, in *CreateDealsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Creates a new order
	CreateOrders(ctx context.Context, in *CreateOrdersRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Creates a new position
	CreatePositions(ctx context.Context, in *CreatePositionsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Creates a trade transation
	CreateTradeTransaction(ctx context.Context, in *CreateTradeTransactionRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

TransactionsServiceClient is the client API for TransactionsService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewTransactionsServiceClient added in v0.19.1

func NewTransactionsServiceClient(cc grpc.ClientConnInterface) TransactionsServiceClient

type TransactionsServiceServer added in v0.19.1

type TransactionsServiceServer interface {
	// Creates a new account
	CreateAccount(context.Context, *CreateAccountRequest) (*emptypb.Empty, error)
	// Creates a new deal
	CreateDeals(context.Context, *CreateDealsRequest) (*emptypb.Empty, error)
	// Creates a new order
	CreateOrders(context.Context, *CreateOrdersRequest) (*emptypb.Empty, error)
	// Creates a new position
	CreatePositions(context.Context, *CreatePositionsRequest) (*emptypb.Empty, error)
	// Creates a trade transation
	CreateTradeTransaction(context.Context, *CreateTradeTransactionRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

TransactionsServiceServer is the server API for TransactionsService service. All implementations must embed UnimplementedTransactionsServiceServer for forward compatibility

type UnimplementedTestingStatisticsServiceServer added in v0.24.2

type UnimplementedTestingStatisticsServiceServer struct {
}

UnimplementedTestingStatisticsServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedTestingStatisticsServiceServer) Create added in v0.24.2

type UnimplementedTickerBeatsServiceServer added in v0.19.0

type UnimplementedTickerBeatsServiceServer struct {
}

UnimplementedTickerBeatsServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedTickerBeatsServiceServer) ConfirmBeatsTransaction added in v0.22.0

func (UnimplementedTickerBeatsServiceServer) GetTickerBeats added in v0.19.3

func (UnimplementedTickerBeatsServiceServer) GetTickerBeatsNotification added in v0.31.1

type UnimplementedTransactionsServiceServer added in v0.19.1

type UnimplementedTransactionsServiceServer struct {
}

UnimplementedTransactionsServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedTransactionsServiceServer) CreateAccount added in v0.19.1

func (UnimplementedTransactionsServiceServer) CreateDeals added in v0.19.1

func (UnimplementedTransactionsServiceServer) CreateOrders added in v0.19.1

func (UnimplementedTransactionsServiceServer) CreatePositions added in v0.19.1

func (UnimplementedTransactionsServiceServer) CreateTradeTransaction added in v0.19.1

type UnsafeTestingStatisticsServiceServer added in v0.24.2

type UnsafeTestingStatisticsServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeTestingStatisticsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TestingStatisticsServiceServer will result in compilation errors.

type UnsafeTickerBeatsServiceServer added in v0.19.0

type UnsafeTickerBeatsServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeTickerBeatsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TickerBeatsServiceServer will result in compilation errors.

type UnsafeTransactionsServiceServer added in v0.19.1

type UnsafeTransactionsServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeTransactionsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TransactionsServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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