Documentation ¶
Index ¶
- Variables
- func RegisterStockServer(s grpc.ServiceRegistrar, srv StockServer)
- type Account
- func (*Account) Descriptor() ([]byte, []int)deprecated
- func (x *Account) GetAvgByPrice() float64
- func (x *Account) GetBalance() float64
- func (x *Account) GetCode() string
- func (x *Account) GetTotalPrice() float64
- func (*Account) ProtoMessage()
- func (x *Account) ProtoReflect() protoreflect.Message
- func (x *Account) Reset()
- func (x *Account) String() string
- func (m *Account) Validate() error
- type AccountReply
- func (*AccountReply) Descriptor() ([]byte, []int)deprecated
- func (x *AccountReply) GetInfo() string
- func (*AccountReply) ProtoMessage()
- func (x *AccountReply) ProtoReflect() protoreflect.Message
- func (x *AccountReply) Reset()
- func (x *AccountReply) String() string
- func (m *AccountReply) Validate() error
- type AccountReplyValidationError
- func (e AccountReplyValidationError) Cause() error
- func (e AccountReplyValidationError) Error() string
- func (e AccountReplyValidationError) ErrorName() string
- func (e AccountReplyValidationError) Field() string
- func (e AccountReplyValidationError) Key() bool
- func (e AccountReplyValidationError) Reason() string
- type AccountRequest
- func (*AccountRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AccountRequest) GetAccount() string
- func (*AccountRequest) ProtoMessage()
- func (x *AccountRequest) ProtoReflect() protoreflect.Message
- func (x *AccountRequest) Reset()
- func (x *AccountRequest) String() string
- func (m *AccountRequest) Validate() error
- type AccountRequestValidationError
- func (e AccountRequestValidationError) Cause() error
- func (e AccountRequestValidationError) Error() string
- func (e AccountRequestValidationError) ErrorName() string
- func (e AccountRequestValidationError) Field() string
- func (e AccountRequestValidationError) Key() bool
- func (e AccountRequestValidationError) Reason() string
- type AccountValidationError
- type AllMarketsReply
- func (*AllMarketsReply) Descriptor() ([]byte, []int)deprecated
- func (x *AllMarketsReply) GetMarkets() []*AllMarketsReply_Market
- func (*AllMarketsReply) ProtoMessage()
- func (x *AllMarketsReply) ProtoReflect() protoreflect.Message
- func (x *AllMarketsReply) Reset()
- func (x *AllMarketsReply) String() string
- func (m *AllMarketsReply) Validate() error
- type AllMarketsReplyValidationError
- func (e AllMarketsReplyValidationError) Cause() error
- func (e AllMarketsReplyValidationError) Error() string
- func (e AllMarketsReplyValidationError) ErrorName() string
- func (e AllMarketsReplyValidationError) Field() string
- func (e AllMarketsReplyValidationError) Key() bool
- func (e AllMarketsReplyValidationError) Reason() string
- type AllMarketsReply_Market
- func (*AllMarketsReply_Market) Descriptor() ([]byte, []int)deprecated
- func (x *AllMarketsReply_Market) GetCode() string
- func (x *AllMarketsReply_Market) GetName() string
- func (*AllMarketsReply_Market) ProtoMessage()
- func (x *AllMarketsReply_Market) ProtoReflect() protoreflect.Message
- func (x *AllMarketsReply_Market) Reset()
- func (x *AllMarketsReply_Market) String() string
- func (m *AllMarketsReply_Market) Validate() error
- type AllMarketsReply_MarketValidationError
- func (e AllMarketsReply_MarketValidationError) Cause() error
- func (e AllMarketsReply_MarketValidationError) Error() string
- func (e AllMarketsReply_MarketValidationError) ErrorName() string
- func (e AllMarketsReply_MarketValidationError) Field() string
- func (e AllMarketsReply_MarketValidationError) Key() bool
- func (e AllMarketsReply_MarketValidationError) Reason() string
- type BuyReply
- func (*BuyReply) Descriptor() ([]byte, []int)deprecated
- func (x *BuyReply) GetAvgPrice() float64
- func (x *BuyReply) GetCode() string
- func (x *BuyReply) GetCreatedAt() *timestamppb.Timestamp
- func (x *BuyReply) GetFee() float64
- func (x *BuyReply) GetId() string
- func (x *BuyReply) GetPrice() float64
- func (x *BuyReply) GetVolume() float64
- func (*BuyReply) ProtoMessage()
- func (x *BuyReply) ProtoReflect() protoreflect.Message
- func (x *BuyReply) Reset()
- func (x *BuyReply) String() string
- func (m *BuyReply) Validate() error
- type BuyReplyValidationError
- type BuyRequest
- func (*BuyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BuyRequest) GetCode() string
- func (x *BuyRequest) GetIdentifier() string
- func (x *BuyRequest) GetOtype() OrderType
- func (x *BuyRequest) GetPrice() float64
- func (x *BuyRequest) GetVolume() float64
- func (*BuyRequest) ProtoMessage()
- func (x *BuyRequest) ProtoReflect() protoreflect.Message
- func (x *BuyRequest) Reset()
- func (x *BuyRequest) String() string
- func (m *BuyRequest) Validate() error
- type BuyRequestValidationError
- type CancelOrderRequest
- func (*CancelOrderRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CancelOrderRequest) GetId() string
- func (*CancelOrderRequest) ProtoMessage()
- func (x *CancelOrderRequest) ProtoReflect() protoreflect.Message
- func (x *CancelOrderRequest) Reset()
- func (x *CancelOrderRequest) String() string
- func (m *CancelOrderRequest) Validate() error
- type CancelOrderRequestValidationError
- func (e CancelOrderRequestValidationError) Cause() error
- func (e CancelOrderRequestValidationError) Error() string
- func (e CancelOrderRequestValidationError) ErrorName() string
- func (e CancelOrderRequestValidationError) Field() string
- func (e CancelOrderRequestValidationError) Key() bool
- func (e CancelOrderRequestValidationError) Reason() string
- type ChartData
- func (*ChartData) Descriptor() ([]byte, []int)deprecated
- func (x *ChartData) GetClose() float64
- func (x *ChartData) GetDate() *timestamppb.Timestamp
- func (x *ChartData) GetHigh() float64
- func (x *ChartData) GetLow() float64
- func (x *ChartData) GetOpen() float64
- func (x *ChartData) GetVolume() float64
- func (*ChartData) ProtoMessage()
- func (x *ChartData) ProtoReflect() protoreflect.Message
- func (x *ChartData) Reset()
- func (x *ChartData) String() string
- func (m *ChartData) Validate() error
- type ChartDataValidationError
- type ChartReply
- type ChartReplyValidationError
- type ChartRequest
- func (*ChartRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ChartRequest) GetCode() string
- func (x *ChartRequest) GetTo() *timestamppb.Timestamp
- func (*ChartRequest) ProtoMessage()
- func (x *ChartRequest) ProtoReflect() protoreflect.Message
- func (x *ChartRequest) Reset()
- func (x *ChartRequest) String() string
- func (m *ChartRequest) Validate() error
- type ChartRequestValidationError
- func (e ChartRequestValidationError) Cause() error
- func (e ChartRequestValidationError) Error() string
- func (e ChartRequestValidationError) ErrorName() string
- func (e ChartRequestValidationError) Field() string
- func (e ChartRequestValidationError) Key() bool
- func (e ChartRequestValidationError) Reason() string
- type Order
- func (*Order) Descriptor() ([]byte, []int)deprecated
- func (x *Order) GetCode() string
- func (x *Order) GetCreatedAt() *timestamppb.Timestamp
- func (x *Order) GetFee() float64
- func (x *Order) GetId() string
- func (x *Order) GetPrice() float64
- func (x *Order) GetSide() Order_Side
- func (x *Order) GetState() string
- func (x *Order) GetTradeCount() float64
- func (x *Order) GetType() OrderType
- func (x *Order) GetVolume() float64
- func (*Order) ProtoMessage()
- func (x *Order) ProtoReflect() protoreflect.Message
- func (x *Order) Reset()
- func (x *Order) String() string
- func (m *Order) Validate() error
- type OrderBookStreamReply
- func (*OrderBookStreamReply) Descriptor() ([]byte, []int)deprecated
- func (*OrderBookStreamReply) ProtoMessage()
- func (x *OrderBookStreamReply) ProtoReflect() protoreflect.Message
- func (x *OrderBookStreamReply) Reset()
- func (x *OrderBookStreamReply) String() string
- func (m *OrderBookStreamReply) Validate() error
- type OrderBookStreamReplyValidationError
- func (e OrderBookStreamReplyValidationError) Cause() error
- func (e OrderBookStreamReplyValidationError) Error() string
- func (e OrderBookStreamReplyValidationError) ErrorName() string
- func (e OrderBookStreamReplyValidationError) Field() string
- func (e OrderBookStreamReplyValidationError) Key() bool
- func (e OrderBookStreamReplyValidationError) Reason() string
- type OrderBookStreamRequest
- func (*OrderBookStreamRequest) Descriptor() ([]byte, []int)deprecated
- func (x *OrderBookStreamRequest) GetCodes() []string
- func (*OrderBookStreamRequest) ProtoMessage()
- func (x *OrderBookStreamRequest) ProtoReflect() protoreflect.Message
- func (x *OrderBookStreamRequest) Reset()
- func (x *OrderBookStreamRequest) String() string
- func (m *OrderBookStreamRequest) Validate() error
- type OrderBookStreamRequestValidationError
- func (e OrderBookStreamRequestValidationError) Cause() error
- func (e OrderBookStreamRequestValidationError) Error() string
- func (e OrderBookStreamRequestValidationError) ErrorName() string
- func (e OrderBookStreamRequestValidationError) Field() string
- func (e OrderBookStreamRequestValidationError) Key() bool
- func (e OrderBookStreamRequestValidationError) Reason() string
- type OrderEventStreamReply
- func (*OrderEventStreamReply) Descriptor() ([]byte, []int)deprecated
- func (x *OrderEventStreamReply) GetOrder() *Order
- func (*OrderEventStreamReply) ProtoMessage()
- func (x *OrderEventStreamReply) ProtoReflect() protoreflect.Message
- func (x *OrderEventStreamReply) Reset()
- func (x *OrderEventStreamReply) String() string
- func (m *OrderEventStreamReply) Validate() error
- type OrderEventStreamReplyValidationError
- func (e OrderEventStreamReplyValidationError) Cause() error
- func (e OrderEventStreamReplyValidationError) Error() string
- func (e OrderEventStreamReplyValidationError) ErrorName() string
- func (e OrderEventStreamReplyValidationError) Field() string
- func (e OrderEventStreamReplyValidationError) Key() bool
- func (e OrderEventStreamReplyValidationError) Reason() string
- type OrderInfoReply
- func (*OrderInfoReply) Descriptor() ([]byte, []int)deprecated
- func (x *OrderInfoReply) GetOrder() *Order
- func (*OrderInfoReply) ProtoMessage()
- func (x *OrderInfoReply) ProtoReflect() protoreflect.Message
- func (x *OrderInfoReply) Reset()
- func (x *OrderInfoReply) String() string
- func (m *OrderInfoReply) Validate() error
- type OrderInfoReplyValidationError
- func (e OrderInfoReplyValidationError) Cause() error
- func (e OrderInfoReplyValidationError) Error() string
- func (e OrderInfoReplyValidationError) ErrorName() string
- func (e OrderInfoReplyValidationError) Field() string
- func (e OrderInfoReplyValidationError) Key() bool
- func (e OrderInfoReplyValidationError) Reason() string
- type OrderInfoRequest
- func (*OrderInfoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *OrderInfoRequest) GetId() string
- func (*OrderInfoRequest) ProtoMessage()
- func (x *OrderInfoRequest) ProtoReflect() protoreflect.Message
- func (x *OrderInfoRequest) Reset()
- func (x *OrderInfoRequest) String() string
- func (m *OrderInfoRequest) Validate() error
- type OrderInfoRequestValidationError
- func (e OrderInfoRequestValidationError) Cause() error
- func (e OrderInfoRequestValidationError) Error() string
- func (e OrderInfoRequestValidationError) ErrorName() string
- func (e OrderInfoRequestValidationError) Field() string
- func (e OrderInfoRequestValidationError) Key() bool
- func (e OrderInfoRequestValidationError) Reason() string
- type OrderListReply
- func (*OrderListReply) Descriptor() ([]byte, []int)deprecated
- func (x *OrderListReply) GetOrder() []*Order
- func (*OrderListReply) ProtoMessage()
- func (x *OrderListReply) ProtoReflect() protoreflect.Message
- func (x *OrderListReply) Reset()
- func (x *OrderListReply) String() string
- func (m *OrderListReply) Validate() error
- type OrderListReplyValidationError
- func (e OrderListReplyValidationError) Cause() error
- func (e OrderListReplyValidationError) Error() string
- func (e OrderListReplyValidationError) ErrorName() string
- func (e OrderListReplyValidationError) Field() string
- func (e OrderListReplyValidationError) Key() bool
- func (e OrderListReplyValidationError) Reason() string
- type OrderType
- type OrderValidationError
- type Order_Side
- type Position
- func (*Position) Descriptor() ([]byte, []int)deprecated
- func (x *Position) GetAmount() float64
- func (x *Position) GetCode() string
- func (x *Position) GetDate() *timestamppb.Timestamp
- func (x *Position) GetPrice() float64
- func (*Position) ProtoMessage()
- func (x *Position) ProtoReflect() protoreflect.Message
- func (x *Position) Reset()
- func (x *Position) String() string
- func (m *Position) Validate() error
- type PositionReply
- func (*PositionReply) Descriptor() ([]byte, []int)deprecated
- func (x *PositionReply) GetPositions() []*Position
- func (*PositionReply) ProtoMessage()
- func (x *PositionReply) ProtoReflect() protoreflect.Message
- func (x *PositionReply) Reset()
- func (x *PositionReply) String() string
- func (m *PositionReply) Validate() error
- type PositionReplyValidationError
- func (e PositionReplyValidationError) Cause() error
- func (e PositionReplyValidationError) Error() string
- func (e PositionReplyValidationError) ErrorName() string
- func (e PositionReplyValidationError) Field() string
- func (e PositionReplyValidationError) Key() bool
- func (e PositionReplyValidationError) Reason() string
- type PositionValidationError
- type SellReply
- func (*SellReply) Descriptor() ([]byte, []int)deprecated
- func (x *SellReply) GetAvgPrice() float64
- func (x *SellReply) GetCode() string
- func (x *SellReply) GetCreatedAt() *timestamppb.Timestamp
- func (x *SellReply) GetFee() float64
- func (x *SellReply) GetId() string
- func (x *SellReply) GetPrice() float64
- func (x *SellReply) GetVolume() float64
- func (*SellReply) ProtoMessage()
- func (x *SellReply) ProtoReflect() protoreflect.Message
- func (x *SellReply) Reset()
- func (x *SellReply) String() string
- func (m *SellReply) Validate() error
- type SellReplyValidationError
- type SellRequest
- func (*SellRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SellRequest) GetCode() string
- func (x *SellRequest) GetIdentifier() string
- func (x *SellRequest) GetOtype() OrderType
- func (x *SellRequest) GetPrice() float64
- func (x *SellRequest) GetVolume() float64
- func (*SellRequest) ProtoMessage()
- func (x *SellRequest) ProtoReflect() protoreflect.Message
- func (x *SellRequest) Reset()
- func (x *SellRequest) String() string
- func (m *SellRequest) Validate() error
- type SellRequestValidationError
- func (e SellRequestValidationError) Cause() error
- func (e SellRequestValidationError) Error() string
- func (e SellRequestValidationError) ErrorName() string
- func (e SellRequestValidationError) Field() string
- func (e SellRequestValidationError) Key() bool
- func (e SellRequestValidationError) Reason() string
- type StockClient
- type StockServer
- type Stock_OrderBookStreamClient
- type Stock_OrderBookStreamServer
- type Stock_OrderEventStreamClient
- type Stock_OrderEventStreamServer
- type Stock_TickStreamClient
- type Stock_TickStreamServer
- type Stock_TradeStreamClient
- type Stock_TradeStreamServer
- type TickReply
- func (*TickReply) Descriptor() ([]byte, []int)deprecated
- func (x *TickReply) GetAskbid() string
- func (x *TickReply) GetDate() *timestamppb.Timestamp
- func (x *TickReply) GetPrice() float64
- func (x *TickReply) GetVolume() float64
- func (*TickReply) ProtoMessage()
- func (x *TickReply) ProtoReflect() protoreflect.Message
- func (x *TickReply) Reset()
- func (x *TickReply) String() string
- func (m *TickReply) Validate() error
- type TickReplyValidationError
- type TickRequest
- type TickRequestValidationError
- func (e TickRequestValidationError) Cause() error
- func (e TickRequestValidationError) Error() string
- func (e TickRequestValidationError) ErrorName() string
- func (e TickRequestValidationError) Field() string
- func (e TickRequestValidationError) Key() bool
- func (e TickRequestValidationError) Reason() string
- type TradeStreamReply
- func (*TradeStreamReply) Descriptor() ([]byte, []int)deprecated
- func (x *TradeStreamReply) GetAskbid() string
- func (x *TradeStreamReply) GetCode() string
- func (x *TradeStreamReply) GetDate() *timestamppb.Timestamp
- func (x *TradeStreamReply) GetPrice() float64
- func (x *TradeStreamReply) GetVolume() float64
- func (*TradeStreamReply) ProtoMessage()
- func (x *TradeStreamReply) ProtoReflect() protoreflect.Message
- func (x *TradeStreamReply) Reset()
- func (x *TradeStreamReply) String() string
- func (m *TradeStreamReply) Validate() error
- type TradeStreamReplyValidationError
- func (e TradeStreamReplyValidationError) Cause() error
- func (e TradeStreamReplyValidationError) Error() string
- func (e TradeStreamReplyValidationError) ErrorName() string
- func (e TradeStreamReplyValidationError) Field() string
- func (e TradeStreamReplyValidationError) Key() bool
- func (e TradeStreamReplyValidationError) Reason() string
- type TradeStreamRequest
- func (*TradeStreamRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TradeStreamRequest) GetCodes() []string
- func (*TradeStreamRequest) ProtoMessage()
- func (x *TradeStreamRequest) ProtoReflect() protoreflect.Message
- func (x *TradeStreamRequest) Reset()
- func (x *TradeStreamRequest) String() string
- func (m *TradeStreamRequest) Validate() error
- type TradeStreamRequestValidationError
- func (e TradeStreamRequestValidationError) Cause() error
- func (e TradeStreamRequestValidationError) Error() string
- func (e TradeStreamRequestValidationError) ErrorName() string
- func (e TradeStreamRequestValidationError) Field() string
- func (e TradeStreamRequestValidationError) Key() bool
- func (e TradeStreamRequestValidationError) Reason() string
- type UnimplementedStockServer
- func (UnimplementedStockServer) Account(context.Context, *AccountRequest) (*AccountReply, error)
- func (UnimplementedStockServer) AllMarkets(context.Context, *emptypb.Empty) (*AllMarketsReply, error)
- func (UnimplementedStockServer) Buy(context.Context, *BuyRequest) (*BuyReply, error)
- func (UnimplementedStockServer) CancelOrder(context.Context, *CancelOrderRequest) (*emptypb.Empty, error)
- func (UnimplementedStockServer) Chart(context.Context, *ChartRequest) (*ChartReply, error)
- func (UnimplementedStockServer) OrderBookStream(*OrderBookStreamRequest, Stock_OrderBookStreamServer) error
- func (UnimplementedStockServer) OrderEventStream(*emptypb.Empty, Stock_OrderEventStreamServer) error
- func (UnimplementedStockServer) OrderInfo(context.Context, *OrderInfoRequest) (*OrderInfoReply, error)
- func (UnimplementedStockServer) OrderList(context.Context, *emptypb.Empty) (*OrderListReply, error)
- func (UnimplementedStockServer) Position(context.Context, *emptypb.Empty) (*PositionReply, error)
- func (UnimplementedStockServer) Sell(context.Context, *SellRequest) (*SellReply, error)
- func (UnimplementedStockServer) TickStream(*TickRequest, Stock_TickStreamServer) error
- func (UnimplementedStockServer) TradeStream(*TradeStreamRequest, Stock_TradeStreamServer) error
- type UnsafeStockServer
Constants ¶
This section is empty.
Variables ¶
var ( OrderType_name = map[int32]string{ 0: "MarketOrder", 1: "LimitOrder", } OrderType_value = map[string]int32{ "MarketOrder": 0, "LimitOrder": 1, } )
Enum value maps for OrderType.
var ( Order_Side_name = map[int32]string{ 0: "Ask", 1: "Bid", } Order_Side_value = map[string]int32{ "Ask": 0, "Bid": 1, } )
Enum value maps for Order_Side.
var File_stock_stock_proto protoreflect.FileDescriptor
var Stock_ServiceDesc = grpc.ServiceDesc{ ServiceName: "Stock", HandlerType: (*StockServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AllMarkets", Handler: _Stock_AllMarkets_Handler, }, { MethodName: "Account", Handler: _Stock_Account_Handler, }, { MethodName: "Chart", Handler: _Stock_Chart_Handler, }, { MethodName: "Position", Handler: _Stock_Position_Handler, }, { MethodName: "Buy", Handler: _Stock_Buy_Handler, }, { MethodName: "Sell", Handler: _Stock_Sell_Handler, }, { MethodName: "OrderList", Handler: _Stock_OrderList_Handler, }, { MethodName: "CancelOrder", Handler: _Stock_CancelOrder_Handler, }, { MethodName: "OrderInfo", Handler: _Stock_OrderInfo_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "TickStream", Handler: _Stock_TickStream_Handler, ServerStreams: true, }, { StreamName: "TradeStream", Handler: _Stock_TradeStream_Handler, ServerStreams: true, }, { StreamName: "OrderBookStream", Handler: _Stock_OrderBookStream_Handler, ServerStreams: true, }, { StreamName: "OrderEventStream", Handler: _Stock_OrderEventStream_Handler, ServerStreams: true, }, }, Metadata: "stock/stock.proto", }
Stock_ServiceDesc is the grpc.ServiceDesc for Stock service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterStockServer ¶
func RegisterStockServer(s grpc.ServiceRegistrar, srv StockServer)
Types ¶
type Account ¶
type Account struct { Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` Balance float64 `protobuf:"fixed64,2,opt,name=balance,proto3" json:"balance,omitempty"` AvgByPrice float64 `protobuf:"fixed64,3,opt,name=avgByPrice,proto3" json:"avgByPrice,omitempty"` TotalPrice float64 `protobuf:"fixed64,4,opt,name=totalPrice,proto3" json:"totalPrice,omitempty"` // contains filtered or unexported fields }
func (*Account) Descriptor
deprecated
func (*Account) GetAvgByPrice ¶
func (*Account) GetBalance ¶
func (*Account) GetTotalPrice ¶
func (*Account) ProtoMessage ¶
func (*Account) ProtoMessage()
func (*Account) ProtoReflect ¶
func (x *Account) ProtoReflect() protoreflect.Message
type AccountReply ¶
type AccountReply struct { Info string `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"` // contains filtered or unexported fields }
func (*AccountReply) Descriptor
deprecated
func (*AccountReply) Descriptor() ([]byte, []int)
Deprecated: Use AccountReply.ProtoReflect.Descriptor instead.
func (*AccountReply) GetInfo ¶
func (x *AccountReply) GetInfo() string
func (*AccountReply) ProtoMessage ¶
func (*AccountReply) ProtoMessage()
func (*AccountReply) ProtoReflect ¶
func (x *AccountReply) ProtoReflect() protoreflect.Message
func (*AccountReply) Reset ¶
func (x *AccountReply) Reset()
func (*AccountReply) String ¶
func (x *AccountReply) String() string
func (*AccountReply) Validate ¶
func (m *AccountReply) Validate() error
Validate checks the field values on AccountReply with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type AccountReplyValidationError ¶
type AccountReplyValidationError struct {
// contains filtered or unexported fields
}
AccountReplyValidationError is the validation error returned by AccountReply.Validate if the designated constraints aren't met.
func (AccountReplyValidationError) Cause ¶
func (e AccountReplyValidationError) Cause() error
Cause function returns cause value.
func (AccountReplyValidationError) Error ¶
func (e AccountReplyValidationError) Error() string
Error satisfies the builtin error interface
func (AccountReplyValidationError) ErrorName ¶
func (e AccountReplyValidationError) ErrorName() string
ErrorName returns error name.
func (AccountReplyValidationError) Field ¶
func (e AccountReplyValidationError) Field() string
Field function returns field value.
func (AccountReplyValidationError) Key ¶
func (e AccountReplyValidationError) Key() bool
Key function returns key value.
func (AccountReplyValidationError) Reason ¶
func (e AccountReplyValidationError) Reason() string
Reason function returns reason value.
type AccountRequest ¶
type AccountRequest struct { Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` // contains filtered or unexported fields }
func (*AccountRequest) Descriptor
deprecated
func (*AccountRequest) Descriptor() ([]byte, []int)
Deprecated: Use AccountRequest.ProtoReflect.Descriptor instead.
func (*AccountRequest) GetAccount ¶
func (x *AccountRequest) GetAccount() string
func (*AccountRequest) ProtoMessage ¶
func (*AccountRequest) ProtoMessage()
func (*AccountRequest) ProtoReflect ¶
func (x *AccountRequest) ProtoReflect() protoreflect.Message
func (*AccountRequest) Reset ¶
func (x *AccountRequest) Reset()
func (*AccountRequest) String ¶
func (x *AccountRequest) String() string
func (*AccountRequest) Validate ¶
func (m *AccountRequest) Validate() error
Validate checks the field values on AccountRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type AccountRequestValidationError ¶
type AccountRequestValidationError struct {
// contains filtered or unexported fields
}
AccountRequestValidationError is the validation error returned by AccountRequest.Validate if the designated constraints aren't met.
func (AccountRequestValidationError) Cause ¶
func (e AccountRequestValidationError) Cause() error
Cause function returns cause value.
func (AccountRequestValidationError) Error ¶
func (e AccountRequestValidationError) Error() string
Error satisfies the builtin error interface
func (AccountRequestValidationError) ErrorName ¶
func (e AccountRequestValidationError) ErrorName() string
ErrorName returns error name.
func (AccountRequestValidationError) Field ¶
func (e AccountRequestValidationError) Field() string
Field function returns field value.
func (AccountRequestValidationError) Key ¶
func (e AccountRequestValidationError) Key() bool
Key function returns key value.
func (AccountRequestValidationError) Reason ¶
func (e AccountRequestValidationError) Reason() string
Reason function returns reason value.
type AccountValidationError ¶
type AccountValidationError struct {
// contains filtered or unexported fields
}
AccountValidationError is the validation error returned by Account.Validate if the designated constraints aren't met.
func (AccountValidationError) Cause ¶
func (e AccountValidationError) Cause() error
Cause function returns cause value.
func (AccountValidationError) Error ¶
func (e AccountValidationError) Error() string
Error satisfies the builtin error interface
func (AccountValidationError) ErrorName ¶
func (e AccountValidationError) ErrorName() string
ErrorName returns error name.
func (AccountValidationError) Field ¶
func (e AccountValidationError) Field() string
Field function returns field value.
func (AccountValidationError) Key ¶
func (e AccountValidationError) Key() bool
Key function returns key value.
func (AccountValidationError) Reason ¶
func (e AccountValidationError) Reason() string
Reason function returns reason value.
type AllMarketsReply ¶
type AllMarketsReply struct { Markets []*AllMarketsReply_Market `protobuf:"bytes,1,rep,name=markets,proto3" json:"markets,omitempty"` // contains filtered or unexported fields }
func (*AllMarketsReply) Descriptor
deprecated
func (*AllMarketsReply) Descriptor() ([]byte, []int)
Deprecated: Use AllMarketsReply.ProtoReflect.Descriptor instead.
func (*AllMarketsReply) GetMarkets ¶
func (x *AllMarketsReply) GetMarkets() []*AllMarketsReply_Market
func (*AllMarketsReply) ProtoMessage ¶
func (*AllMarketsReply) ProtoMessage()
func (*AllMarketsReply) ProtoReflect ¶
func (x *AllMarketsReply) ProtoReflect() protoreflect.Message
func (*AllMarketsReply) Reset ¶
func (x *AllMarketsReply) Reset()
func (*AllMarketsReply) String ¶
func (x *AllMarketsReply) String() string
func (*AllMarketsReply) Validate ¶
func (m *AllMarketsReply) Validate() error
Validate checks the field values on AllMarketsReply with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type AllMarketsReplyValidationError ¶
type AllMarketsReplyValidationError struct {
// contains filtered or unexported fields
}
AllMarketsReplyValidationError is the validation error returned by AllMarketsReply.Validate if the designated constraints aren't met.
func (AllMarketsReplyValidationError) Cause ¶
func (e AllMarketsReplyValidationError) Cause() error
Cause function returns cause value.
func (AllMarketsReplyValidationError) Error ¶
func (e AllMarketsReplyValidationError) Error() string
Error satisfies the builtin error interface
func (AllMarketsReplyValidationError) ErrorName ¶
func (e AllMarketsReplyValidationError) ErrorName() string
ErrorName returns error name.
func (AllMarketsReplyValidationError) Field ¶
func (e AllMarketsReplyValidationError) Field() string
Field function returns field value.
func (AllMarketsReplyValidationError) Key ¶
func (e AllMarketsReplyValidationError) Key() bool
Key function returns key value.
func (AllMarketsReplyValidationError) Reason ¶
func (e AllMarketsReplyValidationError) Reason() string
Reason function returns reason value.
type AllMarketsReply_Market ¶
type AllMarketsReply_Market struct { Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*AllMarketsReply_Market) Descriptor
deprecated
func (*AllMarketsReply_Market) Descriptor() ([]byte, []int)
Deprecated: Use AllMarketsReply_Market.ProtoReflect.Descriptor instead.
func (*AllMarketsReply_Market) GetCode ¶
func (x *AllMarketsReply_Market) GetCode() string
func (*AllMarketsReply_Market) GetName ¶
func (x *AllMarketsReply_Market) GetName() string
func (*AllMarketsReply_Market) ProtoMessage ¶
func (*AllMarketsReply_Market) ProtoMessage()
func (*AllMarketsReply_Market) ProtoReflect ¶
func (x *AllMarketsReply_Market) ProtoReflect() protoreflect.Message
func (*AllMarketsReply_Market) Reset ¶
func (x *AllMarketsReply_Market) Reset()
func (*AllMarketsReply_Market) String ¶
func (x *AllMarketsReply_Market) String() string
func (*AllMarketsReply_Market) Validate ¶
func (m *AllMarketsReply_Market) Validate() error
Validate checks the field values on AllMarketsReply_Market with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type AllMarketsReply_MarketValidationError ¶
type AllMarketsReply_MarketValidationError struct {
// contains filtered or unexported fields
}
AllMarketsReply_MarketValidationError is the validation error returned by AllMarketsReply_Market.Validate if the designated constraints aren't met.
func (AllMarketsReply_MarketValidationError) Cause ¶
func (e AllMarketsReply_MarketValidationError) Cause() error
Cause function returns cause value.
func (AllMarketsReply_MarketValidationError) Error ¶
func (e AllMarketsReply_MarketValidationError) Error() string
Error satisfies the builtin error interface
func (AllMarketsReply_MarketValidationError) ErrorName ¶
func (e AllMarketsReply_MarketValidationError) ErrorName() string
ErrorName returns error name.
func (AllMarketsReply_MarketValidationError) Field ¶
func (e AllMarketsReply_MarketValidationError) Field() string
Field function returns field value.
func (AllMarketsReply_MarketValidationError) Key ¶
func (e AllMarketsReply_MarketValidationError) Key() bool
Key function returns key value.
func (AllMarketsReply_MarketValidationError) Reason ¶
func (e AllMarketsReply_MarketValidationError) Reason() string
Reason function returns reason value.
type BuyReply ¶
type BuyReply struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` AvgPrice float64 `protobuf:"fixed64,3,opt,name=avgPrice,proto3" json:"avgPrice,omitempty"` Volume float64 `protobuf:"fixed64,4,opt,name=volume,proto3" json:"volume,omitempty"` Fee float64 `protobuf:"fixed64,5,opt,name=fee,proto3" json:"fee,omitempty"` Price float64 `protobuf:"fixed64,6,opt,name=price,proto3" json:"price,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=createdAt,proto3" json:"createdAt,omitempty"` // contains filtered or unexported fields }
func (*BuyReply) Descriptor
deprecated
func (*BuyReply) GetAvgPrice ¶
func (*BuyReply) GetCreatedAt ¶
func (x *BuyReply) GetCreatedAt() *timestamppb.Timestamp
func (*BuyReply) ProtoMessage ¶
func (*BuyReply) ProtoMessage()
func (*BuyReply) ProtoReflect ¶
func (x *BuyReply) ProtoReflect() protoreflect.Message
type BuyReplyValidationError ¶
type BuyReplyValidationError struct {
// contains filtered or unexported fields
}
BuyReplyValidationError is the validation error returned by BuyReply.Validate if the designated constraints aren't met.
func (BuyReplyValidationError) Cause ¶
func (e BuyReplyValidationError) Cause() error
Cause function returns cause value.
func (BuyReplyValidationError) Error ¶
func (e BuyReplyValidationError) Error() string
Error satisfies the builtin error interface
func (BuyReplyValidationError) ErrorName ¶
func (e BuyReplyValidationError) ErrorName() string
ErrorName returns error name.
func (BuyReplyValidationError) Field ¶
func (e BuyReplyValidationError) Field() string
Field function returns field value.
func (BuyReplyValidationError) Key ¶
func (e BuyReplyValidationError) Key() bool
Key function returns key value.
func (BuyReplyValidationError) Reason ¶
func (e BuyReplyValidationError) Reason() string
Reason function returns reason value.
type BuyRequest ¶
type BuyRequest struct { Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` Otype OrderType `protobuf:"varint,2,opt,name=otype,proto3,enum=OrderType" json:"otype,omitempty"` Volume float64 `protobuf:"fixed64,3,opt,name=volume,proto3" json:"volume,omitempty"` Price float64 `protobuf:"fixed64,4,opt,name=price,proto3" json:"price,omitempty"` Identifier string `protobuf:"bytes,5,opt,name=identifier,proto3" json:"identifier,omitempty"` // contains filtered or unexported fields }
func (*BuyRequest) Descriptor
deprecated
func (*BuyRequest) Descriptor() ([]byte, []int)
Deprecated: Use BuyRequest.ProtoReflect.Descriptor instead.
func (*BuyRequest) GetCode ¶
func (x *BuyRequest) GetCode() string
func (*BuyRequest) GetIdentifier ¶
func (x *BuyRequest) GetIdentifier() string
func (*BuyRequest) GetOtype ¶
func (x *BuyRequest) GetOtype() OrderType
func (*BuyRequest) GetPrice ¶
func (x *BuyRequest) GetPrice() float64
func (*BuyRequest) GetVolume ¶
func (x *BuyRequest) GetVolume() float64
func (*BuyRequest) ProtoMessage ¶
func (*BuyRequest) ProtoMessage()
func (*BuyRequest) ProtoReflect ¶
func (x *BuyRequest) ProtoReflect() protoreflect.Message
func (*BuyRequest) Reset ¶
func (x *BuyRequest) Reset()
func (*BuyRequest) String ¶
func (x *BuyRequest) String() string
func (*BuyRequest) Validate ¶
func (m *BuyRequest) Validate() error
Validate checks the field values on BuyRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type BuyRequestValidationError ¶
type BuyRequestValidationError struct {
// contains filtered or unexported fields
}
BuyRequestValidationError is the validation error returned by BuyRequest.Validate if the designated constraints aren't met.
func (BuyRequestValidationError) Cause ¶
func (e BuyRequestValidationError) Cause() error
Cause function returns cause value.
func (BuyRequestValidationError) Error ¶
func (e BuyRequestValidationError) Error() string
Error satisfies the builtin error interface
func (BuyRequestValidationError) ErrorName ¶
func (e BuyRequestValidationError) ErrorName() string
ErrorName returns error name.
func (BuyRequestValidationError) Field ¶
func (e BuyRequestValidationError) Field() string
Field function returns field value.
func (BuyRequestValidationError) Key ¶
func (e BuyRequestValidationError) Key() bool
Key function returns key value.
func (BuyRequestValidationError) Reason ¶
func (e BuyRequestValidationError) Reason() string
Reason function returns reason value.
type CancelOrderRequest ¶
type CancelOrderRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*CancelOrderRequest) Descriptor
deprecated
func (*CancelOrderRequest) Descriptor() ([]byte, []int)
Deprecated: Use CancelOrderRequest.ProtoReflect.Descriptor instead.
func (*CancelOrderRequest) GetId ¶
func (x *CancelOrderRequest) GetId() string
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
func (*CancelOrderRequest) Validate ¶
func (m *CancelOrderRequest) Validate() error
Validate checks the field values on CancelOrderRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type CancelOrderRequestValidationError ¶
type CancelOrderRequestValidationError struct {
// contains filtered or unexported fields
}
CancelOrderRequestValidationError is the validation error returned by CancelOrderRequest.Validate if the designated constraints aren't met.
func (CancelOrderRequestValidationError) Cause ¶
func (e CancelOrderRequestValidationError) Cause() error
Cause function returns cause value.
func (CancelOrderRequestValidationError) Error ¶
func (e CancelOrderRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CancelOrderRequestValidationError) ErrorName ¶
func (e CancelOrderRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CancelOrderRequestValidationError) Field ¶
func (e CancelOrderRequestValidationError) Field() string
Field function returns field value.
func (CancelOrderRequestValidationError) Key ¶
func (e CancelOrderRequestValidationError) Key() bool
Key function returns key value.
func (CancelOrderRequestValidationError) Reason ¶
func (e CancelOrderRequestValidationError) Reason() string
Reason function returns reason value.
type ChartData ¶
type ChartData struct { Open float64 `protobuf:"fixed64,1,opt,name=open,proto3" json:"open,omitempty"` High float64 `protobuf:"fixed64,2,opt,name=high,proto3" json:"high,omitempty"` Low float64 `protobuf:"fixed64,3,opt,name=low,proto3" json:"low,omitempty"` Close float64 `protobuf:"fixed64,4,opt,name=close,proto3" json:"close,omitempty"` Volume float64 `protobuf:"fixed64,5,opt,name=volume,proto3" json:"volume,omitempty"` Date *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=date,proto3" json:"date,omitempty"` // contains filtered or unexported fields }
func (*ChartData) Descriptor
deprecated
func (*ChartData) GetDate ¶
func (x *ChartData) GetDate() *timestamppb.Timestamp
func (*ChartData) ProtoMessage ¶
func (*ChartData) ProtoMessage()
func (*ChartData) ProtoReflect ¶
func (x *ChartData) ProtoReflect() protoreflect.Message
type ChartDataValidationError ¶
type ChartDataValidationError struct {
// contains filtered or unexported fields
}
ChartDataValidationError is the validation error returned by ChartData.Validate if the designated constraints aren't met.
func (ChartDataValidationError) Cause ¶
func (e ChartDataValidationError) Cause() error
Cause function returns cause value.
func (ChartDataValidationError) Error ¶
func (e ChartDataValidationError) Error() string
Error satisfies the builtin error interface
func (ChartDataValidationError) ErrorName ¶
func (e ChartDataValidationError) ErrorName() string
ErrorName returns error name.
func (ChartDataValidationError) Field ¶
func (e ChartDataValidationError) Field() string
Field function returns field value.
func (ChartDataValidationError) Key ¶
func (e ChartDataValidationError) Key() bool
Key function returns key value.
func (ChartDataValidationError) Reason ¶
func (e ChartDataValidationError) Reason() string
Reason function returns reason value.
type ChartReply ¶
type ChartReply struct { Data []*ChartData `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*ChartReply) Descriptor
deprecated
func (*ChartReply) Descriptor() ([]byte, []int)
Deprecated: Use ChartReply.ProtoReflect.Descriptor instead.
func (*ChartReply) GetData ¶
func (x *ChartReply) GetData() []*ChartData
func (*ChartReply) ProtoMessage ¶
func (*ChartReply) ProtoMessage()
func (*ChartReply) ProtoReflect ¶
func (x *ChartReply) ProtoReflect() protoreflect.Message
func (*ChartReply) Reset ¶
func (x *ChartReply) Reset()
func (*ChartReply) String ¶
func (x *ChartReply) String() string
func (*ChartReply) Validate ¶
func (m *ChartReply) Validate() error
Validate checks the field values on ChartReply with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ChartReplyValidationError ¶
type ChartReplyValidationError struct {
// contains filtered or unexported fields
}
ChartReplyValidationError is the validation error returned by ChartReply.Validate if the designated constraints aren't met.
func (ChartReplyValidationError) Cause ¶
func (e ChartReplyValidationError) Cause() error
Cause function returns cause value.
func (ChartReplyValidationError) Error ¶
func (e ChartReplyValidationError) Error() string
Error satisfies the builtin error interface
func (ChartReplyValidationError) ErrorName ¶
func (e ChartReplyValidationError) ErrorName() string
ErrorName returns error name.
func (ChartReplyValidationError) Field ¶
func (e ChartReplyValidationError) Field() string
Field function returns field value.
func (ChartReplyValidationError) Key ¶
func (e ChartReplyValidationError) Key() bool
Key function returns key value.
func (ChartReplyValidationError) Reason ¶
func (e ChartReplyValidationError) Reason() string
Reason function returns reason value.
type ChartRequest ¶
type ChartRequest struct { Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` To *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"` // contains filtered or unexported fields }
func (*ChartRequest) Descriptor
deprecated
func (*ChartRequest) Descriptor() ([]byte, []int)
Deprecated: Use ChartRequest.ProtoReflect.Descriptor instead.
func (*ChartRequest) GetCode ¶
func (x *ChartRequest) GetCode() string
func (*ChartRequest) GetTo ¶
func (x *ChartRequest) GetTo() *timestamppb.Timestamp
func (*ChartRequest) ProtoMessage ¶
func (*ChartRequest) ProtoMessage()
func (*ChartRequest) ProtoReflect ¶
func (x *ChartRequest) ProtoReflect() protoreflect.Message
func (*ChartRequest) Reset ¶
func (x *ChartRequest) Reset()
func (*ChartRequest) String ¶
func (x *ChartRequest) String() string
func (*ChartRequest) Validate ¶
func (m *ChartRequest) Validate() error
Validate checks the field values on ChartRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ChartRequestValidationError ¶
type ChartRequestValidationError struct {
// contains filtered or unexported fields
}
ChartRequestValidationError is the validation error returned by ChartRequest.Validate if the designated constraints aren't met.
func (ChartRequestValidationError) Cause ¶
func (e ChartRequestValidationError) Cause() error
Cause function returns cause value.
func (ChartRequestValidationError) Error ¶
func (e ChartRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ChartRequestValidationError) ErrorName ¶
func (e ChartRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ChartRequestValidationError) Field ¶
func (e ChartRequestValidationError) Field() string
Field function returns field value.
func (ChartRequestValidationError) Key ¶
func (e ChartRequestValidationError) Key() bool
Key function returns key value.
func (ChartRequestValidationError) Reason ¶
func (e ChartRequestValidationError) Reason() string
Reason function returns reason value.
type Order ¶
type Order struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` //주문종류 Side Order_Side `protobuf:"varint,2,opt,name=side,proto3,enum=Order_Side" json:"side,omitempty"` Type OrderType `protobuf:"varint,3,opt,name=type,proto3,enum=OrderType" json:"type,omitempty"` Code string `protobuf:"bytes,4,opt,name=code,proto3" json:"code,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=createdAt,proto3" json:"createdAt,omitempty"` Fee float64 `protobuf:"fixed64,6,opt,name=fee,proto3" json:"fee,omitempty"` State string `protobuf:"bytes,7,opt,name=state,proto3" json:"state,omitempty"` Volume float64 `protobuf:"fixed64,8,opt,name=volume,proto3" json:"volume,omitempty"` Price float64 `protobuf:"fixed64,9,opt,name=price,proto3" json:"price,omitempty"` //해당 주문에 걸린 체결 수 TradeCount float64 `protobuf:"fixed64,10,opt,name=tradeCount,proto3" json:"tradeCount,omitempty"` // contains filtered or unexported fields }
func (*Order) Descriptor
deprecated
func (*Order) GetCreatedAt ¶
func (x *Order) GetCreatedAt() *timestamppb.Timestamp
func (*Order) GetSide ¶
func (x *Order) GetSide() Order_Side
func (*Order) GetTradeCount ¶
func (*Order) ProtoMessage ¶
func (*Order) ProtoMessage()
func (*Order) ProtoReflect ¶
func (x *Order) ProtoReflect() protoreflect.Message
type OrderBookStreamReply ¶
type OrderBookStreamReply struct {
// contains filtered or unexported fields
}
func (*OrderBookStreamReply) Descriptor
deprecated
func (*OrderBookStreamReply) Descriptor() ([]byte, []int)
Deprecated: Use OrderBookStreamReply.ProtoReflect.Descriptor instead.
func (*OrderBookStreamReply) ProtoMessage ¶
func (*OrderBookStreamReply) ProtoMessage()
func (*OrderBookStreamReply) ProtoReflect ¶
func (x *OrderBookStreamReply) ProtoReflect() protoreflect.Message
func (*OrderBookStreamReply) Reset ¶
func (x *OrderBookStreamReply) Reset()
func (*OrderBookStreamReply) String ¶
func (x *OrderBookStreamReply) String() string
func (*OrderBookStreamReply) Validate ¶
func (m *OrderBookStreamReply) Validate() error
Validate checks the field values on OrderBookStreamReply with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type OrderBookStreamReplyValidationError ¶
type OrderBookStreamReplyValidationError struct {
// contains filtered or unexported fields
}
OrderBookStreamReplyValidationError is the validation error returned by OrderBookStreamReply.Validate if the designated constraints aren't met.
func (OrderBookStreamReplyValidationError) Cause ¶
func (e OrderBookStreamReplyValidationError) Cause() error
Cause function returns cause value.
func (OrderBookStreamReplyValidationError) Error ¶
func (e OrderBookStreamReplyValidationError) Error() string
Error satisfies the builtin error interface
func (OrderBookStreamReplyValidationError) ErrorName ¶
func (e OrderBookStreamReplyValidationError) ErrorName() string
ErrorName returns error name.
func (OrderBookStreamReplyValidationError) Field ¶
func (e OrderBookStreamReplyValidationError) Field() string
Field function returns field value.
func (OrderBookStreamReplyValidationError) Key ¶
func (e OrderBookStreamReplyValidationError) Key() bool
Key function returns key value.
func (OrderBookStreamReplyValidationError) Reason ¶
func (e OrderBookStreamReplyValidationError) Reason() string
Reason function returns reason value.
type OrderBookStreamRequest ¶
type OrderBookStreamRequest struct { Codes []string `protobuf:"bytes,1,rep,name=codes,proto3" json:"codes,omitempty"` // contains filtered or unexported fields }
func (*OrderBookStreamRequest) Descriptor
deprecated
func (*OrderBookStreamRequest) Descriptor() ([]byte, []int)
Deprecated: Use OrderBookStreamRequest.ProtoReflect.Descriptor instead.
func (*OrderBookStreamRequest) GetCodes ¶
func (x *OrderBookStreamRequest) GetCodes() []string
func (*OrderBookStreamRequest) ProtoMessage ¶
func (*OrderBookStreamRequest) ProtoMessage()
func (*OrderBookStreamRequest) ProtoReflect ¶
func (x *OrderBookStreamRequest) ProtoReflect() protoreflect.Message
func (*OrderBookStreamRequest) Reset ¶
func (x *OrderBookStreamRequest) Reset()
func (*OrderBookStreamRequest) String ¶
func (x *OrderBookStreamRequest) String() string
func (*OrderBookStreamRequest) Validate ¶
func (m *OrderBookStreamRequest) Validate() error
Validate checks the field values on OrderBookStreamRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type OrderBookStreamRequestValidationError ¶
type OrderBookStreamRequestValidationError struct {
// contains filtered or unexported fields
}
OrderBookStreamRequestValidationError is the validation error returned by OrderBookStreamRequest.Validate if the designated constraints aren't met.
func (OrderBookStreamRequestValidationError) Cause ¶
func (e OrderBookStreamRequestValidationError) Cause() error
Cause function returns cause value.
func (OrderBookStreamRequestValidationError) Error ¶
func (e OrderBookStreamRequestValidationError) Error() string
Error satisfies the builtin error interface
func (OrderBookStreamRequestValidationError) ErrorName ¶
func (e OrderBookStreamRequestValidationError) ErrorName() string
ErrorName returns error name.
func (OrderBookStreamRequestValidationError) Field ¶
func (e OrderBookStreamRequestValidationError) Field() string
Field function returns field value.
func (OrderBookStreamRequestValidationError) Key ¶
func (e OrderBookStreamRequestValidationError) Key() bool
Key function returns key value.
func (OrderBookStreamRequestValidationError) Reason ¶
func (e OrderBookStreamRequestValidationError) Reason() string
Reason function returns reason value.
type OrderEventStreamReply ¶
type OrderEventStreamReply struct { Order *Order `protobuf:"bytes,1,opt,name=order,proto3" json:"order,omitempty"` // contains filtered or unexported fields }
func (*OrderEventStreamReply) Descriptor
deprecated
func (*OrderEventStreamReply) Descriptor() ([]byte, []int)
Deprecated: Use OrderEventStreamReply.ProtoReflect.Descriptor instead.
func (*OrderEventStreamReply) GetOrder ¶
func (x *OrderEventStreamReply) GetOrder() *Order
func (*OrderEventStreamReply) ProtoMessage ¶
func (*OrderEventStreamReply) ProtoMessage()
func (*OrderEventStreamReply) ProtoReflect ¶
func (x *OrderEventStreamReply) ProtoReflect() protoreflect.Message
func (*OrderEventStreamReply) Reset ¶
func (x *OrderEventStreamReply) Reset()
func (*OrderEventStreamReply) String ¶
func (x *OrderEventStreamReply) String() string
func (*OrderEventStreamReply) Validate ¶
func (m *OrderEventStreamReply) Validate() error
Validate checks the field values on OrderEventStreamReply with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type OrderEventStreamReplyValidationError ¶
type OrderEventStreamReplyValidationError struct {
// contains filtered or unexported fields
}
OrderEventStreamReplyValidationError is the validation error returned by OrderEventStreamReply.Validate if the designated constraints aren't met.
func (OrderEventStreamReplyValidationError) Cause ¶
func (e OrderEventStreamReplyValidationError) Cause() error
Cause function returns cause value.
func (OrderEventStreamReplyValidationError) Error ¶
func (e OrderEventStreamReplyValidationError) Error() string
Error satisfies the builtin error interface
func (OrderEventStreamReplyValidationError) ErrorName ¶
func (e OrderEventStreamReplyValidationError) ErrorName() string
ErrorName returns error name.
func (OrderEventStreamReplyValidationError) Field ¶
func (e OrderEventStreamReplyValidationError) Field() string
Field function returns field value.
func (OrderEventStreamReplyValidationError) Key ¶
func (e OrderEventStreamReplyValidationError) Key() bool
Key function returns key value.
func (OrderEventStreamReplyValidationError) Reason ¶
func (e OrderEventStreamReplyValidationError) Reason() string
Reason function returns reason value.
type OrderInfoReply ¶
type OrderInfoReply struct { Order *Order `protobuf:"bytes,1,opt,name=order,proto3" json:"order,omitempty"` // contains filtered or unexported fields }
func (*OrderInfoReply) Descriptor
deprecated
func (*OrderInfoReply) Descriptor() ([]byte, []int)
Deprecated: Use OrderInfoReply.ProtoReflect.Descriptor instead.
func (*OrderInfoReply) GetOrder ¶
func (x *OrderInfoReply) GetOrder() *Order
func (*OrderInfoReply) ProtoMessage ¶
func (*OrderInfoReply) ProtoMessage()
func (*OrderInfoReply) ProtoReflect ¶
func (x *OrderInfoReply) ProtoReflect() protoreflect.Message
func (*OrderInfoReply) Reset ¶
func (x *OrderInfoReply) Reset()
func (*OrderInfoReply) String ¶
func (x *OrderInfoReply) String() string
func (*OrderInfoReply) Validate ¶
func (m *OrderInfoReply) Validate() error
Validate checks the field values on OrderInfoReply with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type OrderInfoReplyValidationError ¶
type OrderInfoReplyValidationError struct {
// contains filtered or unexported fields
}
OrderInfoReplyValidationError is the validation error returned by OrderInfoReply.Validate if the designated constraints aren't met.
func (OrderInfoReplyValidationError) Cause ¶
func (e OrderInfoReplyValidationError) Cause() error
Cause function returns cause value.
func (OrderInfoReplyValidationError) Error ¶
func (e OrderInfoReplyValidationError) Error() string
Error satisfies the builtin error interface
func (OrderInfoReplyValidationError) ErrorName ¶
func (e OrderInfoReplyValidationError) ErrorName() string
ErrorName returns error name.
func (OrderInfoReplyValidationError) Field ¶
func (e OrderInfoReplyValidationError) Field() string
Field function returns field value.
func (OrderInfoReplyValidationError) Key ¶
func (e OrderInfoReplyValidationError) Key() bool
Key function returns key value.
func (OrderInfoReplyValidationError) Reason ¶
func (e OrderInfoReplyValidationError) Reason() string
Reason function returns reason value.
type OrderInfoRequest ¶
type OrderInfoRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*OrderInfoRequest) Descriptor
deprecated
func (*OrderInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use OrderInfoRequest.ProtoReflect.Descriptor instead.
func (*OrderInfoRequest) GetId ¶
func (x *OrderInfoRequest) GetId() string
func (*OrderInfoRequest) ProtoMessage ¶
func (*OrderInfoRequest) ProtoMessage()
func (*OrderInfoRequest) ProtoReflect ¶
func (x *OrderInfoRequest) ProtoReflect() protoreflect.Message
func (*OrderInfoRequest) Reset ¶
func (x *OrderInfoRequest) Reset()
func (*OrderInfoRequest) String ¶
func (x *OrderInfoRequest) String() string
func (*OrderInfoRequest) Validate ¶
func (m *OrderInfoRequest) Validate() error
Validate checks the field values on OrderInfoRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type OrderInfoRequestValidationError ¶
type OrderInfoRequestValidationError struct {
// contains filtered or unexported fields
}
OrderInfoRequestValidationError is the validation error returned by OrderInfoRequest.Validate if the designated constraints aren't met.
func (OrderInfoRequestValidationError) Cause ¶
func (e OrderInfoRequestValidationError) Cause() error
Cause function returns cause value.
func (OrderInfoRequestValidationError) Error ¶
func (e OrderInfoRequestValidationError) Error() string
Error satisfies the builtin error interface
func (OrderInfoRequestValidationError) ErrorName ¶
func (e OrderInfoRequestValidationError) ErrorName() string
ErrorName returns error name.
func (OrderInfoRequestValidationError) Field ¶
func (e OrderInfoRequestValidationError) Field() string
Field function returns field value.
func (OrderInfoRequestValidationError) Key ¶
func (e OrderInfoRequestValidationError) Key() bool
Key function returns key value.
func (OrderInfoRequestValidationError) Reason ¶
func (e OrderInfoRequestValidationError) Reason() string
Reason function returns reason value.
type OrderListReply ¶
type OrderListReply struct { Order []*Order `protobuf:"bytes,1,rep,name=order,proto3" json:"order,omitempty"` // contains filtered or unexported fields }
func (*OrderListReply) Descriptor
deprecated
func (*OrderListReply) Descriptor() ([]byte, []int)
Deprecated: Use OrderListReply.ProtoReflect.Descriptor instead.
func (*OrderListReply) GetOrder ¶
func (x *OrderListReply) GetOrder() []*Order
func (*OrderListReply) ProtoMessage ¶
func (*OrderListReply) ProtoMessage()
func (*OrderListReply) ProtoReflect ¶
func (x *OrderListReply) ProtoReflect() protoreflect.Message
func (*OrderListReply) Reset ¶
func (x *OrderListReply) Reset()
func (*OrderListReply) String ¶
func (x *OrderListReply) String() string
func (*OrderListReply) Validate ¶
func (m *OrderListReply) Validate() error
Validate checks the field values on OrderListReply with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type OrderListReplyValidationError ¶
type OrderListReplyValidationError struct {
// contains filtered or unexported fields
}
OrderListReplyValidationError is the validation error returned by OrderListReply.Validate if the designated constraints aren't met.
func (OrderListReplyValidationError) Cause ¶
func (e OrderListReplyValidationError) Cause() error
Cause function returns cause value.
func (OrderListReplyValidationError) Error ¶
func (e OrderListReplyValidationError) Error() string
Error satisfies the builtin error interface
func (OrderListReplyValidationError) ErrorName ¶
func (e OrderListReplyValidationError) ErrorName() string
ErrorName returns error name.
func (OrderListReplyValidationError) Field ¶
func (e OrderListReplyValidationError) Field() string
Field function returns field value.
func (OrderListReplyValidationError) Key ¶
func (e OrderListReplyValidationError) Key() bool
Key function returns key value.
func (OrderListReplyValidationError) Reason ¶
func (e OrderListReplyValidationError) Reason() string
Reason function returns reason value.
type OrderType ¶
type OrderType int32
func (OrderType) Descriptor ¶
func (OrderType) Descriptor() protoreflect.EnumDescriptor
func (OrderType) EnumDescriptor
deprecated
func (OrderType) Number ¶
func (x OrderType) Number() protoreflect.EnumNumber
func (OrderType) Type ¶
func (OrderType) Type() protoreflect.EnumType
type OrderValidationError ¶
type OrderValidationError struct {
// contains filtered or unexported fields
}
OrderValidationError is the validation error returned by Order.Validate if the designated constraints aren't met.
func (OrderValidationError) Cause ¶
func (e OrderValidationError) Cause() error
Cause function returns cause value.
func (OrderValidationError) Error ¶
func (e OrderValidationError) Error() string
Error satisfies the builtin error interface
func (OrderValidationError) ErrorName ¶
func (e OrderValidationError) ErrorName() string
ErrorName returns error name.
func (OrderValidationError) Field ¶
func (e OrderValidationError) Field() string
Field function returns field value.
func (OrderValidationError) Key ¶
func (e OrderValidationError) Key() bool
Key function returns key value.
func (OrderValidationError) Reason ¶
func (e OrderValidationError) Reason() string
Reason function returns reason value.
type Order_Side ¶
type Order_Side int32
const ( //매도 Order_Ask Order_Side = 0 //매수 Order_Bid Order_Side = 1 )
func (Order_Side) Descriptor ¶
func (Order_Side) Descriptor() protoreflect.EnumDescriptor
func (Order_Side) Enum ¶
func (x Order_Side) Enum() *Order_Side
func (Order_Side) EnumDescriptor
deprecated
func (Order_Side) EnumDescriptor() ([]byte, []int)
Deprecated: Use Order_Side.Descriptor instead.
func (Order_Side) Number ¶
func (x Order_Side) Number() protoreflect.EnumNumber
func (Order_Side) String ¶
func (x Order_Side) String() string
func (Order_Side) Type ¶
func (Order_Side) Type() protoreflect.EnumType
type Position ¶
type Position struct { Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` Price float64 `protobuf:"fixed64,2,opt,name=price,proto3" json:"price,omitempty"` Amount float64 `protobuf:"fixed64,3,opt,name=amount,proto3" json:"amount,omitempty"` Date *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=date,proto3" json:"date,omitempty"` // contains filtered or unexported fields }
func (*Position) Descriptor
deprecated
func (*Position) GetDate ¶
func (x *Position) GetDate() *timestamppb.Timestamp
func (*Position) ProtoMessage ¶
func (*Position) ProtoMessage()
func (*Position) ProtoReflect ¶
func (x *Position) ProtoReflect() protoreflect.Message
type PositionReply ¶
type PositionReply struct { Positions []*Position `protobuf:"bytes,1,rep,name=positions,proto3" json:"positions,omitempty"` // contains filtered or unexported fields }
func (*PositionReply) Descriptor
deprecated
func (*PositionReply) Descriptor() ([]byte, []int)
Deprecated: Use PositionReply.ProtoReflect.Descriptor instead.
func (*PositionReply) GetPositions ¶
func (x *PositionReply) GetPositions() []*Position
func (*PositionReply) ProtoMessage ¶
func (*PositionReply) ProtoMessage()
func (*PositionReply) ProtoReflect ¶
func (x *PositionReply) ProtoReflect() protoreflect.Message
func (*PositionReply) Reset ¶
func (x *PositionReply) Reset()
func (*PositionReply) String ¶
func (x *PositionReply) String() string
func (*PositionReply) Validate ¶
func (m *PositionReply) Validate() error
Validate checks the field values on PositionReply with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type PositionReplyValidationError ¶
type PositionReplyValidationError struct {
// contains filtered or unexported fields
}
PositionReplyValidationError is the validation error returned by PositionReply.Validate if the designated constraints aren't met.
func (PositionReplyValidationError) Cause ¶
func (e PositionReplyValidationError) Cause() error
Cause function returns cause value.
func (PositionReplyValidationError) Error ¶
func (e PositionReplyValidationError) Error() string
Error satisfies the builtin error interface
func (PositionReplyValidationError) ErrorName ¶
func (e PositionReplyValidationError) ErrorName() string
ErrorName returns error name.
func (PositionReplyValidationError) Field ¶
func (e PositionReplyValidationError) Field() string
Field function returns field value.
func (PositionReplyValidationError) Key ¶
func (e PositionReplyValidationError) Key() bool
Key function returns key value.
func (PositionReplyValidationError) Reason ¶
func (e PositionReplyValidationError) Reason() string
Reason function returns reason value.
type PositionValidationError ¶
type PositionValidationError struct {
// contains filtered or unexported fields
}
PositionValidationError is the validation error returned by Position.Validate if the designated constraints aren't met.
func (PositionValidationError) Cause ¶
func (e PositionValidationError) Cause() error
Cause function returns cause value.
func (PositionValidationError) Error ¶
func (e PositionValidationError) Error() string
Error satisfies the builtin error interface
func (PositionValidationError) ErrorName ¶
func (e PositionValidationError) ErrorName() string
ErrorName returns error name.
func (PositionValidationError) Field ¶
func (e PositionValidationError) Field() string
Field function returns field value.
func (PositionValidationError) Key ¶
func (e PositionValidationError) Key() bool
Key function returns key value.
func (PositionValidationError) Reason ¶
func (e PositionValidationError) Reason() string
Reason function returns reason value.
type SellReply ¶
type SellReply struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` AvgPrice float64 `protobuf:"fixed64,3,opt,name=avgPrice,proto3" json:"avgPrice,omitempty"` Volume float64 `protobuf:"fixed64,4,opt,name=volume,proto3" json:"volume,omitempty"` Fee float64 `protobuf:"fixed64,5,opt,name=fee,proto3" json:"fee,omitempty"` Price float64 `protobuf:"fixed64,6,opt,name=price,proto3" json:"price,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=createdAt,proto3" json:"createdAt,omitempty"` // contains filtered or unexported fields }
func (*SellReply) Descriptor
deprecated
func (*SellReply) GetAvgPrice ¶
func (*SellReply) GetCreatedAt ¶
func (x *SellReply) GetCreatedAt() *timestamppb.Timestamp
func (*SellReply) ProtoMessage ¶
func (*SellReply) ProtoMessage()
func (*SellReply) ProtoReflect ¶
func (x *SellReply) ProtoReflect() protoreflect.Message
type SellReplyValidationError ¶
type SellReplyValidationError struct {
// contains filtered or unexported fields
}
SellReplyValidationError is the validation error returned by SellReply.Validate if the designated constraints aren't met.
func (SellReplyValidationError) Cause ¶
func (e SellReplyValidationError) Cause() error
Cause function returns cause value.
func (SellReplyValidationError) Error ¶
func (e SellReplyValidationError) Error() string
Error satisfies the builtin error interface
func (SellReplyValidationError) ErrorName ¶
func (e SellReplyValidationError) ErrorName() string
ErrorName returns error name.
func (SellReplyValidationError) Field ¶
func (e SellReplyValidationError) Field() string
Field function returns field value.
func (SellReplyValidationError) Key ¶
func (e SellReplyValidationError) Key() bool
Key function returns key value.
func (SellReplyValidationError) Reason ¶
func (e SellReplyValidationError) Reason() string
Reason function returns reason value.
type SellRequest ¶
type SellRequest struct { Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` Otype OrderType `protobuf:"varint,2,opt,name=otype,proto3,enum=OrderType" json:"otype,omitempty"` Volume float64 `protobuf:"fixed64,3,opt,name=volume,proto3" json:"volume,omitempty"` Price float64 `protobuf:"fixed64,4,opt,name=price,proto3" json:"price,omitempty"` Identifier string `protobuf:"bytes,5,opt,name=identifier,proto3" json:"identifier,omitempty"` // contains filtered or unexported fields }
func (*SellRequest) Descriptor
deprecated
func (*SellRequest) Descriptor() ([]byte, []int)
Deprecated: Use SellRequest.ProtoReflect.Descriptor instead.
func (*SellRequest) GetCode ¶
func (x *SellRequest) GetCode() string
func (*SellRequest) GetIdentifier ¶
func (x *SellRequest) GetIdentifier() string
func (*SellRequest) GetOtype ¶
func (x *SellRequest) GetOtype() OrderType
func (*SellRequest) GetPrice ¶
func (x *SellRequest) GetPrice() float64
func (*SellRequest) GetVolume ¶
func (x *SellRequest) GetVolume() float64
func (*SellRequest) ProtoMessage ¶
func (*SellRequest) ProtoMessage()
func (*SellRequest) ProtoReflect ¶
func (x *SellRequest) ProtoReflect() protoreflect.Message
func (*SellRequest) Reset ¶
func (x *SellRequest) Reset()
func (*SellRequest) String ¶
func (x *SellRequest) String() string
func (*SellRequest) Validate ¶
func (m *SellRequest) Validate() error
Validate checks the field values on SellRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type SellRequestValidationError ¶
type SellRequestValidationError struct {
// contains filtered or unexported fields
}
SellRequestValidationError is the validation error returned by SellRequest.Validate if the designated constraints aren't met.
func (SellRequestValidationError) Cause ¶
func (e SellRequestValidationError) Cause() error
Cause function returns cause value.
func (SellRequestValidationError) Error ¶
func (e SellRequestValidationError) Error() string
Error satisfies the builtin error interface
func (SellRequestValidationError) ErrorName ¶
func (e SellRequestValidationError) ErrorName() string
ErrorName returns error name.
func (SellRequestValidationError) Field ¶
func (e SellRequestValidationError) Field() string
Field function returns field value.
func (SellRequestValidationError) Key ¶
func (e SellRequestValidationError) Key() bool
Key function returns key value.
func (SellRequestValidationError) Reason ¶
func (e SellRequestValidationError) Reason() string
Reason function returns reason value.
type StockClient ¶
type StockClient interface { AllMarkets(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*AllMarketsReply, error) //특정 소유하고 있는 주식,코인 정보 Account(ctx context.Context, in *AccountRequest, opts ...grpc.CallOption) (*AccountReply, error) TickStream(ctx context.Context, in *TickRequest, opts ...grpc.CallOption) (Stock_TickStreamClient, error) Chart(ctx context.Context, in *ChartRequest, opts ...grpc.CallOption) (*ChartReply, error) //모든 소유하고 있는 주식, 코인정보 Position(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*PositionReply, error) Buy(ctx context.Context, in *BuyRequest, opts ...grpc.CallOption) (*BuyReply, error) Sell(ctx context.Context, in *SellRequest, opts ...grpc.CallOption) (*SellReply, error) OrderList(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*OrderListReply, error) CancelOrder(ctx context.Context, in *CancelOrderRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) TradeStream(ctx context.Context, in *TradeStreamRequest, opts ...grpc.CallOption) (Stock_TradeStreamClient, error) OrderBookStream(ctx context.Context, in *OrderBookStreamRequest, opts ...grpc.CallOption) (Stock_OrderBookStreamClient, error) OrderInfo(ctx context.Context, in *OrderInfoRequest, opts ...grpc.CallOption) (*OrderInfoReply, error) OrderEventStream(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (Stock_OrderEventStreamClient, error) }
StockClient is the client API for Stock 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 NewSocketClient ¶
func NewSocketClient(ctx context.Context, url string) (StockClient, error)
Generate stockclient
func NewStockClient ¶
func NewStockClient(cc grpc.ClientConnInterface) StockClient
type StockServer ¶
type StockServer interface { AllMarkets(context.Context, *emptypb.Empty) (*AllMarketsReply, error) //특정 소유하고 있는 주식,코인 정보 Account(context.Context, *AccountRequest) (*AccountReply, error) TickStream(*TickRequest, Stock_TickStreamServer) error Chart(context.Context, *ChartRequest) (*ChartReply, error) //모든 소유하고 있는 주식, 코인정보 Position(context.Context, *emptypb.Empty) (*PositionReply, error) Buy(context.Context, *BuyRequest) (*BuyReply, error) Sell(context.Context, *SellRequest) (*SellReply, error) OrderList(context.Context, *emptypb.Empty) (*OrderListReply, error) CancelOrder(context.Context, *CancelOrderRequest) (*emptypb.Empty, error) TradeStream(*TradeStreamRequest, Stock_TradeStreamServer) error OrderBookStream(*OrderBookStreamRequest, Stock_OrderBookStreamServer) error OrderInfo(context.Context, *OrderInfoRequest) (*OrderInfoReply, error) OrderEventStream(*emptypb.Empty, Stock_OrderEventStreamServer) error // contains filtered or unexported methods }
StockServer is the server API for Stock service. All implementations must embed UnimplementedStockServer for forward compatibility
type Stock_OrderBookStreamClient ¶
type Stock_OrderBookStreamClient interface { Recv() (*OrderBookStreamReply, error) grpc.ClientStream }
type Stock_OrderBookStreamServer ¶
type Stock_OrderBookStreamServer interface { Send(*OrderBookStreamReply) error grpc.ServerStream }
type Stock_OrderEventStreamClient ¶
type Stock_OrderEventStreamClient interface { Recv() (*OrderEventStreamReply, error) grpc.ClientStream }
type Stock_OrderEventStreamServer ¶
type Stock_OrderEventStreamServer interface { Send(*OrderEventStreamReply) error grpc.ServerStream }
type Stock_TickStreamClient ¶
type Stock_TickStreamClient interface { Recv() (*TickReply, error) grpc.ClientStream }
type Stock_TickStreamServer ¶
type Stock_TickStreamServer interface { Send(*TickReply) error grpc.ServerStream }
type Stock_TradeStreamClient ¶
type Stock_TradeStreamClient interface { Recv() (*TradeStreamReply, error) grpc.ClientStream }
type Stock_TradeStreamServer ¶
type Stock_TradeStreamServer interface { Send(*TradeStreamReply) error grpc.ServerStream }
type TickReply ¶
type TickReply struct { Price float64 `protobuf:"fixed64,1,opt,name=price,proto3" json:"price,omitempty"` Date *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=date,proto3" json:"date,omitempty"` Volume float64 `protobuf:"fixed64,3,opt,name=volume,proto3" json:"volume,omitempty"` Askbid string `protobuf:"bytes,4,opt,name=askbid,proto3" json:"askbid,omitempty"` // contains filtered or unexported fields }
func (*TickReply) Descriptor
deprecated
func (*TickReply) GetDate ¶
func (x *TickReply) GetDate() *timestamppb.Timestamp
func (*TickReply) ProtoMessage ¶
func (*TickReply) ProtoMessage()
func (*TickReply) ProtoReflect ¶
func (x *TickReply) ProtoReflect() protoreflect.Message
type TickReplyValidationError ¶
type TickReplyValidationError struct {
// contains filtered or unexported fields
}
TickReplyValidationError is the validation error returned by TickReply.Validate if the designated constraints aren't met.
func (TickReplyValidationError) Cause ¶
func (e TickReplyValidationError) Cause() error
Cause function returns cause value.
func (TickReplyValidationError) Error ¶
func (e TickReplyValidationError) Error() string
Error satisfies the builtin error interface
func (TickReplyValidationError) ErrorName ¶
func (e TickReplyValidationError) ErrorName() string
ErrorName returns error name.
func (TickReplyValidationError) Field ¶
func (e TickReplyValidationError) Field() string
Field function returns field value.
func (TickReplyValidationError) Key ¶
func (e TickReplyValidationError) Key() bool
Key function returns key value.
func (TickReplyValidationError) Reason ¶
func (e TickReplyValidationError) Reason() string
Reason function returns reason value.
type TickRequest ¶
type TickRequest struct { Codes string `protobuf:"bytes,1,opt,name=codes,proto3" json:"codes,omitempty"` // contains filtered or unexported fields }
func (*TickRequest) Descriptor
deprecated
func (*TickRequest) Descriptor() ([]byte, []int)
Deprecated: Use TickRequest.ProtoReflect.Descriptor instead.
func (*TickRequest) GetCodes ¶
func (x *TickRequest) GetCodes() string
func (*TickRequest) ProtoMessage ¶
func (*TickRequest) ProtoMessage()
func (*TickRequest) ProtoReflect ¶
func (x *TickRequest) ProtoReflect() protoreflect.Message
func (*TickRequest) Reset ¶
func (x *TickRequest) Reset()
func (*TickRequest) String ¶
func (x *TickRequest) String() string
func (*TickRequest) Validate ¶
func (m *TickRequest) Validate() error
Validate checks the field values on TickRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type TickRequestValidationError ¶
type TickRequestValidationError struct {
// contains filtered or unexported fields
}
TickRequestValidationError is the validation error returned by TickRequest.Validate if the designated constraints aren't met.
func (TickRequestValidationError) Cause ¶
func (e TickRequestValidationError) Cause() error
Cause function returns cause value.
func (TickRequestValidationError) Error ¶
func (e TickRequestValidationError) Error() string
Error satisfies the builtin error interface
func (TickRequestValidationError) ErrorName ¶
func (e TickRequestValidationError) ErrorName() string
ErrorName returns error name.
func (TickRequestValidationError) Field ¶
func (e TickRequestValidationError) Field() string
Field function returns field value.
func (TickRequestValidationError) Key ¶
func (e TickRequestValidationError) Key() bool
Key function returns key value.
func (TickRequestValidationError) Reason ¶
func (e TickRequestValidationError) Reason() string
Reason function returns reason value.
type TradeStreamReply ¶
type TradeStreamReply struct { Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` Price float64 `protobuf:"fixed64,2,opt,name=price,proto3" json:"price,omitempty"` Volume float64 `protobuf:"fixed64,3,opt,name=volume,proto3" json:"volume,omitempty"` Date *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=date,proto3" json:"date,omitempty"` Askbid string `protobuf:"bytes,5,opt,name=askbid,proto3" json:"askbid,omitempty"` // contains filtered or unexported fields }
func (*TradeStreamReply) Descriptor
deprecated
func (*TradeStreamReply) Descriptor() ([]byte, []int)
Deprecated: Use TradeStreamReply.ProtoReflect.Descriptor instead.
func (*TradeStreamReply) GetAskbid ¶
func (x *TradeStreamReply) GetAskbid() string
func (*TradeStreamReply) GetCode ¶
func (x *TradeStreamReply) GetCode() string
func (*TradeStreamReply) GetDate ¶
func (x *TradeStreamReply) GetDate() *timestamppb.Timestamp
func (*TradeStreamReply) GetPrice ¶
func (x *TradeStreamReply) GetPrice() float64
func (*TradeStreamReply) GetVolume ¶
func (x *TradeStreamReply) GetVolume() float64
func (*TradeStreamReply) ProtoMessage ¶
func (*TradeStreamReply) ProtoMessage()
func (*TradeStreamReply) ProtoReflect ¶
func (x *TradeStreamReply) ProtoReflect() protoreflect.Message
func (*TradeStreamReply) Reset ¶
func (x *TradeStreamReply) Reset()
func (*TradeStreamReply) String ¶
func (x *TradeStreamReply) String() string
func (*TradeStreamReply) Validate ¶
func (m *TradeStreamReply) Validate() error
Validate checks the field values on TradeStreamReply with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type TradeStreamReplyValidationError ¶
type TradeStreamReplyValidationError struct {
// contains filtered or unexported fields
}
TradeStreamReplyValidationError is the validation error returned by TradeStreamReply.Validate if the designated constraints aren't met.
func (TradeStreamReplyValidationError) Cause ¶
func (e TradeStreamReplyValidationError) Cause() error
Cause function returns cause value.
func (TradeStreamReplyValidationError) Error ¶
func (e TradeStreamReplyValidationError) Error() string
Error satisfies the builtin error interface
func (TradeStreamReplyValidationError) ErrorName ¶
func (e TradeStreamReplyValidationError) ErrorName() string
ErrorName returns error name.
func (TradeStreamReplyValidationError) Field ¶
func (e TradeStreamReplyValidationError) Field() string
Field function returns field value.
func (TradeStreamReplyValidationError) Key ¶
func (e TradeStreamReplyValidationError) Key() bool
Key function returns key value.
func (TradeStreamReplyValidationError) Reason ¶
func (e TradeStreamReplyValidationError) Reason() string
Reason function returns reason value.
type TradeStreamRequest ¶
type TradeStreamRequest struct { Codes []string `protobuf:"bytes,1,rep,name=codes,proto3" json:"codes,omitempty"` // contains filtered or unexported fields }
func (*TradeStreamRequest) Descriptor
deprecated
func (*TradeStreamRequest) Descriptor() ([]byte, []int)
Deprecated: Use TradeStreamRequest.ProtoReflect.Descriptor instead.
func (*TradeStreamRequest) GetCodes ¶
func (x *TradeStreamRequest) GetCodes() []string
func (*TradeStreamRequest) ProtoMessage ¶
func (*TradeStreamRequest) ProtoMessage()
func (*TradeStreamRequest) ProtoReflect ¶
func (x *TradeStreamRequest) ProtoReflect() protoreflect.Message
func (*TradeStreamRequest) Reset ¶
func (x *TradeStreamRequest) Reset()
func (*TradeStreamRequest) String ¶
func (x *TradeStreamRequest) String() string
func (*TradeStreamRequest) Validate ¶
func (m *TradeStreamRequest) Validate() error
Validate checks the field values on TradeStreamRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type TradeStreamRequestValidationError ¶
type TradeStreamRequestValidationError struct {
// contains filtered or unexported fields
}
TradeStreamRequestValidationError is the validation error returned by TradeStreamRequest.Validate if the designated constraints aren't met.
func (TradeStreamRequestValidationError) Cause ¶
func (e TradeStreamRequestValidationError) Cause() error
Cause function returns cause value.
func (TradeStreamRequestValidationError) Error ¶
func (e TradeStreamRequestValidationError) Error() string
Error satisfies the builtin error interface
func (TradeStreamRequestValidationError) ErrorName ¶
func (e TradeStreamRequestValidationError) ErrorName() string
ErrorName returns error name.
func (TradeStreamRequestValidationError) Field ¶
func (e TradeStreamRequestValidationError) Field() string
Field function returns field value.
func (TradeStreamRequestValidationError) Key ¶
func (e TradeStreamRequestValidationError) Key() bool
Key function returns key value.
func (TradeStreamRequestValidationError) Reason ¶
func (e TradeStreamRequestValidationError) Reason() string
Reason function returns reason value.
type UnimplementedStockServer ¶
type UnimplementedStockServer struct { }
UnimplementedStockServer must be embedded to have forward compatible implementations.
func (UnimplementedStockServer) Account ¶
func (UnimplementedStockServer) Account(context.Context, *AccountRequest) (*AccountReply, error)
func (UnimplementedStockServer) AllMarkets ¶
func (UnimplementedStockServer) AllMarkets(context.Context, *emptypb.Empty) (*AllMarketsReply, error)
func (UnimplementedStockServer) Buy ¶
func (UnimplementedStockServer) Buy(context.Context, *BuyRequest) (*BuyReply, error)
func (UnimplementedStockServer) CancelOrder ¶
func (UnimplementedStockServer) CancelOrder(context.Context, *CancelOrderRequest) (*emptypb.Empty, error)
func (UnimplementedStockServer) Chart ¶
func (UnimplementedStockServer) Chart(context.Context, *ChartRequest) (*ChartReply, error)
func (UnimplementedStockServer) OrderBookStream ¶
func (UnimplementedStockServer) OrderBookStream(*OrderBookStreamRequest, Stock_OrderBookStreamServer) error
func (UnimplementedStockServer) OrderEventStream ¶
func (UnimplementedStockServer) OrderEventStream(*emptypb.Empty, Stock_OrderEventStreamServer) error
func (UnimplementedStockServer) OrderInfo ¶
func (UnimplementedStockServer) OrderInfo(context.Context, *OrderInfoRequest) (*OrderInfoReply, error)
func (UnimplementedStockServer) OrderList ¶
func (UnimplementedStockServer) OrderList(context.Context, *emptypb.Empty) (*OrderListReply, error)
func (UnimplementedStockServer) Position ¶
func (UnimplementedStockServer) Position(context.Context, *emptypb.Empty) (*PositionReply, error)
func (UnimplementedStockServer) Sell ¶
func (UnimplementedStockServer) Sell(context.Context, *SellRequest) (*SellReply, error)
func (UnimplementedStockServer) TickStream ¶
func (UnimplementedStockServer) TickStream(*TickRequest, Stock_TickStreamServer) error
func (UnimplementedStockServer) TradeStream ¶
func (UnimplementedStockServer) TradeStream(*TradeStreamRequest, Stock_TradeStreamServer) error
type UnsafeStockServer ¶
type UnsafeStockServer interface {
// contains filtered or unexported methods
}
UnsafeStockServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StockServer will result in compilation errors.