Documentation
¶
Index ¶
- Variables
- func RegisterEventsServer(s grpc.ServiceRegistrar, srv EventsServer)
- func RegisterOrdersServer(s grpc.ServiceRegistrar, srv OrdersServer)
- func RegisterPortfoliosServer(s grpc.ServiceRegistrar, srv PortfoliosServer)
- func RegisterStopsServer(s grpc.ServiceRegistrar, srv StopsServer)
- type BuySell
- type CancelOrderRequest
- func (*CancelOrderRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CancelOrderRequest) GetClientId() string
- func (x *CancelOrderRequest) GetTransactionId() int32
- func (*CancelOrderRequest) ProtoMessage()
- func (x *CancelOrderRequest) ProtoReflect() protoreflect.Message
- func (x *CancelOrderRequest) Reset()
- func (x *CancelOrderRequest) String() string
- type CancelOrderResult
- func (*CancelOrderResult) Descriptor() ([]byte, []int)deprecated
- func (x *CancelOrderResult) GetClientId() string
- func (x *CancelOrderResult) GetTransactionId() int32
- func (*CancelOrderResult) ProtoMessage()
- func (x *CancelOrderResult) ProtoReflect() protoreflect.Message
- func (x *CancelOrderResult) Reset()
- func (x *CancelOrderResult) String() string
- type CancelStopRequest
- func (*CancelStopRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CancelStopRequest) GetClientId() string
- func (x *CancelStopRequest) GetStopId() int32
- func (*CancelStopRequest) ProtoMessage()
- func (x *CancelStopRequest) ProtoReflect() protoreflect.Message
- func (x *CancelStopRequest) Reset()
- func (x *CancelStopRequest) String() string
- type CancelStopResult
- func (*CancelStopResult) Descriptor() ([]byte, []int)deprecated
- func (x *CancelStopResult) GetClientId() string
- func (x *CancelStopResult) GetStopId() int32
- func (*CancelStopResult) ProtoMessage()
- func (x *CancelStopResult) ProtoReflect() protoreflect.Message
- func (x *CancelStopResult) Reset()
- func (x *CancelStopResult) String() string
- type CurrencyRow
- func (*CurrencyRow) Descriptor() ([]byte, []int)deprecated
- func (x *CurrencyRow) GetBalance() float64
- func (x *CurrencyRow) GetCrossRate() float64
- func (x *CurrencyRow) GetEquity() float64
- func (x *CurrencyRow) GetName() string
- func (x *CurrencyRow) GetUnrealizedProfit() float64
- func (*CurrencyRow) ProtoMessage()
- func (x *CurrencyRow) ProtoReflect() protoreflect.Message
- func (x *CurrencyRow) Reset()
- func (x *CurrencyRow) String() string
- type Error
- type Event
- func (*Event) Descriptor() ([]byte, []int)deprecated
- func (x *Event) GetOrder() *OrderEvent
- func (x *Event) GetOrderBook() *OrderBookEvent
- func (m *Event) GetPayload() isEvent_Payload
- func (x *Event) GetPortfolio() *PortfolioEvent
- func (x *Event) GetResponse() *ResponseEvent
- func (x *Event) GetTrade() *TradeEvent
- func (*Event) ProtoMessage()
- func (x *Event) ProtoReflect() protoreflect.Message
- func (x *Event) Reset()
- func (x *Event) String() string
- type Event_Order
- type Event_OrderBook
- type Event_Portfolio
- type Event_Response
- type Event_Trade
- type EventsClient
- type EventsServer
- type Events_GetEventsClient
- type Events_GetEventsServer
- type GetOrdersRequest
- func (*GetOrdersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetOrdersRequest) GetClientId() string
- func (x *GetOrdersRequest) GetIncludeActive() bool
- func (x *GetOrdersRequest) GetIncludeCanceled() bool
- func (x *GetOrdersRequest) GetIncludeMatched() bool
- func (*GetOrdersRequest) ProtoMessage()
- func (x *GetOrdersRequest) ProtoReflect() protoreflect.Message
- func (x *GetOrdersRequest) Reset()
- func (x *GetOrdersRequest) String() string
- type GetOrdersResult
- func (*GetOrdersResult) Descriptor() ([]byte, []int)deprecated
- func (x *GetOrdersResult) GetClientId() string
- func (x *GetOrdersResult) GetOrders() []*Order
- func (*GetOrdersResult) ProtoMessage()
- func (x *GetOrdersResult) ProtoReflect() protoreflect.Message
- func (x *GetOrdersResult) Reset()
- func (x *GetOrdersResult) String() string
- type GetPortfolioRequest
- func (*GetPortfolioRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetPortfolioRequest) GetClientId() string
- func (x *GetPortfolioRequest) GetContent() *PortfolioContent
- func (*GetPortfolioRequest) ProtoMessage()
- func (x *GetPortfolioRequest) ProtoReflect() protoreflect.Message
- func (x *GetPortfolioRequest) Reset()
- func (x *GetPortfolioRequest) String() string
- type GetPortfolioResult
- func (*GetPortfolioResult) Descriptor() ([]byte, []int)deprecated
- func (x *GetPortfolioResult) GetBalance() float64
- func (x *GetPortfolioResult) GetClientId() string
- func (x *GetPortfolioResult) GetContent() *PortfolioContent
- func (x *GetPortfolioResult) GetCurrencies() []*CurrencyRow
- func (x *GetPortfolioResult) GetEquity() float64
- func (x *GetPortfolioResult) GetMoney() []*MoneyRow
- func (x *GetPortfolioResult) GetPositions() []*PositionRow
- func (*GetPortfolioResult) ProtoMessage()
- func (x *GetPortfolioResult) ProtoReflect() protoreflect.Message
- func (x *GetPortfolioResult) Reset()
- func (x *GetPortfolioResult) String() string
- type GetStopsRequest
- func (*GetStopsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetStopsRequest) GetClientId() string
- func (x *GetStopsRequest) GetIncludeActive() bool
- func (x *GetStopsRequest) GetIncludeCanceled() bool
- func (x *GetStopsRequest) GetIncludeExecuted() bool
- func (*GetStopsRequest) ProtoMessage()
- func (x *GetStopsRequest) ProtoReflect() protoreflect.Message
- func (x *GetStopsRequest) Reset()
- func (x *GetStopsRequest) String() string
- type GetStopsResult
- func (*GetStopsResult) Descriptor() ([]byte, []int)deprecated
- func (x *GetStopsResult) GetClientId() string
- func (x *GetStopsResult) GetStops() []*Stop
- func (*GetStopsResult) ProtoMessage()
- func (x *GetStopsResult) ProtoReflect() protoreflect.Message
- func (x *GetStopsResult) Reset()
- func (x *GetStopsResult) String() string
- type Market
- type MoneyRow
- func (*MoneyRow) Descriptor() ([]byte, []int)deprecated
- func (x *MoneyRow) GetBalance() float64
- func (x *MoneyRow) GetCurrency() string
- func (x *MoneyRow) GetMarket() Market
- func (*MoneyRow) ProtoMessage()
- func (x *MoneyRow) ProtoReflect() protoreflect.Message
- func (x *MoneyRow) Reset()
- func (x *MoneyRow) String() string
- type NewOrderRequest
- func (*NewOrderRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NewOrderRequest) GetBuySell() BuySell
- func (x *NewOrderRequest) GetClientId() string
- func (x *NewOrderRequest) GetCondition() *OrderCondition
- func (x *NewOrderRequest) GetPrice() *wrappers.DoubleValue
- func (x *NewOrderRequest) GetProperty() OrderProperty
- func (x *NewOrderRequest) GetQuantity() int32
- func (x *NewOrderRequest) GetSecurityBoard() string
- func (x *NewOrderRequest) GetSecurityCode() string
- func (x *NewOrderRequest) GetUseCredit() bool
- func (x *NewOrderRequest) GetValidBefore() *OrderValidBefore
- func (*NewOrderRequest) ProtoMessage()
- func (x *NewOrderRequest) ProtoReflect() protoreflect.Message
- func (x *NewOrderRequest) Reset()
- func (x *NewOrderRequest) String() string
- type NewOrderResult
- func (*NewOrderResult) Descriptor() ([]byte, []int)deprecated
- func (x *NewOrderResult) GetClientId() string
- func (x *NewOrderResult) GetSecurityCode() string
- func (x *NewOrderResult) GetTransactionId() int32
- func (*NewOrderResult) ProtoMessage()
- func (x *NewOrderResult) ProtoReflect() protoreflect.Message
- func (x *NewOrderResult) Reset()
- func (x *NewOrderResult) String() string
- type NewStopRequest
- func (*NewStopRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NewStopRequest) GetBuySell() BuySell
- func (x *NewStopRequest) GetClientId() string
- func (x *NewStopRequest) GetExpirationDate() *timestamp.Timestamp
- func (x *NewStopRequest) GetLinkOrder() int64
- func (x *NewStopRequest) GetSecurityBoard() string
- func (x *NewStopRequest) GetSecurityCode() string
- func (x *NewStopRequest) GetStopLoss() *StopLoss
- func (x *NewStopRequest) GetTakeProfit() *TakeProfit
- func (x *NewStopRequest) GetValidBefore() *OrderValidBefore
- func (*NewStopRequest) ProtoMessage()
- func (x *NewStopRequest) ProtoReflect() protoreflect.Message
- func (x *NewStopRequest) Reset()
- func (x *NewStopRequest) String() string
- type NewStopResult
- func (*NewStopResult) Descriptor() ([]byte, []int)deprecated
- func (x *NewStopResult) GetClientId() string
- func (x *NewStopResult) GetSecurityBoard() string
- func (x *NewStopResult) GetSecurityCode() string
- func (x *NewStopResult) GetStopId() int32
- func (*NewStopResult) ProtoMessage()
- func (x *NewStopResult) ProtoReflect() protoreflect.Message
- func (x *NewStopResult) Reset()
- func (x *NewStopResult) String() string
- type Order
- func (*Order) Descriptor() ([]byte, []int)deprecated
- func (x *Order) GetAcceptedAt() *timestamp.Timestamp
- func (x *Order) GetBalance() int32
- func (x *Order) GetBuySell() BuySell
- func (x *Order) GetClientId() string
- func (x *Order) GetCondition() *OrderCondition
- func (x *Order) GetCreatedAt() *timestamp.Timestamp
- func (x *Order) GetCurrency() string
- func (x *Order) GetMarket() Market
- func (x *Order) GetMessage() string
- func (x *Order) GetOrderNo() int64
- func (x *Order) GetPrice() float64
- func (x *Order) GetQuantity() int32
- func (x *Order) GetSecurityBoard() string
- func (x *Order) GetSecurityCode() string
- func (x *Order) GetStatus() OrderStatus
- func (x *Order) GetTransactionId() int32
- func (x *Order) GetValidBefore() *OrderValidBefore
- func (*Order) ProtoMessage()
- func (x *Order) ProtoReflect() protoreflect.Message
- func (x *Order) Reset()
- func (x *Order) String() string
- type OrderBookEvent
- func (*OrderBookEvent) Descriptor() ([]byte, []int)deprecated
- func (x *OrderBookEvent) GetAsks() []*OrderBookRow
- func (x *OrderBookEvent) GetBids() []*OrderBookRow
- func (x *OrderBookEvent) GetSecurityBoard() string
- func (x *OrderBookEvent) GetSecurityCode() string
- func (*OrderBookEvent) ProtoMessage()
- func (x *OrderBookEvent) ProtoReflect() protoreflect.Message
- func (x *OrderBookEvent) Reset()
- func (x *OrderBookEvent) String() string
- type OrderBookRow
- func (*OrderBookRow) Descriptor() ([]byte, []int)deprecated
- func (x *OrderBookRow) GetPrice() float64
- func (x *OrderBookRow) GetQuantity() int64
- func (*OrderBookRow) ProtoMessage()
- func (x *OrderBookRow) ProtoReflect() protoreflect.Message
- func (x *OrderBookRow) Reset()
- func (x *OrderBookRow) String() string
- type OrderBookSubscribeRequest
- func (*OrderBookSubscribeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *OrderBookSubscribeRequest) GetRequestId() string
- func (x *OrderBookSubscribeRequest) GetSecurityBoard() string
- func (x *OrderBookSubscribeRequest) GetSecurityCode() string
- func (*OrderBookSubscribeRequest) ProtoMessage()
- func (x *OrderBookSubscribeRequest) ProtoReflect() protoreflect.Message
- func (x *OrderBookSubscribeRequest) Reset()
- func (x *OrderBookSubscribeRequest) String() string
- type OrderBookUnsubscribeRequest
- func (*OrderBookUnsubscribeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *OrderBookUnsubscribeRequest) GetRequestId() string
- func (x *OrderBookUnsubscribeRequest) GetSecurityBoard() string
- func (x *OrderBookUnsubscribeRequest) GetSecurityCode() string
- func (*OrderBookUnsubscribeRequest) ProtoMessage()
- func (x *OrderBookUnsubscribeRequest) ProtoReflect() protoreflect.Message
- func (x *OrderBookUnsubscribeRequest) Reset()
- func (x *OrderBookUnsubscribeRequest) String() string
- type OrderCondition
- func (*OrderCondition) Descriptor() ([]byte, []int)deprecated
- func (x *OrderCondition) GetPrice() float64
- func (x *OrderCondition) GetTime() *timestamp.Timestamp
- func (x *OrderCondition) GetType() OrderConditionType
- func (*OrderCondition) ProtoMessage()
- func (x *OrderCondition) ProtoReflect() protoreflect.Message
- func (x *OrderCondition) Reset()
- func (x *OrderCondition) String() string
- type OrderConditionType
- func (OrderConditionType) Descriptor() protoreflect.EnumDescriptor
- func (x OrderConditionType) Enum() *OrderConditionType
- func (OrderConditionType) EnumDescriptor() ([]byte, []int)deprecated
- func (x OrderConditionType) Number() protoreflect.EnumNumber
- func (x OrderConditionType) String() string
- func (OrderConditionType) Type() protoreflect.EnumType
- type OrderEvent
- func (*OrderEvent) Descriptor() ([]byte, []int)deprecated
- func (x *OrderEvent) GetAcceptedAt() *timestamp.Timestamp
- func (x *OrderEvent) GetBalance() int32
- func (x *OrderEvent) GetBuySell() BuySell
- func (x *OrderEvent) GetClientId() string
- func (x *OrderEvent) GetCondition() *OrderCondition
- func (x *OrderEvent) GetCreatedAt() *timestamp.Timestamp
- func (x *OrderEvent) GetCurrency() string
- func (x *OrderEvent) GetMessage() string
- func (x *OrderEvent) GetOrderNo() int64
- func (x *OrderEvent) GetPrice() float64
- func (x *OrderEvent) GetQuantity() int32
- func (x *OrderEvent) GetSecurityCode() string
- func (x *OrderEvent) GetStatus() OrderStatus
- func (x *OrderEvent) GetTransactionId() int32
- func (x *OrderEvent) GetValidBefore() *OrderValidBefore
- func (*OrderEvent) ProtoMessage()
- func (x *OrderEvent) ProtoReflect() protoreflect.Message
- func (x *OrderEvent) Reset()
- func (x *OrderEvent) String() string
- type OrderProperty
- func (OrderProperty) Descriptor() protoreflect.EnumDescriptor
- func (x OrderProperty) Enum() *OrderProperty
- func (OrderProperty) EnumDescriptor() ([]byte, []int)deprecated
- func (x OrderProperty) Number() protoreflect.EnumNumber
- func (x OrderProperty) String() string
- func (OrderProperty) Type() protoreflect.EnumType
- type OrderStatus
- func (OrderStatus) Descriptor() protoreflect.EnumDescriptor
- func (x OrderStatus) Enum() *OrderStatus
- func (OrderStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x OrderStatus) Number() protoreflect.EnumNumber
- func (x OrderStatus) String() string
- func (OrderStatus) Type() protoreflect.EnumType
- type OrderTradeSubscribeRequest
- func (*OrderTradeSubscribeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *OrderTradeSubscribeRequest) GetClientIds() []string
- func (x *OrderTradeSubscribeRequest) GetIncludeOrders() bool
- func (x *OrderTradeSubscribeRequest) GetIncludeTrades() bool
- func (x *OrderTradeSubscribeRequest) GetRequestId() string
- func (*OrderTradeSubscribeRequest) ProtoMessage()
- func (x *OrderTradeSubscribeRequest) ProtoReflect() protoreflect.Message
- func (x *OrderTradeSubscribeRequest) Reset()
- func (x *OrderTradeSubscribeRequest) String() string
- type OrderTradeUnsubscribeRequest
- func (*OrderTradeUnsubscribeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *OrderTradeUnsubscribeRequest) GetRequestId() string
- func (*OrderTradeUnsubscribeRequest) ProtoMessage()
- func (x *OrderTradeUnsubscribeRequest) ProtoReflect() protoreflect.Message
- func (x *OrderTradeUnsubscribeRequest) Reset()
- func (x *OrderTradeUnsubscribeRequest) String() string
- type OrderValidBefore
- func (*OrderValidBefore) Descriptor() ([]byte, []int)deprecated
- func (x *OrderValidBefore) GetTime() *timestamp.Timestamp
- func (x *OrderValidBefore) GetType() OrderValidBeforeType
- func (*OrderValidBefore) ProtoMessage()
- func (x *OrderValidBefore) ProtoReflect() protoreflect.Message
- func (x *OrderValidBefore) Reset()
- func (x *OrderValidBefore) String() string
- type OrderValidBeforeType
- func (OrderValidBeforeType) Descriptor() protoreflect.EnumDescriptor
- func (x OrderValidBeforeType) Enum() *OrderValidBeforeType
- func (OrderValidBeforeType) EnumDescriptor() ([]byte, []int)deprecated
- func (x OrderValidBeforeType) Number() protoreflect.EnumNumber
- func (x OrderValidBeforeType) String() string
- func (OrderValidBeforeType) Type() protoreflect.EnumType
- type OrdersClient
- type OrdersServer
- type PortfolioContent
- func (*PortfolioContent) Descriptor() ([]byte, []int)deprecated
- func (x *PortfolioContent) GetIncludeCurrencies() bool
- func (x *PortfolioContent) GetIncludeMaxBuySell() bool
- func (x *PortfolioContent) GetIncludeMoney() bool
- func (x *PortfolioContent) GetIncludePositions() bool
- func (*PortfolioContent) ProtoMessage()
- func (x *PortfolioContent) ProtoReflect() protoreflect.Message
- func (x *PortfolioContent) Reset()
- func (x *PortfolioContent) String() string
- type PortfolioEvent
- func (*PortfolioEvent) Descriptor() ([]byte, []int)deprecated
- func (x *PortfolioEvent) GetBalance() float64
- func (x *PortfolioEvent) GetClientId() string
- func (x *PortfolioEvent) GetContent() *PortfolioContent
- func (x *PortfolioEvent) GetCurrencies() []*CurrencyRow
- func (x *PortfolioEvent) GetEquity() float64
- func (x *PortfolioEvent) GetMoney() []*MoneyRow
- func (x *PortfolioEvent) GetPositions() []*PositionRow
- func (*PortfolioEvent) ProtoMessage()
- func (x *PortfolioEvent) ProtoReflect() protoreflect.Message
- func (x *PortfolioEvent) Reset()
- func (x *PortfolioEvent) String() string
- type PortfolioSubscription
- func (*PortfolioSubscription) Descriptor() ([]byte, []int)deprecated
- func (x *PortfolioSubscription) GetClientId() string
- func (x *PortfolioSubscription) GetContent() *PortfolioContent
- func (*PortfolioSubscription) ProtoMessage()
- func (x *PortfolioSubscription) ProtoReflect() protoreflect.Message
- func (x *PortfolioSubscription) Reset()
- func (x *PortfolioSubscription) String() string
- type PortfoliosClient
- type PortfoliosServer
- type PositionRow
- func (*PositionRow) Descriptor() ([]byte, []int)deprecated
- func (x *PositionRow) GetAccumulatedProfit() float64
- func (x *PositionRow) GetAveragePrice() float64
- func (x *PositionRow) GetAveragePriceCurrency() string
- func (x *PositionRow) GetAverageRate() float64
- func (x *PositionRow) GetBalance() int64
- func (x *PositionRow) GetCurrency() string
- func (x *PositionRow) GetCurrentPrice() float64
- func (x *PositionRow) GetEquity() float64
- func (x *PositionRow) GetMarket() Market
- func (x *PositionRow) GetMaxBuy() int64
- func (x *PositionRow) GetMaxSell() int64
- func (x *PositionRow) GetPriceCurrency() string
- func (x *PositionRow) GetProfit() float64
- func (x *PositionRow) GetSecurityCode() string
- func (x *PositionRow) GetTodayProfit() float64
- func (x *PositionRow) GetUnrealizedProfit() float64
- func (*PositionRow) ProtoMessage()
- func (x *PositionRow) ProtoReflect() protoreflect.Message
- func (x *PositionRow) Reset()
- func (x *PositionRow) String() string
- type ResponseEvent
- func (*ResponseEvent) Descriptor() ([]byte, []int)deprecated
- func (x *ResponseEvent) GetErrors() []*Error
- func (x *ResponseEvent) GetRequestId() string
- func (x *ResponseEvent) GetSuccess() bool
- func (*ResponseEvent) ProtoMessage()
- func (x *ResponseEvent) ProtoReflect() protoreflect.Message
- func (x *ResponseEvent) Reset()
- func (x *ResponseEvent) String() string
- type Stop
- func (*Stop) Descriptor() ([]byte, []int)deprecated
- func (x *Stop) GetAcceptedAt() *timestamp.Timestamp
- func (x *Stop) GetBuySell() BuySell
- func (x *Stop) GetCanceledAt() *timestamp.Timestamp
- func (x *Stop) GetClientId() string
- func (x *Stop) GetCurrency() string
- func (x *Stop) GetExpirationDate() *timestamp.Timestamp
- func (x *Stop) GetLinkOrder() int64
- func (x *Stop) GetMarket() Market
- func (x *Stop) GetMessage() string
- func (x *Stop) GetOrderNo() int64
- func (x *Stop) GetSecurityBoard() string
- func (x *Stop) GetSecurityCode() string
- func (x *Stop) GetStatus() StopStatus
- func (x *Stop) GetStopId() int32
- func (x *Stop) GetStopLoss() *StopLoss
- func (x *Stop) GetTakeProfit() *TakeProfit
- func (x *Stop) GetTakeProfitExtremum() float64
- func (x *Stop) GetTakeProfitLevel() float64
- func (x *Stop) GetTradeNo() int64
- func (x *Stop) GetValidBefore() *OrderValidBefore
- func (*Stop) ProtoMessage()
- func (x *Stop) ProtoReflect() protoreflect.Message
- func (x *Stop) Reset()
- func (x *Stop) String() string
- type StopLoss
- func (*StopLoss) Descriptor() ([]byte, []int)deprecated
- func (x *StopLoss) GetActivationPrice() float64
- func (x *StopLoss) GetMarketPrice() bool
- func (x *StopLoss) GetPrice() float64
- func (x *StopLoss) GetQuantity() *StopQuantity
- func (x *StopLoss) GetTime() int32
- func (x *StopLoss) GetUseCredit() bool
- func (*StopLoss) ProtoMessage()
- func (x *StopLoss) ProtoReflect() protoreflect.Message
- func (x *StopLoss) Reset()
- func (x *StopLoss) String() string
- type StopPrice
- type StopPriceUnits
- func (StopPriceUnits) Descriptor() protoreflect.EnumDescriptor
- func (x StopPriceUnits) Enum() *StopPriceUnits
- func (StopPriceUnits) EnumDescriptor() ([]byte, []int)deprecated
- func (x StopPriceUnits) Number() protoreflect.EnumNumber
- func (x StopPriceUnits) String() string
- func (StopPriceUnits) Type() protoreflect.EnumType
- type StopQuantity
- func (*StopQuantity) Descriptor() ([]byte, []int)deprecated
- func (x *StopQuantity) GetUnits() StopQuantityUnits
- func (x *StopQuantity) GetValue() float64
- func (*StopQuantity) ProtoMessage()
- func (x *StopQuantity) ProtoReflect() protoreflect.Message
- func (x *StopQuantity) Reset()
- func (x *StopQuantity) String() string
- type StopQuantityUnits
- func (StopQuantityUnits) Descriptor() protoreflect.EnumDescriptor
- func (x StopQuantityUnits) Enum() *StopQuantityUnits
- func (StopQuantityUnits) EnumDescriptor() ([]byte, []int)deprecated
- func (x StopQuantityUnits) Number() protoreflect.EnumNumber
- func (x StopQuantityUnits) String() string
- func (StopQuantityUnits) Type() protoreflect.EnumType
- type StopStatus
- type StopsClient
- type StopsServer
- type SubscriptionRequest
- func (*SubscriptionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SubscriptionRequest) GetOrderBookSubscribeRequest() *OrderBookSubscribeRequest
- func (x *SubscriptionRequest) GetOrderBookUnsubscribeRequest() *OrderBookUnsubscribeRequest
- func (x *SubscriptionRequest) GetOrderTradeSubscribeRequest() *OrderTradeSubscribeRequest
- func (x *SubscriptionRequest) GetOrderTradeUnsubscribeRequest() *OrderTradeUnsubscribeRequest
- func (m *SubscriptionRequest) GetPayload() isSubscriptionRequest_Payload
- func (*SubscriptionRequest) ProtoMessage()
- func (x *SubscriptionRequest) ProtoReflect() protoreflect.Message
- func (x *SubscriptionRequest) Reset()
- func (x *SubscriptionRequest) String() string
- type SubscriptionRequest_OrderBookSubscribeRequest
- type SubscriptionRequest_OrderBookUnsubscribeRequest
- type SubscriptionRequest_OrderTradeSubscribeRequest
- type SubscriptionRequest_OrderTradeUnsubscribeRequest
- type TakeProfit
- func (*TakeProfit) Descriptor() ([]byte, []int)deprecated
- func (x *TakeProfit) GetActivationPrice() float64
- func (x *TakeProfit) GetCorrectionPrice() *StopPrice
- func (x *TakeProfit) GetMarketPrice() bool
- func (x *TakeProfit) GetQuantity() *StopQuantity
- func (x *TakeProfit) GetSpreadPrice() *StopPrice
- func (x *TakeProfit) GetTime() int32
- func (x *TakeProfit) GetUseCredit() bool
- func (*TakeProfit) ProtoMessage()
- func (x *TakeProfit) ProtoReflect() protoreflect.Message
- func (x *TakeProfit) Reset()
- func (x *TakeProfit) String() string
- type TimeFrame
- type TimeFrame_Unit
- func (TimeFrame_Unit) Descriptor() protoreflect.EnumDescriptor
- func (x TimeFrame_Unit) Enum() *TimeFrame_Unit
- func (TimeFrame_Unit) EnumDescriptor() ([]byte, []int)deprecated
- func (x TimeFrame_Unit) Number() protoreflect.EnumNumber
- func (x TimeFrame_Unit) String() string
- func (TimeFrame_Unit) Type() protoreflect.EnumType
- type TradeEvent
- func (*TradeEvent) Descriptor() ([]byte, []int)deprecated
- func (x *TradeEvent) GetAccruedInterest() float64
- func (x *TradeEvent) GetBuySell() BuySell
- func (x *TradeEvent) GetClientId() string
- func (x *TradeEvent) GetCommission() float64
- func (x *TradeEvent) GetCreatedAt() *timestamp.Timestamp
- func (x *TradeEvent) GetCurrency() string
- func (x *TradeEvent) GetOrderNo() int64
- func (x *TradeEvent) GetPrice() float64
- func (x *TradeEvent) GetQuantity() int64
- func (x *TradeEvent) GetSecurityCode() string
- func (x *TradeEvent) GetTradeNo() int64
- func (x *TradeEvent) GetValue() float64
- func (*TradeEvent) ProtoMessage()
- func (x *TradeEvent) ProtoReflect() protoreflect.Message
- func (x *TradeEvent) Reset()
- func (x *TradeEvent) String() string
- type UnimplementedEventsServer
- type UnimplementedOrdersServer
- func (UnimplementedOrdersServer) CancelOrder(context.Context, *CancelOrderRequest) (*CancelOrderResult, error)
- func (UnimplementedOrdersServer) GetOrders(context.Context, *GetOrdersRequest) (*GetOrdersResult, error)
- func (UnimplementedOrdersServer) NewOrder(context.Context, *NewOrderRequest) (*NewOrderResult, error)
- type UnimplementedPortfoliosServer
- type UnimplementedStopsServer
- func (UnimplementedStopsServer) CancelStop(context.Context, *CancelStopRequest) (*CancelStopResult, error)
- func (UnimplementedStopsServer) GetStops(context.Context, *GetStopsRequest) (*GetStopsResult, error)
- func (UnimplementedStopsServer) NewStop(context.Context, *NewStopRequest) (*NewStopResult, error)
- type UnsafeEventsServer
- type UnsafeOrdersServer
- type UnsafePortfoliosServer
- type UnsafeStopsServer
Constants ¶
This section is empty.
Variables ¶
var ( Market_name = map[int32]string{ 0: "MARKET_UNSPECIFIED", 1: "MARKET_STOCK", 4: "MARKET_FORTS", 7: "MARKET_SPBEX", 14: "MARKET_MMA", 15: "MARKET_ETS", 20: "MARKET_BONDS", 21: "MARKET_OPTIONS", } Market_value = map[string]int32{ "MARKET_UNSPECIFIED": 0, "MARKET_STOCK": 1, "MARKET_FORTS": 4, "MARKET_SPBEX": 7, "MARKET_MMA": 14, "MARKET_ETS": 15, "MARKET_BONDS": 20, "MARKET_OPTIONS": 21, } )
Enum value maps for Market.
var ( BuySell_name = map[int32]string{ 0: "BUY_SELL_UNSPECIFIED", 1: "BUY_SELL_SELL", 2: "BUY_SELL_BUY", } BuySell_value = map[string]int32{ "BUY_SELL_UNSPECIFIED": 0, "BUY_SELL_SELL": 1, "BUY_SELL_BUY": 2, } )
Enum value maps for BuySell.
var ( OrderValidBeforeType_name = map[int32]string{ 0: "ORDER_VALID_BEFORE_TYPE_UNSPECIFIED", 1: "ORDER_VALID_BEFORE_TYPE_TILL_END_SESSION", 2: "ORDER_VALID_BEFORE_TYPE_TILL_CANCELLED", 3: "ORDER_VALID_BEFORE_TYPE_EXACT_TIME", } OrderValidBeforeType_value = map[string]int32{ "ORDER_VALID_BEFORE_TYPE_UNSPECIFIED": 0, "ORDER_VALID_BEFORE_TYPE_TILL_END_SESSION": 1, "ORDER_VALID_BEFORE_TYPE_TILL_CANCELLED": 2, "ORDER_VALID_BEFORE_TYPE_EXACT_TIME": 3, } )
Enum value maps for OrderValidBeforeType.
var ( TimeFrame_Unit_name = map[int32]string{ 0: "UNIT_UNSPECIFIED", 1: "UNIT_MINUTE", 2: "UNIT_HOUR", 3: "UNIT_DAY", 4: "UNIT_WEEK", 5: "UNIT_MONTH", 6: "UNIT_QUARTER", 7: "UNIT_YEAR", } TimeFrame_Unit_value = map[string]int32{ "UNIT_UNSPECIFIED": 0, "UNIT_MINUTE": 1, "UNIT_HOUR": 2, "UNIT_DAY": 3, "UNIT_WEEK": 4, "UNIT_MONTH": 5, "UNIT_QUARTER": 6, "UNIT_YEAR": 7, } )
Enum value maps for TimeFrame_Unit.
var ( OrderProperty_name = map[int32]string{ 0: "ORDER_PROPERTY_UNSPECIFIED", 1: "ORDER_PROPERTY_PUT_IN_QUEUE", 2: "ORDER_PROPERTY_CANCEL_BALANCE", 3: "ORDER_PROPERTY_IMM_OR_CANCEL", } OrderProperty_value = map[string]int32{ "ORDER_PROPERTY_UNSPECIFIED": 0, "ORDER_PROPERTY_PUT_IN_QUEUE": 1, "ORDER_PROPERTY_CANCEL_BALANCE": 2, "ORDER_PROPERTY_IMM_OR_CANCEL": 3, } )
Enum value maps for OrderProperty.
var ( OrderConditionType_name = map[int32]string{ 0: "ORDER_CONDITION_TYPE_UNSPECIFIED", 1: "ORDER_CONDITION_TYPE_BID", 2: "ORDER_CONDITION_TYPE_BID_OR_LAST", 3: "ORDER_CONDITION_TYPE_ASK", 4: "ORDER_CONDITION_TYPE_ASK_OR_LAST", 5: "ORDER_CONDITION_TYPE_TIME", 6: "ORDER_CONDITION_TYPE_COV_DOWN", 7: "ORDER_CONDITION_TYPE_COV_UP", 8: "ORDER_CONDITION_TYPE_LAST_UP", 9: "ORDER_CONDITION_TYPE_LAST_DOWN", } OrderConditionType_value = map[string]int32{ "ORDER_CONDITION_TYPE_UNSPECIFIED": 0, "ORDER_CONDITION_TYPE_BID": 1, "ORDER_CONDITION_TYPE_BID_OR_LAST": 2, "ORDER_CONDITION_TYPE_ASK": 3, "ORDER_CONDITION_TYPE_ASK_OR_LAST": 4, "ORDER_CONDITION_TYPE_TIME": 5, "ORDER_CONDITION_TYPE_COV_DOWN": 6, "ORDER_CONDITION_TYPE_COV_UP": 7, "ORDER_CONDITION_TYPE_LAST_UP": 8, "ORDER_CONDITION_TYPE_LAST_DOWN": 9, } )
Enum value maps for OrderConditionType.
var ( OrderStatus_name = map[int32]string{ 0: "ORDER_STATUS_UNSPECIFIED", 1: "ORDER_STATUS_NONE", 2: "ORDER_STATUS_ACTIVE", 3: "ORDER_STATUS_CANCELLED", 4: "ORDER_STATUS_MATCHED", } OrderStatus_value = map[string]int32{ "ORDER_STATUS_UNSPECIFIED": 0, "ORDER_STATUS_NONE": 1, "ORDER_STATUS_ACTIVE": 2, "ORDER_STATUS_CANCELLED": 3, "ORDER_STATUS_MATCHED": 4, } )
Enum value maps for OrderStatus.
var ( StopStatus_name = map[int32]string{ 0: "STOP_STATUS_UNSPECIFIED", 1: "STOP_STATUS_NONE", 2: "STOP_STATUS_ACTIVE", 3: "STOP_STATUS_CANCELLED", 4: "STOP_STATUS_EXECUTED", } StopStatus_value = map[string]int32{ "STOP_STATUS_UNSPECIFIED": 0, "STOP_STATUS_NONE": 1, "STOP_STATUS_ACTIVE": 2, "STOP_STATUS_CANCELLED": 3, "STOP_STATUS_EXECUTED": 4, } )
Enum value maps for StopStatus.
var ( StopQuantityUnits_name = map[int32]string{ 0: "STOP_QUANTITY_UNITS_UNSPECIFIED", 1: "STOP_QUANTITY_UNITS_PERCENT", 2: "STOP_QUANTITY_UNITS_LOTS", } StopQuantityUnits_value = map[string]int32{ "STOP_QUANTITY_UNITS_UNSPECIFIED": 0, "STOP_QUANTITY_UNITS_PERCENT": 1, "STOP_QUANTITY_UNITS_LOTS": 2, } )
Enum value maps for StopQuantityUnits.
var ( StopPriceUnits_name = map[int32]string{ 0: "STOP_PRICE_UNITS_UNSPECIFIED", 1: "STOP_PRICE_UNITS_PERCENT", 2: "STOP_PRICE_UNITS_PIPS", } StopPriceUnits_value = map[string]int32{ "STOP_PRICE_UNITS_UNSPECIFIED": 0, "STOP_PRICE_UNITS_PERCENT": 1, "STOP_PRICE_UNITS_PIPS": 2, } )
Enum value maps for StopPriceUnits.
var Events_ServiceDesc = grpc.ServiceDesc{ ServiceName: "grpc.tradeapi.v1.Events", HandlerType: (*EventsServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "GetEvents", Handler: _Events_GetEvents_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "grpc/tradeapi/v1/events.proto", }
Events_ServiceDesc is the grpc.ServiceDesc for Events service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_common_proto protoreflect.FileDescriptor
var File_events_proto protoreflect.FileDescriptor
var File_orders_proto protoreflect.FileDescriptor
var File_portfolios_proto protoreflect.FileDescriptor
var File_stops_proto protoreflect.FileDescriptor
var Orders_ServiceDesc = grpc.ServiceDesc{ ServiceName: "grpc.tradeapi.v1.Orders", HandlerType: (*OrdersServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "NewOrder", Handler: _Orders_NewOrder_Handler, }, { MethodName: "CancelOrder", Handler: _Orders_CancelOrder_Handler, }, { MethodName: "GetOrders", Handler: _Orders_GetOrders_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "grpc/tradeapi/v1/orders.proto", }
Orders_ServiceDesc is the grpc.ServiceDesc for Orders service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Portfolios_ServiceDesc = grpc.ServiceDesc{ ServiceName: "grpc.tradeapi.v1.Portfolios", HandlerType: (*PortfoliosServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetPortfolio", Handler: _Portfolios_GetPortfolio_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "grpc/tradeapi/v1/portfolios.proto", }
Portfolios_ServiceDesc is the grpc.ServiceDesc for Portfolios service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Stops_ServiceDesc = grpc.ServiceDesc{ ServiceName: "grpc.tradeapi.v1.Stops", HandlerType: (*StopsServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetStops", Handler: _Stops_GetStops_Handler, }, { MethodName: "CancelStop", Handler: _Stops_CancelStop_Handler, }, { MethodName: "NewStop", Handler: _Stops_NewStop_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "grpc/tradeapi/v1/stops.proto", }
Stops_ServiceDesc is the grpc.ServiceDesc for Stops service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterEventsServer ¶
func RegisterEventsServer(s grpc.ServiceRegistrar, srv EventsServer)
func RegisterOrdersServer ¶
func RegisterOrdersServer(s grpc.ServiceRegistrar, srv OrdersServer)
func RegisterPortfoliosServer ¶
func RegisterPortfoliosServer(s grpc.ServiceRegistrar, srv PortfoliosServer)
func RegisterStopsServer ¶
func RegisterStopsServer(s grpc.ServiceRegistrar, srv StopsServer)
Types ¶
type BuySell ¶
type BuySell int32
Transaction direction. Направление сделки.
func (BuySell) Descriptor ¶
func (BuySell) Descriptor() protoreflect.EnumDescriptor
func (BuySell) EnumDescriptor
deprecated
func (BuySell) Number ¶
func (x BuySell) Number() protoreflect.EnumNumber
func (BuySell) Type ¶
func (BuySell) Type() protoreflect.EnumType
type CancelOrderRequest ¶
type CancelOrderRequest struct { // Trade Account Id. // Идентификатор торгового счёта. ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` // Transaction Id, which can be used to cancel order or find corresponding order_no in Event service. // Идентификатор транзакции, который может быть использован для отмены заявки или определения номера заявки в сервисе событий. TransactionId int32 `protobuf:"varint,2,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` // contains filtered or unexported fields }
Cancel Order Request. Запрос на отмену заявки.
func (*CancelOrderRequest) Descriptor
deprecated
func (*CancelOrderRequest) Descriptor() ([]byte, []int)
Deprecated: Use CancelOrderRequest.ProtoReflect.Descriptor instead.
func (*CancelOrderRequest) GetClientId ¶
func (x *CancelOrderRequest) GetClientId() string
func (*CancelOrderRequest) GetTransactionId ¶
func (x *CancelOrderRequest) GetTransactionId() int32
func (*CancelOrderRequest) ProtoMessage ¶
func (*CancelOrderRequest) ProtoMessage()
func (*CancelOrderRequest) ProtoReflect ¶
func (x *CancelOrderRequest) ProtoReflect() protoreflect.Message
func (*CancelOrderRequest) Reset ¶
func (x *CancelOrderRequest) Reset()
func (*CancelOrderRequest) String ¶
func (x *CancelOrderRequest) String() string
type CancelOrderResult ¶
type CancelOrderResult struct { // Trade Account Id. // Идентификатор торгового счёта. ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` // Transaction Id, which can be used to cancel order or find corresponding order_no in Event service. // Идентификатор транзакции, который может быть использован для отмены заявки или определения номера заявки в сервисе событий. TransactionId int32 `protobuf:"varint,2,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` // contains filtered or unexported fields }
CancelOrderRequest result. Результат выполнения CancelOrderRequest.
func (*CancelOrderResult) Descriptor
deprecated
func (*CancelOrderResult) Descriptor() ([]byte, []int)
Deprecated: Use CancelOrderResult.ProtoReflect.Descriptor instead.
func (*CancelOrderResult) GetClientId ¶
func (x *CancelOrderResult) GetClientId() string
func (*CancelOrderResult) GetTransactionId ¶
func (x *CancelOrderResult) GetTransactionId() int32
func (*CancelOrderResult) ProtoMessage ¶
func (*CancelOrderResult) ProtoMessage()
func (*CancelOrderResult) ProtoReflect ¶
func (x *CancelOrderResult) ProtoReflect() protoreflect.Message
func (*CancelOrderResult) Reset ¶
func (x *CancelOrderResult) Reset()
func (*CancelOrderResult) String ¶
func (x *CancelOrderResult) String() string
type CancelStopRequest ¶
type CancelStopRequest struct { // Trade Account ID. // Идентификатор торгового счёта. ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` // Stop Order Id. // Идентификатор стоп-заявки. StopId int32 `protobuf:"varint,2,opt,name=stop_id,json=stopId,proto3" json:"stop_id,omitempty"` // contains filtered or unexported fields }
Request for Stop Order cancellation. Запрос на снятие стоп-заявки.
func (*CancelStopRequest) Descriptor
deprecated
func (*CancelStopRequest) Descriptor() ([]byte, []int)
Deprecated: Use CancelStopRequest.ProtoReflect.Descriptor instead.
func (*CancelStopRequest) GetClientId ¶
func (x *CancelStopRequest) GetClientId() string
func (*CancelStopRequest) GetStopId ¶
func (x *CancelStopRequest) GetStopId() int32
func (*CancelStopRequest) ProtoMessage ¶
func (*CancelStopRequest) ProtoMessage()
func (*CancelStopRequest) ProtoReflect ¶
func (x *CancelStopRequest) ProtoReflect() protoreflect.Message
func (*CancelStopRequest) Reset ¶
func (x *CancelStopRequest) Reset()
func (*CancelStopRequest) String ¶
func (x *CancelStopRequest) String() string
type CancelStopResult ¶
type CancelStopResult struct { // Trade Account ID. // Идентификатор торгового счёта. ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` // Stop Order Id. // Идентификатор стоп-заявки. StopId int32 `protobuf:"varint,2,opt,name=stop_id,json=stopId,proto3" json:"stop_id,omitempty"` // contains filtered or unexported fields }
Result of Stop Order cancellation. Результат отмены стоп-заявки.
func (*CancelStopResult) Descriptor
deprecated
func (*CancelStopResult) Descriptor() ([]byte, []int)
Deprecated: Use CancelStopResult.ProtoReflect.Descriptor instead.
func (*CancelStopResult) GetClientId ¶
func (x *CancelStopResult) GetClientId() string
func (*CancelStopResult) GetStopId ¶
func (x *CancelStopResult) GetStopId() int32
func (*CancelStopResult) ProtoMessage ¶
func (*CancelStopResult) ProtoMessage()
func (*CancelStopResult) ProtoReflect ¶
func (x *CancelStopResult) ProtoReflect() protoreflect.Message
func (*CancelStopResult) Reset ¶
func (x *CancelStopResult) Reset()
func (*CancelStopResult) String ¶
func (x *CancelStopResult) String() string
type CurrencyRow ¶
type CurrencyRow struct { // Currency code. // Код валюты. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Current position. // Текущая позиция. Balance float64 `protobuf:"fixed64,2,opt,name=balance,proto3" json:"balance,omitempty"` // Currency rate for RUB. // Курс валюты к рублю. CrossRate float64 `protobuf:"fixed64,3,opt,name=cross_rate,json=crossRate,proto3" json:"cross_rate,omitempty"` // Equity in RUB. // Оценка в рублях. Equity float64 `protobuf:"fixed64,4,opt,name=equity,proto3" json:"equity,omitempty"` // Unrealized P/L, in RUB. // Нереализованные прибыль/убытки в рублях. UnrealizedProfit float64 `protobuf:"fixed64,5,opt,name=unrealized_profit,json=unrealizedProfit,proto3" json:"unrealized_profit,omitempty"` // contains filtered or unexported fields }
Currency position. Валютная позиция.
func (*CurrencyRow) Descriptor
deprecated
func (*CurrencyRow) Descriptor() ([]byte, []int)
Deprecated: Use CurrencyRow.ProtoReflect.Descriptor instead.
func (*CurrencyRow) GetBalance ¶
func (x *CurrencyRow) GetBalance() float64
func (*CurrencyRow) GetCrossRate ¶
func (x *CurrencyRow) GetCrossRate() float64
func (*CurrencyRow) GetEquity ¶
func (x *CurrencyRow) GetEquity() float64
func (*CurrencyRow) GetName ¶
func (x *CurrencyRow) GetName() string
func (*CurrencyRow) GetUnrealizedProfit ¶
func (x *CurrencyRow) GetUnrealizedProfit() float64
func (*CurrencyRow) ProtoMessage ¶
func (*CurrencyRow) ProtoMessage()
func (*CurrencyRow) ProtoReflect ¶
func (x *CurrencyRow) ProtoReflect() protoreflect.Message
func (*CurrencyRow) Reset ¶
func (x *CurrencyRow) Reset()
func (*CurrencyRow) String ¶
func (x *CurrencyRow) String() string
type Error ¶
type Error struct { // Error code. // Код ошибки. Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` // Error message. // Сообщение об ошибке. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
Error data. Данные об ошибке.
func (*Error) Descriptor
deprecated
func (*Error) GetMessage ¶
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) ProtoReflect ¶
func (x *Error) ProtoReflect() protoreflect.Message
type Event ¶
type Event struct { // It is possible to set the only field. // Только одно из полей может быть заполнено. // // Types that are assignable to Payload: // *Event_Order // *Event_Trade // *Event_OrderBook // *Event_Portfolio // *Event_Response Payload isEvent_Payload `protobuf_oneof:"payload"` // contains filtered or unexported fields }
Event. Событие.
func (*Event) Descriptor
deprecated
func (*Event) GetOrder ¶
func (x *Event) GetOrder() *OrderEvent
func (*Event) GetOrderBook ¶
func (x *Event) GetOrderBook() *OrderBookEvent
func (*Event) GetPayload ¶
func (m *Event) GetPayload() isEvent_Payload
func (*Event) GetPortfolio ¶
func (x *Event) GetPortfolio() *PortfolioEvent
func (*Event) GetResponse ¶
func (x *Event) GetResponse() *ResponseEvent
func (*Event) GetTrade ¶
func (x *Event) GetTrade() *TradeEvent
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) ProtoReflect ¶
func (x *Event) ProtoReflect() protoreflect.Message
type Event_Order ¶
type Event_Order struct { // Order event. // Событие с заявкой. Order *OrderEvent `protobuf:"bytes,1,opt,name=order,proto3,oneof"` }
type Event_OrderBook ¶
type Event_OrderBook struct { // OrderBook event. // Событие стакана. OrderBook *OrderBookEvent `protobuf:"bytes,3,opt,name=order_book,json=orderBook,proto3,oneof"` }
type Event_Portfolio ¶
type Event_Portfolio struct { // Portfolio event. // Событие портфеля. Portfolio *PortfolioEvent `protobuf:"bytes,5,opt,name=portfolio,proto3,oneof"` }
type Event_Response ¶
type Event_Response struct { // Request execution result. // Результат выполнения запроса. Response *ResponseEvent `protobuf:"bytes,10,opt,name=response,proto3,oneof"` }
type Event_Trade ¶
type Event_Trade struct { // Trade event. // Событие со сделкой. Trade *TradeEvent `protobuf:"bytes,2,opt,name=trade,proto3,oneof"` }
type EventsClient ¶
type EventsClient interface { // Event Service sends events after explicit subscription. // Сервис событий. Отправляет события после вызова соответствующих методов подписки. GetEvents(ctx context.Context, opts ...grpc.CallOption) (Events_GetEventsClient, error) }
EventsClient is the client API for Events service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewEventsClient ¶
func NewEventsClient(cc grpc.ClientConnInterface) EventsClient
type EventsServer ¶
type EventsServer interface { // Event Service sends events after explicit subscription. // Сервис событий. Отправляет события после вызова соответствующих методов подписки. GetEvents(Events_GetEventsServer) error // contains filtered or unexported methods }
EventsServer is the server API for Events service. All implementations must embed UnimplementedEventsServer for forward compatibility
type Events_GetEventsClient ¶
type Events_GetEventsClient interface { Send(*SubscriptionRequest) error Recv() (*Event, error) grpc.ClientStream }
type Events_GetEventsServer ¶
type Events_GetEventsServer interface { Send(*Event) error Recv() (*SubscriptionRequest, error) grpc.ServerStream }
type GetOrdersRequest ¶
type GetOrdersRequest struct { // Trade Account ID. // Идентификатор торгового счёта. ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` // Include executed orders in response. // Вернуть исполненные заявки. IncludeMatched bool `protobuf:"varint,2,opt,name=include_matched,json=includeMatched,proto3" json:"include_matched,omitempty"` // Include canceled orders in response. // Вернуть отмененные заявки. IncludeCanceled bool `protobuf:"varint,3,opt,name=include_canceled,json=includeCanceled,proto3" json:"include_canceled,omitempty"` // Include active orders in response. // Вернуть активные заявки. IncludeActive bool `protobuf:"varint,4,opt,name=include_active,json=includeActive,proto3" json:"include_active,omitempty"` // contains filtered or unexported fields }
Get Orders Request. Запрос списка заявок.
func (*GetOrdersRequest) Descriptor
deprecated
func (*GetOrdersRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetOrdersRequest.ProtoReflect.Descriptor instead.
func (*GetOrdersRequest) GetClientId ¶
func (x *GetOrdersRequest) GetClientId() string
func (*GetOrdersRequest) GetIncludeActive ¶
func (x *GetOrdersRequest) GetIncludeActive() bool
func (*GetOrdersRequest) GetIncludeCanceled ¶
func (x *GetOrdersRequest) GetIncludeCanceled() bool
func (*GetOrdersRequest) GetIncludeMatched ¶
func (x *GetOrdersRequest) GetIncludeMatched() bool
func (*GetOrdersRequest) ProtoMessage ¶
func (*GetOrdersRequest) ProtoMessage()
func (*GetOrdersRequest) ProtoReflect ¶
func (x *GetOrdersRequest) ProtoReflect() protoreflect.Message
func (*GetOrdersRequest) Reset ¶
func (x *GetOrdersRequest) Reset()
func (*GetOrdersRequest) String ¶
func (x *GetOrdersRequest) String() string
type GetOrdersResult ¶
type GetOrdersResult struct { // Trade Account ID. // Идентификатор торгового счёта. ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` // Orders list. // Список заявок. Orders []*Order `protobuf:"bytes,2,rep,name=orders,proto3" json:"orders,omitempty"` // contains filtered or unexported fields }
GetOrdersRequest result. Результат GetOrdersRequest.
func (*GetOrdersResult) Descriptor
deprecated
func (*GetOrdersResult) Descriptor() ([]byte, []int)
Deprecated: Use GetOrdersResult.ProtoReflect.Descriptor instead.
func (*GetOrdersResult) GetClientId ¶
func (x *GetOrdersResult) GetClientId() string
func (*GetOrdersResult) GetOrders ¶
func (x *GetOrdersResult) GetOrders() []*Order
func (*GetOrdersResult) ProtoMessage ¶
func (*GetOrdersResult) ProtoMessage()
func (*GetOrdersResult) ProtoReflect ¶
func (x *GetOrdersResult) ProtoReflect() protoreflect.Message
func (*GetOrdersResult) Reset ¶
func (x *GetOrdersResult) Reset()
func (*GetOrdersResult) String ¶
func (x *GetOrdersResult) String() string
type GetPortfolioRequest ¶
type GetPortfolioRequest struct { // Trade Account ID. // Идентификатор торгового счёта. ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` // What data to return by request. // Какие данные возвращать в ответе. Content *PortfolioContent `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
Get Portfolio Request. Запрос портфеля.
func (*GetPortfolioRequest) Descriptor
deprecated
func (*GetPortfolioRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPortfolioRequest.ProtoReflect.Descriptor instead.
func (*GetPortfolioRequest) GetClientId ¶
func (x *GetPortfolioRequest) GetClientId() string
func (*GetPortfolioRequest) GetContent ¶
func (x *GetPortfolioRequest) GetContent() *PortfolioContent
func (*GetPortfolioRequest) ProtoMessage ¶
func (*GetPortfolioRequest) ProtoMessage()
func (*GetPortfolioRequest) ProtoReflect ¶
func (x *GetPortfolioRequest) ProtoReflect() protoreflect.Message
func (*GetPortfolioRequest) Reset ¶
func (x *GetPortfolioRequest) Reset()
func (*GetPortfolioRequest) String ¶
func (x *GetPortfolioRequest) String() string
type GetPortfolioResult ¶
type GetPortfolioResult struct { // Trade Account ID. // Идентификатор торгового счёта. ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` // What kind of data the response contains. // Какие данные будут в ответе. Content *PortfolioContent `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` // Current equity, RUB. // Текущая оценка портфеля в рублях. Equity float64 `protobuf:"fixed64,3,opt,name=equity,proto3" json:"equity,omitempty"` // Open Equity, RUB. // Входящая оценка портфеля в рублях. Balance float64 `protobuf:"fixed64,4,opt,name=balance,proto3" json:"balance,omitempty"` // DEPO positions. // Позиции DEPO. Positions []*PositionRow `protobuf:"bytes,5,rep,name=positions,proto3" json:"positions,omitempty"` // Currency positions. // Валютные позиции. Currencies []*CurrencyRow `protobuf:"bytes,6,rep,name=currencies,proto3" json:"currencies,omitempty"` // Money positions. // Денежные позиции. Money []*MoneyRow `protobuf:"bytes,7,rep,name=money,proto3" json:"money,omitempty"` // contains filtered or unexported fields }
GetPortfolioRequest result. Результат GetPortfolioRequest.
func (*GetPortfolioResult) Descriptor
deprecated
func (*GetPortfolioResult) Descriptor() ([]byte, []int)
Deprecated: Use GetPortfolioResult.ProtoReflect.Descriptor instead.
func (*GetPortfolioResult) GetBalance ¶
func (x *GetPortfolioResult) GetBalance() float64
func (*GetPortfolioResult) GetClientId ¶
func (x *GetPortfolioResult) GetClientId() string
func (*GetPortfolioResult) GetContent ¶
func (x *GetPortfolioResult) GetContent() *PortfolioContent
func (*GetPortfolioResult) GetCurrencies ¶
func (x *GetPortfolioResult) GetCurrencies() []*CurrencyRow
func (*GetPortfolioResult) GetEquity ¶
func (x *GetPortfolioResult) GetEquity() float64
func (*GetPortfolioResult) GetMoney ¶
func (x *GetPortfolioResult) GetMoney() []*MoneyRow
func (*GetPortfolioResult) GetPositions ¶
func (x *GetPortfolioResult) GetPositions() []*PositionRow
func (*GetPortfolioResult) ProtoMessage ¶
func (*GetPortfolioResult) ProtoMessage()
func (*GetPortfolioResult) ProtoReflect ¶
func (x *GetPortfolioResult) ProtoReflect() protoreflect.Message
func (*GetPortfolioResult) Reset ¶
func (x *GetPortfolioResult) Reset()
func (*GetPortfolioResult) String ¶
func (x *GetPortfolioResult) String() string
type GetStopsRequest ¶
type GetStopsRequest struct { // Trade Account ID. // Идентификатор торгового счёта. ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` // Include executed stops in response. // Вернуть исполненные стоп-заявки. IncludeExecuted bool `protobuf:"varint,2,opt,name=include_executed,json=includeExecuted,proto3" json:"include_executed,omitempty"` // Include canceled stops in response. // Вернуть отмененные стоп-заявки. IncludeCanceled bool `protobuf:"varint,3,opt,name=include_canceled,json=includeCanceled,proto3" json:"include_canceled,omitempty"` // Include active stops in response. // Вернуть активные стоп-заявки. IncludeActive bool `protobuf:"varint,4,opt,name=include_active,json=includeActive,proto3" json:"include_active,omitempty"` // contains filtered or unexported fields }
Request for the list of Stop Orders. Запрос стоп-заявок.
func (*GetStopsRequest) Descriptor
deprecated
func (*GetStopsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetStopsRequest.ProtoReflect.Descriptor instead.
func (*GetStopsRequest) GetClientId ¶
func (x *GetStopsRequest) GetClientId() string
func (*GetStopsRequest) GetIncludeActive ¶
func (x *GetStopsRequest) GetIncludeActive() bool
func (*GetStopsRequest) GetIncludeCanceled ¶
func (x *GetStopsRequest) GetIncludeCanceled() bool
func (*GetStopsRequest) GetIncludeExecuted ¶
func (x *GetStopsRequest) GetIncludeExecuted() bool
func (*GetStopsRequest) ProtoMessage ¶
func (*GetStopsRequest) ProtoMessage()
func (*GetStopsRequest) ProtoReflect ¶
func (x *GetStopsRequest) ProtoReflect() protoreflect.Message
func (*GetStopsRequest) Reset ¶
func (x *GetStopsRequest) Reset()
func (*GetStopsRequest) String ¶
func (x *GetStopsRequest) String() string
type GetStopsResult ¶
type GetStopsResult struct { // Trade Account ID. // Идентификатор торгового счёта. ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` // Stop Orders List. // Список стоп-заявок. Stops []*Stop `protobuf:"bytes,2,rep,name=stops,proto3" json:"stops,omitempty"` // contains filtered or unexported fields }
Result of Stop Orders request. Результат запроса стоп-заявок.
func (*GetStopsResult) Descriptor
deprecated
func (*GetStopsResult) Descriptor() ([]byte, []int)
Deprecated: Use GetStopsResult.ProtoReflect.Descriptor instead.
func (*GetStopsResult) GetClientId ¶
func (x *GetStopsResult) GetClientId() string
func (*GetStopsResult) GetStops ¶
func (x *GetStopsResult) GetStops() []*Stop
func (*GetStopsResult) ProtoMessage ¶
func (*GetStopsResult) ProtoMessage()
func (*GetStopsResult) ProtoReflect ¶
func (x *GetStopsResult) ProtoReflect() protoreflect.Message
func (*GetStopsResult) Reset ¶
func (x *GetStopsResult) Reset()
func (*GetStopsResult) String ¶
func (x *GetStopsResult) String() string
type Market ¶
type Market int32
Market. Рынок.
const ( // Value is not specified. Do not use. // Значение не указано. Не использовать. Market_MARKET_UNSPECIFIED Market = 0 // Moscow Exchange Stock market. // Фондовый рынок Московской Биржи. Market_MARKET_STOCK Market = 1 // Moscow Exchange Derivative market. // Срочный рынок Московской Биржи. Market_MARKET_FORTS Market = 4 // Saint-Petersburg Exchange. // Санкт-Петербургская биржа. Market_MARKET_SPBEX Market = 7 // US Stock market. // Фондовый рынок США. Market_MARKET_MMA Market = 14 // Moscow Exchange Currency market. // Валютный рынок Московской Биржи. Market_MARKET_ETS Market = 15 // Moscow Exchange Bond market. // Долговой рынок Московской Биржи. Market_MARKET_BONDS Market = 20 // Moscow Exchange option market. // Рынок опционов Московской Биржи. Market_MARKET_OPTIONS Market = 21 )
func (Market) Descriptor ¶
func (Market) Descriptor() protoreflect.EnumDescriptor
func (Market) EnumDescriptor
deprecated
func (Market) Number ¶
func (x Market) Number() protoreflect.EnumNumber
func (Market) Type ¶
func (Market) Type() protoreflect.EnumType
type MoneyRow ¶
type MoneyRow struct { // Position market. // Рынок позиции. Market Market `protobuf:"varint,1,opt,name=market,proto3,enum=proto.tradeapi.v1.Market" json:"market,omitempty"` // Currency code. // Код валюты. Currency string `protobuf:"bytes,2,opt,name=currency,proto3" json:"currency,omitempty"` // Current position. // Текущая позиция. Balance float64 `protobuf:"fixed64,3,opt,name=balance,proto3" json:"balance,omitempty"` // contains filtered or unexported fields }
Money position. Денежная позиция.
func (*MoneyRow) Descriptor
deprecated
func (*MoneyRow) GetBalance ¶
func (*MoneyRow) GetCurrency ¶
func (*MoneyRow) ProtoMessage ¶
func (*MoneyRow) ProtoMessage()
func (*MoneyRow) ProtoReflect ¶
func (x *MoneyRow) ProtoReflect() protoreflect.Message
type NewOrderRequest ¶
type NewOrderRequest struct { // Trade Account ID. // Идентификатор торгового счёта. ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` // Trading Board. // Режим торгов. SecurityBoard string `protobuf:"bytes,2,opt,name=security_board,json=securityBoard,proto3" json:"security_board,omitempty"` // Security Code. // Тикер инструмента. SecurityCode string `protobuf:"bytes,3,opt,name=security_code,json=securityCode,proto3" json:"security_code,omitempty"` // Transaction direction. // Направление сделки. BuySell BuySell `protobuf:"varint,4,opt,name=buy_sell,json=buySell,proto3,enum=proto.tradeapi.v1.BuySell" json:"buy_sell,omitempty"` // Order volume in lots. // Количество лотов инструмента для заявки. Quantity int32 `protobuf:"varint,5,opt,name=quantity,proto3" json:"quantity,omitempty"` // Use credit. Not available in derivative market. // Использовать кредит. Недоступно для срочного рынка. UseCredit bool `protobuf:"varint,6,opt,name=use_credit,json=useCredit,proto3" json:"use_credit,omitempty"` // Order price. Use "null" to place Market Order. // Цена заявки. Используйте "null", чтобы выставить рыночную заявку. Price *wrappers.DoubleValue `protobuf:"bytes,7,opt,name=price,proto3" json:"price,omitempty"` // Unfilled order execution property. // Свойства исполнения частично исполненных заявок. Property OrderProperty `protobuf:"varint,8,opt,name=property,proto3,enum=proto.tradeapi.v1.OrderProperty" json:"property,omitempty"` // Order placement properties. // Свойства выставления заявок. Condition *OrderCondition `protobuf:"bytes,9,opt,name=condition,proto3" json:"condition,omitempty"` // Order lifetime condition. // Условие по времени действия заявки. ValidBefore *OrderValidBefore `protobuf:"bytes,10,opt,name=valid_before,json=validBefore,proto3" json:"valid_before,omitempty"` // contains filtered or unexported fields }
New Order Request. Запрос на создание заявки.
func (*NewOrderRequest) Descriptor
deprecated
func (*NewOrderRequest) Descriptor() ([]byte, []int)
Deprecated: Use NewOrderRequest.ProtoReflect.Descriptor instead.
func (*NewOrderRequest) GetBuySell ¶
func (x *NewOrderRequest) GetBuySell() BuySell
func (*NewOrderRequest) GetClientId ¶
func (x *NewOrderRequest) GetClientId() string
func (*NewOrderRequest) GetCondition ¶
func (x *NewOrderRequest) GetCondition() *OrderCondition
func (*NewOrderRequest) GetPrice ¶
func (x *NewOrderRequest) GetPrice() *wrappers.DoubleValue
func (*NewOrderRequest) GetProperty ¶
func (x *NewOrderRequest) GetProperty() OrderProperty
func (*NewOrderRequest) GetQuantity ¶
func (x *NewOrderRequest) GetQuantity() int32
func (*NewOrderRequest) GetSecurityBoard ¶
func (x *NewOrderRequest) GetSecurityBoard() string
func (*NewOrderRequest) GetSecurityCode ¶
func (x *NewOrderRequest) GetSecurityCode() string
func (*NewOrderRequest) GetUseCredit ¶
func (x *NewOrderRequest) GetUseCredit() bool
func (*NewOrderRequest) GetValidBefore ¶
func (x *NewOrderRequest) GetValidBefore() *OrderValidBefore
func (*NewOrderRequest) ProtoMessage ¶
func (*NewOrderRequest) ProtoMessage()
func (*NewOrderRequest) ProtoReflect ¶
func (x *NewOrderRequest) ProtoReflect() protoreflect.Message
func (*NewOrderRequest) Reset ¶
func (x *NewOrderRequest) Reset()
func (*NewOrderRequest) String ¶
func (x *NewOrderRequest) String() string
type NewOrderResult ¶
type NewOrderResult struct { // Trade Account Id. // Идентификатор торгового счёта. ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` // Transaction Id, which can be used to cancel order or find corresponding order_no in Event service. // Идентификатор транзакции, который может быть использован для отмены заявки или определения номера заявки в сервисе событий. TransactionId int32 `protobuf:"varint,2,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` // Security Code. // Тикер инструмента. SecurityCode string `protobuf:"bytes,3,opt,name=security_code,json=securityCode,proto3" json:"security_code,omitempty"` // contains filtered or unexported fields }
NewOrderRequest result. Результат выполнения NewOrderRequest.
func (*NewOrderResult) Descriptor
deprecated
func (*NewOrderResult) Descriptor() ([]byte, []int)
Deprecated: Use NewOrderResult.ProtoReflect.Descriptor instead.
func (*NewOrderResult) GetClientId ¶
func (x *NewOrderResult) GetClientId() string
func (*NewOrderResult) GetSecurityCode ¶
func (x *NewOrderResult) GetSecurityCode() string
func (*NewOrderResult) GetTransactionId ¶
func (x *NewOrderResult) GetTransactionId() int32
func (*NewOrderResult) ProtoMessage ¶
func (*NewOrderResult) ProtoMessage()
func (*NewOrderResult) ProtoReflect ¶
func (x *NewOrderResult) ProtoReflect() protoreflect.Message
func (*NewOrderResult) Reset ¶
func (x *NewOrderResult) Reset()
func (*NewOrderResult) String ¶
func (x *NewOrderResult) String() string
type NewStopRequest ¶
type NewStopRequest struct { // Trade Account ID. // Идентификатор торгового счёта. ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` // Trading Board. // Режим торгов. SecurityBoard string `protobuf:"bytes,2,opt,name=security_board,json=securityBoard,proto3" json:"security_board,omitempty"` // Security Code. // Тикер инструмента. SecurityCode string `protobuf:"bytes,3,opt,name=security_code,json=securityCode,proto3" json:"security_code,omitempty"` // Transaction direction. // Направление сделки. BuySell BuySell `protobuf:"varint,4,opt,name=buy_sell,json=buySell,proto3,enum=proto.tradeapi.v1.BuySell" json:"buy_sell,omitempty"` // Stop loss. // Стоп лосс. StopLoss *StopLoss `protobuf:"bytes,5,opt,name=stop_loss,json=stopLoss,proto3" json:"stop_loss,omitempty"` // Take profit. // Тейк профит. TakeProfit *TakeProfit `protobuf:"bytes,6,opt,name=take_profit,json=takeProfit,proto3" json:"take_profit,omitempty"` // Expiration date for FORTS order. // Дата экспирации заявки FORTS. ExpirationDate *timestamp.Timestamp `protobuf:"bytes,7,opt,name=expiration_date,json=expirationDate,proto3" json:"expiration_date,omitempty"` // Linked order ID. // Биржевой номер связанной (активной) заявки. LinkOrder int64 `protobuf:"varint,8,opt,name=link_order,json=linkOrder,proto3" json:"link_order,omitempty"` // Order lifetime. // Время действия заявки. ValidBefore *OrderValidBefore `protobuf:"bytes,9,opt,name=valid_before,json=validBefore,proto3" json:"valid_before,omitempty"` // contains filtered or unexported fields }
New Stop Order request. Запрос на выставление стоп заявки.
func (*NewStopRequest) Descriptor
deprecated
func (*NewStopRequest) Descriptor() ([]byte, []int)
Deprecated: Use NewStopRequest.ProtoReflect.Descriptor instead.
func (*NewStopRequest) GetBuySell ¶
func (x *NewStopRequest) GetBuySell() BuySell
func (*NewStopRequest) GetClientId ¶
func (x *NewStopRequest) GetClientId() string
func (*NewStopRequest) GetExpirationDate ¶
func (x *NewStopRequest) GetExpirationDate() *timestamp.Timestamp
func (*NewStopRequest) GetLinkOrder ¶
func (x *NewStopRequest) GetLinkOrder() int64
func (*NewStopRequest) GetSecurityBoard ¶
func (x *NewStopRequest) GetSecurityBoard() string
func (*NewStopRequest) GetSecurityCode ¶
func (x *NewStopRequest) GetSecurityCode() string
func (*NewStopRequest) GetStopLoss ¶
func (x *NewStopRequest) GetStopLoss() *StopLoss
func (*NewStopRequest) GetTakeProfit ¶
func (x *NewStopRequest) GetTakeProfit() *TakeProfit
func (*NewStopRequest) GetValidBefore ¶
func (x *NewStopRequest) GetValidBefore() *OrderValidBefore
func (*NewStopRequest) ProtoMessage ¶
func (*NewStopRequest) ProtoMessage()
func (*NewStopRequest) ProtoReflect ¶
func (x *NewStopRequest) ProtoReflect() protoreflect.Message
func (*NewStopRequest) Reset ¶
func (x *NewStopRequest) Reset()
func (*NewStopRequest) String ¶
func (x *NewStopRequest) String() string
type NewStopResult ¶
type NewStopResult struct { // Trade Account Id. // Идентификатор торгового счёта. ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` // Stop Order Id. // Идентификатор стоп заявки. StopId int32 `protobuf:"varint,2,opt,name=stop_id,json=stopId,proto3" json:"stop_id,omitempty"` // Security Code. // Тикер инструмента. SecurityCode string `protobuf:"bytes,3,opt,name=security_code,json=securityCode,proto3" json:"security_code,omitempty"` // Trading Board. // Режим торгов. SecurityBoard string `protobuf:"bytes,4,opt,name=security_board,json=securityBoard,proto3" json:"security_board,omitempty"` // contains filtered or unexported fields }
Result of new Stop Order request. Результат выставления стоп заявки.
func (*NewStopResult) Descriptor
deprecated
func (*NewStopResult) Descriptor() ([]byte, []int)
Deprecated: Use NewStopResult.ProtoReflect.Descriptor instead.
func (*NewStopResult) GetClientId ¶
func (x *NewStopResult) GetClientId() string
func (*NewStopResult) GetSecurityBoard ¶
func (x *NewStopResult) GetSecurityBoard() string
func (*NewStopResult) GetSecurityCode ¶
func (x *NewStopResult) GetSecurityCode() string
func (*NewStopResult) GetStopId ¶
func (x *NewStopResult) GetStopId() int32
func (*NewStopResult) ProtoMessage ¶
func (*NewStopResult) ProtoMessage()
func (*NewStopResult) ProtoReflect ¶
func (x *NewStopResult) ProtoReflect() protoreflect.Message
func (*NewStopResult) Reset ¶
func (x *NewStopResult) Reset()
func (*NewStopResult) String ¶
func (x *NewStopResult) String() string
type Order ¶
type Order struct { // Order No. Appear only when an order is placed in OrderBook. // Биржевой номер заявки. Появляется после того, как заявка попадает в стакан. OrderNo int64 `protobuf:"varint,1,opt,name=order_no,json=orderNo,proto3" json:"order_no,omitempty"` // Transaction Id . Assigned when a command for new order creation is sent. // Идентификатор транзакции. Назначается после подачи команды на создание новой заявки. TransactionId int32 `protobuf:"varint,2,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` // Security Code. // Тикер инструмента. SecurityCode string `protobuf:"bytes,3,opt,name=security_code,json=securityCode,proto3" json:"security_code,omitempty"` // Trade Account ID. // Идентификатор торгового счёта. ClientId string `protobuf:"bytes,4,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` // Order status. // Состояние заявки. Status OrderStatus `protobuf:"varint,5,opt,name=status,proto3,enum=proto.tradeapi.v1.OrderStatus" json:"status,omitempty"` // Transaction direction. // Направление сделки. BuySell BuySell `protobuf:"varint,6,opt,name=buy_sell,json=buySell,proto3,enum=proto.tradeapi.v1.BuySell" json:"buy_sell,omitempty"` // Time of Order placement in UTC. // Время регистрации заявки на бирже. В UTC. CreatedAt *timestamp.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // Lot price. // Цена за лот. Price float64 `protobuf:"fixed64,8,opt,name=price,proto3" json:"price,omitempty"` // Volume in lots. // Количество, в лотах. Quantity int32 `protobuf:"varint,9,opt,name=quantity,proto3" json:"quantity,omitempty"` // Residual volume in lots. // Неисполненный остаток, в лотах. Balance int32 `protobuf:"varint,10,opt,name=balance,proto3" json:"balance,omitempty"` // Rejection reason or conditional order resolution. // Причина отказа или вердикт по условной заявке. Message string `protobuf:"bytes,11,opt,name=message,proto3" json:"message,omitempty"` // Price currency. // Валюта цены. Currency string `protobuf:"bytes,12,opt,name=currency,proto3" json:"currency,omitempty"` // Conditional order properties. // Параметры условной заявки. Condition *OrderCondition `protobuf:"bytes,13,opt,name=condition,proto3" json:"condition,omitempty"` // Order lifetime. // Время действия заявки. ValidBefore *OrderValidBefore `protobuf:"bytes,14,opt,name=valid_before,json=validBefore,proto3" json:"valid_before,omitempty"` // Time of order registration on the server in UTC. // Время, когда заявка была зарегистрирована на сервере. В UTC. AcceptedAt *timestamp.Timestamp `protobuf:"bytes,15,opt,name=accepted_at,json=acceptedAt,proto3" json:"accepted_at,omitempty"` // Security Board. // Основной режим торгов инструмента. SecurityBoard string `protobuf:"bytes,16,opt,name=security_board,json=securityBoard,proto3" json:"security_board,omitempty"` // Market. // Рынок. Market Market `protobuf:"varint,17,opt,name=market,proto3,enum=proto.tradeapi.v1.Market" json:"market,omitempty"` // contains filtered or unexported fields }
Order. Заявка.
func (*Order) Descriptor
deprecated
func (*Order) GetAcceptedAt ¶
func (*Order) GetBalance ¶
func (*Order) GetBuySell ¶
func (*Order) GetClientId ¶
func (*Order) GetCondition ¶
func (x *Order) GetCondition() *OrderCondition
func (*Order) GetCreatedAt ¶
func (*Order) GetCurrency ¶
func (*Order) GetMessage ¶
func (*Order) GetOrderNo ¶
func (*Order) GetQuantity ¶
func (*Order) GetSecurityBoard ¶
func (*Order) GetSecurityCode ¶
func (*Order) GetStatus ¶
func (x *Order) GetStatus() OrderStatus
func (*Order) GetTransactionId ¶
func (*Order) GetValidBefore ¶
func (x *Order) GetValidBefore() *OrderValidBefore
func (*Order) ProtoMessage ¶
func (*Order) ProtoMessage()
func (*Order) ProtoReflect ¶
func (x *Order) ProtoReflect() protoreflect.Message
type OrderBookEvent ¶
type OrderBookEvent struct { // Security Code. // Тикер инструмента. SecurityCode string `protobuf:"bytes,1,opt,name=security_code,json=securityCode,proto3" json:"security_code,omitempty"` // Trading Board. // Режим торгов. SecurityBoard string `protobuf:"bytes,2,opt,name=security_board,json=securityBoard,proto3" json:"security_board,omitempty"` // Asks. // Заявки на продажу. Asks []*OrderBookRow `protobuf:"bytes,3,rep,name=asks,proto3" json:"asks,omitempty"` // Bids. // Заявки на покупку. Bids []*OrderBookRow `protobuf:"bytes,4,rep,name=bids,proto3" json:"bids,omitempty"` // contains filtered or unexported fields }
OrderBook event. Событие стакана.
func (*OrderBookEvent) Descriptor
deprecated
func (*OrderBookEvent) Descriptor() ([]byte, []int)
Deprecated: Use OrderBookEvent.ProtoReflect.Descriptor instead.
func (*OrderBookEvent) GetAsks ¶
func (x *OrderBookEvent) GetAsks() []*OrderBookRow
func (*OrderBookEvent) GetBids ¶
func (x *OrderBookEvent) GetBids() []*OrderBookRow
func (*OrderBookEvent) GetSecurityBoard ¶
func (x *OrderBookEvent) GetSecurityBoard() string
func (*OrderBookEvent) GetSecurityCode ¶
func (x *OrderBookEvent) GetSecurityCode() string
func (*OrderBookEvent) ProtoMessage ¶
func (*OrderBookEvent) ProtoMessage()
func (*OrderBookEvent) ProtoReflect ¶
func (x *OrderBookEvent) ProtoReflect() protoreflect.Message
func (*OrderBookEvent) Reset ¶
func (x *OrderBookEvent) Reset()
func (*OrderBookEvent) String ¶
func (x *OrderBookEvent) String() string
type OrderBookRow ¶
type OrderBookRow struct { // Price. // Цена. Price float64 `protobuf:"fixed64,1,opt,name=price,json=p,proto3" json:"price,omitempty"` // Lots. // Количество лотов. Quantity int64 `protobuf:"varint,2,opt,name=quantity,json=q,proto3" json:"quantity,omitempty"` // contains filtered or unexported fields }
Order book row. Строка стакана.
func (*OrderBookRow) Descriptor
deprecated
func (*OrderBookRow) Descriptor() ([]byte, []int)
Deprecated: Use OrderBookRow.ProtoReflect.Descriptor instead.
func (*OrderBookRow) GetPrice ¶
func (x *OrderBookRow) GetPrice() float64
func (*OrderBookRow) GetQuantity ¶
func (x *OrderBookRow) GetQuantity() int64
func (*OrderBookRow) ProtoMessage ¶
func (*OrderBookRow) ProtoMessage()
func (*OrderBookRow) ProtoReflect ¶
func (x *OrderBookRow) ProtoReflect() protoreflect.Message
func (*OrderBookRow) Reset ¶
func (x *OrderBookRow) Reset()
func (*OrderBookRow) String ¶
func (x *OrderBookRow) String() string
type OrderBookSubscribeRequest ¶
type OrderBookSubscribeRequest struct { // Request ID. // Идентификатор запроса. RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` // Security Code. // Тикер инструмента. SecurityCode string `protobuf:"bytes,2,opt,name=security_code,json=securityCode,proto3" json:"security_code,omitempty"` // Trading Board. // Режим торгов. SecurityBoard string `protobuf:"bytes,3,opt,name=security_board,json=securityBoard,proto3" json:"security_board,omitempty"` // contains filtered or unexported fields }
OrderBook subscribe request. Запрос подписки на стакан.
func (*OrderBookSubscribeRequest) Descriptor
deprecated
func (*OrderBookSubscribeRequest) Descriptor() ([]byte, []int)
Deprecated: Use OrderBookSubscribeRequest.ProtoReflect.Descriptor instead.
func (*OrderBookSubscribeRequest) GetRequestId ¶
func (x *OrderBookSubscribeRequest) GetRequestId() string
func (*OrderBookSubscribeRequest) GetSecurityBoard ¶
func (x *OrderBookSubscribeRequest) GetSecurityBoard() string
func (*OrderBookSubscribeRequest) GetSecurityCode ¶
func (x *OrderBookSubscribeRequest) GetSecurityCode() string
func (*OrderBookSubscribeRequest) ProtoMessage ¶
func (*OrderBookSubscribeRequest) ProtoMessage()
func (*OrderBookSubscribeRequest) ProtoReflect ¶
func (x *OrderBookSubscribeRequest) ProtoReflect() protoreflect.Message
func (*OrderBookSubscribeRequest) Reset ¶
func (x *OrderBookSubscribeRequest) Reset()
func (*OrderBookSubscribeRequest) String ¶
func (x *OrderBookSubscribeRequest) String() string
type OrderBookUnsubscribeRequest ¶
type OrderBookUnsubscribeRequest struct { // Request ID. // Идентификатор запроса. RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` // Security Code. // Тикер инструмента. SecurityCode string `protobuf:"bytes,2,opt,name=security_code,json=securityCode,proto3" json:"security_code,omitempty"` // Trading Board. // Режим торгов. SecurityBoard string `protobuf:"bytes,3,opt,name=security_board,json=securityBoard,proto3" json:"security_board,omitempty"` // contains filtered or unexported fields }
OrderBook unsubscribe request. Запрос на отписку от стакана.
func (*OrderBookUnsubscribeRequest) Descriptor
deprecated
func (*OrderBookUnsubscribeRequest) Descriptor() ([]byte, []int)
Deprecated: Use OrderBookUnsubscribeRequest.ProtoReflect.Descriptor instead.
func (*OrderBookUnsubscribeRequest) GetRequestId ¶
func (x *OrderBookUnsubscribeRequest) GetRequestId() string
func (*OrderBookUnsubscribeRequest) GetSecurityBoard ¶
func (x *OrderBookUnsubscribeRequest) GetSecurityBoard() string
func (*OrderBookUnsubscribeRequest) GetSecurityCode ¶
func (x *OrderBookUnsubscribeRequest) GetSecurityCode() string
func (*OrderBookUnsubscribeRequest) ProtoMessage ¶
func (*OrderBookUnsubscribeRequest) ProtoMessage()
func (*OrderBookUnsubscribeRequest) ProtoReflect ¶
func (x *OrderBookUnsubscribeRequest) ProtoReflect() protoreflect.Message
func (*OrderBookUnsubscribeRequest) Reset ¶
func (x *OrderBookUnsubscribeRequest) Reset()
func (*OrderBookUnsubscribeRequest) String ¶
func (x *OrderBookUnsubscribeRequest) String() string
type OrderCondition ¶
type OrderCondition struct { // Condition type. // Тип условия. Type OrderConditionType `protobuf:"varint,1,opt,name=type,proto3,enum=proto.tradeapi.v1.OrderConditionType" json:"type,omitempty"` // Conditional value. // Значение для условия. Price float64 `protobuf:"fixed64,2,opt,name=price,proto3" json:"price,omitempty"` // Placement time. // Время выставления. Time *timestamp.Timestamp `protobuf:"bytes,3,opt,name=time,proto3" json:"time,omitempty"` // contains filtered or unexported fields }
Order placement properties. Свойства выставления заявок.
func (*OrderCondition) Descriptor
deprecated
func (*OrderCondition) Descriptor() ([]byte, []int)
Deprecated: Use OrderCondition.ProtoReflect.Descriptor instead.
func (*OrderCondition) GetPrice ¶
func (x *OrderCondition) GetPrice() float64
func (*OrderCondition) GetTime ¶
func (x *OrderCondition) GetTime() *timestamp.Timestamp
func (*OrderCondition) GetType ¶
func (x *OrderCondition) GetType() OrderConditionType
func (*OrderCondition) ProtoMessage ¶
func (*OrderCondition) ProtoMessage()
func (*OrderCondition) ProtoReflect ¶
func (x *OrderCondition) ProtoReflect() protoreflect.Message
func (*OrderCondition) Reset ¶
func (x *OrderCondition) Reset()
func (*OrderCondition) String ¶
func (x *OrderCondition) String() string
type OrderConditionType ¶
type OrderConditionType int32
Conditional order types. Типы условных ордеров.
const ( // Value is not specified. Do not use. // Значение не указано. Не использовать. OrderConditionType_ORDER_CONDITION_TYPE_UNSPECIFIED OrderConditionType = 0 // Best Bid. // Лучшая цена покупки. OrderConditionType_ORDER_CONDITION_TYPE_BID OrderConditionType = 1 // Best Bid or Last trade price and higher. // Лучшая цена покупки или сделка по заданной цене и выше. OrderConditionType_ORDER_CONDITION_TYPE_BID_OR_LAST OrderConditionType = 2 // Best Ask. // Лучшая цена продажи. OrderConditionType_ORDER_CONDITION_TYPE_ASK OrderConditionType = 3 // Best Ask or Last trade price and lower. // Лучшая цена продажи или сделка по заданной цене и ниже. OrderConditionType_ORDER_CONDITION_TYPE_ASK_OR_LAST OrderConditionType = 4 // Placement time. Parameter OrderCondition.time must be set. // Время выставления заявки на Биржу. Параметр OrderCondition.time должен быть установлен. OrderConditionType_ORDER_CONDITION_TYPE_TIME OrderConditionType = 5 // Coverage below specified. // Обеспеченность ниже заданной. OrderConditionType_ORDER_CONDITION_TYPE_COV_DOWN OrderConditionType = 6 // Coverage above specified. // Обеспеченность выше заданной. OrderConditionType_ORDER_CONDITION_TYPE_COV_UP OrderConditionType = 7 // Last trade price and higher. // Сделка на рынке по заданной цене или выше. OrderConditionType_ORDER_CONDITION_TYPE_LAST_UP OrderConditionType = 8 // Last trade price and lower. // Сделка на рынке по заданной цене или ниже. OrderConditionType_ORDER_CONDITION_TYPE_LAST_DOWN OrderConditionType = 9 )
func (OrderConditionType) Descriptor ¶
func (OrderConditionType) Descriptor() protoreflect.EnumDescriptor
func (OrderConditionType) Enum ¶
func (x OrderConditionType) Enum() *OrderConditionType
func (OrderConditionType) EnumDescriptor
deprecated
func (OrderConditionType) EnumDescriptor() ([]byte, []int)
Deprecated: Use OrderConditionType.Descriptor instead.
func (OrderConditionType) Number ¶
func (x OrderConditionType) Number() protoreflect.EnumNumber
func (OrderConditionType) String ¶
func (x OrderConditionType) String() string
func (OrderConditionType) Type ¶
func (OrderConditionType) Type() protoreflect.EnumType
type OrderEvent ¶
type OrderEvent struct { // Order No. Appear only when an order is placed in OrderBook. // Биржевой номер заявки. Появляется после того, как заявка попадает в стакан. OrderNo int64 `protobuf:"varint,1,opt,name=order_no,json=orderNo,proto3" json:"order_no,omitempty"` // Transaction Id . Assigned when a command for new order creation is sent. // Идентификатор транзакции. Назначается после подачи команды на создание новой заявки. TransactionId int32 `protobuf:"varint,2,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` // Security Code. // Тикер инструмента. SecurityCode string `protobuf:"bytes,3,opt,name=security_code,json=securityCode,proto3" json:"security_code,omitempty"` // Trade Account ID. // Идентификатор торгового счёта. ClientId string `protobuf:"bytes,4,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` // Order status. // Состояние заявки. Status OrderStatus `protobuf:"varint,5,opt,name=status,proto3,enum=proto.tradeapi.v1.OrderStatus" json:"status,omitempty"` // Transaction direction. // Направление сделки. BuySell BuySell `protobuf:"varint,6,opt,name=buy_sell,json=buySell,proto3,enum=proto.tradeapi.v1.BuySell" json:"buy_sell,omitempty"` // Time of Order placement in UTC. // Время регистрации заявки на бирже. В UTC. CreatedAt *timestamp.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // Lot price. // Цена за лот. Price float64 `protobuf:"fixed64,8,opt,name=price,proto3" json:"price,omitempty"` // Volume in lots. // Количество, в лотах. Quantity int32 `protobuf:"varint,9,opt,name=quantity,proto3" json:"quantity,omitempty"` // Residual volume in lots. // Неисполненный остаток, в лотах. Balance int32 `protobuf:"varint,10,opt,name=balance,proto3" json:"balance,omitempty"` // Rejection reason or conditional order resolution. // Причина отказа или вердикт по условной заявке. Message string `protobuf:"bytes,11,opt,name=message,proto3" json:"message,omitempty"` // Price currency. // Валюта цены инструмента. Currency string `protobuf:"bytes,12,opt,name=currency,proto3" json:"currency,omitempty"` // Conditional order properties. // Параметры условной заявки. Condition *OrderCondition `protobuf:"bytes,13,opt,name=condition,proto3" json:"condition,omitempty"` // Order lifetime. // Время действия заявки. ValidBefore *OrderValidBefore `protobuf:"bytes,14,opt,name=valid_before,json=validBefore,proto3" json:"valid_before,omitempty"` // Time of order registration on the server in UTC. // Время, когда заявка была зарегистрирована на сервере. В UTC. AcceptedAt *timestamp.Timestamp `protobuf:"bytes,15,opt,name=accepted_at,json=acceptedAt,proto3" json:"accepted_at,omitempty"` // contains filtered or unexported fields }
Order event. Событие с заявкой.
func (*OrderEvent) Descriptor
deprecated
func (*OrderEvent) Descriptor() ([]byte, []int)
Deprecated: Use OrderEvent.ProtoReflect.Descriptor instead.
func (*OrderEvent) GetAcceptedAt ¶
func (x *OrderEvent) GetAcceptedAt() *timestamp.Timestamp
func (*OrderEvent) GetBalance ¶
func (x *OrderEvent) GetBalance() int32
func (*OrderEvent) GetBuySell ¶
func (x *OrderEvent) GetBuySell() BuySell
func (*OrderEvent) GetClientId ¶
func (x *OrderEvent) GetClientId() string
func (*OrderEvent) GetCondition ¶
func (x *OrderEvent) GetCondition() *OrderCondition
func (*OrderEvent) GetCreatedAt ¶
func (x *OrderEvent) GetCreatedAt() *timestamp.Timestamp
func (*OrderEvent) GetCurrency ¶
func (x *OrderEvent) GetCurrency() string
func (*OrderEvent) GetMessage ¶
func (x *OrderEvent) GetMessage() string
func (*OrderEvent) GetOrderNo ¶
func (x *OrderEvent) GetOrderNo() int64
func (*OrderEvent) GetPrice ¶
func (x *OrderEvent) GetPrice() float64
func (*OrderEvent) GetQuantity ¶
func (x *OrderEvent) GetQuantity() int32
func (*OrderEvent) GetSecurityCode ¶
func (x *OrderEvent) GetSecurityCode() string
func (*OrderEvent) GetStatus ¶
func (x *OrderEvent) GetStatus() OrderStatus
func (*OrderEvent) GetTransactionId ¶
func (x *OrderEvent) GetTransactionId() int32
func (*OrderEvent) GetValidBefore ¶
func (x *OrderEvent) GetValidBefore() *OrderValidBefore
func (*OrderEvent) ProtoMessage ¶
func (*OrderEvent) ProtoMessage()
func (*OrderEvent) ProtoReflect ¶
func (x *OrderEvent) ProtoReflect() protoreflect.Message
func (*OrderEvent) Reset ¶
func (x *OrderEvent) Reset()
func (*OrderEvent) String ¶
func (x *OrderEvent) String() string
type OrderProperty ¶
type OrderProperty int32
Order placement properties. Поведение заявки при выставлении в стакан.
const ( // Value is not specified. Do not use. // Значение не указано. Не использовать. OrderProperty_ORDER_PROPERTY_UNSPECIFIED OrderProperty = 0 // The residual of partially matched order is to stay in OrderBook. // Неисполненная часть заявки помещается в очередь заявок биржи. OrderProperty_ORDER_PROPERTY_PUT_IN_QUEUE OrderProperty = 1 // The residual of partially matched order is to be cancelled. // Неисполненная часть заявки снимается с торгов. OrderProperty_ORDER_PROPERTY_CANCEL_BALANCE OrderProperty = 2 // Filling the order only in case the posibility of immediate and full execution. // Сделки совершаются только в том случае, если заявка может быть удовлетворена полностью и сразу при выставлении. OrderProperty_ORDER_PROPERTY_IMM_OR_CANCEL OrderProperty = 3 )
func (OrderProperty) Descriptor ¶
func (OrderProperty) Descriptor() protoreflect.EnumDescriptor
func (OrderProperty) Enum ¶
func (x OrderProperty) Enum() *OrderProperty
func (OrderProperty) EnumDescriptor
deprecated
func (OrderProperty) EnumDescriptor() ([]byte, []int)
Deprecated: Use OrderProperty.Descriptor instead.
func (OrderProperty) Number ¶
func (x OrderProperty) Number() protoreflect.EnumNumber
func (OrderProperty) String ¶
func (x OrderProperty) String() string
func (OrderProperty) Type ¶
func (OrderProperty) Type() protoreflect.EnumType
type OrderStatus ¶
type OrderStatus int32
Order status. Состояние заявки.
const ( // Value is not specified. Do not use. // Значение не указано. Не использовать. OrderStatus_ORDER_STATUS_UNSPECIFIED OrderStatus = 0 // Order is not in OrderBook. // Заявка не выставлена. OrderStatus_ORDER_STATUS_NONE OrderStatus = 1 // Order is in OrderBook. // Заявка выставлена. OrderStatus_ORDER_STATUS_ACTIVE OrderStatus = 2 // Order is canceled. // Заявка отменена. OrderStatus_ORDER_STATUS_CANCELLED OrderStatus = 3 // Order is matched. // Заявка исполнена. OrderStatus_ORDER_STATUS_MATCHED OrderStatus = 4 )
func (OrderStatus) Descriptor ¶
func (OrderStatus) Descriptor() protoreflect.EnumDescriptor
func (OrderStatus) Enum ¶
func (x OrderStatus) Enum() *OrderStatus
func (OrderStatus) EnumDescriptor
deprecated
func (OrderStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use OrderStatus.Descriptor instead.
func (OrderStatus) Number ¶
func (x OrderStatus) Number() protoreflect.EnumNumber
func (OrderStatus) String ¶
func (x OrderStatus) String() string
func (OrderStatus) Type ¶
func (OrderStatus) Type() protoreflect.EnumType
type OrderTradeSubscribeRequest ¶
type OrderTradeSubscribeRequest struct { // Request ID. // Идентификатор запроса. RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` // Включить сделки в подписку. IncludeTrades bool `protobuf:"varint,2,opt,name=include_trades,json=includeTrades,proto3" json:"include_trades,omitempty"` // Включить заявки в подписку. // Тикер инструмента. IncludeOrders bool `protobuf:"varint,3,opt,name=include_orders,json=includeOrders,proto3" json:"include_orders,omitempty"` // Торговые коды счетов. ClientIds []string `protobuf:"bytes,4,rep,name=client_ids,json=clientIds,proto3" json:"client_ids,omitempty"` // contains filtered or unexported fields }
Subscribe for trades and orders. Запрос подписки на ордера и сделки.
func (*OrderTradeSubscribeRequest) Descriptor
deprecated
func (*OrderTradeSubscribeRequest) Descriptor() ([]byte, []int)
Deprecated: Use OrderTradeSubscribeRequest.ProtoReflect.Descriptor instead.
func (*OrderTradeSubscribeRequest) GetClientIds ¶
func (x *OrderTradeSubscribeRequest) GetClientIds() []string
func (*OrderTradeSubscribeRequest) GetIncludeOrders ¶
func (x *OrderTradeSubscribeRequest) GetIncludeOrders() bool
func (*OrderTradeSubscribeRequest) GetIncludeTrades ¶
func (x *OrderTradeSubscribeRequest) GetIncludeTrades() bool
func (*OrderTradeSubscribeRequest) GetRequestId ¶
func (x *OrderTradeSubscribeRequest) GetRequestId() string
func (*OrderTradeSubscribeRequest) ProtoMessage ¶
func (*OrderTradeSubscribeRequest) ProtoMessage()
func (*OrderTradeSubscribeRequest) ProtoReflect ¶
func (x *OrderTradeSubscribeRequest) ProtoReflect() protoreflect.Message
func (*OrderTradeSubscribeRequest) Reset ¶
func (x *OrderTradeSubscribeRequest) Reset()
func (*OrderTradeSubscribeRequest) String ¶
func (x *OrderTradeSubscribeRequest) String() string
type OrderTradeUnsubscribeRequest ¶
type OrderTradeUnsubscribeRequest struct { // Request ID. // Идентификатор запроса. RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` // contains filtered or unexported fields }
Cancel all previous subscription for trades and orders. Отменить все предыдущие запросы на подписки на ордера и сделки.
func (*OrderTradeUnsubscribeRequest) Descriptor
deprecated
func (*OrderTradeUnsubscribeRequest) Descriptor() ([]byte, []int)
Deprecated: Use OrderTradeUnsubscribeRequest.ProtoReflect.Descriptor instead.
func (*OrderTradeUnsubscribeRequest) GetRequestId ¶
func (x *OrderTradeUnsubscribeRequest) GetRequestId() string
func (*OrderTradeUnsubscribeRequest) ProtoMessage ¶
func (*OrderTradeUnsubscribeRequest) ProtoMessage()
func (*OrderTradeUnsubscribeRequest) ProtoReflect ¶
func (x *OrderTradeUnsubscribeRequest) ProtoReflect() protoreflect.Message
func (*OrderTradeUnsubscribeRequest) Reset ¶
func (x *OrderTradeUnsubscribeRequest) Reset()
func (*OrderTradeUnsubscribeRequest) String ¶
func (x *OrderTradeUnsubscribeRequest) String() string
type OrderValidBefore ¶
type OrderValidBefore struct { // Condition type. // Тип условия. Type OrderValidBeforeType `protobuf:"varint,1,opt,name=type,proto3,enum=proto.tradeapi.v1.OrderValidBeforeType" json:"type,omitempty"` // Order lifetime. // Время действия заявки. Time *timestamp.Timestamp `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"` // contains filtered or unexported fields }
Order time condition. Условие по времени действия заявки.
func (*OrderValidBefore) Descriptor
deprecated
func (*OrderValidBefore) Descriptor() ([]byte, []int)
Deprecated: Use OrderValidBefore.ProtoReflect.Descriptor instead.
func (*OrderValidBefore) GetTime ¶
func (x *OrderValidBefore) GetTime() *timestamp.Timestamp
func (*OrderValidBefore) GetType ¶
func (x *OrderValidBefore) GetType() OrderValidBeforeType
func (*OrderValidBefore) ProtoMessage ¶
func (*OrderValidBefore) ProtoMessage()
func (*OrderValidBefore) ProtoReflect ¶
func (x *OrderValidBefore) ProtoReflect() protoreflect.Message
func (*OrderValidBefore) Reset ¶
func (x *OrderValidBefore) Reset()
func (*OrderValidBefore) String ¶
func (x *OrderValidBefore) String() string
type OrderValidBeforeType ¶
type OrderValidBeforeType int32
Time validation for order. Установка временных рамок действия заявки.
const ( // Value is not specified. Do not use. // Значение не указано. Не использовать. OrderValidBeforeType_ORDER_VALID_BEFORE_TYPE_UNSPECIFIED OrderValidBeforeType = 0 // Order is valid till the end of the current session. // Заявка действует до конца сессии. OrderValidBeforeType_ORDER_VALID_BEFORE_TYPE_TILL_END_SESSION OrderValidBeforeType = 1 // Order is valid till cancellation. // Заявка действует, пока не будет отменена. OrderValidBeforeType_ORDER_VALID_BEFORE_TYPE_TILL_CANCELLED OrderValidBeforeType = 2 // Order is valid till specified moment. OrderValidBefore.time parameter must be set. // Заявка действует до указанного времени. Параметр OrderValidBefore.time должно быть установлен. OrderValidBeforeType_ORDER_VALID_BEFORE_TYPE_EXACT_TIME OrderValidBeforeType = 3 )
func (OrderValidBeforeType) Descriptor ¶
func (OrderValidBeforeType) Descriptor() protoreflect.EnumDescriptor
func (OrderValidBeforeType) Enum ¶
func (x OrderValidBeforeType) Enum() *OrderValidBeforeType
func (OrderValidBeforeType) EnumDescriptor
deprecated
func (OrderValidBeforeType) EnumDescriptor() ([]byte, []int)
Deprecated: Use OrderValidBeforeType.Descriptor instead.
func (OrderValidBeforeType) Number ¶
func (x OrderValidBeforeType) Number() protoreflect.EnumNumber
func (OrderValidBeforeType) String ¶
func (x OrderValidBeforeType) String() string
func (OrderValidBeforeType) Type ¶
func (OrderValidBeforeType) Type() protoreflect.EnumType
type OrdersClient ¶
type OrdersClient interface { // Creates new order. // Order placement in OrderBook takes some time due to processing speed, // that is why this method returns transaction_id, which can be used // to find corresponding order in GetOrdersRequest or in OrderEvent message // of Events service (EventResponse.event.order). // Создать новую заявку. // На обработку нового поручения по размещению заявки в биржевой стакан // требуется некоторое время, поэтому этот метод возвращает структуру с // transaction_id, которая может быть использована для поиска соответствующей // заявки через GetOrdersRequest или в сообщении OrderEvent от сервиса событий // (EventResponse.event.order). NewOrder(ctx context.Context, in *NewOrderRequest, opts ...grpc.CallOption) (*NewOrderResult, error) // Cancels order. // Отменяет заявку. CancelOrder(ctx context.Context, in *CancelOrderRequest, opts ...grpc.CallOption) (*CancelOrderResult, error) // Returns the list of orders. // Возвращает список заявок. GetOrders(ctx context.Context, in *GetOrdersRequest, opts ...grpc.CallOption) (*GetOrdersResult, error) }
OrdersClient is the client API for Orders service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewOrdersClient ¶
func NewOrdersClient(cc grpc.ClientConnInterface) OrdersClient
type OrdersServer ¶
type OrdersServer interface { // Creates new order. // Order placement in OrderBook takes some time due to processing speed, // that is why this method returns transaction_id, which can be used // to find corresponding order in GetOrdersRequest or in OrderEvent message // of Events service (EventResponse.event.order). // Создать новую заявку. // На обработку нового поручения по размещению заявки в биржевой стакан // требуется некоторое время, поэтому этот метод возвращает структуру с // transaction_id, которая может быть использована для поиска соответствующей // заявки через GetOrdersRequest или в сообщении OrderEvent от сервиса событий // (EventResponse.event.order). NewOrder(context.Context, *NewOrderRequest) (*NewOrderResult, error) // Cancels order. // Отменяет заявку. CancelOrder(context.Context, *CancelOrderRequest) (*CancelOrderResult, error) // Returns the list of orders. // Возвращает список заявок. GetOrders(context.Context, *GetOrdersRequest) (*GetOrdersResult, error) // contains filtered or unexported methods }
OrdersServer is the server API for Orders service. All implementations must embed UnimplementedOrdersServer for forward compatibility
type PortfolioContent ¶
type PortfolioContent struct { // Currency positions. // Валютные позиции. IncludeCurrencies bool `protobuf:"varint,1,opt,name=include_currencies,json=includeCurrencies,proto3" json:"include_currencies,omitempty"` // Money positions. // Денежные позиции. IncludeMoney bool `protobuf:"varint,2,opt,name=include_money,json=includeMoney,proto3" json:"include_money,omitempty"` // DEPO positions. // Позиции DEPO. IncludePositions bool `protobuf:"varint,3,opt,name=include_positions,json=includePositions,proto3" json:"include_positions,omitempty"` // Buy and Sell limits. // Лимиты покупки и продажи. IncludeMaxBuySell bool `protobuf:"varint,4,opt,name=include_max_buy_sell,json=includeMaxBuySell,proto3" json:"include_max_buy_sell,omitempty"` // contains filtered or unexported fields }
What kind of data the response contains. Какие данные будут в ответе.
func (*PortfolioContent) Descriptor
deprecated
func (*PortfolioContent) Descriptor() ([]byte, []int)
Deprecated: Use PortfolioContent.ProtoReflect.Descriptor instead.
func (*PortfolioContent) GetIncludeCurrencies ¶
func (x *PortfolioContent) GetIncludeCurrencies() bool
func (*PortfolioContent) GetIncludeMaxBuySell ¶
func (x *PortfolioContent) GetIncludeMaxBuySell() bool
func (*PortfolioContent) GetIncludeMoney ¶
func (x *PortfolioContent) GetIncludeMoney() bool
func (*PortfolioContent) GetIncludePositions ¶
func (x *PortfolioContent) GetIncludePositions() bool
func (*PortfolioContent) ProtoMessage ¶
func (*PortfolioContent) ProtoMessage()
func (*PortfolioContent) ProtoReflect ¶
func (x *PortfolioContent) ProtoReflect() protoreflect.Message
func (*PortfolioContent) Reset ¶
func (x *PortfolioContent) Reset()
func (*PortfolioContent) String ¶
func (x *PortfolioContent) String() string
type PortfolioEvent ¶
type PortfolioEvent struct { // Trade Account ID. // Идентификатор торгового счёта. ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` // What kind of data portfolio event contains. // Какие данные находятся в событии портфеля. Content *PortfolioContent `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` // Current equity, RUB. // Текущая оценка портфеля в рублях. Equity float64 `protobuf:"fixed64,3,opt,name=equity,proto3" json:"equity,omitempty"` // Open Equity, RUB. // Входящая оценка портфеля в рублях. Balance float64 `protobuf:"fixed64,4,opt,name=balance,proto3" json:"balance,omitempty"` // DEPO positions. // Позиции DEPO. Positions []*PositionRow `protobuf:"bytes,5,rep,name=positions,proto3" json:"positions,omitempty"` // Currency positions. // Валютные позиции. Currencies []*CurrencyRow `protobuf:"bytes,6,rep,name=currencies,proto3" json:"currencies,omitempty"` // Money positions. // Денежные позиции. Money []*MoneyRow `protobuf:"bytes,7,rep,name=money,proto3" json:"money,omitempty"` // contains filtered or unexported fields }
Portfolio event. Событие портфеля.
func (*PortfolioEvent) Descriptor
deprecated
func (*PortfolioEvent) Descriptor() ([]byte, []int)
Deprecated: Use PortfolioEvent.ProtoReflect.Descriptor instead.
func (*PortfolioEvent) GetBalance ¶
func (x *PortfolioEvent) GetBalance() float64
func (*PortfolioEvent) GetClientId ¶
func (x *PortfolioEvent) GetClientId() string
func (*PortfolioEvent) GetContent ¶
func (x *PortfolioEvent) GetContent() *PortfolioContent
func (*PortfolioEvent) GetCurrencies ¶
func (x *PortfolioEvent) GetCurrencies() []*CurrencyRow
func (*PortfolioEvent) GetEquity ¶
func (x *PortfolioEvent) GetEquity() float64
func (*PortfolioEvent) GetMoney ¶
func (x *PortfolioEvent) GetMoney() []*MoneyRow
func (*PortfolioEvent) GetPositions ¶
func (x *PortfolioEvent) GetPositions() []*PositionRow
func (*PortfolioEvent) ProtoMessage ¶
func (*PortfolioEvent) ProtoMessage()
func (*PortfolioEvent) ProtoReflect ¶
func (x *PortfolioEvent) ProtoReflect() protoreflect.Message
func (*PortfolioEvent) Reset ¶
func (x *PortfolioEvent) Reset()
func (*PortfolioEvent) String ¶
func (x *PortfolioEvent) String() string
type PortfolioSubscription ¶
type PortfolioSubscription struct { // Trade Account ID. // Идентификатор торгового счёта. ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` // What kind of data the response contains. // Какие данные будут в ответе. Content *PortfolioContent `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
Portfolio subscription. Подписка на портфель.
func (*PortfolioSubscription) Descriptor
deprecated
func (*PortfolioSubscription) Descriptor() ([]byte, []int)
Deprecated: Use PortfolioSubscription.ProtoReflect.Descriptor instead.
func (*PortfolioSubscription) GetClientId ¶
func (x *PortfolioSubscription) GetClientId() string
func (*PortfolioSubscription) GetContent ¶
func (x *PortfolioSubscription) GetContent() *PortfolioContent
func (*PortfolioSubscription) ProtoMessage ¶
func (*PortfolioSubscription) ProtoMessage()
func (*PortfolioSubscription) ProtoReflect ¶
func (x *PortfolioSubscription) ProtoReflect() protoreflect.Message
func (*PortfolioSubscription) Reset ¶
func (x *PortfolioSubscription) Reset()
func (*PortfolioSubscription) String ¶
func (x *PortfolioSubscription) String() string
type PortfoliosClient ¶
type PortfoliosClient interface { // Returns portfolio. // Возвращает портфель. GetPortfolio(ctx context.Context, in *GetPortfolioRequest, opts ...grpc.CallOption) (*GetPortfolioResult, error) }
PortfoliosClient is the client API for Portfolios service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewPortfoliosClient ¶
func NewPortfoliosClient(cc grpc.ClientConnInterface) PortfoliosClient
type PortfoliosServer ¶
type PortfoliosServer interface { // Returns portfolio. // Возвращает портфель. GetPortfolio(context.Context, *GetPortfolioRequest) (*GetPortfolioResult, error) // contains filtered or unexported methods }
PortfoliosServer is the server API for Portfolios service. All implementations must embed UnimplementedPortfoliosServer for forward compatibility
type PositionRow ¶
type PositionRow struct { // Security Code. // Тикер инструмента. SecurityCode string `protobuf:"bytes,1,opt,name=security_code,json=securityCode,proto3" json:"security_code,omitempty"` // Security market. // Рынок инструмента. Market Market `protobuf:"varint,2,opt,name=market,proto3,enum=proto.tradeapi.v1.Market" json:"market,omitempty"` // Current position, items. // Текущая позиция, шт. Balance int64 `protobuf:"varint,3,opt,name=balance,proto3" json:"balance,omitempty"` // Current price in price_currency. // Текущая цена в валюте цены инструмента. CurrentPrice float64 `protobuf:"fixed64,4,opt,name=current_price,json=currentPrice,proto3" json:"current_price,omitempty"` // Positions equity. // Оценка позиции по инструменту в валюте риска. Equity float64 `protobuf:"fixed64,5,opt,name=equity,proto3" json:"equity,omitempty"` // Balanced price of security in price_currency. // Балансовая цена в валюте цены инструмента. AveragePrice float64 `protobuf:"fixed64,6,opt,name=average_price,json=averagePrice,proto3" json:"average_price,omitempty"` // Risk currency. // Валюта риска. Currency string `protobuf:"bytes,7,opt,name=currency,proto3" json:"currency,omitempty"` // P/L for initial position, in risk currency. // Прибыль/убыток по входящей позиции, в валюте риска. AccumulatedProfit float64 `protobuf:"fixed64,8,opt,name=accumulated_profit,json=accumulatedProfit,proto3" json:"accumulated_profit,omitempty"` // Daily P/L, in risk currency. // Прибыль/убыток по сделкам за день, в валюте риска. TodayProfit float64 `protobuf:"fixed64,9,opt,name=today_profit,json=todayProfit,proto3" json:"today_profit,omitempty"` // Unrealized P/L, in average_price_currency. // Нереализованные прибыль/убытки по балансовой цене в валюте инструмента. UnrealizedProfit float64 `protobuf:"fixed64,10,opt,name=unrealized_profit,json=unrealizedProfit,proto3" json:"unrealized_profit,omitempty"` // P/L in price_currency. // Прибыль/убытки в валюте цены инструмента. Profit float64 `protobuf:"fixed64,11,opt,name=profit,proto3" json:"profit,omitempty"` // Max lots to buy. // Максимальное кол-во лотов, доступных для покупки. MaxBuy int64 `protobuf:"varint,12,opt,name=max_buy,json=maxBuy,proto3" json:"max_buy,omitempty"` // Max lots to sell. // Максимальное кол-во лотов, доступных для продажи. MaxSell int64 `protobuf:"varint,13,opt,name=max_sell,json=maxSell,proto3" json:"max_sell,omitempty"` // Security price currency. // Валюта цены инструмента. PriceCurrency string `protobuf:"bytes,14,opt,name=price_currency,json=priceCurrency,proto3" json:"price_currency,omitempty"` // Balanced price currency. // Валюта балансовой цены. AveragePriceCurrency string `protobuf:"bytes,15,opt,name=average_price_currency,json=averagePriceCurrency,proto3" json:"average_price_currency,omitempty"` // Risk Currency to Price currency Cross rate. // Кросс-курс валюты балансовой цены к валюте риска. AverageRate float64 `protobuf:"fixed64,16,opt,name=average_rate,json=averageRate,proto3" json:"average_rate,omitempty"` // contains filtered or unexported fields }
DEPO position. Позиция DEPO.
func (*PositionRow) Descriptor
deprecated
func (*PositionRow) Descriptor() ([]byte, []int)
Deprecated: Use PositionRow.ProtoReflect.Descriptor instead.
func (*PositionRow) GetAccumulatedProfit ¶
func (x *PositionRow) GetAccumulatedProfit() float64
func (*PositionRow) GetAveragePrice ¶
func (x *PositionRow) GetAveragePrice() float64
func (*PositionRow) GetAveragePriceCurrency ¶
func (x *PositionRow) GetAveragePriceCurrency() string
func (*PositionRow) GetAverageRate ¶
func (x *PositionRow) GetAverageRate() float64
func (*PositionRow) GetBalance ¶
func (x *PositionRow) GetBalance() int64
func (*PositionRow) GetCurrency ¶
func (x *PositionRow) GetCurrency() string
func (*PositionRow) GetCurrentPrice ¶
func (x *PositionRow) GetCurrentPrice() float64
func (*PositionRow) GetEquity ¶
func (x *PositionRow) GetEquity() float64
func (*PositionRow) GetMarket ¶
func (x *PositionRow) GetMarket() Market
func (*PositionRow) GetMaxBuy ¶
func (x *PositionRow) GetMaxBuy() int64
func (*PositionRow) GetMaxSell ¶
func (x *PositionRow) GetMaxSell() int64
func (*PositionRow) GetPriceCurrency ¶
func (x *PositionRow) GetPriceCurrency() string
func (*PositionRow) GetProfit ¶
func (x *PositionRow) GetProfit() float64
func (*PositionRow) GetSecurityCode ¶
func (x *PositionRow) GetSecurityCode() string
func (*PositionRow) GetTodayProfit ¶
func (x *PositionRow) GetTodayProfit() float64
func (*PositionRow) GetUnrealizedProfit ¶
func (x *PositionRow) GetUnrealizedProfit() float64
func (*PositionRow) ProtoMessage ¶
func (*PositionRow) ProtoMessage()
func (*PositionRow) ProtoReflect ¶
func (x *PositionRow) ProtoReflect() protoreflect.Message
func (*PositionRow) Reset ¶
func (x *PositionRow) Reset()
func (*PositionRow) String ¶
func (x *PositionRow) String() string
type ResponseEvent ¶
type ResponseEvent struct { // Request ID. // Идентификатор запроса. RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` // Request execution result. // Результат выполнения запроса. Success bool `protobuf:"varint,2,opt,name=success,proto3" json:"success,omitempty"` // Errors in request execution. // Ошибки выполнения запроса. Errors []*Error `protobuf:"bytes,3,rep,name=errors,proto3" json:"errors,omitempty"` // contains filtered or unexported fields }
Request execution result. Результат выполнения запроса.
func (*ResponseEvent) Descriptor
deprecated
func (*ResponseEvent) Descriptor() ([]byte, []int)
Deprecated: Use ResponseEvent.ProtoReflect.Descriptor instead.
func (*ResponseEvent) GetErrors ¶
func (x *ResponseEvent) GetErrors() []*Error
func (*ResponseEvent) GetRequestId ¶
func (x *ResponseEvent) GetRequestId() string
func (*ResponseEvent) GetSuccess ¶
func (x *ResponseEvent) GetSuccess() bool
func (*ResponseEvent) ProtoMessage ¶
func (*ResponseEvent) ProtoMessage()
func (*ResponseEvent) ProtoReflect ¶
func (x *ResponseEvent) ProtoReflect() protoreflect.Message
func (*ResponseEvent) Reset ¶
func (x *ResponseEvent) Reset()
func (*ResponseEvent) String ¶
func (x *ResponseEvent) String() string
type Stop ¶
type Stop struct { // Stop Order Id. // Идентификатор стоп-заявки. StopId int32 `protobuf:"varint,1,opt,name=stop_id,json=stopId,proto3" json:"stop_id,omitempty"` // Security Code. // Тикер инструмента. SecurityCode string `protobuf:"bytes,2,opt,name=security_code,json=securityCode,proto3" json:"security_code,omitempty"` // Security Board. // Основной режим торгов инструмента. SecurityBoard string `protobuf:"bytes,3,opt,name=security_board,json=securityBoard,proto3" json:"security_board,omitempty"` // Market. // Рынок. Market Market `protobuf:"varint,4,opt,name=market,proto3,enum=proto.tradeapi.v1.Market" json:"market,omitempty"` // Trade Account ID. // Идентификатор торгового счёта. ClientId string `protobuf:"bytes,5,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` // Transaction direction. // Направление сделки. BuySell BuySell `protobuf:"varint,6,opt,name=buy_sell,json=buySell,proto3,enum=proto.tradeapi.v1.BuySell" json:"buy_sell,omitempty"` // Expiration date for FORTS order. // Дата экспирации заявки FORTS. ExpirationDate *timestamp.Timestamp `protobuf:"bytes,7,opt,name=expiration_date,json=expirationDate,proto3" json:"expiration_date,omitempty"` // Linked order ID. // Биржевой номер связанной (активной) заявки. LinkOrder int64 `protobuf:"varint,8,opt,name=link_order,json=linkOrder,proto3" json:"link_order,omitempty"` // Order lifetime. // Время действия заявки. ValidBefore *OrderValidBefore `protobuf:"bytes,9,opt,name=valid_before,json=validBefore,proto3" json:"valid_before,omitempty"` // Order status. // Состояние заявки. Status StopStatus `protobuf:"varint,10,opt,name=status,proto3,enum=proto.tradeapi.v1.StopStatus" json:"status,omitempty"` // Rejection reason or conditional order resolution. // Причина отказа или вердикт по условной заявке. Message string `protobuf:"bytes,11,opt,name=message,proto3" json:"message,omitempty"` // Order No. // Номер заявки, полученной в результате исполнения стопа. OrderNo int64 `protobuf:"varint,12,opt,name=order_no,json=orderNo,proto3" json:"order_no,omitempty"` // Trade No. // Номер сделки, которая привела к исполнению стопа. TradeNo int64 `protobuf:"varint,13,opt,name=trade_no,json=tradeNo,proto3" json:"trade_no,omitempty"` // Time of order registration on the server in UTC. // Время, когда заявка была зарегистрирована на сервере. В UTC. AcceptedAt *timestamp.Timestamp `protobuf:"bytes,14,opt,name=accepted_at,json=acceptedAt,proto3" json:"accepted_at,omitempty"` // Time of order canceled on the server in UTC. // Время, когда заявка была отменена на сервере. В UTC. CanceledAt *timestamp.Timestamp `protobuf:"bytes,15,opt,name=canceled_at,json=canceledAt,proto3" json:"canceled_at,omitempty"` // Price currency. // Валюта цены. Currency string `protobuf:"bytes,16,opt,name=currency,proto3" json:"currency,omitempty"` // Take profit: local extremum. // Тейк профит: текущий локальный экстремум. TakeProfitExtremum float64 `protobuf:"fixed64,17,opt,name=take_profit_extremum,json=takeProfitExtremum,proto3" json:"take_profit_extremum,omitempty"` // Take profit: correction level. // Тейк профит: текущий уровень коррекции. TakeProfitLevel float64 `protobuf:"fixed64,18,opt,name=take_profit_level,json=takeProfitLevel,proto3" json:"take_profit_level,omitempty"` // Stop loss. // Стоп лосс. StopLoss *StopLoss `protobuf:"bytes,19,opt,name=stop_loss,json=stopLoss,proto3" json:"stop_loss,omitempty"` // Take profit. // Тейк профит. TakeProfit *TakeProfit `protobuf:"bytes,20,opt,name=take_profit,json=takeProfit,proto3" json:"take_profit,omitempty"` // contains filtered or unexported fields }
Stop Order. Стоп-заявка.
func (*Stop) Descriptor
deprecated
func (*Stop) GetAcceptedAt ¶
func (*Stop) GetBuySell ¶
func (*Stop) GetCanceledAt ¶
func (*Stop) GetClientId ¶
func (*Stop) GetCurrency ¶
func (*Stop) GetExpirationDate ¶
func (*Stop) GetLinkOrder ¶
func (*Stop) GetMessage ¶
func (*Stop) GetOrderNo ¶
func (*Stop) GetSecurityBoard ¶
func (*Stop) GetSecurityCode ¶
func (*Stop) GetStatus ¶
func (x *Stop) GetStatus() StopStatus
func (*Stop) GetStopLoss ¶
func (*Stop) GetTakeProfit ¶
func (x *Stop) GetTakeProfit() *TakeProfit
func (*Stop) GetTakeProfitExtremum ¶
func (*Stop) GetTakeProfitLevel ¶
func (*Stop) GetTradeNo ¶
func (*Stop) GetValidBefore ¶
func (x *Stop) GetValidBefore() *OrderValidBefore
func (*Stop) ProtoMessage ¶
func (*Stop) ProtoMessage()
func (*Stop) ProtoReflect ¶
func (x *Stop) ProtoReflect() protoreflect.Message
type StopLoss ¶
type StopLoss struct { // Activation price. // Цена активации. ActivationPrice float64 `protobuf:"fixed64,1,opt,name=activation_price,json=activationPrice,proto3" json:"activation_price,omitempty"` // Price. // Цена заявки. Price float64 `protobuf:"fixed64,2,opt,name=price,proto3" json:"price,omitempty"` // Market price. // По рынку. MarketPrice bool `protobuf:"varint,3,opt,name=market_price,json=marketPrice,proto3" json:"market_price,omitempty"` // Quantity. // Количество. Quantity *StopQuantity `protobuf:"bytes,4,opt,name=quantity,proto3" json:"quantity,omitempty"` // Time, seconds. // Защитное время, сек. Time int32 `protobuf:"varint,5,opt,name=time,proto3" json:"time,omitempty"` // Use credit. // Использовать кредит. UseCredit bool `protobuf:"varint,6,opt,name=use_credit,json=useCredit,proto3" json:"use_credit,omitempty"` // contains filtered or unexported fields }
StopLoss order. Стоп лосс заявка.
func (*StopLoss) Descriptor
deprecated
func (*StopLoss) GetActivationPrice ¶
func (*StopLoss) GetMarketPrice ¶
func (*StopLoss) GetQuantity ¶
func (x *StopLoss) GetQuantity() *StopQuantity
func (*StopLoss) GetUseCredit ¶
func (*StopLoss) ProtoMessage ¶
func (*StopLoss) ProtoMessage()
func (*StopLoss) ProtoReflect ¶
func (x *StopLoss) ProtoReflect() protoreflect.Message
type StopPrice ¶
type StopPrice struct { // Value. // Значение цены. Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"` // Units. // Единицы цены. Units StopPriceUnits `protobuf:"varint,2,opt,name=units,proto3,enum=proto.tradeapi.v1.StopPriceUnits" json:"units,omitempty"` // contains filtered or unexported fields }
Stop price. Цена стоп-заявки.
func (*StopPrice) Descriptor
deprecated
func (*StopPrice) GetUnits ¶
func (x *StopPrice) GetUnits() StopPriceUnits
func (*StopPrice) ProtoMessage ¶
func (*StopPrice) ProtoMessage()
func (*StopPrice) ProtoReflect ¶
func (x *StopPrice) ProtoReflect() protoreflect.Message
type StopPriceUnits ¶
type StopPriceUnits int32
Stop price units. Единицы цены стоп-заявки.
const ( // Value is not specified. Do not use. // Значение не указано. Не использовать. StopPriceUnits_STOP_PRICE_UNITS_UNSPECIFIED StopPriceUnits = 0 // Percent. // Значение а процентах. StopPriceUnits_STOP_PRICE_UNITS_PERCENT StopPriceUnits = 1 // Lots. // Значение в лотах. StopPriceUnits_STOP_PRICE_UNITS_PIPS StopPriceUnits = 2 )
func (StopPriceUnits) Descriptor ¶
func (StopPriceUnits) Descriptor() protoreflect.EnumDescriptor
func (StopPriceUnits) Enum ¶
func (x StopPriceUnits) Enum() *StopPriceUnits
func (StopPriceUnits) EnumDescriptor
deprecated
func (StopPriceUnits) EnumDescriptor() ([]byte, []int)
Deprecated: Use StopPriceUnits.Descriptor instead.
func (StopPriceUnits) Number ¶
func (x StopPriceUnits) Number() protoreflect.EnumNumber
func (StopPriceUnits) String ¶
func (x StopPriceUnits) String() string
func (StopPriceUnits) Type ¶
func (StopPriceUnits) Type() protoreflect.EnumType
type StopQuantity ¶
type StopQuantity struct { // Value. // Значение объема. Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"` // Units. // Единицы объема. Units StopQuantityUnits `protobuf:"varint,2,opt,name=units,proto3,enum=proto.tradeapi.v1.StopQuantityUnits" json:"units,omitempty"` // contains filtered or unexported fields }
Stop quantity. Объем стоп-заявки.
func (*StopQuantity) Descriptor
deprecated
func (*StopQuantity) Descriptor() ([]byte, []int)
Deprecated: Use StopQuantity.ProtoReflect.Descriptor instead.
func (*StopQuantity) GetUnits ¶
func (x *StopQuantity) GetUnits() StopQuantityUnits
func (*StopQuantity) GetValue ¶
func (x *StopQuantity) GetValue() float64
func (*StopQuantity) ProtoMessage ¶
func (*StopQuantity) ProtoMessage()
func (*StopQuantity) ProtoReflect ¶
func (x *StopQuantity) ProtoReflect() protoreflect.Message
func (*StopQuantity) Reset ¶
func (x *StopQuantity) Reset()
func (*StopQuantity) String ¶
func (x *StopQuantity) String() string
type StopQuantityUnits ¶
type StopQuantityUnits int32
Stop quantity units. Единицы объема стоп-заявки.
const ( // Value is not specified. Do not use. // Значение не указано. Не использовать. StopQuantityUnits_STOP_QUANTITY_UNITS_UNSPECIFIED StopQuantityUnits = 0 // Percent. // Значение а процентах. StopQuantityUnits_STOP_QUANTITY_UNITS_PERCENT StopQuantityUnits = 1 // Lots. // Значение в лотах. StopQuantityUnits_STOP_QUANTITY_UNITS_LOTS StopQuantityUnits = 2 )
func (StopQuantityUnits) Descriptor ¶
func (StopQuantityUnits) Descriptor() protoreflect.EnumDescriptor
func (StopQuantityUnits) Enum ¶
func (x StopQuantityUnits) Enum() *StopQuantityUnits
func (StopQuantityUnits) EnumDescriptor
deprecated
func (StopQuantityUnits) EnumDescriptor() ([]byte, []int)
Deprecated: Use StopQuantityUnits.Descriptor instead.
func (StopQuantityUnits) Number ¶
func (x StopQuantityUnits) Number() protoreflect.EnumNumber
func (StopQuantityUnits) String ¶
func (x StopQuantityUnits) String() string
func (StopQuantityUnits) Type ¶
func (StopQuantityUnits) Type() protoreflect.EnumType
type StopStatus ¶
type StopStatus int32
Stop order status. Состояние заявки.
const ( // Value is not specified. Do not use. // Значение не указано. Не использовать. StopStatus_STOP_STATUS_UNSPECIFIED StopStatus = 0 // Order is not in OrderBook. // Заявка не выставлена. StopStatus_STOP_STATUS_NONE StopStatus = 1 // Order is in OrderBook. // Заявка выставлена. StopStatus_STOP_STATUS_ACTIVE StopStatus = 2 // Order is cancelled. // Заявка отменена. StopStatus_STOP_STATUS_CANCELLED StopStatus = 3 // Order is executed. // Заявка выполнена. StopStatus_STOP_STATUS_EXECUTED StopStatus = 4 )
func (StopStatus) Descriptor ¶
func (StopStatus) Descriptor() protoreflect.EnumDescriptor
func (StopStatus) Enum ¶
func (x StopStatus) Enum() *StopStatus
func (StopStatus) EnumDescriptor
deprecated
func (StopStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use StopStatus.Descriptor instead.
func (StopStatus) Number ¶
func (x StopStatus) Number() protoreflect.EnumNumber
func (StopStatus) String ¶
func (x StopStatus) String() string
func (StopStatus) Type ¶
func (StopStatus) Type() protoreflect.EnumType
type StopsClient ¶
type StopsClient interface { // Returns the list of Stop Orders. // Возвращает список стоп-заявок. GetStops(ctx context.Context, in *GetStopsRequest, opts ...grpc.CallOption) (*GetStopsResult, error) // Cancels Stop Order. // Снимает стоп-заявку. CancelStop(ctx context.Context, in *CancelStopRequest, opts ...grpc.CallOption) (*CancelStopResult, error) // Creates new Stop Order. // Выставляет стоп-заявку. NewStop(ctx context.Context, in *NewStopRequest, opts ...grpc.CallOption) (*NewStopResult, error) }
StopsClient is the client API for Stops service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewStopsClient ¶
func NewStopsClient(cc grpc.ClientConnInterface) StopsClient
type StopsServer ¶
type StopsServer interface { // Returns the list of Stop Orders. // Возвращает список стоп-заявок. GetStops(context.Context, *GetStopsRequest) (*GetStopsResult, error) // Cancels Stop Order. // Снимает стоп-заявку. CancelStop(context.Context, *CancelStopRequest) (*CancelStopResult, error) // Creates new Stop Order. // Выставляет стоп-заявку. NewStop(context.Context, *NewStopRequest) (*NewStopResult, error) // contains filtered or unexported methods }
StopsServer is the server API for Stops service. All implementations must embed UnimplementedStopsServer for forward compatibility
type SubscriptionRequest ¶
type SubscriptionRequest struct { // Set only one parameter. // Определите только одно из полей. // // Types that are assignable to Payload: // *SubscriptionRequest_OrderBookSubscribeRequest // *SubscriptionRequest_OrderBookUnsubscribeRequest // *SubscriptionRequest_OrderTradeSubscribeRequest // *SubscriptionRequest_OrderTradeUnsubscribeRequest Payload isSubscriptionRequest_Payload `protobuf_oneof:"payload"` // contains filtered or unexported fields }
Subscription/unsubscription. Подписка/отписка.
func (*SubscriptionRequest) Descriptor
deprecated
func (*SubscriptionRequest) Descriptor() ([]byte, []int)
Deprecated: Use SubscriptionRequest.ProtoReflect.Descriptor instead.
func (*SubscriptionRequest) GetOrderBookSubscribeRequest ¶
func (x *SubscriptionRequest) GetOrderBookSubscribeRequest() *OrderBookSubscribeRequest
func (*SubscriptionRequest) GetOrderBookUnsubscribeRequest ¶
func (x *SubscriptionRequest) GetOrderBookUnsubscribeRequest() *OrderBookUnsubscribeRequest
func (*SubscriptionRequest) GetOrderTradeSubscribeRequest ¶
func (x *SubscriptionRequest) GetOrderTradeSubscribeRequest() *OrderTradeSubscribeRequest
func (*SubscriptionRequest) GetOrderTradeUnsubscribeRequest ¶
func (x *SubscriptionRequest) GetOrderTradeUnsubscribeRequest() *OrderTradeUnsubscribeRequest
func (*SubscriptionRequest) GetPayload ¶
func (m *SubscriptionRequest) GetPayload() isSubscriptionRequest_Payload
func (*SubscriptionRequest) ProtoMessage ¶
func (*SubscriptionRequest) ProtoMessage()
func (*SubscriptionRequest) ProtoReflect ¶
func (x *SubscriptionRequest) ProtoReflect() protoreflect.Message
func (*SubscriptionRequest) Reset ¶
func (x *SubscriptionRequest) Reset()
func (*SubscriptionRequest) String ¶
func (x *SubscriptionRequest) String() string
type SubscriptionRequest_OrderBookSubscribeRequest ¶
type SubscriptionRequest_OrderBookSubscribeRequest struct { // OrderBook subscription request. // Запрос подписки на стакан. OrderBookSubscribeRequest *OrderBookSubscribeRequest `protobuf:"bytes,1,opt,name=order_book_subscribe_request,json=orderBookSubscribeRequest,proto3,oneof"` }
type SubscriptionRequest_OrderBookUnsubscribeRequest ¶
type SubscriptionRequest_OrderBookUnsubscribeRequest struct { // OrderBook unsubscribe request. // Запрос на отписку от стакана. OrderBookUnsubscribeRequest *OrderBookUnsubscribeRequest `protobuf:"bytes,2,opt,name=order_book_unsubscribe_request,json=orderBookUnsubscribeRequest,proto3,oneof"` }
type SubscriptionRequest_OrderTradeSubscribeRequest ¶
type SubscriptionRequest_OrderTradeSubscribeRequest struct { // Subscribe for trades and orders. // Запрос подписки на ордера и сделки. OrderTradeSubscribeRequest *OrderTradeSubscribeRequest `protobuf:"bytes,3,opt,name=order_trade_subscribe_request,json=orderTradeSubscribeRequest,proto3,oneof"` }
type SubscriptionRequest_OrderTradeUnsubscribeRequest ¶
type SubscriptionRequest_OrderTradeUnsubscribeRequest struct { // Cancel all previous subscription for trades and orders. // Отменить все предыдущие запросы на подписки на ордера и сделки. OrderTradeUnsubscribeRequest *OrderTradeUnsubscribeRequest `protobuf:"bytes,4,opt,name=order_trade_unsubscribe_request,json=orderTradeUnsubscribeRequest,proto3,oneof"` }
type TakeProfit ¶
type TakeProfit struct { // Activation price. // Цена активации. ActivationPrice float64 `protobuf:"fixed64,1,opt,name=activation_price,json=activationPrice,proto3" json:"activation_price,omitempty"` // Correction. // Коррекция. CorrectionPrice *StopPrice `protobuf:"bytes,2,opt,name=correction_price,json=correctionPrice,proto3" json:"correction_price,omitempty"` // Spread price. // Защитный спрэд. SpreadPrice *StopPrice `protobuf:"bytes,3,opt,name=spread_price,json=spreadPrice,proto3" json:"spread_price,omitempty"` // Market price. // По рынку. MarketPrice bool `protobuf:"varint,4,opt,name=market_price,json=marketPrice,proto3" json:"market_price,omitempty"` // Quantity. // Количество. Quantity *StopQuantity `protobuf:"bytes,5,opt,name=quantity,proto3" json:"quantity,omitempty"` // Time, seconds. // Защитное время, сек. Time int32 `protobuf:"varint,6,opt,name=time,proto3" json:"time,omitempty"` // Use credit. // Использовать кредит. UseCredit bool `protobuf:"varint,7,opt,name=use_credit,json=useCredit,proto3" json:"use_credit,omitempty"` // contains filtered or unexported fields }
TakeProfit order. Тейк профит заявка.
func (*TakeProfit) Descriptor
deprecated
func (*TakeProfit) Descriptor() ([]byte, []int)
Deprecated: Use TakeProfit.ProtoReflect.Descriptor instead.
func (*TakeProfit) GetActivationPrice ¶
func (x *TakeProfit) GetActivationPrice() float64
func (*TakeProfit) GetCorrectionPrice ¶
func (x *TakeProfit) GetCorrectionPrice() *StopPrice
func (*TakeProfit) GetMarketPrice ¶
func (x *TakeProfit) GetMarketPrice() bool
func (*TakeProfit) GetQuantity ¶
func (x *TakeProfit) GetQuantity() *StopQuantity
func (*TakeProfit) GetSpreadPrice ¶
func (x *TakeProfit) GetSpreadPrice() *StopPrice
func (*TakeProfit) GetTime ¶
func (x *TakeProfit) GetTime() int32
func (*TakeProfit) GetUseCredit ¶
func (x *TakeProfit) GetUseCredit() bool
func (*TakeProfit) ProtoMessage ¶
func (*TakeProfit) ProtoMessage()
func (*TakeProfit) ProtoReflect ¶
func (x *TakeProfit) ProtoReflect() protoreflect.Message
func (*TakeProfit) Reset ¶
func (x *TakeProfit) Reset()
func (*TakeProfit) String ¶
func (x *TakeProfit) String() string
type TimeFrame ¶
type TimeFrame struct { // Timeframe units. // Единицы измерения таймфрейма. TimeUnit TimeFrame_Unit `protobuf:"varint,1,opt,name=time_unit,json=timeUnit,proto3,enum=proto.tradeapi.v1.TimeFrame_Unit" json:"time_unit,omitempty"` // contains filtered or unexported fields }
Timeframe. Таймфрейм.
func (*TimeFrame) Descriptor
deprecated
func (*TimeFrame) GetTimeUnit ¶
func (x *TimeFrame) GetTimeUnit() TimeFrame_Unit
func (*TimeFrame) ProtoMessage ¶
func (*TimeFrame) ProtoMessage()
func (*TimeFrame) ProtoReflect ¶
func (x *TimeFrame) ProtoReflect() protoreflect.Message
type TimeFrame_Unit ¶
type TimeFrame_Unit int32
const ( // Value is not specified. Do not use. // Значение не указано. Не использовать. TimeFrame_UNIT_UNSPECIFIED TimeFrame_Unit = 0 // Munute. // Минута. TimeFrame_UNIT_MINUTE TimeFrame_Unit = 1 // Hour. // Час. TimeFrame_UNIT_HOUR TimeFrame_Unit = 2 // Day. // День. TimeFrame_UNIT_DAY TimeFrame_Unit = 3 // Week. // Неделя. TimeFrame_UNIT_WEEK TimeFrame_Unit = 4 // Month. // Месяц. TimeFrame_UNIT_MONTH TimeFrame_Unit = 5 // Quarter. // Квартал. TimeFrame_UNIT_QUARTER TimeFrame_Unit = 6 // Year. // Год. TimeFrame_UNIT_YEAR TimeFrame_Unit = 7 )
func (TimeFrame_Unit) Descriptor ¶
func (TimeFrame_Unit) Descriptor() protoreflect.EnumDescriptor
func (TimeFrame_Unit) Enum ¶
func (x TimeFrame_Unit) Enum() *TimeFrame_Unit
func (TimeFrame_Unit) EnumDescriptor
deprecated
func (TimeFrame_Unit) EnumDescriptor() ([]byte, []int)
Deprecated: Use TimeFrame_Unit.Descriptor instead.
func (TimeFrame_Unit) Number ¶
func (x TimeFrame_Unit) Number() protoreflect.EnumNumber
func (TimeFrame_Unit) String ¶
func (x TimeFrame_Unit) String() string
func (TimeFrame_Unit) Type ¶
func (TimeFrame_Unit) Type() protoreflect.EnumType
type TradeEvent ¶
type TradeEvent struct { // Security Code. // Тикер инструмента. SecurityCode string `protobuf:"bytes,1,opt,name=security_code,json=securityCode,proto3" json:"security_code,omitempty"` // Trade No. // Номер сделки. TradeNo int64 `protobuf:"varint,2,opt,name=trade_no,json=tradeNo,proto3" json:"trade_no,omitempty"` // Order No. // Номер заявки. OrderNo int64 `protobuf:"varint,3,opt,name=order_no,json=orderNo,proto3" json:"order_no,omitempty"` // Trade Account ID. // Идентификатор торгового счёта. ClientId string `protobuf:"bytes,4,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` // Time of trade registration on stock exchange in UTC. // Время исполнения сделки на бирже. В UTC. CreatedAt *timestamp.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // Volume in lots. // Количество, в лотах. Quantity int64 `protobuf:"varint,6,opt,name=quantity,proto3" json:"quantity,omitempty"` // Trade Price. // Цена сделки. Price float64 `protobuf:"fixed64,7,opt,name=price,proto3" json:"price,omitempty"` // Trade currency value. // Объём сделки в валюте инструмента. Value float64 `protobuf:"fixed64,8,opt,name=value,proto3" json:"value,omitempty"` // Transaction direction. // Направление сделки. BuySell BuySell `protobuf:"varint,9,opt,name=buy_sell,json=buySell,proto3,enum=proto.tradeapi.v1.BuySell" json:"buy_sell,omitempty"` // Fee, RUB. // Комиссия, в рублях. Commission float64 `protobuf:"fixed64,10,opt,name=commission,proto3" json:"commission,omitempty"` // Trade currency. // Валюта сделки. Currency string `protobuf:"bytes,11,opt,name=currency,proto3" json:"currency,omitempty"` // Accrued interest. // НКД сделки. AccruedInterest float64 `protobuf:"fixed64,12,opt,name=accrued_interest,json=accruedInterest,proto3" json:"accrued_interest,omitempty"` // contains filtered or unexported fields }
Trade event. Событие со сделкой.
func (*TradeEvent) Descriptor
deprecated
func (*TradeEvent) Descriptor() ([]byte, []int)
Deprecated: Use TradeEvent.ProtoReflect.Descriptor instead.
func (*TradeEvent) GetAccruedInterest ¶
func (x *TradeEvent) GetAccruedInterest() float64
func (*TradeEvent) GetBuySell ¶
func (x *TradeEvent) GetBuySell() BuySell
func (*TradeEvent) GetClientId ¶
func (x *TradeEvent) GetClientId() string
func (*TradeEvent) GetCommission ¶
func (x *TradeEvent) GetCommission() float64
func (*TradeEvent) GetCreatedAt ¶
func (x *TradeEvent) GetCreatedAt() *timestamp.Timestamp
func (*TradeEvent) GetCurrency ¶
func (x *TradeEvent) GetCurrency() string
func (*TradeEvent) GetOrderNo ¶
func (x *TradeEvent) GetOrderNo() int64
func (*TradeEvent) GetPrice ¶
func (x *TradeEvent) GetPrice() float64
func (*TradeEvent) GetQuantity ¶
func (x *TradeEvent) GetQuantity() int64
func (*TradeEvent) GetSecurityCode ¶
func (x *TradeEvent) GetSecurityCode() string
func (*TradeEvent) GetTradeNo ¶
func (x *TradeEvent) GetTradeNo() int64
func (*TradeEvent) GetValue ¶
func (x *TradeEvent) GetValue() float64
func (*TradeEvent) ProtoMessage ¶
func (*TradeEvent) ProtoMessage()
func (*TradeEvent) ProtoReflect ¶
func (x *TradeEvent) ProtoReflect() protoreflect.Message
func (*TradeEvent) Reset ¶
func (x *TradeEvent) Reset()
func (*TradeEvent) String ¶
func (x *TradeEvent) String() string
type UnimplementedEventsServer ¶
type UnimplementedEventsServer struct { }
UnimplementedEventsServer must be embedded to have forward compatible implementations.
func (UnimplementedEventsServer) GetEvents ¶
func (UnimplementedEventsServer) GetEvents(Events_GetEventsServer) error
type UnimplementedOrdersServer ¶
type UnimplementedOrdersServer struct { }
UnimplementedOrdersServer must be embedded to have forward compatible implementations.
func (UnimplementedOrdersServer) CancelOrder ¶
func (UnimplementedOrdersServer) CancelOrder(context.Context, *CancelOrderRequest) (*CancelOrderResult, error)
func (UnimplementedOrdersServer) GetOrders ¶
func (UnimplementedOrdersServer) GetOrders(context.Context, *GetOrdersRequest) (*GetOrdersResult, error)
func (UnimplementedOrdersServer) NewOrder ¶
func (UnimplementedOrdersServer) NewOrder(context.Context, *NewOrderRequest) (*NewOrderResult, error)
type UnimplementedPortfoliosServer ¶
type UnimplementedPortfoliosServer struct { }
UnimplementedPortfoliosServer must be embedded to have forward compatible implementations.
func (UnimplementedPortfoliosServer) GetPortfolio ¶
func (UnimplementedPortfoliosServer) GetPortfolio(context.Context, *GetPortfolioRequest) (*GetPortfolioResult, error)
type UnimplementedStopsServer ¶
type UnimplementedStopsServer struct { }
UnimplementedStopsServer must be embedded to have forward compatible implementations.
func (UnimplementedStopsServer) CancelStop ¶
func (UnimplementedStopsServer) CancelStop(context.Context, *CancelStopRequest) (*CancelStopResult, error)
func (UnimplementedStopsServer) GetStops ¶
func (UnimplementedStopsServer) GetStops(context.Context, *GetStopsRequest) (*GetStopsResult, error)
func (UnimplementedStopsServer) NewStop ¶
func (UnimplementedStopsServer) NewStop(context.Context, *NewStopRequest) (*NewStopResult, error)
type UnsafeEventsServer ¶
type UnsafeEventsServer interface {
// contains filtered or unexported methods
}
UnsafeEventsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EventsServer will result in compilation errors.
type UnsafeOrdersServer ¶
type UnsafeOrdersServer interface {
// contains filtered or unexported methods
}
UnsafeOrdersServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to OrdersServer will result in compilation errors.
type UnsafePortfoliosServer ¶
type UnsafePortfoliosServer interface {
// contains filtered or unexported methods
}
UnsafePortfoliosServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PortfoliosServer will result in compilation errors.
type UnsafeStopsServer ¶
type UnsafeStopsServer interface {
// contains filtered or unexported methods
}
UnsafeStopsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StopsServer will result in compilation errors.