stock

package
v0.0.0-...-0942b9d Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: BSD-3-Clause Imports: 22 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OrderType_name = map[int32]string{
		0: "MarketOrder",
		1: "LimitOrder",
	}
	OrderType_value = map[string]int32{
		"MarketOrder": 0,
		"LimitOrder":  1,
	}
)

Enum value maps for OrderType.

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

View Source
var File_stock_stock_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Account.ProtoReflect.Descriptor instead.

func (*Account) GetAvgByPrice

func (x *Account) GetAvgByPrice() float64

func (*Account) GetBalance

func (x *Account) GetBalance() float64

func (*Account) GetCode

func (x *Account) GetCode() string

func (*Account) GetTotalPrice

func (x *Account) GetTotalPrice() float64

func (*Account) ProtoMessage

func (*Account) ProtoMessage()

func (*Account) ProtoReflect

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

func (*Account) Reset

func (x *Account) Reset()

func (*Account) String

func (x *Account) String() string

func (*Account) Validate

func (m *Account) Validate() error

Validate checks the field values on Account with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

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

Cause function returns cause value.

func (AccountReplyValidationError) Error

Error satisfies the builtin error interface

func (AccountReplyValidationError) ErrorName

func (e AccountReplyValidationError) ErrorName() string

ErrorName returns error name.

func (AccountReplyValidationError) Field

Field function returns field value.

func (AccountReplyValidationError) Key

Key function returns key value.

func (AccountReplyValidationError) Reason

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

Cause function returns cause value.

func (AccountRequestValidationError) Error

Error satisfies the builtin error interface

func (AccountRequestValidationError) ErrorName

func (e AccountRequestValidationError) ErrorName() string

ErrorName returns error name.

func (AccountRequestValidationError) Field

Field function returns field value.

func (AccountRequestValidationError) Key

Key function returns key value.

func (AccountRequestValidationError) Reason

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

Cause function returns cause value.

func (AllMarketsReplyValidationError) Error

Error satisfies the builtin error interface

func (AllMarketsReplyValidationError) ErrorName

func (e AllMarketsReplyValidationError) ErrorName() string

ErrorName returns error name.

func (AllMarketsReplyValidationError) Field

Field function returns field value.

func (AllMarketsReplyValidationError) Key

Key function returns key value.

func (AllMarketsReplyValidationError) Reason

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

Cause function returns cause value.

func (AllMarketsReply_MarketValidationError) Error

Error satisfies the builtin error interface

func (AllMarketsReply_MarketValidationError) ErrorName

ErrorName returns error name.

func (AllMarketsReply_MarketValidationError) Field

Field function returns field value.

func (AllMarketsReply_MarketValidationError) Key

Key function returns key value.

func (AllMarketsReply_MarketValidationError) Reason

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) Descriptor() ([]byte, []int)

Deprecated: Use BuyReply.ProtoReflect.Descriptor instead.

func (*BuyReply) GetAvgPrice

func (x *BuyReply) GetAvgPrice() float64

func (*BuyReply) GetCode

func (x *BuyReply) GetCode() string

func (*BuyReply) GetCreatedAt

func (x *BuyReply) GetCreatedAt() *timestamppb.Timestamp

func (*BuyReply) GetFee

func (x *BuyReply) GetFee() float64

func (*BuyReply) GetId

func (x *BuyReply) GetId() string

func (*BuyReply) GetPrice

func (x *BuyReply) GetPrice() float64

func (*BuyReply) GetVolume

func (x *BuyReply) GetVolume() float64

func (*BuyReply) ProtoMessage

func (*BuyReply) ProtoMessage()

func (*BuyReply) ProtoReflect

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

func (*BuyReply) Reset

func (x *BuyReply) Reset()

func (*BuyReply) String

func (x *BuyReply) String() string

func (*BuyReply) Validate

func (m *BuyReply) Validate() error

Validate checks the field values on BuyReply with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

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

Error satisfies the builtin error interface

func (BuyRequestValidationError) ErrorName

func (e BuyRequestValidationError) ErrorName() string

ErrorName returns error name.

func (BuyRequestValidationError) Field

Field function returns field value.

func (BuyRequestValidationError) Key

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

Cause function returns cause value.

func (CancelOrderRequestValidationError) Error

Error satisfies the builtin error interface

func (CancelOrderRequestValidationError) ErrorName

ErrorName returns error name.

func (CancelOrderRequestValidationError) Field

Field function returns field value.

func (CancelOrderRequestValidationError) Key

Key function returns key value.

func (CancelOrderRequestValidationError) Reason

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) Descriptor() ([]byte, []int)

Deprecated: Use ChartData.ProtoReflect.Descriptor instead.

func (*ChartData) GetClose

func (x *ChartData) GetClose() float64

func (*ChartData) GetDate

func (x *ChartData) GetDate() *timestamppb.Timestamp

func (*ChartData) GetHigh

func (x *ChartData) GetHigh() float64

func (*ChartData) GetLow

func (x *ChartData) GetLow() float64

func (*ChartData) GetOpen

func (x *ChartData) GetOpen() float64

func (*ChartData) GetVolume

func (x *ChartData) GetVolume() float64

func (*ChartData) ProtoMessage

func (*ChartData) ProtoMessage()

func (*ChartData) ProtoReflect

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

func (*ChartData) Reset

func (x *ChartData) Reset()

func (*ChartData) String

func (x *ChartData) String() string

func (*ChartData) Validate

func (m *ChartData) Validate() error

Validate checks the field values on ChartData with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

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

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

Error satisfies the builtin error interface

func (ChartReplyValidationError) ErrorName

func (e ChartReplyValidationError) ErrorName() string

ErrorName returns error name.

func (ChartReplyValidationError) Field

Field function returns field value.

func (ChartReplyValidationError) Key

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

Cause function returns cause value.

func (ChartRequestValidationError) Error

Error satisfies the builtin error interface

func (ChartRequestValidationError) ErrorName

func (e ChartRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ChartRequestValidationError) Field

Field function returns field value.

func (ChartRequestValidationError) Key

Key function returns key value.

func (ChartRequestValidationError) Reason

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) Descriptor() ([]byte, []int)

Deprecated: Use Order.ProtoReflect.Descriptor instead.

func (*Order) GetCode

func (x *Order) GetCode() string

func (*Order) GetCreatedAt

func (x *Order) GetCreatedAt() *timestamppb.Timestamp

func (*Order) GetFee

func (x *Order) GetFee() float64

func (*Order) GetId

func (x *Order) GetId() string

func (*Order) GetPrice

func (x *Order) GetPrice() float64

func (*Order) GetSide

func (x *Order) GetSide() Order_Side

func (*Order) GetState

func (x *Order) GetState() string

func (*Order) GetTradeCount

func (x *Order) GetTradeCount() float64

func (*Order) GetType

func (x *Order) GetType() OrderType

func (*Order) GetVolume

func (x *Order) GetVolume() float64

func (*Order) ProtoMessage

func (*Order) ProtoMessage()

func (*Order) ProtoReflect

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

func (*Order) Reset

func (x *Order) Reset()

func (*Order) String

func (x *Order) String() string

func (*Order) Validate

func (m *Order) Validate() error

Validate checks the field values on Order with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

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

Cause function returns cause value.

func (OrderBookStreamReplyValidationError) Error

Error satisfies the builtin error interface

func (OrderBookStreamReplyValidationError) ErrorName

ErrorName returns error name.

func (OrderBookStreamReplyValidationError) Field

Field function returns field value.

func (OrderBookStreamReplyValidationError) Key

Key function returns key value.

func (OrderBookStreamReplyValidationError) Reason

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

Cause function returns cause value.

func (OrderBookStreamRequestValidationError) Error

Error satisfies the builtin error interface

func (OrderBookStreamRequestValidationError) ErrorName

ErrorName returns error name.

func (OrderBookStreamRequestValidationError) Field

Field function returns field value.

func (OrderBookStreamRequestValidationError) Key

Key function returns key value.

func (OrderBookStreamRequestValidationError) Reason

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

Cause function returns cause value.

func (OrderEventStreamReplyValidationError) Error

Error satisfies the builtin error interface

func (OrderEventStreamReplyValidationError) ErrorName

ErrorName returns error name.

func (OrderEventStreamReplyValidationError) Field

Field function returns field value.

func (OrderEventStreamReplyValidationError) Key

Key function returns key value.

func (OrderEventStreamReplyValidationError) Reason

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

Cause function returns cause value.

func (OrderInfoReplyValidationError) Error

Error satisfies the builtin error interface

func (OrderInfoReplyValidationError) ErrorName

func (e OrderInfoReplyValidationError) ErrorName() string

ErrorName returns error name.

func (OrderInfoReplyValidationError) Field

Field function returns field value.

func (OrderInfoReplyValidationError) Key

Key function returns key value.

func (OrderInfoReplyValidationError) Reason

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

Cause function returns cause value.

func (OrderInfoRequestValidationError) Error

Error satisfies the builtin error interface

func (OrderInfoRequestValidationError) ErrorName

ErrorName returns error name.

func (OrderInfoRequestValidationError) Field

Field function returns field value.

func (OrderInfoRequestValidationError) Key

Key function returns key value.

func (OrderInfoRequestValidationError) Reason

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

Cause function returns cause value.

func (OrderListReplyValidationError) Error

Error satisfies the builtin error interface

func (OrderListReplyValidationError) ErrorName

func (e OrderListReplyValidationError) ErrorName() string

ErrorName returns error name.

func (OrderListReplyValidationError) Field

Field function returns field value.

func (OrderListReplyValidationError) Key

Key function returns key value.

func (OrderListReplyValidationError) Reason

Reason function returns reason value.

type OrderType

type OrderType int32
const (
	OrderType_MarketOrder OrderType = 0
	OrderType_LimitOrder  OrderType = 1
)

func (OrderType) Descriptor

func (OrderType) Descriptor() protoreflect.EnumDescriptor

func (OrderType) Enum

func (x OrderType) Enum() *OrderType

func (OrderType) EnumDescriptor deprecated

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

Deprecated: Use OrderType.Descriptor instead.

func (OrderType) Number

func (x OrderType) Number() protoreflect.EnumNumber

func (OrderType) String

func (x OrderType) String() string

func (OrderType) Type

type 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

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) Descriptor() ([]byte, []int)

Deprecated: Use Position.ProtoReflect.Descriptor instead.

func (*Position) GetAmount

func (x *Position) GetAmount() float64

func (*Position) GetCode

func (x *Position) GetCode() string

func (*Position) GetDate

func (x *Position) GetDate() *timestamppb.Timestamp

func (*Position) GetPrice

func (x *Position) GetPrice() float64

func (*Position) ProtoMessage

func (*Position) ProtoMessage()

func (*Position) ProtoReflect

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

func (*Position) Reset

func (x *Position) Reset()

func (*Position) String

func (x *Position) String() string

func (*Position) Validate

func (m *Position) Validate() error

Validate checks the field values on Position with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

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

Cause function returns cause value.

func (PositionReplyValidationError) Error

Error satisfies the builtin error interface

func (PositionReplyValidationError) ErrorName

func (e PositionReplyValidationError) ErrorName() string

ErrorName returns error name.

func (PositionReplyValidationError) Field

Field function returns field value.

func (PositionReplyValidationError) Key

Key function returns key value.

func (PositionReplyValidationError) Reason

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) Descriptor() ([]byte, []int)

Deprecated: Use SellReply.ProtoReflect.Descriptor instead.

func (*SellReply) GetAvgPrice

func (x *SellReply) GetAvgPrice() float64

func (*SellReply) GetCode

func (x *SellReply) GetCode() string

func (*SellReply) GetCreatedAt

func (x *SellReply) GetCreatedAt() *timestamppb.Timestamp

func (*SellReply) GetFee

func (x *SellReply) GetFee() float64

func (*SellReply) GetId

func (x *SellReply) GetId() string

func (*SellReply) GetPrice

func (x *SellReply) GetPrice() float64

func (*SellReply) GetVolume

func (x *SellReply) GetVolume() float64

func (*SellReply) ProtoMessage

func (*SellReply) ProtoMessage()

func (*SellReply) ProtoReflect

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

func (*SellReply) Reset

func (x *SellReply) Reset()

func (*SellReply) String

func (x *SellReply) String() string

func (*SellReply) Validate

func (m *SellReply) Validate() error

Validate checks the field values on SellReply with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

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

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

Cause function returns cause value.

func (SellRequestValidationError) Error

Error satisfies the builtin error interface

func (SellRequestValidationError) ErrorName

func (e SellRequestValidationError) ErrorName() string

ErrorName returns error name.

func (SellRequestValidationError) Field

Field function returns field value.

func (SellRequestValidationError) Key

Key function returns key value.

func (SellRequestValidationError) Reason

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) Descriptor() ([]byte, []int)

Deprecated: Use TickReply.ProtoReflect.Descriptor instead.

func (*TickReply) GetAskbid

func (x *TickReply) GetAskbid() string

func (*TickReply) GetDate

func (x *TickReply) GetDate() *timestamppb.Timestamp

func (*TickReply) GetPrice

func (x *TickReply) GetPrice() float64

func (*TickReply) GetVolume

func (x *TickReply) GetVolume() float64

func (*TickReply) ProtoMessage

func (*TickReply) ProtoMessage()

func (*TickReply) ProtoReflect

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

func (*TickReply) Reset

func (x *TickReply) Reset()

func (*TickReply) String

func (x *TickReply) String() string

func (*TickReply) Validate

func (m *TickReply) Validate() error

Validate checks the field values on TickReply with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

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

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

Cause function returns cause value.

func (TickRequestValidationError) Error

Error satisfies the builtin error interface

func (TickRequestValidationError) ErrorName

func (e TickRequestValidationError) ErrorName() string

ErrorName returns error name.

func (TickRequestValidationError) Field

Field function returns field value.

func (TickRequestValidationError) Key

Key function returns key value.

func (TickRequestValidationError) Reason

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

Cause function returns cause value.

func (TradeStreamReplyValidationError) Error

Error satisfies the builtin error interface

func (TradeStreamReplyValidationError) ErrorName

ErrorName returns error name.

func (TradeStreamReplyValidationError) Field

Field function returns field value.

func (TradeStreamReplyValidationError) Key

Key function returns key value.

func (TradeStreamReplyValidationError) Reason

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

Cause function returns cause value.

func (TradeStreamRequestValidationError) Error

Error satisfies the builtin error interface

func (TradeStreamRequestValidationError) ErrorName

ErrorName returns error name.

func (TradeStreamRequestValidationError) Field

Field function returns field value.

func (TradeStreamRequestValidationError) Key

Key function returns key value.

func (TradeStreamRequestValidationError) Reason

Reason function returns reason value.

type UnimplementedStockServer

type UnimplementedStockServer struct {
}

UnimplementedStockServer must be embedded to have forward compatible implementations.

func (UnimplementedStockServer) Account

func (UnimplementedStockServer) AllMarkets

func (UnimplementedStockServer) Buy

func (UnimplementedStockServer) CancelOrder

func (UnimplementedStockServer) Chart

func (UnimplementedStockServer) OrderBookStream

func (UnimplementedStockServer) OrderEventStream

func (UnimplementedStockServer) OrderInfo

func (UnimplementedStockServer) OrderList

func (UnimplementedStockServer) Position

func (UnimplementedStockServer) Sell

func (UnimplementedStockServer) TickStream

func (UnimplementedStockServer) TradeStream

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.

Jump to

Keyboard shortcuts

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