Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterTransactionsServiceServer(s grpc.ServiceRegistrar, srv TransactionsServiceServer)
- type Account
- func (*Account) Descriptor() ([]byte, []int)deprecated
- func (x *Account) GetAccountId() int64
- func (x *Account) GetActive() bool
- func (x *Account) GetCompany() string
- func (x *Account) GetCreatedAt() *timestamppb.Timestamp
- func (x *Account) GetCurrency() string
- func (x *Account) GetDeletedAt() *timestamppb.Timestamp
- func (x *Account) GetDescription() string
- func (x *Account) GetExchageAccountId() string
- func (x *Account) GetExchange() AccountExchange
- func (x *Account) GetLeverage() int32
- func (x *Account) GetLocalTimeGmtOffset() int32
- func (x *Account) GetMarginMode() AccountMarginMode
- func (x *Account) GetName() string
- func (x *Account) GetServer() string
- func (x *Account) GetServerTimeGmtOffset() int32
- func (x *Account) GetStopoutMode() AccountStopoutMode
- func (x *Account) GetTimeCurrent() int32
- func (x *Account) GetTimeGmt() int32
- func (x *Account) GetTimeLocal() int32
- func (x *Account) GetTimeTradeServer() int32
- func (x *Account) GetTradeAllowed() bool
- func (x *Account) GetTradeExpert() bool
- func (x *Account) GetTradeMode() AccountTradeMode
- func (x *Account) GetUpdatedAt() *timestamppb.Timestamp
- func (*Account) ProtoMessage()
- func (x *Account) ProtoReflect() protoreflect.Message
- func (x *Account) Reset()
- func (x *Account) String() string
- type AccountExchange
- func (AccountExchange) Descriptor() protoreflect.EnumDescriptor
- func (x AccountExchange) Enum() *AccountExchange
- func (AccountExchange) EnumDescriptor() ([]byte, []int)deprecated
- func (x AccountExchange) Number() protoreflect.EnumNumber
- func (x AccountExchange) String() string
- func (AccountExchange) Type() protoreflect.EnumType
- type AccountMarginMode
- func (AccountMarginMode) Descriptor() protoreflect.EnumDescriptor
- func (x AccountMarginMode) Enum() *AccountMarginMode
- func (AccountMarginMode) EnumDescriptor() ([]byte, []int)deprecated
- func (x AccountMarginMode) Number() protoreflect.EnumNumber
- func (x AccountMarginMode) String() string
- func (AccountMarginMode) Type() protoreflect.EnumType
- type AccountStopoutMode
- func (AccountStopoutMode) Descriptor() protoreflect.EnumDescriptor
- func (x AccountStopoutMode) Enum() *AccountStopoutMode
- func (AccountStopoutMode) EnumDescriptor() ([]byte, []int)deprecated
- func (x AccountStopoutMode) Number() protoreflect.EnumNumber
- func (x AccountStopoutMode) String() string
- func (AccountStopoutMode) Type() protoreflect.EnumType
- type AccountTradeMode
- func (AccountTradeMode) Descriptor() protoreflect.EnumDescriptor
- func (x AccountTradeMode) Enum() *AccountTradeMode
- func (AccountTradeMode) EnumDescriptor() ([]byte, []int)deprecated
- func (x AccountTradeMode) Number() protoreflect.EnumNumber
- func (x AccountTradeMode) String() string
- func (AccountTradeMode) Type() protoreflect.EnumType
- type CopyTradeAction
- func (CopyTradeAction) Descriptor() protoreflect.EnumDescriptor
- func (x CopyTradeAction) Enum() *CopyTradeAction
- func (CopyTradeAction) EnumDescriptor() ([]byte, []int)deprecated
- func (x CopyTradeAction) Number() protoreflect.EnumNumber
- func (x CopyTradeAction) String() string
- func (CopyTradeAction) Type() protoreflect.EnumType
- type CreateAccountRequest
- func (*CreateAccountRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateAccountRequest) GetAccount() *Account
- func (*CreateAccountRequest) ProtoMessage()
- func (x *CreateAccountRequest) ProtoReflect() protoreflect.Message
- func (x *CreateAccountRequest) Reset()
- func (x *CreateAccountRequest) String() string
- type CreateOrdersRequest
- func (*CreateOrdersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateOrdersRequest) GetAccountId() int64
- func (x *CreateOrdersRequest) GetAllItems() bool
- func (x *CreateOrdersRequest) GetOrders() []*Order
- func (*CreateOrdersRequest) ProtoMessage()
- func (x *CreateOrdersRequest) ProtoReflect() protoreflect.Message
- func (x *CreateOrdersRequest) Reset()
- func (x *CreateOrdersRequest) String() string
- type CreatePositionsRequest
- func (*CreatePositionsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreatePositionsRequest) GetAccountId() int64
- func (x *CreatePositionsRequest) GetAllItems() bool
- func (x *CreatePositionsRequest) GetPositions() []*Position
- func (x *CreatePositionsRequest) GetTimeGMT() int64
- func (*CreatePositionsRequest) ProtoMessage()
- func (x *CreatePositionsRequest) ProtoReflect() protoreflect.Message
- func (x *CreatePositionsRequest) Reset()
- func (x *CreatePositionsRequest) String() string
- type CreateTradeTransactionRequest
- func (*CreateTradeTransactionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateTradeTransactionRequest) GetAccountId() int64
- func (x *CreateTradeTransactionRequest) GetCreationOrder() int64
- func (x *CreateTradeTransactionRequest) GetTimeGMT() int64
- func (x *CreateTradeTransactionRequest) GetTradeRequest() *TradeRequest
- func (x *CreateTradeTransactionRequest) GetTradeResult() *TradeResult
- func (x *CreateTradeTransactionRequest) GetTradeTransaction() *TradeTransaction
- func (*CreateTradeTransactionRequest) ProtoMessage()
- func (x *CreateTradeTransactionRequest) ProtoReflect() protoreflect.Message
- func (x *CreateTradeTransactionRequest) Reset()
- func (x *CreateTradeTransactionRequest) String() string
- type CreateTransactionsRequest
- func (*CreateTransactionsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateTransactionsRequest) GetAccountId() int64
- func (x *CreateTransactionsRequest) GetAllItems() bool
- func (x *CreateTransactionsRequest) GetTransactions() []*Transaction
- func (*CreateTransactionsRequest) ProtoMessage()
- func (x *CreateTransactionsRequest) ProtoReflect() protoreflect.Message
- func (x *CreateTransactionsRequest) Reset()
- func (x *CreateTransactionsRequest) String() string
- type Order
- func (*Order) Descriptor() ([]byte, []int)deprecated
- func (x *Order) GetAccountId() int64
- func (x *Order) GetComment() string
- func (x *Order) GetCreatedAt() *timestamppb.Timestamp
- func (x *Order) GetDeletedAt() *timestamppb.Timestamp
- func (x *Order) GetExternalId() string
- func (x *Order) GetMagic() int64
- func (x *Order) GetOrderId() int64
- func (x *Order) GetOrderType() OrderType
- func (x *Order) GetPositionById() int64
- func (x *Order) GetPositionId() int64
- func (x *Order) GetPriceCurrent() float64
- func (x *Order) GetPriceOpen() float64
- func (x *Order) GetPriceStopLimit() float64
- func (x *Order) GetPriceTrigger() float64
- func (x *Order) GetState() OrderState
- func (x *Order) GetStopLoss() float64
- func (x *Order) GetSymbol() string
- func (x *Order) GetTakeProfit() float64
- func (x *Order) GetTimeDone() *timestamppb.Timestamp
- func (x *Order) GetTimeExpiration() *timestamppb.Timestamp
- func (x *Order) GetTimeSetup() *timestamppb.Timestamp
- func (x *Order) GetTransactionId() int64
- func (x *Order) GetTypeFilling() OrderFillingType
- func (x *Order) GetTypeTime() OrderTypeTime
- func (x *Order) GetUpdatedAt() *timestamppb.Timestamp
- func (x *Order) GetVolumeCurrent() float64
- func (x *Order) GetVolumeInitial() float64
- func (*Order) ProtoMessage()
- func (x *Order) ProtoReflect() protoreflect.Message
- func (x *Order) Reset()
- func (x *Order) String() string
- type OrderFillingType
- func (OrderFillingType) Descriptor() protoreflect.EnumDescriptor
- func (x OrderFillingType) Enum() *OrderFillingType
- func (OrderFillingType) EnumDescriptor() ([]byte, []int)deprecated
- func (x OrderFillingType) Number() protoreflect.EnumNumber
- func (x OrderFillingType) String() string
- func (OrderFillingType) Type() protoreflect.EnumType
- type OrderState
- type OrderType
- type OrderTypeTime
- func (OrderTypeTime) Descriptor() protoreflect.EnumDescriptor
- func (x OrderTypeTime) Enum() *OrderTypeTime
- func (OrderTypeTime) EnumDescriptor() ([]byte, []int)deprecated
- func (x OrderTypeTime) Number() protoreflect.EnumNumber
- func (x OrderTypeTime) String() string
- func (OrderTypeTime) Type() protoreflect.EnumType
- type PagedRequestOptions
- func (*PagedRequestOptions) Descriptor() ([]byte, []int)deprecated
- func (x *PagedRequestOptions) GetCursor() int64
- func (x *PagedRequestOptions) GetPageSize() int64
- func (*PagedRequestOptions) ProtoMessage()
- func (x *PagedRequestOptions) ProtoReflect() protoreflect.Message
- func (x *PagedRequestOptions) Reset()
- func (x *PagedRequestOptions) String() string
- type PagedResponseMetadata
- func (*PagedResponseMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *PagedResponseMetadata) GetHasMore() bool
- func (x *PagedResponseMetadata) GetNextCursor() int64
- func (*PagedResponseMetadata) ProtoMessage()
- func (x *PagedResponseMetadata) ProtoReflect() protoreflect.Message
- func (x *PagedResponseMetadata) Reset()
- func (x *PagedResponseMetadata) String() string
- type Position
- func (*Position) Descriptor() ([]byte, []int)deprecated
- func (x *Position) GetAccountId() int64
- func (x *Position) GetComment() string
- func (x *Position) GetCommission() float64
- func (x *Position) GetCreatedAt() *timestamppb.Timestamp
- func (x *Position) GetDeletedAt() *timestamppb.Timestamp
- func (x *Position) GetExternalId() string
- func (x *Position) GetMagic() int64
- func (x *Position) GetOrderId() int64
- func (x *Position) GetPositionId() int64
- func (x *Position) GetPositionTime() *timestamppb.Timestamp
- func (x *Position) GetPositionType() PositionType
- func (x *Position) GetPriceCurrent() float64
- func (x *Position) GetPriceOpen() float64
- func (x *Position) GetProfit() float64
- func (x *Position) GetStopLoss() float64
- func (x *Position) GetSwap() float64
- func (x *Position) GetSymbol() string
- func (x *Position) GetTakeProfit() float64
- func (x *Position) GetTransactionId() int64
- func (x *Position) GetUpdatedAt() *timestamppb.Timestamp
- func (x *Position) GetVolume() float64
- func (*Position) ProtoMessage()
- func (x *Position) ProtoReflect() protoreflect.Message
- func (x *Position) Reset()
- func (x *Position) String() string
- type PositionType
- func (PositionType) Descriptor() protoreflect.EnumDescriptor
- func (x PositionType) Enum() *PositionType
- func (PositionType) EnumDescriptor() ([]byte, []int)deprecated
- func (x PositionType) Number() protoreflect.EnumNumber
- func (x PositionType) String() string
- func (PositionType) Type() protoreflect.EnumType
- type TradeRequest
- func (*TradeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TradeRequest) GetAccountId() int64
- func (x *TradeRequest) GetAction() TradeRequestActions
- func (x *TradeRequest) GetComment() string
- func (x *TradeRequest) GetCopyTradeAction() CopyTradeAction
- func (x *TradeRequest) GetCreated() int64
- func (x *TradeRequest) GetCreatedAt() *timestamppb.Timestamp
- func (x *TradeRequest) GetCreationOrder() int64
- func (x *TradeRequest) GetDeleted() int64
- func (x *TradeRequest) GetDeviation() int64
- func (x *TradeRequest) GetEntry() TransactionEntry
- func (x *TradeRequest) GetMagic() int64
- func (x *TradeRequest) GetOrderId() int64
- func (x *TradeRequest) GetOrderType() OrderType
- func (x *TradeRequest) GetPositionBy() int64
- func (x *TradeRequest) GetPositionId() int64
- func (x *TradeRequest) GetPrice() float64
- func (x *TradeRequest) GetReason() TransactionReason
- func (x *TradeRequest) GetSignalID() int64
- func (x *TradeRequest) GetStopLimit() float64
- func (x *TradeRequest) GetStopLoss() float64
- func (x *TradeRequest) GetSymbol() string
- func (x *TradeRequest) GetTakeProfit() float64
- func (x *TradeRequest) GetTimeExpiration() int64
- func (x *TradeRequest) GetTimeGMTOffset() int64
- func (x *TradeRequest) GetTypeFilling() OrderFillingType
- func (x *TradeRequest) GetTypeTime() OrderTypeTime
- func (x *TradeRequest) GetUpdated() int64
- func (x *TradeRequest) GetUpdatedAt() *timestamppb.Timestamp
- func (x *TradeRequest) GetVolume() float64
- func (*TradeRequest) ProtoMessage()
- func (x *TradeRequest) ProtoReflect() protoreflect.Message
- func (x *TradeRequest) Reset()
- func (x *TradeRequest) String() string
- type TradeRequestActions
- func (TradeRequestActions) Descriptor() protoreflect.EnumDescriptor
- func (x TradeRequestActions) Enum() *TradeRequestActions
- func (TradeRequestActions) EnumDescriptor() ([]byte, []int)deprecated
- func (x TradeRequestActions) Number() protoreflect.EnumNumber
- func (x TradeRequestActions) String() string
- func (TradeRequestActions) Type() protoreflect.EnumType
- type TradeResult
- func (*TradeResult) Descriptor() ([]byte, []int)deprecated
- func (x *TradeResult) GetAccountId() int64
- func (x *TradeResult) GetAsk() float64
- func (x *TradeResult) GetBid() float64
- func (x *TradeResult) GetComment() string
- func (x *TradeResult) GetCreated() int64
- func (x *TradeResult) GetCreatedAt() *timestamppb.Timestamp
- func (x *TradeResult) GetCreationOrder() int64
- func (x *TradeResult) GetDeleted() int64
- func (x *TradeResult) GetOrderId() int64
- func (x *TradeResult) GetPrice() float64
- func (x *TradeResult) GetRequestId() uint32
- func (x *TradeResult) GetRetcode() uint32
- func (x *TradeResult) GetRetcodeExternal() uint32
- func (x *TradeResult) GetTransactionId() int64
- func (x *TradeResult) GetUpdated() int64
- func (x *TradeResult) GetUpdatedAt() *timestamppb.Timestamp
- func (x *TradeResult) GetVolume() float64
- func (*TradeResult) ProtoMessage()
- func (x *TradeResult) ProtoReflect() protoreflect.Message
- func (x *TradeResult) Reset()
- func (x *TradeResult) String() string
- type TradeTransaction
- func (*TradeTransaction) Descriptor() ([]byte, []int)deprecated
- func (x *TradeTransaction) GetAccountId() int64
- func (x *TradeTransaction) GetCreated() int64
- func (x *TradeTransaction) GetCreatedAt() *timestamppb.Timestamp
- func (x *TradeTransaction) GetCreationOrder() int64
- func (x *TradeTransaction) GetDeleted() int64
- func (x *TradeTransaction) GetInternalId() int32
- func (x *TradeTransaction) GetOrderId() int64
- func (x *TradeTransaction) GetOrderState() OrderState
- func (x *TradeTransaction) GetOrderType() OrderType
- func (x *TradeTransaction) GetPositionBy() int64
- func (x *TradeTransaction) GetPositionId() int64
- func (x *TradeTransaction) GetPrice() float64
- func (x *TradeTransaction) GetPriceStopLoss() float64
- func (x *TradeTransaction) GetPriceTakeProfit() float64
- func (x *TradeTransaction) GetPriceTrigger() float64
- func (x *TradeTransaction) GetReason() TransactionReason
- func (x *TradeTransaction) GetSymbol() string
- func (x *TradeTransaction) GetTimeExpiration() int64
- func (x *TradeTransaction) GetTimeGMTOffset() int64
- func (x *TradeTransaction) GetTimeType() OrderTypeTime
- func (x *TradeTransaction) GetTradeType() TradeTransactionType
- func (x *TradeTransaction) GetTransactionId() int64
- func (x *TradeTransaction) GetTransactionType() TransactionType
- func (x *TradeTransaction) GetUpdated() int64
- func (x *TradeTransaction) GetUpdatedAt() *timestamppb.Timestamp
- func (x *TradeTransaction) GetVolume() float64
- func (*TradeTransaction) ProtoMessage()
- func (x *TradeTransaction) ProtoReflect() protoreflect.Message
- func (x *TradeTransaction) Reset()
- func (x *TradeTransaction) String() string
- type TradeTransactionType
- func (TradeTransactionType) Descriptor() protoreflect.EnumDescriptor
- func (x TradeTransactionType) Enum() *TradeTransactionType
- func (TradeTransactionType) EnumDescriptor() ([]byte, []int)deprecated
- func (x TradeTransactionType) Number() protoreflect.EnumNumber
- func (x TradeTransactionType) String() string
- func (TradeTransactionType) Type() protoreflect.EnumType
- type Transaction
- func (*Transaction) Descriptor() ([]byte, []int)deprecated
- func (x *Transaction) GetAccountId() int64
- func (x *Transaction) GetComment() string
- func (x *Transaction) GetCommission() float64
- func (x *Transaction) GetCreatedAt() *timestamppb.Timestamp
- func (x *Transaction) GetDeletedAt() *timestamppb.Timestamp
- func (x *Transaction) GetEntry() TransactionEntry
- func (x *Transaction) GetExternalId() string
- func (x *Transaction) GetMagic() int64
- func (x *Transaction) GetOrderId() int64
- func (x *Transaction) GetPositionId() int64
- func (x *Transaction) GetPrice() float64
- func (x *Transaction) GetProfit() float64
- func (x *Transaction) GetReason() TransactionReason
- func (x *Transaction) GetSwap() float64
- func (x *Transaction) GetSymbol() string
- func (x *Transaction) GetTransactionId() int64
- func (x *Transaction) GetTransactionSeq() int64
- func (x *Transaction) GetTransactionTime() *timestamppb.Timestamp
- func (x *Transaction) GetTransactionType() TransactionType
- func (x *Transaction) GetUpdatedAt() *timestamppb.Timestamp
- func (x *Transaction) GetVolume() float64
- func (*Transaction) ProtoMessage()
- func (x *Transaction) ProtoReflect() protoreflect.Message
- func (x *Transaction) Reset()
- func (x *Transaction) String() string
- type TransactionEntry
- func (TransactionEntry) Descriptor() protoreflect.EnumDescriptor
- func (x TransactionEntry) Enum() *TransactionEntry
- func (TransactionEntry) EnumDescriptor() ([]byte, []int)deprecated
- func (x TransactionEntry) Number() protoreflect.EnumNumber
- func (x TransactionEntry) String() string
- func (TransactionEntry) Type() protoreflect.EnumType
- type TransactionReason
- func (TransactionReason) Descriptor() protoreflect.EnumDescriptor
- func (x TransactionReason) Enum() *TransactionReason
- func (TransactionReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x TransactionReason) Number() protoreflect.EnumNumber
- func (x TransactionReason) String() string
- func (TransactionReason) Type() protoreflect.EnumType
- type TransactionType
- func (TransactionType) Descriptor() protoreflect.EnumDescriptor
- func (x TransactionType) Enum() *TransactionType
- func (TransactionType) EnumDescriptor() ([]byte, []int)deprecated
- func (x TransactionType) Number() protoreflect.EnumNumber
- func (x TransactionType) String() string
- func (TransactionType) Type() protoreflect.EnumType
- type TransactionsServiceClient
- type TransactionsServiceServer
- type UnimplementedTransactionsServiceServer
- func (UnimplementedTransactionsServiceServer) CreateAccount(context.Context, *CreateAccountRequest) (*emptypb.Empty, error)
- func (UnimplementedTransactionsServiceServer) CreateOrders(context.Context, *CreateOrdersRequest) (*emptypb.Empty, error)
- func (UnimplementedTransactionsServiceServer) CreatePositions(context.Context, *CreatePositionsRequest) (*emptypb.Empty, error)
- func (UnimplementedTransactionsServiceServer) CreateTradeTransaction(context.Context, *CreateTradeTransactionRequest) (*emptypb.Empty, error)
- func (UnimplementedTransactionsServiceServer) CreateTransactions(context.Context, *CreateTransactionsRequest) (*emptypb.Empty, error)
- type UnsafeTransactionsServiceServer
Constants ¶
const ( TransactionsService_CreateAccount_FullMethodName = "/tickerbeats.v3.TransactionsService/CreateAccount" TransactionsService_CreateTransactions_FullMethodName = "/tickerbeats.v3.TransactionsService/CreateTransactions" TransactionsService_CreateOrders_FullMethodName = "/tickerbeats.v3.TransactionsService/CreateOrders" TransactionsService_CreatePositions_FullMethodName = "/tickerbeats.v3.TransactionsService/CreatePositions" TransactionsService_CreateTradeTransaction_FullMethodName = "/tickerbeats.v3.TransactionsService/CreateTradeTransaction" )
Variables ¶
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", } 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, } )
Enum value maps for AccountTradeMode.
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.
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.
var ( AccountExchange_name = map[int32]string{ 0: "ACCOUNT_EXCHANGE_BINANCE", 1: "ACCOUNT_EXCHANGE_DYDX", 2: "ACCOUNT_EXCHANGE_MEXC", } AccountExchange_value = map[string]int32{ "ACCOUNT_EXCHANGE_BINANCE": 0, "ACCOUNT_EXCHANGE_DYDX": 1, "ACCOUNT_EXCHANGE_MEXC": 2, } )
Enum value maps for AccountExchange.
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.
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.
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.
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.
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.
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.
var ( TradeRequestActions_name = map[int32]string{ 0: "UNDEFINED_00_ACTION_TRANSACTION", 1: "TRADE_ACTION_MARKET", 2: "UNDEFINED_01_ACTION_TRANSACTION", 3: "UNDEFINED_02_ACTION_TRANSACTION", 4: "UNDEFINED_03_ACTION_TRANSACTION", 5: "TRADE_ACTION_PENDING", 6: "TRADE_ACTION_SLTP", 7: "TRADE_ACTION_MODIFY", 8: "TRADE_ACTION_REMOVE", 9: "UNDEFINED_04_ACTION_TRANSACTION", 10: "TRADE_ACTION_CLOSE_BY", } TradeRequestActions_value = map[string]int32{ "UNDEFINED_00_ACTION_TRANSACTION": 0, "TRADE_ACTION_MARKET": 1, "UNDEFINED_01_ACTION_TRANSACTION": 2, "UNDEFINED_02_ACTION_TRANSACTION": 3, "UNDEFINED_03_ACTION_TRANSACTION": 4, "TRADE_ACTION_PENDING": 5, "TRADE_ACTION_SLTP": 6, "TRADE_ACTION_MODIFY": 7, "TRADE_ACTION_REMOVE": 8, "UNDEFINED_04_ACTION_TRANSACTION": 9, "TRADE_ACTION_CLOSE_BY": 10, } )
Enum value maps for TradeRequestActions.
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_TRANSACTION_ADD", 7: "TRADE_TRANSACTION_TRANSACTION_UPDATE", 8: "TRADE_TRANSACTION_TRANSACTION_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_TRANSACTION_ADD": 6, "TRADE_TRANSACTION_TRANSACTION_UPDATE": 7, "TRADE_TRANSACTION_TRANSACTION_DELETE": 8, "TRADE_TRANSACTION_POSITION": 9, "TRADE_TRANSACTION_REQUEST": 10, } )
Enum value maps for TradeTransactionType.
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.
var ( TradeRequestActions_name = map[int32]string{ 0: "UNDEFINED_00_ACTION_TRANSACTION", 1: "TRADE_ACTION_TRANSACTION", 2: "UNDEFINED_01_ACTION_TRANSACTION", 3: "UNDEFINED_02_ACTION_TRANSACTION", 4: "UNDEFINED_03_ACTION_TRANSACTION", 5: "TRADE_ACTION_PENDING", 6: "TRADE_ACTION_SLTP", 7: "TRADE_ACTION_MODIFY", 8: "TRADE_ACTION_REMOVE", 9: "UNDEFINED_04_ACTION_TRANSACTION", 10: "TRADE_ACTION_CLOSE_BY", } TradeRequestActions_value = map[string]int32{ "UNDEFINED_00_ACTION_TRANSACTION": 0, "TRADE_ACTION_TRANSACTION": 1, "UNDEFINED_01_ACTION_TRANSACTION": 2, "UNDEFINED_02_ACTION_TRANSACTION": 3, "UNDEFINED_03_ACTION_TRANSACTION": 4, "TRADE_ACTION_PENDING": 5, "TRADE_ACTION_SLTP": 6, "TRADE_ACTION_MODIFY": 7, "TRADE_ACTION_REMOVE": 8, "UNDEFINED_04_ACTION_TRANSACTION": 9, "TRADE_ACTION_CLOSE_BY": 10, } )
Enum value maps for TradeRequestActions.
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_TRANSACTION_ADD", 7: "TRADE_TRANSACTION_TRANSACTION_UPDATE", 8: "TRADE_TRANSACTION_TRANSACTION_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_TRANSACTION_ADD": 6, "TRADE_TRANSACTION_TRANSACTION_UPDATE": 7, "TRADE_TRANSACTION_TRANSACTION_DELETE": 8, "TRADE_TRANSACTION_POSITION": 9, "TRADE_TRANSACTION_REQUEST": 10, } )
Enum value maps for TradeTransactionType.
var ( TransactionType_name = map[int32]string{ 0: "TRANSACTION_TYPE_BUY", 1: "TRANSACTION_TYPE_SELL", 2: "TRANSACTION_TYPE_BALANCE", 3: "TRANSACTION_TYPE_CREDIT", 4: "TRANSACTION_TYPE_CHARGE", 5: "TRANSACTION_TYPE_CORRECTION", 6: "TRANSACTION_TYPE_BONUS", 7: "TRANSACTION_TYPE_COMMISSION", 8: "TRANSACTION_TYPE_COMMISSION_DAILY", 9: "TRANSACTION_TYPE_COMMISSION_MONTHLY", 10: "TRANSACTION_TYPE_COMMISSION_AGENT_DAILY", 11: "TRANSACTION_TYPE_COMMISSION_AGENT_MONTHLY", 12: "TRANSACTION_TYPE_INTEREST", 13: "TRANSACTION_TYPE_BUY_CANCELED", 14: "TRANSACTION_TYPE_SELL_CANCELED", 15: "TRANSACTION_DIVIDEND", 16: "TRANSACTION_DIVIDEND_FRANKED", 17: "TRANSACTION_TAX", } TransactionType_value = map[string]int32{ "TRANSACTION_TYPE_BUY": 0, "TRANSACTION_TYPE_SELL": 1, "TRANSACTION_TYPE_BALANCE": 2, "TRANSACTION_TYPE_CREDIT": 3, "TRANSACTION_TYPE_CHARGE": 4, "TRANSACTION_TYPE_CORRECTION": 5, "TRANSACTION_TYPE_BONUS": 6, "TRANSACTION_TYPE_COMMISSION": 7, "TRANSACTION_TYPE_COMMISSION_DAILY": 8, "TRANSACTION_TYPE_COMMISSION_MONTHLY": 9, "TRANSACTION_TYPE_COMMISSION_AGENT_DAILY": 10, "TRANSACTION_TYPE_COMMISSION_AGENT_MONTHLY": 11, "TRANSACTION_TYPE_INTEREST": 12, "TRANSACTION_TYPE_BUY_CANCELED": 13, "TRANSACTION_TYPE_SELL_CANCELED": 14, "TRANSACTION_DIVIDEND": 15, "TRANSACTION_DIVIDEND_FRANKED": 16, "TRANSACTION_TAX": 17, } )
Enum value maps for TransactionType.
var ( TransactionEntry_name = map[int32]string{ 0: "TRANSACTION_ENTRY_IN", 1: "TRANSACTION_ENTRY_OUT", 2: "TRANSACTION_ENTRY_INOUT", 3: "TRANSACTION_ENTRY_OUT_BY", } TransactionEntry_value = map[string]int32{ "TRANSACTION_ENTRY_IN": 0, "TRANSACTION_ENTRY_OUT": 1, "TRANSACTION_ENTRY_INOUT": 2, "TRANSACTION_ENTRY_OUT_BY": 3, } )
Enum value maps for TransactionEntry.
var ( TransactionReason_name = map[int32]string{ 0: "TRANSACTION_REASON_CLIENT", 1: "TRANSACTION_REASON_MOBILE", 2: "TRANSACTION_REASON_WEB", 3: "TRANSACTION_REASON_EXPERT", 4: "TRANSACTION_REASON_SL", 5: "TRANSACTION_REASON_TP", 6: "TRANSACTION_REASON_SO", 7: "TRANSACTION_REASON_ROLLOVER", 8: "TRANSACTION_REASON_VMARGIN", 9: "TRANSACTION_REASON_SPLIT", } TransactionReason_value = map[string]int32{ "TRANSACTION_REASON_CLIENT": 0, "TRANSACTION_REASON_MOBILE": 1, "TRANSACTION_REASON_WEB": 2, "TRANSACTION_REASON_EXPERT": 3, "TRANSACTION_REASON_SL": 4, "TRANSACTION_REASON_TP": 5, "TRANSACTION_REASON_SO": 6, "TRANSACTION_REASON_ROLLOVER": 7, "TRANSACTION_REASON_VMARGIN": 8, "TRANSACTION_REASON_SPLIT": 9, } )
Enum value maps for TransactionReason.
var File_account_proto protoreflect.FileDescriptor
var File_api_proto protoreflect.FileDescriptor
var File_order_proto protoreflect.FileDescriptor
var File_position_proto protoreflect.FileDescriptor
var File_trade_proto protoreflect.FileDescriptor
var File_tradetransaction_proto protoreflect.FileDescriptor
var File_transaction_proto protoreflect.FileDescriptor
var TransactionsService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "tickerbeats.v3.TransactionsService", HandlerType: (*TransactionsServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateAccount", Handler: _TransactionsService_CreateAccount_Handler, }, { MethodName: "CreateTransactions", Handler: _TransactionsService_CreateTransactions_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 RegisterTransactionsServiceServer ¶
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"` ExchageAccountId string `protobuf:"bytes,2,opt,name=exchage_account_id,json=exchageAccountId,proto3" json:"exchage_account_id,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` TradeMode AccountTradeMode `` /* 126-byte string literal not displayed */ Leverage int32 `protobuf:"varint,6,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,9,opt,name=trade_allowed,json=tradeAllowed,proto3" json:"trade_allowed,omitempty"` TradeExpert bool `protobuf:"varint,10,opt,name=trade_expert,json=tradeExpert,proto3" json:"trade_expert,omitempty"` Exchange AccountExchange `protobuf:"varint,11,opt,name=exchange,proto3,enum=tickerbeats.v3.AccountExchange" json:"exchange,omitempty"` Server string `protobuf:"bytes,12,opt,name=server,proto3" json:"server,omitempty"` Currency string `protobuf:"bytes,13,opt,name=currency,proto3" json:"currency,omitempty"` Company string `protobuf:"bytes,14,opt,name=company,proto3" json:"company,omitempty"` Active bool `protobuf:"varint,15,opt,name=active,proto3" json:"active,omitempty"` TimeTradeServer int32 `protobuf:"varint,16,opt,name=time_tradeServer,json=timeTradeServer,proto3" json:"time_tradeServer,omitempty"` TimeCurrent int32 `protobuf:"varint,17,opt,name=time_current,json=timeCurrent,proto3" json:"time_current,omitempty"` TimeLocal int32 `protobuf:"varint,18,opt,name=time_local,json=timeLocal,proto3" json:"time_local,omitempty"` TimeGmt int32 `protobuf:"varint,19,opt,name=time_gmt,json=timeGmt,proto3" json:"time_gmt,omitempty"` LocalTimeGmtOffset int32 `protobuf:"varint,20,opt,name=local_time_gmt_offset,json=localTimeGmtOffset,proto3" json:"local_time_gmt_offset,omitempty"` ServerTimeGmtOffset int32 `protobuf:"varint,21,opt,name=server_time_gmt_offset,json=serverTimeGmtOffset,proto3" json:"server_time_gmt_offset,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,97,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // Timestamp of creation UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,98,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // Timestamp of last update DeletedAt *timestamppb.Timestamp `protobuf:"bytes,99,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` // Timestamp of deletion // contains filtered or unexported fields }
Account: Account Properties
func (*Account) Descriptor
deprecated
func (*Account) GetAccountId ¶
func (*Account) GetCompany ¶
func (*Account) GetCreatedAt ¶ added in v0.32.3
func (x *Account) GetCreatedAt() *timestamppb.Timestamp
func (*Account) GetCurrency ¶
func (*Account) GetDeletedAt ¶ added in v0.32.3
func (x *Account) GetDeletedAt() *timestamppb.Timestamp
func (*Account) GetDescription ¶
func (*Account) GetExchageAccountId ¶ added in v0.32.3
func (*Account) GetExchange ¶ added in v0.32.1
func (x *Account) GetExchange() AccountExchange
func (*Account) GetLeverage ¶
func (*Account) GetLocalTimeGmtOffset ¶ added in v0.32.4
func (*Account) GetMarginMode ¶
func (x *Account) GetMarginMode() AccountMarginMode
func (*Account) GetServerTimeGmtOffset ¶ added in v0.32.4
func (*Account) GetStopoutMode ¶
func (x *Account) GetStopoutMode() AccountStopoutMode
func (*Account) GetTimeCurrent ¶
func (*Account) GetTimeGmt ¶ added in v0.32.3
func (*Account) GetTimeLocal ¶
func (*Account) GetTimeTradeServer ¶
func (*Account) GetTradeAllowed ¶
func (*Account) GetTradeExpert ¶
func (*Account) GetTradeMode ¶
func (x *Account) GetTradeMode() AccountTradeMode
func (*Account) GetUpdatedAt ¶ added in v0.32.3
func (x *Account) GetUpdatedAt() *timestamppb.Timestamp
func (*Account) ProtoMessage ¶
func (*Account) ProtoMessage()
func (*Account) ProtoReflect ¶
func (x *Account) ProtoReflect() protoreflect.Message
type AccountExchange ¶ added in v0.32.1
type AccountExchange int32
AccountExchange: Exchange account is associated with
const ( AccountExchange_ACCOUNT_EXCHANGE_BINANCE AccountExchange = 0 AccountExchange_ACCOUNT_EXCHANGE_DYDX AccountExchange = 1 AccountExchange_ACCOUNT_EXCHANGE_MEXC AccountExchange = 2 )
func (AccountExchange) Descriptor ¶ added in v0.32.1
func (AccountExchange) Descriptor() protoreflect.EnumDescriptor
func (AccountExchange) Enum ¶ added in v0.32.1
func (x AccountExchange) Enum() *AccountExchange
func (AccountExchange) EnumDescriptor
deprecated
added in
v0.32.1
func (AccountExchange) EnumDescriptor() ([]byte, []int)
Deprecated: Use AccountExchange.Descriptor instead.
func (AccountExchange) Number ¶ added in v0.32.1
func (x AccountExchange) Number() protoreflect.EnumNumber
func (AccountExchange) String ¶ added in v0.32.1
func (x AccountExchange) String() string
func (AccountExchange) Type ¶ added in v0.32.1
func (AccountExchange) Type() protoreflect.EnumType
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) Descriptor() protoreflect.EnumDescriptor
func (AccountMarginMode) Enum ¶
func (x AccountMarginMode) Enum() *AccountMarginMode
func (AccountMarginMode) EnumDescriptor
deprecated
func (AccountMarginMode) EnumDescriptor() ([]byte, []int)
Deprecated: Use AccountMarginMode.Descriptor instead.
func (AccountMarginMode) Number ¶
func (x AccountMarginMode) Number() protoreflect.EnumNumber
func (AccountMarginMode) String ¶
func (x AccountMarginMode) String() string
func (AccountMarginMode) Type ¶
func (AccountMarginMode) Type() protoreflect.EnumType
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) Descriptor() protoreflect.EnumDescriptor
func (AccountStopoutMode) Enum ¶
func (x AccountStopoutMode) Enum() *AccountStopoutMode
func (AccountStopoutMode) EnumDescriptor
deprecated
func (AccountStopoutMode) EnumDescriptor() ([]byte, []int)
Deprecated: Use AccountStopoutMode.Descriptor instead.
func (AccountStopoutMode) Number ¶
func (x AccountStopoutMode) Number() protoreflect.EnumNumber
func (AccountStopoutMode) String ¶
func (x AccountStopoutMode) String() string
func (AccountStopoutMode) Type ¶
func (AccountStopoutMode) Type() protoreflect.EnumType
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 )
func (AccountTradeMode) Descriptor ¶
func (AccountTradeMode) Descriptor() protoreflect.EnumDescriptor
func (AccountTradeMode) Enum ¶
func (x AccountTradeMode) Enum() *AccountTradeMode
func (AccountTradeMode) EnumDescriptor
deprecated
func (AccountTradeMode) EnumDescriptor() ([]byte, []int)
Deprecated: Use AccountTradeMode.Descriptor instead.
func (AccountTradeMode) Number ¶
func (x AccountTradeMode) Number() protoreflect.EnumNumber
func (AccountTradeMode) String ¶
func (x AccountTradeMode) String() string
func (AccountTradeMode) Type ¶
func (AccountTradeMode) Type() protoreflect.EnumType
type CopyTradeAction ¶
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 )
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 ¶
func (CopyTradeAction) Descriptor() protoreflect.EnumDescriptor
func (CopyTradeAction) Enum ¶
func (x CopyTradeAction) Enum() *CopyTradeAction
func (CopyTradeAction) EnumDescriptor
deprecated
func (CopyTradeAction) Number ¶
func (x CopyTradeAction) Number() protoreflect.EnumNumber
func (CopyTradeAction) String ¶
func (x CopyTradeAction) String() string
func (CopyTradeAction) Type ¶
func (CopyTradeAction) Type() protoreflect.EnumType
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 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 ¶
func (x *CreateOrdersRequest) GetAccountId() int64
func (*CreateOrdersRequest) GetAllItems ¶
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 ¶
func (x *CreatePositionsRequest) GetAllItems() bool
func (*CreatePositionsRequest) GetPositions ¶
func (x *CreatePositionsRequest) GetPositions() []*Position
func (*CreatePositionsRequest) GetTimeGMT ¶
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 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 ¶
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 (x *CreateTradeTransactionRequest) ProtoReflect() protoreflect.Message
func (*CreateTradeTransactionRequest) Reset ¶
func (x *CreateTradeTransactionRequest) Reset()
func (*CreateTradeTransactionRequest) String ¶
func (x *CreateTradeTransactionRequest) String() string
type CreateTransactionsRequest ¶ added in v0.32.4
type CreateTransactionsRequest struct { Transactions []*Transaction `protobuf:"bytes,1,rep,name=transactions,proto3" json:"transactions,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 (*CreateTransactionsRequest) Descriptor
deprecated
added in
v0.32.4
func (*CreateTransactionsRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateTransactionsRequest.ProtoReflect.Descriptor instead.
func (*CreateTransactionsRequest) GetAccountId ¶ added in v0.32.4
func (x *CreateTransactionsRequest) GetAccountId() int64
func (*CreateTransactionsRequest) GetAllItems ¶ added in v0.32.4
func (x *CreateTransactionsRequest) GetAllItems() bool
func (*CreateTransactionsRequest) GetTransactions ¶ added in v0.32.4
func (x *CreateTransactionsRequest) GetTransactions() []*Transaction
func (*CreateTransactionsRequest) ProtoMessage ¶ added in v0.32.4
func (*CreateTransactionsRequest) ProtoMessage()
func (*CreateTransactionsRequest) ProtoReflect ¶ added in v0.32.4
func (x *CreateTransactionsRequest) ProtoReflect() protoreflect.Message
func (*CreateTransactionsRequest) Reset ¶ added in v0.32.4
func (x *CreateTransactionsRequest) Reset()
func (*CreateTransactionsRequest) String ¶ added in v0.32.4
func (x *CreateTransactionsRequest) String() string
type Order ¶
type Order struct { AccountId int64 `protobuf:"varint,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` TransactionId int64 `protobuf:"varint,2,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` OrderId int64 `protobuf:"varint,3,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` PositionId int64 `protobuf:"varint,4,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` ExternalId string `protobuf:"bytes,5,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"` Symbol string `protobuf:"bytes,6,opt,name=symbol,proto3" json:"symbol,omitempty"` TimeSetup *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=time_setup,json=timeSetup,proto3" json:"time_setup,omitempty"` OrderType OrderType `protobuf:"varint,8,opt,name=order_type,json=orderType,proto3,enum=tickerbeats.v3.OrderType" json:"order_type,omitempty"` State OrderState `protobuf:"varint,9,opt,name=state,proto3,enum=tickerbeats.v3.OrderState" json:"state,omitempty"` TimeExpiration *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=time_expiration,json=timeExpiration,proto3" json:"time_expiration,omitempty"` TimeDone *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=time_done,json=timeDone,proto3" json:"time_done,omitempty"` TypeFilling OrderFillingType `` /* 133-byte string literal not displayed */ TypeTime OrderTypeTime `protobuf:"varint,13,opt,name=type_time,json=typeTime,proto3,enum=tickerbeats.v3.OrderTypeTime" json:"type_time,omitempty"` VolumeInitial float64 `protobuf:"fixed64,14,opt,name=volume_initial,json=volumeInitial,proto3" json:"volume_initial,omitempty"` VolumeCurrent float64 `protobuf:"fixed64,15,opt,name=volume_current,json=volumeCurrent,proto3" json:"volume_current,omitempty"` PriceOpen float64 `protobuf:"fixed64,16,opt,name=price_open,json=priceOpen,proto3" json:"price_open,omitempty"` PriceTrigger float64 `protobuf:"fixed64,17,opt,name=price_trigger,json=priceTrigger,proto3" json:"price_trigger,omitempty"` // Stop limit order activation price 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"` Magic int64 `protobuf:"varint,22,opt,name=magic,proto3" json:"magic,omitempty"` Comment string `protobuf:"bytes,23,opt,name=comment,proto3" json:"comment,omitempty"` PositionById int64 `protobuf:"varint,24,opt,name=position_by_id,json=positionById,proto3" json:"position_by_id,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,97,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // Timestamp of creation UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,98,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // Timestamp of last update DeletedAt *timestamppb.Timestamp `protobuf:"bytes,99,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` // Timestamp of deletion // contains filtered or unexported fields }
Order represents an trade order
func (*Order) Descriptor
deprecated
func (*Order) GetAccountId ¶
func (*Order) GetComment ¶
func (*Order) GetCreatedAt ¶ added in v0.32.4
func (x *Order) GetCreatedAt() *timestamppb.Timestamp
func (*Order) GetDeletedAt ¶ added in v0.32.4
func (x *Order) GetDeletedAt() *timestamppb.Timestamp
func (*Order) GetExternalId ¶
func (*Order) GetOrderId ¶
func (*Order) GetOrderType ¶
func (*Order) GetPositionById ¶
func (*Order) GetPositionId ¶
func (*Order) GetPriceCurrent ¶
func (*Order) GetPriceOpen ¶
func (*Order) GetPriceStopLimit ¶
func (*Order) GetPriceTrigger ¶ added in v0.32.4
func (*Order) GetState ¶
func (x *Order) GetState() OrderState
func (*Order) GetStopLoss ¶
func (*Order) GetTakeProfit ¶
func (*Order) GetTimeDone ¶
func (x *Order) GetTimeDone() *timestamppb.Timestamp
func (*Order) GetTimeExpiration ¶
func (x *Order) GetTimeExpiration() *timestamppb.Timestamp
func (*Order) GetTimeSetup ¶
func (x *Order) GetTimeSetup() *timestamppb.Timestamp
func (*Order) GetTransactionId ¶ added in v0.32.4
func (*Order) GetTypeFilling ¶
func (x *Order) GetTypeFilling() OrderFillingType
func (*Order) GetTypeTime ¶
func (x *Order) GetTypeTime() OrderTypeTime
func (*Order) GetUpdatedAt ¶ added in v0.32.4
func (x *Order) GetUpdatedAt() *timestamppb.Timestamp
func (*Order) GetVolumeCurrent ¶
func (*Order) GetVolumeInitial ¶
func (*Order) ProtoMessage ¶
func (*Order) ProtoMessage()
func (*Order) ProtoReflect ¶
func (x *Order) ProtoReflect() protoreflect.Message
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 transaction 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) Descriptor() protoreflect.EnumDescriptor
func (OrderFillingType) Enum ¶
func (x OrderFillingType) Enum() *OrderFillingType
func (OrderFillingType) EnumDescriptor
deprecated
func (OrderFillingType) EnumDescriptor() ([]byte, []int)
Deprecated: Use OrderFillingType.Descriptor instead.
func (OrderFillingType) Number ¶
func (x OrderFillingType) Number() protoreflect.EnumNumber
func (OrderFillingType) String ¶
func (x OrderFillingType) String() string
func (OrderFillingType) Type ¶
func (OrderFillingType) Type() protoreflect.EnumType
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 ¶
func (OrderState) Type() protoreflect.EnumType
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) EnumDescriptor
deprecated
func (OrderType) Number ¶
func (x OrderType) Number() protoreflect.EnumNumber
func (OrderType) Type ¶
func (OrderType) Type() protoreflect.EnumType
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) Descriptor() protoreflect.EnumDescriptor
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 (x OrderTypeTime) Number() protoreflect.EnumNumber
func (OrderTypeTime) String ¶
func (x OrderTypeTime) String() string
func (OrderTypeTime) Type ¶
func (OrderTypeTime) Type() protoreflect.EnumType
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 { AccountId int64 `protobuf:"varint,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` TransactionId int64 `protobuf:"varint,2,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` OrderId int64 `protobuf:"varint,3,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` PositionId int64 `protobuf:"varint,4,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` ExternalId string `protobuf:"bytes,5,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"` Symbol string `protobuf:"bytes,6,opt,name=symbol,proto3" json:"symbol,omitempty"` PositionTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=position_time,json=positionTime,proto3" json:"position_time,omitempty"` PositionType PositionType `` /* 131-byte string literal not displayed */ Volume float64 `protobuf:"fixed64,9,opt,name=volume,proto3" json:"volume,omitempty"` PriceOpen float64 `protobuf:"fixed64,10,opt,name=price_open,json=priceOpen,proto3" json:"price_open,omitempty"` StopLoss float64 `protobuf:"fixed64,11,opt,name=stop_loss,json=stopLoss,proto3" json:"stop_loss,omitempty"` TakeProfit float64 `protobuf:"fixed64,12,opt,name=take_profit,json=takeProfit,proto3" json:"take_profit,omitempty"` PriceCurrent float64 `protobuf:"fixed64,13,opt,name=price_current,json=priceCurrent,proto3" json:"price_current,omitempty"` Commission float64 `protobuf:"fixed64,14,opt,name=commission,proto3" json:"commission,omitempty"` Swap float64 `protobuf:"fixed64,15,opt,name=swap,proto3" json:"swap,omitempty"` Profit float64 `protobuf:"fixed64,16,opt,name=profit,proto3" json:"profit,omitempty"` Comment string `protobuf:"bytes,17,opt,name=comment,proto3" json:"comment,omitempty"` Magic int64 `protobuf:"varint,18,opt,name=magic,proto3" json:"magic,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,97,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // Timestamp of creation UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,98,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // Timestamp of last update DeletedAt *timestamppb.Timestamp `protobuf:"bytes,99,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` // Timestamp of deletion // contains filtered or unexported fields }
Position: Execution of trade operations results in the opening of a position
func (*Position) Descriptor
deprecated
func (*Position) GetAccountId ¶
func (*Position) GetComment ¶
func (*Position) GetCommission ¶
func (*Position) GetCreatedAt ¶ added in v0.32.4
func (x *Position) GetCreatedAt() *timestamppb.Timestamp
func (*Position) GetDeletedAt ¶ added in v0.32.4
func (x *Position) GetDeletedAt() *timestamppb.Timestamp
func (*Position) GetExternalId ¶
func (*Position) GetOrderId ¶ added in v0.32.4
func (*Position) GetPositionId ¶
func (*Position) GetPositionTime ¶
func (x *Position) GetPositionTime() *timestamppb.Timestamp
func (*Position) GetPositionType ¶
func (x *Position) GetPositionType() PositionType
func (*Position) GetPriceCurrent ¶
func (*Position) GetPriceOpen ¶
func (*Position) GetStopLoss ¶
func (*Position) GetTakeProfit ¶
func (*Position) GetTransactionId ¶ added in v0.32.4
func (*Position) GetUpdatedAt ¶ added in v0.32.4
func (x *Position) GetUpdatedAt() *timestamppb.Timestamp
func (*Position) ProtoMessage ¶
func (*Position) ProtoMessage()
func (*Position) ProtoReflect ¶
func (x *Position) ProtoReflect() protoreflect.Message
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) Descriptor() protoreflect.EnumDescriptor
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 (x PositionType) Number() protoreflect.EnumNumber
func (PositionType) String ¶
func (x PositionType) String() string
func (PositionType) Type ¶
func (PositionType) Type() protoreflect.EnumType
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.v3.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 transaction 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.v3.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.v3.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 TransactionEntry `protobuf:"varint,23,opt,name=entry,proto3,enum=tickerbeats.v3.TransactionEntry" json:"entry,omitempty"` // TransactionEntry: Transaction 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.v3.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) GetAccountId ¶
func (x *TradeRequest) GetAccountId() int64
func (*TradeRequest) GetAction ¶
func (x *TradeRequest) GetAction() TradeRequestActions
func (*TradeRequest) GetComment ¶
func (x *TradeRequest) GetComment() string
func (*TradeRequest) GetCopyTradeAction ¶
func (x *TradeRequest) GetCopyTradeAction() CopyTradeAction
func (*TradeRequest) GetCreated ¶
func (x *TradeRequest) GetCreated() int64
func (*TradeRequest) GetCreatedAt ¶ added in v0.32.5
func (x *TradeRequest) GetCreatedAt() *timestamppb.Timestamp
func (*TradeRequest) GetCreationOrder ¶
func (x *TradeRequest) GetCreationOrder() int64
func (*TradeRequest) GetDeleted ¶
func (x *TradeRequest) GetDeleted() int64
func (*TradeRequest) GetDeviation ¶
func (x *TradeRequest) GetDeviation() int64
func (*TradeRequest) GetEntry ¶
func (x *TradeRequest) GetEntry() TransactionEntry
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 ¶
func (x *TradeRequest) GetPositionId() int64
func (*TradeRequest) GetPrice ¶
func (x *TradeRequest) GetPrice() float64
func (*TradeRequest) GetReason ¶ added in v0.32.5
func (x *TradeRequest) GetReason() TransactionReason
func (*TradeRequest) GetSignalID ¶
func (x *TradeRequest) GetSignalID() int64
func (*TradeRequest) GetStopLimit ¶
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 ¶
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) GetUpdatedAt ¶ added in v0.32.5
func (x *TradeRequest) GetUpdatedAt() *timestamppb.Timestamp
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_TRANSACTION TradeRequestActions = 0 // Should not be used TradeRequestActions_TRADE_ACTION_MARKET TradeRequestActions = 1 // Place a trade order for an immediate execution with the specified parameters (market order) TradeRequestActions_UNDEFINED_01_ACTION_TRANSACTION TradeRequestActions = 2 // Should not be used TradeRequestActions_UNDEFINED_02_ACTION_TRANSACTION TradeRequestActions = 3 // Should not be used TradeRequestActions_UNDEFINED_03_ACTION_TRANSACTION 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_TRANSACTION TradeRequestActions = 9 // Should not be used TradeRequestActions_TRADE_ACTION_CLOSE_BY TradeRequestActions = 10 // Close a position by an opposite one )
const ( TradeRequestActions_UNDEFINED_00_ACTION_TRANSACTION TradeRequestActions = 0 // Should not be used TradeRequestActions_TRADE_ACTION_TRANSACTION TradeRequestActions = 1 // Place a trade order for an immediate execution with the specified parameters (market order) TradeRequestActions_UNDEFINED_01_ACTION_TRANSACTION TradeRequestActions = 2 // Should not be used TradeRequestActions_UNDEFINED_02_ACTION_TRANSACTION TradeRequestActions = 3 // Should not be used TradeRequestActions_UNDEFINED_03_ACTION_TRANSACTION 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_TRANSACTION 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) Descriptor() protoreflect.EnumDescriptor
func (TradeRequestActions) Enum ¶
func (x TradeRequestActions) Enum() *TradeRequestActions
func (TradeRequestActions) EnumDescriptor
deprecated
func (TradeRequestActions) Number ¶
func (x TradeRequestActions) Number() protoreflect.EnumNumber
func (TradeRequestActions) String ¶
func (x TradeRequestActions) String() string
func (TradeRequestActions) Type ¶
func (TradeRequestActions) Type() protoreflect.EnumType
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 TransactionId int64 `protobuf:"varint,5,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` // Transaction ticket, if it is performed Volume float64 `protobuf:"fixed64,6,opt,name=volume,proto3" json:"volume,omitempty"` // Transaction volume, confirmed by broker Price float64 `protobuf:"fixed64,7,opt,name=price,proto3" json:"price,omitempty"` // Transaction 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) GetAccountId ¶
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) GetCreatedAt ¶ added in v0.32.5
func (x *TradeResult) GetCreatedAt() *timestamppb.Timestamp
func (*TradeResult) GetCreationOrder ¶
func (x *TradeResult) GetCreationOrder() 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) GetTransactionId ¶ added in v0.32.4
func (x *TradeResult) GetTransactionId() int64
func (*TradeResult) GetUpdated ¶
func (x *TradeResult) GetUpdated() int64
func (*TradeResult) GetUpdatedAt ¶ added in v0.32.5
func (x *TradeResult) GetUpdatedAt() *timestamppb.Timestamp
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 TransactionId int64 `protobuf:"varint,4,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` // Transaction 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.v3.OrderType" json:"order_type,omitempty"` // Order type OrderState OrderState `protobuf:"varint,8,opt,name=order_state,json=orderState,proto3,enum=tickerbeats.v3.OrderState" json:"order_state,omitempty"` // Order state TransactionType TransactionType `` // Transaction type /* 143-byte string literal not displayed */ TimeType OrderTypeTime `protobuf:"varint,10,opt,name=time_type,json=timeType,proto3,enum=tickerbeats.v3.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) GetAccountId ¶
func (x *TradeTransaction) GetAccountId() int64
func (*TradeTransaction) GetCreated ¶
func (x *TradeTransaction) GetCreated() int64
func (*TradeTransaction) GetCreatedAt ¶ added in v0.32.5
func (x *TradeTransaction) GetCreatedAt() *timestamppb.Timestamp
func (*TradeTransaction) GetCreationOrder ¶
func (x *TradeTransaction) GetCreationOrder() int64
func (*TradeTransaction) GetDeleted ¶
func (x *TradeTransaction) GetDeleted() int64
func (*TradeTransaction) GetInternalId ¶
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 ¶
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) GetReason ¶ added in v0.32.6
func (x *TradeTransaction) GetReason() TransactionReason
func (*TradeTransaction) GetSymbol ¶
func (x *TradeTransaction) GetSymbol() string
func (*TradeTransaction) GetTimeExpiration ¶
func (x *TradeTransaction) GetTimeExpiration() int64
func (*TradeTransaction) GetTimeGMTOffset ¶
func (x *TradeTransaction) GetTimeGMTOffset() int64
func (*TradeTransaction) GetTimeType ¶
func (x *TradeTransaction) GetTimeType() OrderTypeTime
func (*TradeTransaction) GetTradeType ¶
func (x *TradeTransaction) GetTradeType() TradeTransactionType
func (*TradeTransaction) GetTransactionId ¶ added in v0.32.4
func (x *TradeTransaction) GetTransactionId() int64
func (*TradeTransaction) GetTransactionType ¶ added in v0.32.4
func (x *TradeTransaction) GetTransactionType() TransactionType
func (*TradeTransaction) GetUpdated ¶
func (x *TradeTransaction) GetUpdated() int64
func (*TradeTransaction) GetUpdatedAt ¶ added in v0.32.5
func (x *TradeTransaction) GetUpdatedAt() *timestamppb.Timestamp
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_TRANSACTION_ADD TradeTransactionType = 6 // Adding a transaction to the history. The action is performed as a result of an order execution or performing operations with an account balance. TradeTransactionType_TRADE_TRANSACTION_TRANSACTION_UPDATE TradeTransactionType = 7 // Updating a transaction in the history. There may be cases when a previously executed transaction is changed on a server. For example, a transaction has been changed in an external trading system (exchange) where it was previously transferred by a broker. TradeTransactionType_TRADE_TRANSACTION_TRANSACTION_DELETE TradeTransactionType = 8 // Deleting a transaction from the history. There may be cases when a previously executed transaction is deleted from a server. For example, a transaction 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 transaction 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 transaction 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. )
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_TRANSACTION_ADD TradeTransactionType = 6 // Adding a transaction to the history. The action is performed as a result of an order execution or performing operations with an account balance. TradeTransactionType_TRADE_TRANSACTION_TRANSACTION_UPDATE TradeTransactionType = 7 // Updating a transaction in the history. There may be cases when a previously executed transaction is changed on a server. For example, a transaction has been changed in an external trading system (exchange) where it was previously transferred by a broker. TradeTransactionType_TRADE_TRANSACTION_TRANSACTION_DELETE TradeTransactionType = 8 // Deleting a transaction from the history. There may be cases when a previously executed transaction is deleted from a server. For example, a transaction 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 transaction 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 transaction 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) Descriptor() protoreflect.EnumDescriptor
func (TradeTransactionType) Enum ¶
func (x TradeTransactionType) Enum() *TradeTransactionType
func (TradeTransactionType) EnumDescriptor
deprecated
func (TradeTransactionType) Number ¶
func (x TradeTransactionType) Number() protoreflect.EnumNumber
func (TradeTransactionType) String ¶
func (x TradeTransactionType) String() string
func (TradeTransactionType) Type ¶
func (TradeTransactionType) Type() protoreflect.EnumType
type Transaction ¶ added in v0.32.4
type Transaction struct { AccountId int64 `protobuf:"varint,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` TransactionId int64 `protobuf:"varint,2,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` TransactionSeq int64 `protobuf:"varint,3,opt,name=transaction_seq,json=transactionSeq,proto3" json:"transaction_seq,omitempty"` OrderId int64 `protobuf:"varint,4,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` PositionId int64 `protobuf:"varint,5,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty"` ExternalId string `protobuf:"bytes,6,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"` Symbol string `protobuf:"bytes,7,opt,name=symbol,proto3" json:"symbol,omitempty"` TransactionTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=transaction_time,json=transactionTime,proto3" json:"transaction_time,omitempty"` TransactionType TransactionType `` /* 143-byte string literal not displayed */ Entry TransactionEntry `protobuf:"varint,10,opt,name=entry,proto3,enum=tickerbeats.v3.TransactionEntry" json:"entry,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"` Magic int64 `protobuf:"varint,17,opt,name=magic,proto3" json:"magic,omitempty"` Reason TransactionReason `protobuf:"varint,18,opt,name=reason,proto3,enum=tickerbeats.v3.TransactionReason" json:"reason,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,97,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // Timestamp of creation UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,98,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // Timestamp of last update DeletedAt *timestamppb.Timestamp `protobuf:"bytes,99,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` // Timestamp of deletion // contains filtered or unexported fields }
Transaction: A transaction is the reflection of the fact of a trade operation execution based on an order that contains a trade request
func (*Transaction) Descriptor
deprecated
added in
v0.32.4
func (*Transaction) Descriptor() ([]byte, []int)
Deprecated: Use Transaction.ProtoReflect.Descriptor instead.
func (*Transaction) GetAccountId ¶ added in v0.32.4
func (x *Transaction) GetAccountId() int64
func (*Transaction) GetComment ¶ added in v0.32.4
func (x *Transaction) GetComment() string
func (*Transaction) GetCommission ¶ added in v0.32.4
func (x *Transaction) GetCommission() float64
func (*Transaction) GetCreatedAt ¶ added in v0.32.4
func (x *Transaction) GetCreatedAt() *timestamppb.Timestamp
func (*Transaction) GetDeletedAt ¶ added in v0.32.4
func (x *Transaction) GetDeletedAt() *timestamppb.Timestamp
func (*Transaction) GetEntry ¶ added in v0.32.4
func (x *Transaction) GetEntry() TransactionEntry
func (*Transaction) GetExternalId ¶ added in v0.32.4
func (x *Transaction) GetExternalId() string
func (*Transaction) GetMagic ¶ added in v0.32.4
func (x *Transaction) GetMagic() int64
func (*Transaction) GetOrderId ¶ added in v0.32.4
func (x *Transaction) GetOrderId() int64
func (*Transaction) GetPositionId ¶ added in v0.32.4
func (x *Transaction) GetPositionId() int64
func (*Transaction) GetPrice ¶ added in v0.32.4
func (x *Transaction) GetPrice() float64
func (*Transaction) GetProfit ¶ added in v0.32.4
func (x *Transaction) GetProfit() float64
func (*Transaction) GetReason ¶ added in v0.32.4
func (x *Transaction) GetReason() TransactionReason
func (*Transaction) GetSwap ¶ added in v0.32.4
func (x *Transaction) GetSwap() float64
func (*Transaction) GetSymbol ¶ added in v0.32.4
func (x *Transaction) GetSymbol() string
func (*Transaction) GetTransactionId ¶ added in v0.32.4
func (x *Transaction) GetTransactionId() int64
func (*Transaction) GetTransactionSeq ¶ added in v0.32.6
func (x *Transaction) GetTransactionSeq() int64
func (*Transaction) GetTransactionTime ¶ added in v0.32.4
func (x *Transaction) GetTransactionTime() *timestamppb.Timestamp
func (*Transaction) GetTransactionType ¶ added in v0.32.4
func (x *Transaction) GetTransactionType() TransactionType
func (*Transaction) GetUpdatedAt ¶ added in v0.32.4
func (x *Transaction) GetUpdatedAt() *timestamppb.Timestamp
func (*Transaction) GetVolume ¶ added in v0.32.4
func (x *Transaction) GetVolume() float64
func (*Transaction) ProtoMessage ¶ added in v0.32.4
func (*Transaction) ProtoMessage()
func (*Transaction) ProtoReflect ¶ added in v0.32.4
func (x *Transaction) ProtoReflect() protoreflect.Message
func (*Transaction) Reset ¶ added in v0.32.4
func (x *Transaction) Reset()
func (*Transaction) String ¶ added in v0.32.4
func (x *Transaction) String() string
type TransactionEntry ¶ added in v0.32.4
type TransactionEntry int32
TransactionEntry: Transaction entry - entry in, entry out, reverse
const ( TransactionEntry_TRANSACTION_ENTRY_IN TransactionEntry = 0 //Entry in TransactionEntry_TRANSACTION_ENTRY_OUT TransactionEntry = 1 //Entry out TransactionEntry_TRANSACTION_ENTRY_INOUT TransactionEntry = 2 //Reverse TransactionEntry_TRANSACTION_ENTRY_OUT_BY TransactionEntry = 3 //Close a position by an opposite one )
func (TransactionEntry) Descriptor ¶ added in v0.32.4
func (TransactionEntry) Descriptor() protoreflect.EnumDescriptor
func (TransactionEntry) Enum ¶ added in v0.32.4
func (x TransactionEntry) Enum() *TransactionEntry
func (TransactionEntry) EnumDescriptor
deprecated
added in
v0.32.4
func (TransactionEntry) EnumDescriptor() ([]byte, []int)
Deprecated: Use TransactionEntry.Descriptor instead.
func (TransactionEntry) Number ¶ added in v0.32.4
func (x TransactionEntry) Number() protoreflect.EnumNumber
func (TransactionEntry) String ¶ added in v0.32.4
func (x TransactionEntry) String() string
func (TransactionEntry) Type ¶ added in v0.32.4
func (TransactionEntry) Type() protoreflect.EnumType
type TransactionReason ¶ added in v0.32.4
type TransactionReason int32
const ( TransactionReason_TRANSACTION_REASON_CLIENT TransactionReason = 0 //The transaction was executed as a result of activation of an order placed from a desktop terminal TransactionReason_TRANSACTION_REASON_MOBILE TransactionReason = 1 //The transaction was executed as a result of activation of an order placed from a mobile application TransactionReason_TRANSACTION_REASON_WEB TransactionReason = 2 //The transaction was executed as a result of activation of an order placed from the web platform TransactionReason_TRANSACTION_REASON_EXPERT TransactionReason = 3 //The transaction was executed as a result of activation of an order placed from an MQL5 program, i.e. an Expert Advisor or a script TransactionReason_TRANSACTION_REASON_SL TransactionReason = 4 //The transaction was executed as a result of Stop Loss activation TransactionReason_TRANSACTION_REASON_TP TransactionReason = 5 //The transaction was executed as a result of Take Profit activation TransactionReason_TRANSACTION_REASON_SO TransactionReason = 6 //The transaction was executed as a result of the Stop Out event TransactionReason_TRANSACTION_REASON_ROLLOVER TransactionReason = 7 //The transaction was executed due to a rollover TransactionReason_TRANSACTION_REASON_VMARGIN TransactionReason = 8 //The transaction was executed after charging the variation margin TransactionReason_TRANSACTION_REASON_SPLIT TransactionReason = 9 //The transaction was executed after the split (price reduction) of an instrument, which had an open position during split announcement )
func (TransactionReason) Descriptor ¶ added in v0.32.4
func (TransactionReason) Descriptor() protoreflect.EnumDescriptor
func (TransactionReason) Enum ¶ added in v0.32.4
func (x TransactionReason) Enum() *TransactionReason
func (TransactionReason) EnumDescriptor
deprecated
added in
v0.32.4
func (TransactionReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use TransactionReason.Descriptor instead.
func (TransactionReason) Number ¶ added in v0.32.4
func (x TransactionReason) Number() protoreflect.EnumNumber
func (TransactionReason) String ¶ added in v0.32.4
func (x TransactionReason) String() string
func (TransactionReason) Type ¶ added in v0.32.4
func (TransactionReason) Type() protoreflect.EnumType
type TransactionType ¶ added in v0.32.4
type TransactionType int32
TransactionType: Transaction type
const ( TransactionType_TRANSACTION_TYPE_BUY TransactionType = 0 //Buy TransactionType_TRANSACTION_TYPE_SELL TransactionType = 1 //Sell TransactionType_TRANSACTION_TYPE_BALANCE TransactionType = 2 //Balance TransactionType_TRANSACTION_TYPE_CREDIT TransactionType = 3 //Credit TransactionType_TRANSACTION_TYPE_CHARGE TransactionType = 4 //Additional charge TransactionType_TRANSACTION_TYPE_CORRECTION TransactionType = 5 //Correction TransactionType_TRANSACTION_TYPE_BONUS TransactionType = 6 //Bonus TransactionType_TRANSACTION_TYPE_COMMISSION TransactionType = 7 //Additional commission TransactionType_TRANSACTION_TYPE_COMMISSION_DAILY TransactionType = 8 //Daily commission TransactionType_TRANSACTION_TYPE_COMMISSION_MONTHLY TransactionType = 9 //Monthly commission TransactionType_TRANSACTION_TYPE_COMMISSION_AGENT_DAILY TransactionType = 10 //Daily agent commission TransactionType_TRANSACTION_TYPE_COMMISSION_AGENT_MONTHLY TransactionType = 11 //Monthly agent commission TransactionType_TRANSACTION_TYPE_INTEREST TransactionType = 12 //Interest rate TransactionType_TRANSACTION_TYPE_BUY_CANCELED TransactionType = 13 //Canceled buy transaction. TransactionType_TRANSACTION_TYPE_SELL_CANCELED TransactionType = 14 //Canceled sell transaction. TransactionType_TRANSACTION_DIVIDEND TransactionType = 15 //Dividend operations TransactionType_TRANSACTION_DIVIDEND_FRANKED TransactionType = 16 //Franked (non-taxable) dividend operations TransactionType_TRANSACTION_TAX TransactionType = 17 //Tax charges )
func (TransactionType) Descriptor ¶ added in v0.32.4
func (TransactionType) Descriptor() protoreflect.EnumDescriptor
func (TransactionType) Enum ¶ added in v0.32.4
func (x TransactionType) Enum() *TransactionType
func (TransactionType) EnumDescriptor
deprecated
added in
v0.32.4
func (TransactionType) EnumDescriptor() ([]byte, []int)
Deprecated: Use TransactionType.Descriptor instead.
func (TransactionType) Number ¶ added in v0.32.4
func (x TransactionType) Number() protoreflect.EnumNumber
func (TransactionType) String ¶ added in v0.32.4
func (x TransactionType) String() string
func (TransactionType) Type ¶ added in v0.32.4
func (TransactionType) Type() protoreflect.EnumType
type TransactionsServiceClient ¶
type TransactionsServiceClient interface { // Creates a new account CreateAccount(ctx context.Context, in *CreateAccountRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Creates a new transaction CreateTransactions(ctx context.Context, in *CreateTransactionsRequest, 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.
Service for TickerBeatsService Microservice
func NewTransactionsServiceClient ¶
func NewTransactionsServiceClient(cc grpc.ClientConnInterface) TransactionsServiceClient
type TransactionsServiceServer ¶
type TransactionsServiceServer interface { // Creates a new account CreateAccount(context.Context, *CreateAccountRequest) (*emptypb.Empty, error) // Creates a new transaction CreateTransactions(context.Context, *CreateTransactionsRequest) (*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.
Service for TickerBeatsService Microservice
type UnimplementedTransactionsServiceServer ¶
type UnimplementedTransactionsServiceServer struct{}
UnimplementedTransactionsServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedTransactionsServiceServer) CreateAccount ¶
func (UnimplementedTransactionsServiceServer) CreateAccount(context.Context, *CreateAccountRequest) (*emptypb.Empty, error)
func (UnimplementedTransactionsServiceServer) CreateOrders ¶
func (UnimplementedTransactionsServiceServer) CreateOrders(context.Context, *CreateOrdersRequest) (*emptypb.Empty, error)
func (UnimplementedTransactionsServiceServer) CreatePositions ¶
func (UnimplementedTransactionsServiceServer) CreatePositions(context.Context, *CreatePositionsRequest) (*emptypb.Empty, error)
func (UnimplementedTransactionsServiceServer) CreateTradeTransaction ¶
func (UnimplementedTransactionsServiceServer) CreateTradeTransaction(context.Context, *CreateTradeTransactionRequest) (*emptypb.Empty, error)
func (UnimplementedTransactionsServiceServer) CreateTransactions ¶ added in v0.32.4
func (UnimplementedTransactionsServiceServer) CreateTransactions(context.Context, *CreateTransactionsRequest) (*emptypb.Empty, error)
type UnsafeTransactionsServiceServer ¶
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.