2022-02-14 08:16:32 +00:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
// versions:
|
|
|
|
// protoc-gen-go v1.27.1
|
|
|
|
// protoc v3.19.4
|
|
|
|
// source: bbgo.proto
|
|
|
|
|
2022-02-18 06:26:48 +00:00
|
|
|
package pb
|
2022-02-14 08:16:32 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
|
|
reflect "reflect"
|
|
|
|
sync "sync"
|
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
|
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
|
|
)
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
type SubscribeRequest struct {
|
2022-02-14 08:16:32 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
Subscriptions []*Subscription `protobuf:"bytes,1,rep,name=subscriptions,proto3" json:"subscriptions,omitempty"`
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *SubscribeRequest) Reset() {
|
|
|
|
*x = SubscribeRequest{}
|
2022-02-14 08:16:32 +00:00
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_bbgo_proto_msgTypes[0]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *SubscribeRequest) String() string {
|
2022-02-14 08:16:32 +00:00
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (*SubscribeRequest) ProtoMessage() {}
|
2022-02-14 08:16:32 +00:00
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *SubscribeRequest) ProtoReflect() protoreflect.Message {
|
2022-02-14 08:16:32 +00:00
|
|
|
mi := &file_bbgo_proto_msgTypes[0]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
// Deprecated: Use SubscribeRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*SubscribeRequest) Descriptor() ([]byte, []int) {
|
2022-02-14 08:16:32 +00:00
|
|
|
return file_bbgo_proto_rawDescGZIP(), []int{0}
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *SubscribeRequest) GetSubscriptions() []*Subscription {
|
2022-02-14 08:16:32 +00:00
|
|
|
if x != nil {
|
2022-02-19 20:10:39 +00:00
|
|
|
return x.Subscriptions
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
2022-02-19 20:10:39 +00:00
|
|
|
return nil
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
type Subscription struct {
|
2022-02-14 08:16:32 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
Exchange string `protobuf:"bytes,1,opt,name=exchange,proto3" json:"exchange,omitempty"`
|
|
|
|
Channel string `protobuf:"bytes,2,opt,name=channel,proto3" json:"channel,omitempty"` // book, trade, ticker
|
2022-02-21 03:38:43 +00:00
|
|
|
Symbol string `protobuf:"bytes,3,opt,name=symbol,proto3" json:"symbol,omitempty"`
|
2022-02-19 20:10:39 +00:00
|
|
|
Depth int64 `protobuf:"varint,4,opt,name=depth,proto3" json:"depth,omitempty"`
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *Subscription) Reset() {
|
|
|
|
*x = Subscription{}
|
2022-02-14 08:16:32 +00:00
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_bbgo_proto_msgTypes[1]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *Subscription) String() string {
|
2022-02-14 08:16:32 +00:00
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (*Subscription) ProtoMessage() {}
|
2022-02-14 08:16:32 +00:00
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *Subscription) ProtoReflect() protoreflect.Message {
|
2022-02-14 08:16:32 +00:00
|
|
|
mi := &file_bbgo_proto_msgTypes[1]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
// Deprecated: Use Subscription.ProtoReflect.Descriptor instead.
|
|
|
|
func (*Subscription) Descriptor() ([]byte, []int) {
|
2022-02-14 08:16:32 +00:00
|
|
|
return file_bbgo_proto_rawDescGZIP(), []int{1}
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *Subscription) GetExchange() string {
|
2022-02-14 08:16:32 +00:00
|
|
|
if x != nil {
|
|
|
|
return x.Exchange
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *Subscription) GetChannel() string {
|
2022-02-14 08:16:32 +00:00
|
|
|
if x != nil {
|
2022-02-19 20:10:39 +00:00
|
|
|
return x.Channel
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2022-02-21 03:38:43 +00:00
|
|
|
func (x *Subscription) GetSymbol() string {
|
2022-02-14 08:16:32 +00:00
|
|
|
if x != nil {
|
2022-02-21 03:38:43 +00:00
|
|
|
return x.Symbol
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
2022-02-19 20:10:39 +00:00
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Subscription) GetDepth() int64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Depth
|
|
|
|
}
|
|
|
|
return 0
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
type SubscribeResponse struct {
|
2022-02-14 08:16:32 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
SuccessResponses []*SuccessResponse `protobuf:"bytes,1,rep,name=success_responses,json=successResponses,proto3" json:"success_responses,omitempty"`
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *SubscribeResponse) Reset() {
|
|
|
|
*x = SubscribeResponse{}
|
2022-02-14 08:16:32 +00:00
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_bbgo_proto_msgTypes[2]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *SubscribeResponse) String() string {
|
2022-02-14 08:16:32 +00:00
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (*SubscribeResponse) ProtoMessage() {}
|
2022-02-14 08:16:32 +00:00
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *SubscribeResponse) ProtoReflect() protoreflect.Message {
|
2022-02-14 08:16:32 +00:00
|
|
|
mi := &file_bbgo_proto_msgTypes[2]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
// Deprecated: Use SubscribeResponse.ProtoReflect.Descriptor instead.
|
|
|
|
func (*SubscribeResponse) Descriptor() ([]byte, []int) {
|
2022-02-14 08:16:32 +00:00
|
|
|
return file_bbgo_proto_rawDescGZIP(), []int{2}
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *SubscribeResponse) GetSuccessResponses() []*SuccessResponse {
|
2022-02-14 08:16:32 +00:00
|
|
|
if x != nil {
|
2022-02-19 20:10:39 +00:00
|
|
|
return x.SuccessResponses
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
2022-02-19 20:10:39 +00:00
|
|
|
return nil
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
type SuccessResponse struct {
|
2022-02-14 08:16:32 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2022-02-23 04:19:23 +00:00
|
|
|
Exchange string `protobuf:"bytes,1,opt,name=exchange,proto3" json:"exchange,omitempty"`
|
|
|
|
Channel string `protobuf:"bytes,2,opt,name=channel,proto3" json:"channel,omitempty"` // book, trade, ticker, user
|
|
|
|
Event string `protobuf:"bytes,3,opt,name=event,proto3" json:"event,omitempty"` // snapshot, update, order_snapshot, ...
|
|
|
|
Symbol string `protobuf:"bytes,4,opt,name=symbol,proto3" json:"symbol,omitempty"`
|
|
|
|
Depth *Depth `protobuf:"bytes,5,opt,name=depth,proto3" json:"depth,omitempty"`
|
|
|
|
Trades []*Trade `protobuf:"bytes,6,rep,name=trades,proto3" json:"trades,omitempty"`
|
|
|
|
Ticker *Ticker `protobuf:"bytes,7,opt,name=ticker,proto3" json:"ticker,omitempty"`
|
|
|
|
Orders []*Order `protobuf:"bytes,8,rep,name=orders,proto3" json:"orders,omitempty"`
|
|
|
|
Balances []*Balance `protobuf:"bytes,9,rep,name=balances,proto3" json:"balances,omitempty"`
|
|
|
|
CreatedAt int64 `protobuf:"varint,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
|
2022-02-19 20:10:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *SuccessResponse) Reset() {
|
|
|
|
*x = SuccessResponse{}
|
2022-02-14 08:16:32 +00:00
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_bbgo_proto_msgTypes[3]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *SuccessResponse) String() string {
|
2022-02-14 08:16:32 +00:00
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (*SuccessResponse) ProtoMessage() {}
|
2022-02-14 08:16:32 +00:00
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *SuccessResponse) ProtoReflect() protoreflect.Message {
|
2022-02-14 08:16:32 +00:00
|
|
|
mi := &file_bbgo_proto_msgTypes[3]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
// Deprecated: Use SuccessResponse.ProtoReflect.Descriptor instead.
|
|
|
|
func (*SuccessResponse) Descriptor() ([]byte, []int) {
|
2022-02-14 08:16:32 +00:00
|
|
|
return file_bbgo_proto_rawDescGZIP(), []int{3}
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *SuccessResponse) GetExchange() string {
|
2022-02-14 08:16:32 +00:00
|
|
|
if x != nil {
|
2022-02-19 20:10:39 +00:00
|
|
|
return x.Exchange
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *SuccessResponse) GetChannel() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Channel
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
2022-02-19 20:10:39 +00:00
|
|
|
return ""
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *SuccessResponse) GetEvent() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Event
|
|
|
|
}
|
|
|
|
return ""
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-21 03:38:43 +00:00
|
|
|
func (x *SuccessResponse) GetSymbol() string {
|
2022-02-19 20:10:39 +00:00
|
|
|
if x != nil {
|
2022-02-21 03:38:43 +00:00
|
|
|
return x.Symbol
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
2022-02-19 20:10:39 +00:00
|
|
|
return ""
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-23 04:19:23 +00:00
|
|
|
func (x *SuccessResponse) GetDepth() *Depth {
|
2022-02-19 20:10:39 +00:00
|
|
|
if x != nil {
|
2022-02-23 04:19:23 +00:00
|
|
|
return x.Depth
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
2022-02-19 20:10:39 +00:00
|
|
|
return nil
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *SuccessResponse) GetTrades() []*Trade {
|
|
|
|
if x != nil {
|
|
|
|
return x.Trades
|
|
|
|
}
|
|
|
|
return nil
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *SuccessResponse) GetTicker() *Ticker {
|
2022-02-14 08:16:32 +00:00
|
|
|
if x != nil {
|
2022-02-19 20:10:39 +00:00
|
|
|
return x.Ticker
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
2022-02-19 20:10:39 +00:00
|
|
|
return nil
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *SuccessResponse) GetOrders() []*Order {
|
2022-02-14 08:16:32 +00:00
|
|
|
if x != nil {
|
2022-02-19 20:10:39 +00:00
|
|
|
return x.Orders
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
2022-02-19 20:10:39 +00:00
|
|
|
return nil
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *SuccessResponse) GetBalances() []*Balance {
|
2022-02-14 08:16:32 +00:00
|
|
|
if x != nil {
|
2022-02-19 20:10:39 +00:00
|
|
|
return x.Balances
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:41:39 +00:00
|
|
|
func (x *SuccessResponse) GetCreatedAt() int64 {
|
2022-02-14 08:16:32 +00:00
|
|
|
if x != nil {
|
2022-02-19 20:41:39 +00:00
|
|
|
return x.CreatedAt
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
2022-02-19 20:10:39 +00:00
|
|
|
return 0
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-23 04:19:23 +00:00
|
|
|
type Depth struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
Exchange string `protobuf:"bytes,1,opt,name=exchange,proto3" json:"exchange,omitempty"`
|
|
|
|
Symbol string `protobuf:"bytes,2,opt,name=symbol,proto3" json:"symbol,omitempty"`
|
|
|
|
Asks []*PriceVolume `protobuf:"bytes,3,rep,name=asks,proto3" json:"asks,omitempty"`
|
|
|
|
Bids []*PriceVolume `protobuf:"bytes,4,rep,name=bids,proto3" json:"bids,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Depth) Reset() {
|
|
|
|
*x = Depth{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_bbgo_proto_msgTypes[4]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Depth) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*Depth) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *Depth) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_bbgo_proto_msgTypes[4]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use Depth.ProtoReflect.Descriptor instead.
|
|
|
|
func (*Depth) Descriptor() ([]byte, []int) {
|
|
|
|
return file_bbgo_proto_rawDescGZIP(), []int{4}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Depth) GetExchange() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Exchange
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Depth) GetSymbol() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Symbol
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Depth) GetAsks() []*PriceVolume {
|
|
|
|
if x != nil {
|
|
|
|
return x.Asks
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Depth) GetBids() []*PriceVolume {
|
|
|
|
if x != nil {
|
|
|
|
return x.Bids
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2022-02-14 08:16:32 +00:00
|
|
|
type PriceVolume struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
Price int64 `protobuf:"varint,1,opt,name=price,proto3" json:"price,omitempty"`
|
|
|
|
Volume int64 `protobuf:"varint,2,opt,name=volume,proto3" json:"volume,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *PriceVolume) Reset() {
|
|
|
|
*x = PriceVolume{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2022-02-23 04:19:23 +00:00
|
|
|
mi := &file_bbgo_proto_msgTypes[5]
|
2022-02-14 08:16:32 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *PriceVolume) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*PriceVolume) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *PriceVolume) ProtoReflect() protoreflect.Message {
|
2022-02-23 04:19:23 +00:00
|
|
|
mi := &file_bbgo_proto_msgTypes[5]
|
2022-02-14 08:16:32 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use PriceVolume.ProtoReflect.Descriptor instead.
|
|
|
|
func (*PriceVolume) Descriptor() ([]byte, []int) {
|
2022-02-23 04:19:23 +00:00
|
|
|
return file_bbgo_proto_rawDescGZIP(), []int{5}
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *PriceVolume) GetPrice() int64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Price
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *PriceVolume) GetVolume() int64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Volume
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
// https://maicoin.github.io/max-websocket-docs/#/private_channels?id=trade-response
|
|
|
|
// https://maicoin.github.io/max-websocket-docs/#/public_trade?id=success-response
|
|
|
|
type Trade struct {
|
2022-02-14 08:16:32 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2022-02-21 04:53:39 +00:00
|
|
|
Exchange string `protobuf:"bytes,1,opt,name=exchange,proto3" json:"exchange,omitempty"`
|
|
|
|
Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
|
Price float64 `protobuf:"fixed64,3,opt,name=price,proto3" json:"price,omitempty"`
|
|
|
|
Volume float64 `protobuf:"fixed64,4,opt,name=volume,proto3" json:"volume,omitempty"`
|
|
|
|
Symbol string `protobuf:"bytes,5,opt,name=symbol,proto3" json:"symbol,omitempty"`
|
|
|
|
CreatedAt int64 `protobuf:"varint,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
|
|
|
|
Side string `protobuf:"bytes,7,opt,name=side,proto3" json:"side,omitempty"`
|
|
|
|
Fee float64 `protobuf:"fixed64,8,opt,name=fee,proto3" json:"fee,omitempty"`
|
|
|
|
FeeCurrency string `protobuf:"bytes,9,opt,name=fee_currency,json=feeCurrency,proto3" json:"fee_currency,omitempty"`
|
|
|
|
Maker bool `protobuf:"varint,10,opt,name=maker,proto3" json:"maker,omitempty"`
|
|
|
|
Trend string `protobuf:"bytes,11,opt,name=trend,proto3" json:"trend,omitempty"`
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *Trade) Reset() {
|
|
|
|
*x = Trade{}
|
2022-02-14 08:16:32 +00:00
|
|
|
if protoimpl.UnsafeEnabled {
|
2022-02-23 04:19:23 +00:00
|
|
|
mi := &file_bbgo_proto_msgTypes[6]
|
2022-02-14 08:16:32 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *Trade) String() string {
|
2022-02-14 08:16:32 +00:00
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (*Trade) ProtoMessage() {}
|
2022-02-14 08:16:32 +00:00
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *Trade) ProtoReflect() protoreflect.Message {
|
2022-02-23 04:19:23 +00:00
|
|
|
mi := &file_bbgo_proto_msgTypes[6]
|
2022-02-14 08:16:32 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
// Deprecated: Use Trade.ProtoReflect.Descriptor instead.
|
|
|
|
func (*Trade) Descriptor() ([]byte, []int) {
|
2022-02-23 04:19:23 +00:00
|
|
|
return file_bbgo_proto_rawDescGZIP(), []int{6}
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-21 04:53:39 +00:00
|
|
|
func (x *Trade) GetExchange() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Exchange
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *Trade) GetId() int64 {
|
2022-02-14 08:16:32 +00:00
|
|
|
if x != nil {
|
2022-02-19 20:10:39 +00:00
|
|
|
return x.Id
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
2022-02-19 20:10:39 +00:00
|
|
|
return 0
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *Trade) GetPrice() float64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Price
|
|
|
|
}
|
|
|
|
return 0
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *Trade) GetVolume() float64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Volume
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
2022-02-19 20:10:39 +00:00
|
|
|
return 0
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-21 03:38:43 +00:00
|
|
|
func (x *Trade) GetSymbol() string {
|
2022-02-19 20:10:39 +00:00
|
|
|
if x != nil {
|
2022-02-21 03:38:43 +00:00
|
|
|
return x.Symbol
|
2022-02-19 20:10:39 +00:00
|
|
|
}
|
|
|
|
return ""
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *Trade) GetCreatedAt() int64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.CreatedAt
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
2022-02-14 08:16:32 +00:00
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *Trade) GetSide() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Side
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
2022-02-19 20:10:39 +00:00
|
|
|
return ""
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *Trade) GetFee() float64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Fee
|
|
|
|
}
|
|
|
|
return 0
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *Trade) GetFeeCurrency() string {
|
2022-02-14 08:16:32 +00:00
|
|
|
if x != nil {
|
2022-02-19 20:10:39 +00:00
|
|
|
return x.FeeCurrency
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *Trade) GetMaker() bool {
|
2022-02-14 08:16:32 +00:00
|
|
|
if x != nil {
|
2022-02-19 20:10:39 +00:00
|
|
|
return x.Maker
|
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Trade) GetTrend() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Trend
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
// https://maicoin.github.io/max-websocket-docs/#/public_ticker?id=success-response
|
|
|
|
type Ticker struct {
|
2022-02-14 08:16:32 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
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"`
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *Ticker) Reset() {
|
|
|
|
*x = Ticker{}
|
2022-02-14 08:16:32 +00:00
|
|
|
if protoimpl.UnsafeEnabled {
|
2022-02-23 04:19:23 +00:00
|
|
|
mi := &file_bbgo_proto_msgTypes[7]
|
2022-02-14 08:16:32 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *Ticker) String() string {
|
2022-02-14 08:16:32 +00:00
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (*Ticker) ProtoMessage() {}
|
2022-02-14 08:16:32 +00:00
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *Ticker) ProtoReflect() protoreflect.Message {
|
2022-02-23 04:19:23 +00:00
|
|
|
mi := &file_bbgo_proto_msgTypes[7]
|
2022-02-14 08:16:32 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
// Deprecated: Use Ticker.ProtoReflect.Descriptor instead.
|
|
|
|
func (*Ticker) Descriptor() ([]byte, []int) {
|
2022-02-23 04:19:23 +00:00
|
|
|
return file_bbgo_proto_rawDescGZIP(), []int{7}
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *Ticker) GetOpen() float64 {
|
2022-02-14 08:16:32 +00:00
|
|
|
if x != nil {
|
2022-02-19 20:10:39 +00:00
|
|
|
return x.Open
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
2022-02-19 20:10:39 +00:00
|
|
|
return 0
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *Ticker) GetHigh() float64 {
|
2022-02-14 08:16:32 +00:00
|
|
|
if x != nil {
|
2022-02-19 20:10:39 +00:00
|
|
|
return x.High
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
2022-02-19 20:10:39 +00:00
|
|
|
return 0
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *Ticker) GetLow() float64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Low
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Ticker) GetClose() float64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Close
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Ticker) GetVolume() float64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Volume
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
// https://maicoin.github.io/max-websocket-docs/#/private_channels?id=snapshot
|
|
|
|
type Order struct {
|
2022-02-14 08:16:32 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2022-02-21 03:38:43 +00:00
|
|
|
Exchange string `protobuf:"bytes,1,opt,name=exchange,proto3" json:"exchange,omitempty"`
|
|
|
|
Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
|
Side string `protobuf:"bytes,3,opt,name=side,proto3" json:"side,omitempty"`
|
|
|
|
OrderType string `protobuf:"bytes,4,opt,name=order_type,json=orderType,proto3" json:"order_type,omitempty"`
|
|
|
|
Price float64 `protobuf:"fixed64,5,opt,name=price,proto3" json:"price,omitempty"`
|
|
|
|
StopPrice float64 `protobuf:"fixed64,6,opt,name=stop_price,json=stopPrice,proto3" json:"stop_price,omitempty"`
|
|
|
|
AvgPrice float64 `protobuf:"fixed64,7,opt,name=avg_price,json=avgPrice,proto3" json:"avg_price,omitempty"`
|
|
|
|
Status string `protobuf:"bytes,8,opt,name=status,proto3" json:"status,omitempty"`
|
|
|
|
Symbol string `protobuf:"bytes,9,opt,name=symbol,proto3" json:"symbol,omitempty"`
|
|
|
|
CreatedAt int64 `protobuf:"varint,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
|
|
|
|
Quantity float64 `protobuf:"fixed64,11,opt,name=quantity,proto3" json:"quantity,omitempty"`
|
|
|
|
ExecutedVolume float64 `protobuf:"fixed64,12,opt,name=executed_volume,json=executedVolume,proto3" json:"executed_volume,omitempty"`
|
|
|
|
TradesCount int64 `protobuf:"varint,13,opt,name=trades_count,json=tradesCount,proto3" json:"trades_count,omitempty"`
|
|
|
|
ClientOrderId int64 `protobuf:"varint,14,opt,name=client_order_id,json=clientOrderId,proto3" json:"client_order_id,omitempty"`
|
|
|
|
GroupId int64 `protobuf:"varint,15,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *Order) Reset() {
|
|
|
|
*x = Order{}
|
2022-02-14 08:16:32 +00:00
|
|
|
if protoimpl.UnsafeEnabled {
|
2022-02-23 04:19:23 +00:00
|
|
|
mi := &file_bbgo_proto_msgTypes[8]
|
2022-02-14 08:16:32 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *Order) String() string {
|
2022-02-14 08:16:32 +00:00
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (*Order) ProtoMessage() {}
|
2022-02-14 08:16:32 +00:00
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *Order) ProtoReflect() protoreflect.Message {
|
2022-02-23 04:19:23 +00:00
|
|
|
mi := &file_bbgo_proto_msgTypes[8]
|
2022-02-14 08:16:32 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
// Deprecated: Use Order.ProtoReflect.Descriptor instead.
|
|
|
|
func (*Order) Descriptor() ([]byte, []int) {
|
2022-02-23 04:19:23 +00:00
|
|
|
return file_bbgo_proto_rawDescGZIP(), []int{8}
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-21 03:38:43 +00:00
|
|
|
func (x *Order) GetExchange() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Exchange
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *Order) GetId() int64 {
|
2022-02-14 08:16:32 +00:00
|
|
|
if x != nil {
|
2022-02-19 20:10:39 +00:00
|
|
|
return x.Id
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
2022-02-19 20:10:39 +00:00
|
|
|
return 0
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *Order) GetSide() string {
|
2022-02-14 08:16:32 +00:00
|
|
|
if x != nil {
|
2022-02-19 20:10:39 +00:00
|
|
|
return x.Side
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *Order) GetOrderType() string {
|
2022-02-14 08:16:32 +00:00
|
|
|
if x != nil {
|
2022-02-19 20:10:39 +00:00
|
|
|
return x.OrderType
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
2022-02-19 20:10:39 +00:00
|
|
|
return ""
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *Order) GetPrice() float64 {
|
2022-02-14 08:16:32 +00:00
|
|
|
if x != nil {
|
2022-02-19 20:10:39 +00:00
|
|
|
return x.Price
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *Order) GetStopPrice() float64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.StopPrice
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
2022-02-19 20:10:39 +00:00
|
|
|
return 0
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *Order) GetAvgPrice() float64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.AvgPrice
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
2022-02-19 20:10:39 +00:00
|
|
|
return 0
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-21 03:38:43 +00:00
|
|
|
func (x *Order) GetStatus() string {
|
2022-02-19 20:10:39 +00:00
|
|
|
if x != nil {
|
2022-02-21 03:38:43 +00:00
|
|
|
return x.Status
|
2022-02-19 20:10:39 +00:00
|
|
|
}
|
|
|
|
return ""
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-21 03:38:43 +00:00
|
|
|
func (x *Order) GetSymbol() string {
|
2022-02-14 08:16:32 +00:00
|
|
|
if x != nil {
|
2022-02-21 03:38:43 +00:00
|
|
|
return x.Symbol
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *Order) GetCreatedAt() int64 {
|
2022-02-14 08:16:32 +00:00
|
|
|
if x != nil {
|
2022-02-19 20:10:39 +00:00
|
|
|
return x.CreatedAt
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
2022-02-19 20:10:39 +00:00
|
|
|
return 0
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-21 03:38:43 +00:00
|
|
|
func (x *Order) GetQuantity() float64 {
|
2022-02-14 08:16:32 +00:00
|
|
|
if x != nil {
|
2022-02-21 03:38:43 +00:00
|
|
|
return x.Quantity
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
2022-02-19 20:10:39 +00:00
|
|
|
return 0
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *Order) GetExecutedVolume() float64 {
|
2022-02-14 08:16:32 +00:00
|
|
|
if x != nil {
|
2022-02-19 20:10:39 +00:00
|
|
|
return x.ExecutedVolume
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *Order) GetTradesCount() int64 {
|
2022-02-14 08:16:32 +00:00
|
|
|
if x != nil {
|
2022-02-19 20:10:39 +00:00
|
|
|
return x.TradesCount
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2022-02-21 03:38:43 +00:00
|
|
|
func (x *Order) GetClientOrderId() int64 {
|
2022-02-19 20:10:39 +00:00
|
|
|
if x != nil {
|
2022-02-21 03:38:43 +00:00
|
|
|
return x.ClientOrderId
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *Order) GetGroupId() int64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.GroupId
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
2022-02-19 20:10:39 +00:00
|
|
|
return 0
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-21 03:38:43 +00:00
|
|
|
type SubmitOrder struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
Exchange string `protobuf:"bytes,1,opt,name=exchange,proto3" json:"exchange,omitempty"`
|
|
|
|
Symbol string `protobuf:"bytes,2,opt,name=symbol,proto3" json:"symbol,omitempty"`
|
|
|
|
Side string `protobuf:"bytes,3,opt,name=side,proto3" json:"side,omitempty"`
|
|
|
|
Quantity float64 `protobuf:"fixed64,4,opt,name=quantity,proto3" json:"quantity,omitempty"`
|
|
|
|
Price float64 `protobuf:"fixed64,5,opt,name=price,proto3" json:"price,omitempty"`
|
|
|
|
StopPrice float64 `protobuf:"fixed64,6,opt,name=stop_price,json=stopPrice,proto3" json:"stop_price,omitempty"`
|
|
|
|
OrderType string `protobuf:"bytes,7,opt,name=order_type,json=orderType,proto3" json:"order_type,omitempty"`
|
|
|
|
ClientOrderId int64 `protobuf:"varint,8,opt,name=client_order_id,json=clientOrderId,proto3" json:"client_order_id,omitempty"`
|
|
|
|
GroupId int64 `protobuf:"varint,9,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *SubmitOrder) Reset() {
|
|
|
|
*x = SubmitOrder{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2022-02-23 04:19:23 +00:00
|
|
|
mi := &file_bbgo_proto_msgTypes[9]
|
2022-02-21 03:38:43 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *SubmitOrder) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*SubmitOrder) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *SubmitOrder) ProtoReflect() protoreflect.Message {
|
2022-02-23 04:19:23 +00:00
|
|
|
mi := &file_bbgo_proto_msgTypes[9]
|
2022-02-21 03:38:43 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use SubmitOrder.ProtoReflect.Descriptor instead.
|
|
|
|
func (*SubmitOrder) Descriptor() ([]byte, []int) {
|
2022-02-23 04:19:23 +00:00
|
|
|
return file_bbgo_proto_rawDescGZIP(), []int{9}
|
2022-02-21 03:38:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *SubmitOrder) GetExchange() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Exchange
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *SubmitOrder) GetSymbol() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Symbol
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *SubmitOrder) GetSide() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Side
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *SubmitOrder) GetQuantity() float64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Quantity
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *SubmitOrder) GetPrice() float64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Price
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *SubmitOrder) GetStopPrice() float64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.StopPrice
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *SubmitOrder) GetOrderType() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.OrderType
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *SubmitOrder) GetClientOrderId() int64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.ClientOrderId
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *SubmitOrder) GetGroupId() int64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.GroupId
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
// https://maicoin.github.io/max-websocket-docs/#/private_channels?id=account-response
|
|
|
|
type Balance struct {
|
2022-02-14 08:16:32 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
Currency string `protobuf:"bytes,1,opt,name=currency,proto3" json:"currency,omitempty"`
|
|
|
|
Available float64 `protobuf:"fixed64,2,opt,name=available,proto3" json:"available,omitempty"`
|
|
|
|
Locked float64 `protobuf:"fixed64,3,opt,name=locked,proto3" json:"locked,omitempty"`
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *Balance) Reset() {
|
|
|
|
*x = Balance{}
|
2022-02-14 08:16:32 +00:00
|
|
|
if protoimpl.UnsafeEnabled {
|
2022-02-23 04:19:23 +00:00
|
|
|
mi := &file_bbgo_proto_msgTypes[10]
|
2022-02-14 08:16:32 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *Balance) String() string {
|
2022-02-14 08:16:32 +00:00
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (*Balance) ProtoMessage() {}
|
2022-02-14 08:16:32 +00:00
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *Balance) ProtoReflect() protoreflect.Message {
|
2022-02-23 04:19:23 +00:00
|
|
|
mi := &file_bbgo_proto_msgTypes[10]
|
2022-02-14 08:16:32 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
// Deprecated: Use Balance.ProtoReflect.Descriptor instead.
|
|
|
|
func (*Balance) Descriptor() ([]byte, []int) {
|
2022-02-23 04:19:23 +00:00
|
|
|
return file_bbgo_proto_rawDescGZIP(), []int{10}
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *Balance) GetCurrency() string {
|
2022-02-14 08:16:32 +00:00
|
|
|
if x != nil {
|
2022-02-19 20:10:39 +00:00
|
|
|
return x.Currency
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
2022-02-19 20:10:39 +00:00
|
|
|
return ""
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *Balance) GetAvailable() float64 {
|
2022-02-14 08:16:32 +00:00
|
|
|
if x != nil {
|
2022-02-19 20:10:39 +00:00
|
|
|
return x.Available
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
2022-02-19 20:10:39 +00:00
|
|
|
return 0
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *Balance) GetLocked() float64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Locked
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2022-02-21 03:38:43 +00:00
|
|
|
type SubmitOrderRequest struct {
|
2022-02-14 08:16:32 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2022-02-21 03:38:43 +00:00
|
|
|
SubmitOrder *SubmitOrder `protobuf:"bytes,1,opt,name=submit_order,json=submitOrder,proto3" json:"submit_order,omitempty"`
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-21 03:38:43 +00:00
|
|
|
func (x *SubmitOrderRequest) Reset() {
|
|
|
|
*x = SubmitOrderRequest{}
|
2022-02-14 08:16:32 +00:00
|
|
|
if protoimpl.UnsafeEnabled {
|
2022-02-23 04:19:23 +00:00
|
|
|
mi := &file_bbgo_proto_msgTypes[11]
|
2022-02-14 08:16:32 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-21 03:38:43 +00:00
|
|
|
func (x *SubmitOrderRequest) String() string {
|
2022-02-14 08:16:32 +00:00
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
2022-02-21 03:38:43 +00:00
|
|
|
func (*SubmitOrderRequest) ProtoMessage() {}
|
2022-02-14 08:16:32 +00:00
|
|
|
|
2022-02-21 03:38:43 +00:00
|
|
|
func (x *SubmitOrderRequest) ProtoReflect() protoreflect.Message {
|
2022-02-23 04:19:23 +00:00
|
|
|
mi := &file_bbgo_proto_msgTypes[11]
|
2022-02-14 08:16:32 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
2022-02-21 03:38:43 +00:00
|
|
|
// Deprecated: Use SubmitOrderRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*SubmitOrderRequest) Descriptor() ([]byte, []int) {
|
2022-02-23 04:19:23 +00:00
|
|
|
return file_bbgo_proto_rawDescGZIP(), []int{11}
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-21 03:38:43 +00:00
|
|
|
func (x *SubmitOrderRequest) GetSubmitOrder() *SubmitOrder {
|
2022-02-14 08:16:32 +00:00
|
|
|
if x != nil {
|
2022-02-21 03:38:43 +00:00
|
|
|
return x.SubmitOrder
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
2022-02-19 20:10:39 +00:00
|
|
|
return nil
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-21 03:38:43 +00:00
|
|
|
type SubmitOrderResponse struct {
|
2022-02-14 08:16:32 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
Exchange string `protobuf:"bytes,1,opt,name=exchange,proto3" json:"exchange,omitempty"`
|
|
|
|
Order *Order `protobuf:"bytes,2,opt,name=order,proto3" json:"order,omitempty"`
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-21 03:38:43 +00:00
|
|
|
func (x *SubmitOrderResponse) Reset() {
|
|
|
|
*x = SubmitOrderResponse{}
|
2022-02-14 08:16:32 +00:00
|
|
|
if protoimpl.UnsafeEnabled {
|
2022-02-23 04:19:23 +00:00
|
|
|
mi := &file_bbgo_proto_msgTypes[12]
|
2022-02-14 08:16:32 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-21 03:38:43 +00:00
|
|
|
func (x *SubmitOrderResponse) String() string {
|
2022-02-14 08:16:32 +00:00
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
2022-02-21 03:38:43 +00:00
|
|
|
func (*SubmitOrderResponse) ProtoMessage() {}
|
2022-02-14 08:16:32 +00:00
|
|
|
|
2022-02-21 03:38:43 +00:00
|
|
|
func (x *SubmitOrderResponse) ProtoReflect() protoreflect.Message {
|
2022-02-23 04:19:23 +00:00
|
|
|
mi := &file_bbgo_proto_msgTypes[12]
|
2022-02-14 08:16:32 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
2022-02-21 03:38:43 +00:00
|
|
|
// Deprecated: Use SubmitOrderResponse.ProtoReflect.Descriptor instead.
|
|
|
|
func (*SubmitOrderResponse) Descriptor() ([]byte, []int) {
|
2022-02-23 04:19:23 +00:00
|
|
|
return file_bbgo_proto_rawDescGZIP(), []int{12}
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-21 03:38:43 +00:00
|
|
|
func (x *SubmitOrderResponse) GetExchange() string {
|
2022-02-14 08:16:32 +00:00
|
|
|
if x != nil {
|
2022-02-19 20:10:39 +00:00
|
|
|
return x.Exchange
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2022-02-21 03:38:43 +00:00
|
|
|
func (x *SubmitOrderResponse) GetOrder() *Order {
|
2022-02-19 20:10:39 +00:00
|
|
|
if x != nil {
|
|
|
|
return x.Order
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type CancelOrderRequest struct {
|
2022-02-14 08:16:32 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2022-02-21 03:38:43 +00:00
|
|
|
Exchange string `protobuf:"bytes,1,opt,name=exchange,proto3" json:"exchange,omitempty"`
|
|
|
|
Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
|
ClientOrderId int64 `protobuf:"varint,3,opt,name=client_order_id,json=clientOrderId,proto3" json:"client_order_id,omitempty"`
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *CancelOrderRequest) Reset() {
|
|
|
|
*x = CancelOrderRequest{}
|
2022-02-14 08:16:32 +00:00
|
|
|
if protoimpl.UnsafeEnabled {
|
2022-02-23 04:19:23 +00:00
|
|
|
mi := &file_bbgo_proto_msgTypes[13]
|
2022-02-14 08:16:32 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *CancelOrderRequest) String() string {
|
2022-02-14 08:16:32 +00:00
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (*CancelOrderRequest) ProtoMessage() {}
|
2022-02-14 08:16:32 +00:00
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *CancelOrderRequest) ProtoReflect() protoreflect.Message {
|
2022-02-23 04:19:23 +00:00
|
|
|
mi := &file_bbgo_proto_msgTypes[13]
|
2022-02-14 08:16:32 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
// Deprecated: Use CancelOrderRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*CancelOrderRequest) Descriptor() ([]byte, []int) {
|
2022-02-23 04:19:23 +00:00
|
|
|
return file_bbgo_proto_rawDescGZIP(), []int{13}
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *CancelOrderRequest) GetExchange() string {
|
2022-02-14 08:16:32 +00:00
|
|
|
if x != nil {
|
2022-02-19 20:10:39 +00:00
|
|
|
return x.Exchange
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
2022-02-19 20:10:39 +00:00
|
|
|
return ""
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *CancelOrderRequest) GetId() int64 {
|
2022-02-14 08:16:32 +00:00
|
|
|
if x != nil {
|
2022-02-19 20:10:39 +00:00
|
|
|
return x.Id
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
2022-02-19 20:10:39 +00:00
|
|
|
return 0
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-21 03:38:43 +00:00
|
|
|
func (x *CancelOrderRequest) GetClientOrderId() int64 {
|
2022-02-19 20:10:39 +00:00
|
|
|
if x != nil {
|
2022-02-21 03:38:43 +00:00
|
|
|
return x.ClientOrderId
|
2022-02-19 20:10:39 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
type CancelOrderResponse struct {
|
2022-02-14 08:16:32 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
Exchange string `protobuf:"bytes,1,opt,name=exchange,proto3" json:"exchange,omitempty"`
|
|
|
|
Order *Order `protobuf:"bytes,2,opt,name=order,proto3" json:"order,omitempty"`
|
|
|
|
StatusCode int64 `protobuf:"varint,3,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"`
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *CancelOrderResponse) Reset() {
|
|
|
|
*x = CancelOrderResponse{}
|
2022-02-14 08:16:32 +00:00
|
|
|
if protoimpl.UnsafeEnabled {
|
2022-02-23 04:19:23 +00:00
|
|
|
mi := &file_bbgo_proto_msgTypes[14]
|
2022-02-14 08:16:32 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *CancelOrderResponse) String() string {
|
2022-02-14 08:16:32 +00:00
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (*CancelOrderResponse) ProtoMessage() {}
|
2022-02-14 08:16:32 +00:00
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *CancelOrderResponse) ProtoReflect() protoreflect.Message {
|
2022-02-23 04:19:23 +00:00
|
|
|
mi := &file_bbgo_proto_msgTypes[14]
|
2022-02-14 08:16:32 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
// Deprecated: Use CancelOrderResponse.ProtoReflect.Descriptor instead.
|
|
|
|
func (*CancelOrderResponse) Descriptor() ([]byte, []int) {
|
2022-02-23 04:19:23 +00:00
|
|
|
return file_bbgo_proto_rawDescGZIP(), []int{14}
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *CancelOrderResponse) GetExchange() string {
|
2022-02-14 08:16:32 +00:00
|
|
|
if x != nil {
|
|
|
|
return x.Exchange
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *CancelOrderResponse) GetOrder() *Order {
|
2022-02-14 08:16:32 +00:00
|
|
|
if x != nil {
|
2022-02-19 20:10:39 +00:00
|
|
|
return x.Order
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
2022-02-19 20:10:39 +00:00
|
|
|
return nil
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *CancelOrderResponse) GetStatusCode() int64 {
|
2022-02-14 08:16:32 +00:00
|
|
|
if x != nil {
|
2022-02-19 20:10:39 +00:00
|
|
|
return x.StatusCode
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
type QueryOrderRequest struct {
|
2022-02-14 08:16:32 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2022-02-16 03:54:39 +00:00
|
|
|
|
2022-02-21 03:38:43 +00:00
|
|
|
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
|
ClientOrderId int64 `protobuf:"varint,2,opt,name=client_order_id,json=clientOrderId,proto3" json:"client_order_id,omitempty"`
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *QueryOrderRequest) Reset() {
|
|
|
|
*x = QueryOrderRequest{}
|
2022-02-14 08:16:32 +00:00
|
|
|
if protoimpl.UnsafeEnabled {
|
2022-02-23 04:19:23 +00:00
|
|
|
mi := &file_bbgo_proto_msgTypes[15]
|
2022-02-14 08:16:32 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *QueryOrderRequest) String() string {
|
2022-02-14 08:16:32 +00:00
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (*QueryOrderRequest) ProtoMessage() {}
|
2022-02-14 08:16:32 +00:00
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *QueryOrderRequest) ProtoReflect() protoreflect.Message {
|
2022-02-23 04:19:23 +00:00
|
|
|
mi := &file_bbgo_proto_msgTypes[15]
|
2022-02-14 08:16:32 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
// Deprecated: Use QueryOrderRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*QueryOrderRequest) Descriptor() ([]byte, []int) {
|
2022-02-23 04:19:23 +00:00
|
|
|
return file_bbgo_proto_rawDescGZIP(), []int{15}
|
2022-02-16 03:54:39 +00:00
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *QueryOrderRequest) GetId() int64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Id
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2022-02-21 03:38:43 +00:00
|
|
|
func (x *QueryOrderRequest) GetClientOrderId() int64 {
|
2022-02-19 20:10:39 +00:00
|
|
|
if x != nil {
|
2022-02-21 03:38:43 +00:00
|
|
|
return x.ClientOrderId
|
2022-02-19 20:10:39 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
type QueryOrderResponse struct {
|
2022-02-14 08:16:32 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2022-02-16 03:54:39 +00:00
|
|
|
|
2022-02-21 04:53:39 +00:00
|
|
|
Order *Order `protobuf:"bytes,1,opt,name=order,proto3" json:"order,omitempty"`
|
|
|
|
StatusCode int64 `protobuf:"varint,2,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"`
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *QueryOrderResponse) Reset() {
|
|
|
|
*x = QueryOrderResponse{}
|
2022-02-14 08:16:32 +00:00
|
|
|
if protoimpl.UnsafeEnabled {
|
2022-02-23 04:19:23 +00:00
|
|
|
mi := &file_bbgo_proto_msgTypes[16]
|
2022-02-14 08:16:32 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *QueryOrderResponse) String() string {
|
2022-02-14 08:16:32 +00:00
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (*QueryOrderResponse) ProtoMessage() {}
|
2022-02-14 08:16:32 +00:00
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *QueryOrderResponse) ProtoReflect() protoreflect.Message {
|
2022-02-23 04:19:23 +00:00
|
|
|
mi := &file_bbgo_proto_msgTypes[16]
|
2022-02-14 08:16:32 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
// Deprecated: Use QueryOrderResponse.ProtoReflect.Descriptor instead.
|
|
|
|
func (*QueryOrderResponse) Descriptor() ([]byte, []int) {
|
2022-02-23 04:19:23 +00:00
|
|
|
return file_bbgo_proto_rawDescGZIP(), []int{16}
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *QueryOrderResponse) GetOrder() *Order {
|
2022-02-16 03:54:39 +00:00
|
|
|
if x != nil {
|
|
|
|
return x.Order
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *QueryOrderResponse) GetStatusCode() int64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.StatusCode
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
type QueryOrdersRequest struct {
|
2022-02-14 08:16:32 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
Exchange string `protobuf:"bytes,1,opt,name=exchange,proto3" json:"exchange,omitempty"`
|
2022-02-21 03:38:43 +00:00
|
|
|
Symbol string `protobuf:"bytes,2,opt,name=symbol,proto3" json:"symbol,omitempty"`
|
2022-02-19 20:10:39 +00:00
|
|
|
State []string `protobuf:"bytes,3,rep,name=state,proto3" json:"state,omitempty"`
|
|
|
|
OrderBy string `protobuf:"bytes,4,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
|
|
|
|
GroupId int64 `protobuf:"varint,5,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
|
|
|
|
Pagination bool `protobuf:"varint,6,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
|
|
|
Page int64 `protobuf:"varint,7,opt,name=page,proto3" json:"page,omitempty"`
|
|
|
|
Limit int64 `protobuf:"varint,8,opt,name=limit,proto3" json:"limit,omitempty"`
|
|
|
|
Offset int64 `protobuf:"varint,9,opt,name=offset,proto3" json:"offset,omitempty"`
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *QueryOrdersRequest) Reset() {
|
|
|
|
*x = QueryOrdersRequest{}
|
2022-02-14 08:16:32 +00:00
|
|
|
if protoimpl.UnsafeEnabled {
|
2022-02-23 04:19:23 +00:00
|
|
|
mi := &file_bbgo_proto_msgTypes[17]
|
2022-02-14 08:16:32 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *QueryOrdersRequest) String() string {
|
2022-02-14 08:16:32 +00:00
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (*QueryOrdersRequest) ProtoMessage() {}
|
2022-02-14 08:16:32 +00:00
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *QueryOrdersRequest) ProtoReflect() protoreflect.Message {
|
2022-02-23 04:19:23 +00:00
|
|
|
mi := &file_bbgo_proto_msgTypes[17]
|
2022-02-14 08:16:32 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
// Deprecated: Use QueryOrdersRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*QueryOrdersRequest) Descriptor() ([]byte, []int) {
|
2022-02-23 04:19:23 +00:00
|
|
|
return file_bbgo_proto_rawDescGZIP(), []int{17}
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *QueryOrdersRequest) GetExchange() string {
|
2022-02-14 08:16:32 +00:00
|
|
|
if x != nil {
|
|
|
|
return x.Exchange
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2022-02-21 03:38:43 +00:00
|
|
|
func (x *QueryOrdersRequest) GetSymbol() string {
|
2022-02-14 08:16:32 +00:00
|
|
|
if x != nil {
|
2022-02-21 03:38:43 +00:00
|
|
|
return x.Symbol
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *QueryOrdersRequest) GetState() []string {
|
2022-02-14 08:16:32 +00:00
|
|
|
if x != nil {
|
2022-02-19 20:10:39 +00:00
|
|
|
return x.State
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *QueryOrdersRequest) GetOrderBy() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.OrderBy
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *QueryOrdersRequest) GetGroupId() int64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.GroupId
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *QueryOrdersRequest) GetPagination() bool {
|
|
|
|
if x != nil {
|
|
|
|
return x.Pagination
|
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *QueryOrdersRequest) GetPage() int64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Page
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *QueryOrdersRequest) GetLimit() int64 {
|
2022-02-14 08:16:32 +00:00
|
|
|
if x != nil {
|
2022-02-19 20:10:39 +00:00
|
|
|
return x.Limit
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *QueryOrdersRequest) GetOffset() int64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Offset
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
type QueryOrdersResponse struct {
|
2022-02-14 08:16:32 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2022-02-16 03:54:39 +00:00
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
Exchange string `protobuf:"bytes,1,opt,name=exchange,proto3" json:"exchange,omitempty"`
|
|
|
|
Orders []*Order `protobuf:"bytes,2,rep,name=orders,proto3" json:"orders,omitempty"`
|
|
|
|
StatusCode int64 `protobuf:"varint,3,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"`
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *QueryOrdersResponse) Reset() {
|
|
|
|
*x = QueryOrdersResponse{}
|
2022-02-14 08:16:32 +00:00
|
|
|
if protoimpl.UnsafeEnabled {
|
2022-02-23 04:19:23 +00:00
|
|
|
mi := &file_bbgo_proto_msgTypes[18]
|
2022-02-14 08:16:32 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *QueryOrdersResponse) String() string {
|
2022-02-14 08:16:32 +00:00
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (*QueryOrdersResponse) ProtoMessage() {}
|
2022-02-14 08:16:32 +00:00
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *QueryOrdersResponse) ProtoReflect() protoreflect.Message {
|
2022-02-23 04:19:23 +00:00
|
|
|
mi := &file_bbgo_proto_msgTypes[18]
|
2022-02-14 08:16:32 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
// Deprecated: Use QueryOrdersResponse.ProtoReflect.Descriptor instead.
|
|
|
|
func (*QueryOrdersResponse) Descriptor() ([]byte, []int) {
|
2022-02-23 04:19:23 +00:00
|
|
|
return file_bbgo_proto_rawDescGZIP(), []int{18}
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *QueryOrdersResponse) GetExchange() string {
|
2022-02-16 03:54:39 +00:00
|
|
|
if x != nil {
|
2022-02-19 20:10:39 +00:00
|
|
|
return x.Exchange
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *QueryOrdersResponse) GetOrders() []*Order {
|
|
|
|
if x != nil {
|
|
|
|
return x.Orders
|
2022-02-16 03:54:39 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *QueryOrdersResponse) GetStatusCode() int64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.StatusCode
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
type QueryTradesRequest struct {
|
2022-02-16 03:54:39 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
Exchange string `protobuf:"bytes,1,opt,name=exchange,proto3" json:"exchange,omitempty"`
|
2022-02-21 03:38:43 +00:00
|
|
|
Symbol string `protobuf:"bytes,2,opt,name=symbol,proto3" json:"symbol,omitempty"`
|
2022-02-19 20:10:39 +00:00
|
|
|
Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
|
|
|
|
From int64 `protobuf:"varint,4,opt,name=from,proto3" json:"from,omitempty"`
|
|
|
|
To int64 `protobuf:"varint,5,opt,name=to,proto3" json:"to,omitempty"`
|
|
|
|
OrderBy string `protobuf:"bytes,6,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
|
|
|
|
Pagination bool `protobuf:"varint,7,opt,name=pagination,proto3" json:"pagination,omitempty"`
|
|
|
|
Page int64 `protobuf:"varint,8,opt,name=page,proto3" json:"page,omitempty"`
|
|
|
|
Limit int64 `protobuf:"varint,9,opt,name=limit,proto3" json:"limit,omitempty"`
|
|
|
|
Offset int64 `protobuf:"varint,10,opt,name=offset,proto3" json:"offset,omitempty"`
|
2022-02-16 03:54:39 +00:00
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *QueryTradesRequest) Reset() {
|
|
|
|
*x = QueryTradesRequest{}
|
2022-02-16 03:54:39 +00:00
|
|
|
if protoimpl.UnsafeEnabled {
|
2022-02-23 04:19:23 +00:00
|
|
|
mi := &file_bbgo_proto_msgTypes[19]
|
2022-02-16 03:54:39 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *QueryTradesRequest) String() string {
|
2022-02-16 03:54:39 +00:00
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (*QueryTradesRequest) ProtoMessage() {}
|
2022-02-16 03:54:39 +00:00
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *QueryTradesRequest) ProtoReflect() protoreflect.Message {
|
2022-02-23 04:19:23 +00:00
|
|
|
mi := &file_bbgo_proto_msgTypes[19]
|
2022-02-16 03:54:39 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
// Deprecated: Use QueryTradesRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*QueryTradesRequest) Descriptor() ([]byte, []int) {
|
2022-02-23 04:19:23 +00:00
|
|
|
return file_bbgo_proto_rawDescGZIP(), []int{19}
|
2022-02-16 03:54:39 +00:00
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *QueryTradesRequest) GetExchange() string {
|
2022-02-16 03:54:39 +00:00
|
|
|
if x != nil {
|
|
|
|
return x.Exchange
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2022-02-21 03:38:43 +00:00
|
|
|
func (x *QueryTradesRequest) GetSymbol() string {
|
2022-02-16 03:54:39 +00:00
|
|
|
if x != nil {
|
2022-02-21 03:38:43 +00:00
|
|
|
return x.Symbol
|
2022-02-16 03:54:39 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *QueryTradesRequest) GetTimestamp() int64 {
|
2022-02-16 03:54:39 +00:00
|
|
|
if x != nil {
|
2022-02-19 20:10:39 +00:00
|
|
|
return x.Timestamp
|
2022-02-16 03:54:39 +00:00
|
|
|
}
|
2022-02-19 20:10:39 +00:00
|
|
|
return 0
|
2022-02-16 03:54:39 +00:00
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *QueryTradesRequest) GetFrom() int64 {
|
2022-02-16 03:54:39 +00:00
|
|
|
if x != nil {
|
2022-02-19 20:10:39 +00:00
|
|
|
return x.From
|
2022-02-16 03:54:39 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *QueryTradesRequest) GetTo() int64 {
|
2022-02-16 03:54:39 +00:00
|
|
|
if x != nil {
|
2022-02-19 20:10:39 +00:00
|
|
|
return x.To
|
2022-02-16 03:54:39 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *QueryTradesRequest) GetOrderBy() string {
|
2022-02-16 03:54:39 +00:00
|
|
|
if x != nil {
|
2022-02-19 20:10:39 +00:00
|
|
|
return x.OrderBy
|
2022-02-16 03:54:39 +00:00
|
|
|
}
|
2022-02-19 20:10:39 +00:00
|
|
|
return ""
|
2022-02-16 03:54:39 +00:00
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *QueryTradesRequest) GetPagination() bool {
|
2022-02-16 03:54:39 +00:00
|
|
|
if x != nil {
|
2022-02-19 20:10:39 +00:00
|
|
|
return x.Pagination
|
2022-02-16 03:54:39 +00:00
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *QueryTradesRequest) GetPage() int64 {
|
2022-02-16 03:54:39 +00:00
|
|
|
if x != nil {
|
2022-02-19 20:10:39 +00:00
|
|
|
return x.Page
|
2022-02-16 03:54:39 +00:00
|
|
|
}
|
2022-02-19 20:10:39 +00:00
|
|
|
return 0
|
2022-02-16 03:54:39 +00:00
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *QueryTradesRequest) GetLimit() int64 {
|
2022-02-16 03:54:39 +00:00
|
|
|
if x != nil {
|
2022-02-19 20:10:39 +00:00
|
|
|
return x.Limit
|
2022-02-16 03:54:39 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
func (x *QueryTradesRequest) GetOffset() int64 {
|
2022-02-16 03:54:39 +00:00
|
|
|
if x != nil {
|
2022-02-19 20:10:39 +00:00
|
|
|
return x.Offset
|
2022-02-16 03:54:39 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2022-02-19 20:10:39 +00:00
|
|
|
type QueryTradesResponse struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2022-02-21 04:53:39 +00:00
|
|
|
Trades []*Trade `protobuf:"bytes,1,rep,name=trades,proto3" json:"trades,omitempty"`
|
|
|
|
StatusCode int64 `protobuf:"varint,2,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"`
|
2022-02-19 20:10:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *QueryTradesResponse) Reset() {
|
|
|
|
*x = QueryTradesResponse{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2022-02-23 04:19:23 +00:00
|
|
|
mi := &file_bbgo_proto_msgTypes[20]
|
2022-02-19 20:10:39 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *QueryTradesResponse) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*QueryTradesResponse) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *QueryTradesResponse) ProtoReflect() protoreflect.Message {
|
2022-02-23 04:19:23 +00:00
|
|
|
mi := &file_bbgo_proto_msgTypes[20]
|
2022-02-19 20:10:39 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use QueryTradesResponse.ProtoReflect.Descriptor instead.
|
|
|
|
func (*QueryTradesResponse) Descriptor() ([]byte, []int) {
|
2022-02-23 04:19:23 +00:00
|
|
|
return file_bbgo_proto_rawDescGZIP(), []int{20}
|
2022-02-19 20:10:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *QueryTradesResponse) GetTrades() []*Trade {
|
|
|
|
if x != nil {
|
|
|
|
return x.Trades
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *QueryTradesResponse) GetStatusCode() int64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.StatusCode
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2022-02-21 03:38:43 +00:00
|
|
|
type QueryKLinesRequest struct {
|
2022-02-19 20:41:39 +00:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
Exchange string `protobuf:"bytes,1,opt,name=exchange,proto3" json:"exchange,omitempty"`
|
2022-02-21 03:38:43 +00:00
|
|
|
Symbol string `protobuf:"bytes,2,opt,name=symbol,proto3" json:"symbol,omitempty"`
|
|
|
|
Limit int64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
|
|
|
|
Interval int64 `protobuf:"varint,4,opt,name=interval,proto3" json:"interval,omitempty"` // time period of K line in minute
|
2022-02-19 20:41:39 +00:00
|
|
|
Timestamp int64 `protobuf:"varint,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
|
|
|
|
}
|
|
|
|
|
2022-02-21 03:38:43 +00:00
|
|
|
func (x *QueryKLinesRequest) Reset() {
|
|
|
|
*x = QueryKLinesRequest{}
|
2022-02-19 20:41:39 +00:00
|
|
|
if protoimpl.UnsafeEnabled {
|
2022-02-23 04:19:23 +00:00
|
|
|
mi := &file_bbgo_proto_msgTypes[21]
|
2022-02-19 20:41:39 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-21 03:38:43 +00:00
|
|
|
func (x *QueryKLinesRequest) String() string {
|
2022-02-19 20:41:39 +00:00
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
2022-02-21 03:38:43 +00:00
|
|
|
func (*QueryKLinesRequest) ProtoMessage() {}
|
2022-02-19 20:41:39 +00:00
|
|
|
|
2022-02-21 03:38:43 +00:00
|
|
|
func (x *QueryKLinesRequest) ProtoReflect() protoreflect.Message {
|
2022-02-23 04:19:23 +00:00
|
|
|
mi := &file_bbgo_proto_msgTypes[21]
|
2022-02-19 20:41:39 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
2022-02-21 03:38:43 +00:00
|
|
|
// Deprecated: Use QueryKLinesRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*QueryKLinesRequest) Descriptor() ([]byte, []int) {
|
2022-02-23 04:19:23 +00:00
|
|
|
return file_bbgo_proto_rawDescGZIP(), []int{21}
|
2022-02-19 20:41:39 +00:00
|
|
|
}
|
|
|
|
|
2022-02-21 03:38:43 +00:00
|
|
|
func (x *QueryKLinesRequest) GetExchange() string {
|
2022-02-19 20:41:39 +00:00
|
|
|
if x != nil {
|
|
|
|
return x.Exchange
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2022-02-21 03:38:43 +00:00
|
|
|
func (x *QueryKLinesRequest) GetSymbol() string {
|
2022-02-19 20:41:39 +00:00
|
|
|
if x != nil {
|
2022-02-21 03:38:43 +00:00
|
|
|
return x.Symbol
|
2022-02-19 20:41:39 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2022-02-21 03:38:43 +00:00
|
|
|
func (x *QueryKLinesRequest) GetLimit() int64 {
|
2022-02-19 20:41:39 +00:00
|
|
|
if x != nil {
|
2022-02-21 03:38:43 +00:00
|
|
|
return x.Limit
|
2022-02-19 20:41:39 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2022-02-21 03:38:43 +00:00
|
|
|
func (x *QueryKLinesRequest) GetInterval() int64 {
|
2022-02-19 20:41:39 +00:00
|
|
|
if x != nil {
|
2022-02-21 03:38:43 +00:00
|
|
|
return x.Interval
|
2022-02-19 20:41:39 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2022-02-21 03:38:43 +00:00
|
|
|
func (x *QueryKLinesRequest) GetTimestamp() int64 {
|
2022-02-19 20:41:39 +00:00
|
|
|
if x != nil {
|
|
|
|
return x.Timestamp
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
type QueryKLinesResponse struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2022-02-21 03:38:43 +00:00
|
|
|
Klines []*KLine `protobuf:"bytes,1,rep,name=klines,proto3" json:"klines,omitempty"`
|
|
|
|
StatusCode int64 `protobuf:"varint,2,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"`
|
2022-02-19 20:41:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *QueryKLinesResponse) Reset() {
|
|
|
|
*x = QueryKLinesResponse{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2022-02-23 04:19:23 +00:00
|
|
|
mi := &file_bbgo_proto_msgTypes[22]
|
2022-02-19 20:41:39 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *QueryKLinesResponse) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*QueryKLinesResponse) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *QueryKLinesResponse) ProtoReflect() protoreflect.Message {
|
2022-02-23 04:19:23 +00:00
|
|
|
mi := &file_bbgo_proto_msgTypes[22]
|
2022-02-19 20:41:39 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use QueryKLinesResponse.ProtoReflect.Descriptor instead.
|
|
|
|
func (*QueryKLinesResponse) Descriptor() ([]byte, []int) {
|
2022-02-23 04:19:23 +00:00
|
|
|
return file_bbgo_proto_rawDescGZIP(), []int{22}
|
2022-02-19 20:41:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *QueryKLinesResponse) GetKlines() []*KLine {
|
|
|
|
if x != nil {
|
|
|
|
return x.Klines
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *QueryKLinesResponse) GetStatusCode() int64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.StatusCode
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
type KLine struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2022-02-21 03:38:43 +00:00
|
|
|
Exchange string `protobuf:"bytes,1,opt,name=exchange,proto3" json:"exchange,omitempty"`
|
|
|
|
Symbol string `protobuf:"bytes,2,opt,name=symbol,proto3" json:"symbol,omitempty"`
|
|
|
|
Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
|
|
|
|
Open float64 `protobuf:"fixed64,4,opt,name=open,proto3" json:"open,omitempty"`
|
|
|
|
High float64 `protobuf:"fixed64,5,opt,name=high,proto3" json:"high,omitempty"`
|
|
|
|
Low float64 `protobuf:"fixed64,6,opt,name=low,proto3" json:"low,omitempty"`
|
|
|
|
Close float64 `protobuf:"fixed64,7,opt,name=close,proto3" json:"close,omitempty"`
|
|
|
|
Volume float64 `protobuf:"fixed64,8,opt,name=volume,proto3" json:"volume,omitempty"`
|
|
|
|
QuoteVolume float64 `protobuf:"fixed64,9,opt,name=quote_volume,json=quoteVolume,proto3" json:"quote_volume,omitempty"`
|
2022-02-19 20:41:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *KLine) Reset() {
|
|
|
|
*x = KLine{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2022-02-23 04:19:23 +00:00
|
|
|
mi := &file_bbgo_proto_msgTypes[23]
|
2022-02-19 20:41:39 +00:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *KLine) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*KLine) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *KLine) ProtoReflect() protoreflect.Message {
|
2022-02-23 04:19:23 +00:00
|
|
|
mi := &file_bbgo_proto_msgTypes[23]
|
2022-02-19 20:41:39 +00:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use KLine.ProtoReflect.Descriptor instead.
|
|
|
|
func (*KLine) Descriptor() ([]byte, []int) {
|
2022-02-23 04:19:23 +00:00
|
|
|
return file_bbgo_proto_rawDescGZIP(), []int{23}
|
2022-02-21 03:38:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *KLine) GetExchange() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Exchange
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *KLine) GetSymbol() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Symbol
|
|
|
|
}
|
|
|
|
return ""
|
2022-02-19 20:41:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *KLine) GetTimestamp() int64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Timestamp
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *KLine) GetOpen() float64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Open
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *KLine) GetHigh() float64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.High
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *KLine) GetLow() float64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Low
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *KLine) GetClose() float64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Close
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2022-02-21 03:38:43 +00:00
|
|
|
func (x *KLine) GetVolume() float64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Volume
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *KLine) GetQuoteVolume() float64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.QuoteVolume
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2022-02-14 08:16:32 +00:00
|
|
|
var File_bbgo_proto protoreflect.FileDescriptor
|
|
|
|
|
|
|
|
var file_bbgo_proto_rawDesc = []byte{
|
2022-02-18 06:26:48 +00:00
|
|
|
0x0a, 0x0a, 0x62, 0x62, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62,
|
2022-02-19 20:10:39 +00:00
|
|
|
0x22, 0x4a, 0x0a, 0x10, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x71,
|
|
|
|
0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x0d, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70,
|
|
|
|
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x62,
|
|
|
|
0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x73,
|
|
|
|
0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x72, 0x0a, 0x0c,
|
|
|
|
0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08,
|
|
|
|
0x65, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
|
|
|
|
0x65, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x6e,
|
|
|
|
0x6e, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x6e,
|
2022-02-21 03:38:43 +00:00
|
|
|
0x65, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x18, 0x03, 0x20, 0x01,
|
|
|
|
0x28, 0x09, 0x52, 0x06, 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x65,
|
2022-02-19 20:10:39 +00:00
|
|
|
0x70, 0x74, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x64, 0x65, 0x70, 0x74, 0x68,
|
|
|
|
0x22, 0x55, 0x0a, 0x11, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x73,
|
|
|
|
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x40, 0x0a, 0x11, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73,
|
|
|
|
0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
|
|
|
|
0x32, 0x13, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73,
|
|
|
|
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x10, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65,
|
2022-02-23 04:19:23 +00:00
|
|
|
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x22, 0xc8, 0x02, 0x0a, 0x0f, 0x53, 0x75, 0x63, 0x63,
|
2022-02-19 20:10:39 +00:00
|
|
|
0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x65,
|
|
|
|
0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65,
|
|
|
|
0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x6e,
|
|
|
|
0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65,
|
|
|
|
0x6c, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
|
2022-02-21 03:38:43 +00:00
|
|
|
0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x79, 0x6d, 0x62, 0x6f,
|
|
|
|
0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x12,
|
2022-02-23 04:19:23 +00:00
|
|
|
0x1f, 0x0a, 0x05, 0x64, 0x65, 0x70, 0x74, 0x68, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09,
|
|
|
|
0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x70, 0x74, 0x68, 0x52, 0x05, 0x64, 0x65, 0x70, 0x74, 0x68,
|
|
|
|
0x12, 0x21, 0x0a, 0x06, 0x74, 0x72, 0x61, 0x64, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b,
|
|
|
|
0x32, 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x54, 0x72, 0x61, 0x64, 0x65, 0x52, 0x06, 0x74, 0x72, 0x61,
|
|
|
|
0x64, 0x65, 0x73, 0x12, 0x22, 0x0a, 0x06, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x72, 0x18, 0x07, 0x20,
|
|
|
|
0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x70, 0x62, 0x2e, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x72, 0x52,
|
|
|
|
0x06, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x72, 0x12, 0x21, 0x0a, 0x06, 0x6f, 0x72, 0x64, 0x65, 0x72,
|
|
|
|
0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x4f, 0x72, 0x64,
|
|
|
|
0x65, 0x72, 0x52, 0x06, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x12, 0x27, 0x0a, 0x08, 0x62, 0x61,
|
|
|
|
0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70,
|
|
|
|
0x62, 0x2e, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x08, 0x62, 0x61, 0x6c, 0x61, 0x6e,
|
|
|
|
0x63, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61,
|
|
|
|
0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64,
|
|
|
|
0x41, 0x74, 0x22, 0x85, 0x01, 0x0a, 0x05, 0x44, 0x65, 0x70, 0x74, 0x68, 0x12, 0x1a, 0x0a, 0x08,
|
|
|
|
0x65, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
|
|
|
|
0x65, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x79, 0x6d, 0x62,
|
|
|
|
0x6f, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c,
|
|
|
|
0x12, 0x23, 0x0a, 0x04, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f,
|
|
|
|
0x2e, 0x70, 0x62, 0x2e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x52,
|
|
|
|
0x04, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x23, 0x0a, 0x04, 0x62, 0x69, 0x64, 0x73, 0x18, 0x04, 0x20,
|
|
|
|
0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x56, 0x6f,
|
|
|
|
0x6c, 0x75, 0x6d, 0x65, 0x52, 0x04, 0x62, 0x69, 0x64, 0x73, 0x22, 0x3b, 0x0a, 0x0b, 0x50, 0x72,
|
|
|
|
0x69, 0x63, 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x69,
|
|
|
|
0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12,
|
|
|
|
0x16, 0x0a, 0x06, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52,
|
|
|
|
0x06, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x22, 0x8d, 0x02, 0x0a, 0x05, 0x54, 0x72, 0x61, 0x64,
|
|
|
|
0x65, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x01, 0x20,
|
|
|
|
0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x0e, 0x0a,
|
|
|
|
0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a,
|
|
|
|
0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x01, 0x52, 0x05, 0x70, 0x72,
|
|
|
|
0x69, 0x63, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x18, 0x04, 0x20,
|
|
|
|
0x01, 0x28, 0x01, 0x52, 0x06, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73,
|
|
|
|
0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x79, 0x6d,
|
|
|
|
0x62, 0x6f, 0x6c, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61,
|
|
|
|
0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64,
|
|
|
|
0x41, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x64, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09,
|
|
|
|
0x52, 0x04, 0x73, 0x69, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x66, 0x65, 0x65, 0x18, 0x08, 0x20,
|
|
|
|
0x01, 0x28, 0x01, 0x52, 0x03, 0x66, 0x65, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x66, 0x65, 0x65, 0x5f,
|
|
|
|
0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
|
|
|
|
0x66, 0x65, 0x65, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x6d,
|
|
|
|
0x61, 0x6b, 0x65, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x6d, 0x61, 0x6b, 0x65,
|
|
|
|
0x72, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x72, 0x65, 0x6e, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09,
|
|
|
|
0x52, 0x05, 0x74, 0x72, 0x65, 0x6e, 0x64, 0x22, 0x70, 0x0a, 0x06, 0x54, 0x69, 0x63, 0x6b, 0x65,
|
|
|
|
0x72, 0x12, 0x12, 0x0a, 0x04, 0x6f, 0x70, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x01, 0x52,
|
|
|
|
0x04, 0x6f, 0x70, 0x65, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x69, 0x67, 0x68, 0x18, 0x02, 0x20,
|
|
|
|
0x01, 0x28, 0x01, 0x52, 0x04, 0x68, 0x69, 0x67, 0x68, 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x6f, 0x77,
|
|
|
|
0x18, 0x03, 0x20, 0x01, 0x28, 0x01, 0x52, 0x03, 0x6c, 0x6f, 0x77, 0x12, 0x14, 0x0a, 0x05, 0x63,
|
|
|
|
0x6c, 0x6f, 0x73, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x01, 0x52, 0x05, 0x63, 0x6c, 0x6f, 0x73,
|
|
|
|
0x65, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28,
|
|
|
|
0x01, 0x52, 0x06, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x22, 0xb2, 0x03, 0x0a, 0x05, 0x4f, 0x72,
|
|
|
|
0x64, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x18,
|
|
|
|
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12,
|
|
|
|
0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12,
|
|
|
|
0x12, 0x0a, 0x04, 0x73, 0x69, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x73,
|
|
|
|
0x69, 0x64, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70,
|
|
|
|
0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x54, 0x79,
|
|
|
|
0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28,
|
|
|
|
0x01, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x74, 0x6f, 0x70,
|
|
|
|
0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x01, 0x52, 0x09, 0x73, 0x74,
|
|
|
|
0x6f, 0x70, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x76, 0x67, 0x5f, 0x70,
|
|
|
|
0x72, 0x69, 0x63, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x01, 0x52, 0x08, 0x61, 0x76, 0x67, 0x50,
|
|
|
|
0x72, 0x69, 0x63, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x08,
|
|
|
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x06,
|
|
|
|
0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x79,
|
2022-02-21 04:53:39 +00:00
|
|
|
0x6d, 0x62, 0x6f, 0x6c, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f,
|
2022-02-23 04:19:23 +00:00
|
|
|
0x61, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,
|
|
|
|
0x64, 0x41, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18,
|
|
|
|
0x0b, 0x20, 0x01, 0x28, 0x01, 0x52, 0x08, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12,
|
|
|
|
0x27, 0x0a, 0x0f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x64, 0x5f, 0x76, 0x6f, 0x6c, 0x75,
|
|
|
|
0x6d, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0e, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74,
|
|
|
|
0x65, 0x64, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x72, 0x61, 0x64,
|
|
|
|
0x65, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b,
|
|
|
|
0x74, 0x72, 0x61, 0x64, 0x65, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x26, 0x0a, 0x0f, 0x63,
|
|
|
|
0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x0e,
|
|
|
|
0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x4f, 0x72, 0x64, 0x65,
|
|
|
|
0x72, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18,
|
|
|
|
0x0f, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x22, 0x88,
|
|
|
|
0x02, 0x0a, 0x0b, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x1a,
|
|
|
|
0x0a, 0x08, 0x65, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
|
|
|
|
0x52, 0x08, 0x65, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x79,
|
|
|
|
0x6d, 0x62, 0x6f, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x79, 0x6d, 0x62,
|
|
|
|
0x6f, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
|
|
|
|
0x52, 0x04, 0x73, 0x69, 0x64, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69,
|
|
|
|
0x74, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x01, 0x52, 0x08, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69,
|
|
|
|
0x74, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28,
|
|
|
|
0x01, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x74, 0x6f, 0x70,
|
|
|
|
0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x01, 0x52, 0x09, 0x73, 0x74,
|
|
|
|
0x6f, 0x70, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6f, 0x72, 0x64, 0x65, 0x72,
|
|
|
|
0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x72, 0x64,
|
|
|
|
0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74,
|
|
|
|
0x5f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52,
|
|
|
|
0x0d, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x49, 0x64, 0x12, 0x19,
|
|
|
|
0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03,
|
|
|
|
0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x22, 0x5b, 0x0a, 0x07, 0x42, 0x61, 0x6c,
|
|
|
|
0x61, 0x6e, 0x63, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79,
|
|
|
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79,
|
|
|
|
0x12, 0x1c, 0x0a, 0x09, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x02, 0x20,
|
|
|
|
0x01, 0x28, 0x01, 0x52, 0x09, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x16,
|
|
|
|
0x0a, 0x06, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x01, 0x52, 0x06,
|
|
|
|
0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x22, 0x48, 0x0a, 0x12, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74,
|
|
|
|
0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x32, 0x0a, 0x0c,
|
|
|
|
0x73, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x5f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01,
|
|
|
|
0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x4f, 0x72,
|
|
|
|
0x64, 0x65, 0x72, 0x52, 0x0b, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x4f, 0x72, 0x64, 0x65, 0x72,
|
|
|
|
0x22, 0x52, 0x0a, 0x13, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52,
|
|
|
|
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x78, 0x63, 0x68, 0x61,
|
|
|
|
0x6e, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x78, 0x63, 0x68, 0x61,
|
|
|
|
0x6e, 0x67, 0x65, 0x12, 0x1f, 0x0a, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01,
|
|
|
|
0x28, 0x0b, 0x32, 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x05, 0x6f,
|
|
|
|
0x72, 0x64, 0x65, 0x72, 0x22, 0x68, 0x0a, 0x12, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4f, 0x72,
|
|
|
|
0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x78,
|
|
|
|
0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x78,
|
|
|
|
0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01,
|
|
|
|
0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x26, 0x0a, 0x0f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74,
|
|
|
|
0x5f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52,
|
|
|
|
0x0d, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x49, 0x64, 0x22, 0x73,
|
|
|
|
0x0a, 0x13, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73,
|
|
|
|
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67,
|
|
|
|
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67,
|
|
|
|
0x65, 0x12, 0x1f, 0x0a, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
|
|
|
|
0x32, 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x05, 0x6f, 0x72, 0x64,
|
|
|
|
0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x63, 0x6f, 0x64,
|
|
|
|
0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43,
|
|
|
|
0x6f, 0x64, 0x65, 0x22, 0x4b, 0x0a, 0x11, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4f, 0x72, 0x64, 0x65,
|
|
|
|
0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
|
|
|
|
0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x26, 0x0a, 0x0f, 0x63, 0x6c, 0x69, 0x65,
|
|
|
|
0x6e, 0x74, 0x5f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,
|
|
|
|
0x03, 0x52, 0x0d, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x49, 0x64,
|
|
|
|
0x22, 0x56, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65,
|
|
|
|
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1f, 0x0a, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18,
|
|
|
|
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72,
|
|
|
|
0x52, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x74, 0x75,
|
|
|
|
0x73, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x73, 0x74,
|
|
|
|
0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x22, 0xf6, 0x01, 0x0a, 0x12, 0x51, 0x75, 0x65,
|
|
|
|
0x72, 0x79, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
|
2022-02-21 03:38:43 +00:00
|
|
|
0x1a, 0x0a, 0x08, 0x65, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
|
2022-02-21 04:53:39 +00:00
|
|
|
0x09, 0x52, 0x08, 0x65, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73,
|
|
|
|
0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x79, 0x6d,
|
2022-02-23 04:19:23 +00:00
|
|
|
0x62, 0x6f, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x03,
|
|
|
|
0x28, 0x09, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x72, 0x64,
|
|
|
|
0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x72, 0x64,
|
|
|
|
0x65, 0x72, 0x42, 0x79, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64,
|
|
|
|
0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12,
|
|
|
|
0x1e, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20,
|
|
|
|
0x01, 0x28, 0x08, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12,
|
|
|
|
0x12, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x70,
|
|
|
|
0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x08, 0x20, 0x01,
|
|
|
|
0x28, 0x03, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66,
|
|
|
|
0x73, 0x65, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65,
|
|
|
|
0x74, 0x22, 0x75, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73,
|
2022-02-21 04:53:39 +00:00
|
|
|
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x78, 0x63, 0x68,
|
|
|
|
0x61, 0x6e, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x78, 0x63, 0x68,
|
2022-02-23 04:19:23 +00:00
|
|
|
0x61, 0x6e, 0x67, 0x65, 0x12, 0x21, 0x0a, 0x06, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x18, 0x02,
|
|
|
|
0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52,
|
|
|
|
0x06, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x74, 0x75,
|
|
|
|
0x73, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x73, 0x74,
|
|
|
|
0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x22, 0x87, 0x02, 0x0a, 0x12, 0x51, 0x75, 0x65,
|
|
|
|
0x72, 0x79, 0x54, 0x72, 0x61, 0x64, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
|
|
|
|
0x1a, 0x0a, 0x08, 0x65, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
|
|
0x09, 0x52, 0x08, 0x65, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73,
|
|
|
|
0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x79, 0x6d,
|
|
|
|
0x62, 0x6f, 0x6c, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
|
|
|
|
0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
|
|
|
|
0x70, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52,
|
|
|
|
0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x05, 0x20, 0x01, 0x28,
|
|
|
|
0x03, 0x52, 0x02, 0x74, 0x6f, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62,
|
|
|
|
0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79,
|
|
|
|
0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07,
|
2022-02-21 03:38:43 +00:00
|
|
|
0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e,
|
2022-02-23 04:19:23 +00:00
|
|
|
0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04,
|
|
|
|
0x70, 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x09, 0x20,
|
2022-02-21 03:38:43 +00:00
|
|
|
0x01, 0x28, 0x03, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66,
|
2022-02-23 04:19:23 +00:00
|
|
|
0x66, 0x73, 0x65, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73,
|
|
|
|
0x65, 0x74, 0x22, 0x59, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x72, 0x61, 0x64, 0x65,
|
|
|
|
0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x06, 0x74, 0x72, 0x61,
|
|
|
|
0x64, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x54,
|
|
|
|
0x72, 0x61, 0x64, 0x65, 0x52, 0x06, 0x74, 0x72, 0x61, 0x64, 0x65, 0x73, 0x12, 0x1f, 0x0a, 0x0b,
|
|
|
|
0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
|
|
|
|
0x03, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x22, 0x98, 0x01,
|
|
|
|
0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, 0x4c, 0x69, 0x6e, 0x65, 0x73, 0x52, 0x65, 0x71,
|
|
|
|
0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65,
|
|
|
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65,
|
|
|
|
0x12, 0x16, 0x0a, 0x06, 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
|
|
|
|
0x52, 0x06, 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69,
|
|
|
|
0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x1a,
|
|
|
|
0x0a, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03,
|
|
|
|
0x52, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69,
|
|
|
|
0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74,
|
|
|
|
0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0x59, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72,
|
|
|
|
0x79, 0x4b, 0x4c, 0x69, 0x6e, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
|
|
|
|
0x21, 0x0a, 0x06, 0x6b, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
|
|
|
|
0x09, 0x2e, 0x70, 0x62, 0x2e, 0x4b, 0x4c, 0x69, 0x6e, 0x65, 0x52, 0x06, 0x6b, 0x6c, 0x69, 0x6e,
|
|
|
|
0x65, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x63, 0x6f, 0x64,
|
|
|
|
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43,
|
|
|
|
0x6f, 0x64, 0x65, 0x22, 0xe4, 0x01, 0x0a, 0x05, 0x4b, 0x4c, 0x69, 0x6e, 0x65, 0x12, 0x1a, 0x0a,
|
|
|
|
0x08, 0x65, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
|
|
0x08, 0x65, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x79, 0x6d,
|
|
|
|
0x62, 0x6f, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x79, 0x6d, 0x62, 0x6f,
|
|
|
|
0x6c, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03,
|
|
|
|
0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12,
|
|
|
|
0x12, 0x0a, 0x04, 0x6f, 0x70, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x01, 0x52, 0x04, 0x6f,
|
|
|
|
0x70, 0x65, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x69, 0x67, 0x68, 0x18, 0x05, 0x20, 0x01, 0x28,
|
|
|
|
0x01, 0x52, 0x04, 0x68, 0x69, 0x67, 0x68, 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x6f, 0x77, 0x18, 0x06,
|
|
|
|
0x20, 0x01, 0x28, 0x01, 0x52, 0x03, 0x6c, 0x6f, 0x77, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f,
|
|
|
|
0x73, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x01, 0x52, 0x05, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x12,
|
|
|
|
0x16, 0x0a, 0x06, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x01, 0x52,
|
|
|
|
0x06, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x71, 0x75, 0x6f, 0x74, 0x65,
|
|
|
|
0x5f, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0b, 0x71,
|
|
|
|
0x75, 0x6f, 0x74, 0x65, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x32, 0xcc, 0x03, 0x0a, 0x04, 0x42,
|
|
|
|
0x42, 0x47, 0x4f, 0x12, 0x3b, 0x0a, 0x08, 0x53, 0x75, 0x62, 0x63, 0x72, 0x69, 0x62, 0x65, 0x12,
|
|
|
|
0x14, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x65,
|
|
|
|
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63,
|
|
|
|
0x72, 0x69, 0x62, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, 0x01,
|
|
|
|
0x12, 0x40, 0x0a, 0x0b, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12,
|
|
|
|
0x16, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x4f, 0x72, 0x64, 0x65, 0x72,
|
|
|
|
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x75, 0x62,
|
|
|
|
0x6d, 0x69, 0x74, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
|
|
|
0x22, 0x00, 0x12, 0x40, 0x0a, 0x0b, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4f, 0x72, 0x64, 0x65,
|
|
|
|
0x72, 0x12, 0x16, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4f, 0x72, 0x64,
|
|
|
|
0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x43,
|
|
|
|
0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
|
|
|
0x73, 0x65, 0x22, 0x00, 0x12, 0x3d, 0x0a, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4f, 0x72, 0x64,
|
|
|
|
0x65, 0x72, 0x12, 0x15, 0x2e, 0x70, 0x62, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4f, 0x72, 0x64,
|
|
|
|
0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x70, 0x62, 0x2e, 0x51,
|
|
|
|
0x75, 0x65, 0x72, 0x79, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
|
|
|
0x65, 0x22, 0x00, 0x12, 0x40, 0x0a, 0x0b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4f, 0x72, 0x64, 0x65,
|
|
|
|
0x72, 0x73, 0x12, 0x16, 0x2e, 0x70, 0x62, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4f, 0x72, 0x64,
|
|
|
|
0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x70, 0x62, 0x2e,
|
|
|
|
0x51, 0x75, 0x65, 0x72, 0x79, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
|
|
|
0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x40, 0x0a, 0x0b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x72,
|
|
|
|
0x61, 0x64, 0x65, 0x73, 0x12, 0x16, 0x2e, 0x70, 0x62, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54,
|
|
|
|
0x72, 0x61, 0x64, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x70,
|
|
|
|
0x62, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x72, 0x61, 0x64, 0x65, 0x73, 0x52, 0x65, 0x73,
|
|
|
|
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x40, 0x0a, 0x0b, 0x51, 0x75, 0x65, 0x72, 0x79,
|
|
|
|
0x4b, 0x4c, 0x69, 0x6e, 0x65, 0x73, 0x12, 0x16, 0x2e, 0x70, 0x62, 0x2e, 0x51, 0x75, 0x65, 0x72,
|
|
|
|
0x79, 0x4b, 0x4c, 0x69, 0x6e, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17,
|
|
|
|
0x2e, 0x70, 0x62, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4b, 0x4c, 0x69, 0x6e, 0x65, 0x73, 0x52,
|
|
|
|
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x07, 0x5a, 0x05, 0x2e, 0x2e, 0x2f,
|
|
|
|
0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
|
|
|
file_bbgo_proto_rawDescOnce sync.Once
|
|
|
|
file_bbgo_proto_rawDescData = file_bbgo_proto_rawDesc
|
|
|
|
)
|
|
|
|
|
|
|
|
func file_bbgo_proto_rawDescGZIP() []byte {
|
|
|
|
file_bbgo_proto_rawDescOnce.Do(func() {
|
|
|
|
file_bbgo_proto_rawDescData = protoimpl.X.CompressGZIP(file_bbgo_proto_rawDescData)
|
|
|
|
})
|
|
|
|
return file_bbgo_proto_rawDescData
|
|
|
|
}
|
|
|
|
|
2022-02-23 04:19:23 +00:00
|
|
|
var file_bbgo_proto_msgTypes = make([]protoimpl.MessageInfo, 24)
|
2022-02-14 08:16:32 +00:00
|
|
|
var file_bbgo_proto_goTypes = []interface{}{
|
2022-02-19 20:10:39 +00:00
|
|
|
(*SubscribeRequest)(nil), // 0: pb.SubscribeRequest
|
|
|
|
(*Subscription)(nil), // 1: pb.Subscription
|
|
|
|
(*SubscribeResponse)(nil), // 2: pb.SubscribeResponse
|
|
|
|
(*SuccessResponse)(nil), // 3: pb.SuccessResponse
|
2022-02-23 04:19:23 +00:00
|
|
|
(*Depth)(nil), // 4: pb.Depth
|
|
|
|
(*PriceVolume)(nil), // 5: pb.PriceVolume
|
|
|
|
(*Trade)(nil), // 6: pb.Trade
|
|
|
|
(*Ticker)(nil), // 7: pb.Ticker
|
|
|
|
(*Order)(nil), // 8: pb.Order
|
|
|
|
(*SubmitOrder)(nil), // 9: pb.SubmitOrder
|
|
|
|
(*Balance)(nil), // 10: pb.Balance
|
|
|
|
(*SubmitOrderRequest)(nil), // 11: pb.SubmitOrderRequest
|
|
|
|
(*SubmitOrderResponse)(nil), // 12: pb.SubmitOrderResponse
|
|
|
|
(*CancelOrderRequest)(nil), // 13: pb.CancelOrderRequest
|
|
|
|
(*CancelOrderResponse)(nil), // 14: pb.CancelOrderResponse
|
|
|
|
(*QueryOrderRequest)(nil), // 15: pb.QueryOrderRequest
|
|
|
|
(*QueryOrderResponse)(nil), // 16: pb.QueryOrderResponse
|
|
|
|
(*QueryOrdersRequest)(nil), // 17: pb.QueryOrdersRequest
|
|
|
|
(*QueryOrdersResponse)(nil), // 18: pb.QueryOrdersResponse
|
|
|
|
(*QueryTradesRequest)(nil), // 19: pb.QueryTradesRequest
|
|
|
|
(*QueryTradesResponse)(nil), // 20: pb.QueryTradesResponse
|
|
|
|
(*QueryKLinesRequest)(nil), // 21: pb.QueryKLinesRequest
|
|
|
|
(*QueryKLinesResponse)(nil), // 22: pb.QueryKLinesResponse
|
|
|
|
(*KLine)(nil), // 23: pb.KLine
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
var file_bbgo_proto_depIdxs = []int32{
|
2022-02-19 20:10:39 +00:00
|
|
|
1, // 0: pb.SubscribeRequest.subscriptions:type_name -> pb.Subscription
|
|
|
|
3, // 1: pb.SubscribeResponse.success_responses:type_name -> pb.SuccessResponse
|
2022-02-23 04:19:23 +00:00
|
|
|
4, // 2: pb.SuccessResponse.depth:type_name -> pb.Depth
|
|
|
|
6, // 3: pb.SuccessResponse.trades:type_name -> pb.Trade
|
|
|
|
7, // 4: pb.SuccessResponse.ticker:type_name -> pb.Ticker
|
|
|
|
8, // 5: pb.SuccessResponse.orders:type_name -> pb.Order
|
|
|
|
10, // 6: pb.SuccessResponse.balances:type_name -> pb.Balance
|
|
|
|
5, // 7: pb.Depth.asks:type_name -> pb.PriceVolume
|
|
|
|
5, // 8: pb.Depth.bids:type_name -> pb.PriceVolume
|
|
|
|
9, // 9: pb.SubmitOrderRequest.submit_order:type_name -> pb.SubmitOrder
|
|
|
|
8, // 10: pb.SubmitOrderResponse.order:type_name -> pb.Order
|
|
|
|
8, // 11: pb.CancelOrderResponse.order:type_name -> pb.Order
|
|
|
|
8, // 12: pb.QueryOrderResponse.order:type_name -> pb.Order
|
|
|
|
8, // 13: pb.QueryOrdersResponse.orders:type_name -> pb.Order
|
|
|
|
6, // 14: pb.QueryTradesResponse.trades:type_name -> pb.Trade
|
|
|
|
23, // 15: pb.QueryKLinesResponse.klines:type_name -> pb.KLine
|
|
|
|
0, // 16: pb.BBGO.Subcribe:input_type -> pb.SubscribeRequest
|
|
|
|
11, // 17: pb.BBGO.SubmitOrder:input_type -> pb.SubmitOrderRequest
|
|
|
|
13, // 18: pb.BBGO.CancelOrder:input_type -> pb.CancelOrderRequest
|
|
|
|
15, // 19: pb.BBGO.QueryOrder:input_type -> pb.QueryOrderRequest
|
|
|
|
17, // 20: pb.BBGO.QueryOrders:input_type -> pb.QueryOrdersRequest
|
|
|
|
19, // 21: pb.BBGO.QueryTrades:input_type -> pb.QueryTradesRequest
|
|
|
|
21, // 22: pb.BBGO.QueryKLines:input_type -> pb.QueryKLinesRequest
|
|
|
|
2, // 23: pb.BBGO.Subcribe:output_type -> pb.SubscribeResponse
|
|
|
|
12, // 24: pb.BBGO.SubmitOrder:output_type -> pb.SubmitOrderResponse
|
|
|
|
14, // 25: pb.BBGO.CancelOrder:output_type -> pb.CancelOrderResponse
|
|
|
|
16, // 26: pb.BBGO.QueryOrder:output_type -> pb.QueryOrderResponse
|
|
|
|
18, // 27: pb.BBGO.QueryOrders:output_type -> pb.QueryOrdersResponse
|
|
|
|
20, // 28: pb.BBGO.QueryTrades:output_type -> pb.QueryTradesResponse
|
|
|
|
22, // 29: pb.BBGO.QueryKLines:output_type -> pb.QueryKLinesResponse
|
|
|
|
23, // [23:30] is the sub-list for method output_type
|
|
|
|
16, // [16:23] is the sub-list for method input_type
|
|
|
|
16, // [16:16] is the sub-list for extension type_name
|
|
|
|
16, // [16:16] is the sub-list for extension extendee
|
|
|
|
0, // [0:16] is the sub-list for field type_name
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func init() { file_bbgo_proto_init() }
|
|
|
|
func file_bbgo_proto_init() {
|
|
|
|
if File_bbgo_proto != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
if !protoimpl.UnsafeEnabled {
|
|
|
|
file_bbgo_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
2022-02-19 20:10:39 +00:00
|
|
|
switch v := v.(*SubscribeRequest); i {
|
2022-02-14 08:16:32 +00:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_bbgo_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
2022-02-19 20:10:39 +00:00
|
|
|
switch v := v.(*Subscription); i {
|
2022-02-14 08:16:32 +00:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_bbgo_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
2022-02-19 20:10:39 +00:00
|
|
|
switch v := v.(*SubscribeResponse); i {
|
2022-02-14 08:16:32 +00:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_bbgo_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
2022-02-19 20:10:39 +00:00
|
|
|
switch v := v.(*SuccessResponse); i {
|
2022-02-14 08:16:32 +00:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_bbgo_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
2022-02-23 04:19:23 +00:00
|
|
|
switch v := v.(*Depth); i {
|
2022-02-14 08:16:32 +00:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_bbgo_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
2022-02-23 04:19:23 +00:00
|
|
|
switch v := v.(*PriceVolume); i {
|
2022-02-14 08:16:32 +00:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_bbgo_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
2022-02-23 04:19:23 +00:00
|
|
|
switch v := v.(*Trade); i {
|
2022-02-14 08:16:32 +00:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_bbgo_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
2022-02-23 04:19:23 +00:00
|
|
|
switch v := v.(*Ticker); i {
|
2022-02-14 08:16:32 +00:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_bbgo_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
2022-02-23 04:19:23 +00:00
|
|
|
switch v := v.(*Order); i {
|
2022-02-14 08:16:32 +00:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_bbgo_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
2022-02-23 04:19:23 +00:00
|
|
|
switch v := v.(*SubmitOrder); i {
|
2022-02-14 08:16:32 +00:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_bbgo_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
|
2022-02-23 04:19:23 +00:00
|
|
|
switch v := v.(*Balance); i {
|
2022-02-14 08:16:32 +00:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_bbgo_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
|
2022-02-23 04:19:23 +00:00
|
|
|
switch v := v.(*SubmitOrderRequest); i {
|
2022-02-14 08:16:32 +00:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_bbgo_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
|
2022-02-23 04:19:23 +00:00
|
|
|
switch v := v.(*SubmitOrderResponse); i {
|
2022-02-14 08:16:32 +00:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_bbgo_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
|
2022-02-23 04:19:23 +00:00
|
|
|
switch v := v.(*CancelOrderRequest); i {
|
2022-02-14 08:16:32 +00:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_bbgo_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
|
2022-02-23 04:19:23 +00:00
|
|
|
switch v := v.(*CancelOrderResponse); i {
|
2022-02-14 08:16:32 +00:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_bbgo_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
|
2022-02-23 04:19:23 +00:00
|
|
|
switch v := v.(*QueryOrderRequest); i {
|
2022-02-14 08:16:32 +00:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_bbgo_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
|
2022-02-23 04:19:23 +00:00
|
|
|
switch v := v.(*QueryOrderResponse); i {
|
2022-02-14 08:16:32 +00:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_bbgo_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
|
2022-02-23 04:19:23 +00:00
|
|
|
switch v := v.(*QueryOrdersRequest); i {
|
2022-02-14 08:16:32 +00:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
2022-02-19 20:10:39 +00:00
|
|
|
file_bbgo_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {
|
2022-02-23 04:19:23 +00:00
|
|
|
switch v := v.(*QueryOrdersResponse); i {
|
2022-02-14 08:16:32 +00:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
2022-02-19 20:41:39 +00:00
|
|
|
file_bbgo_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {
|
2022-02-23 04:19:23 +00:00
|
|
|
switch v := v.(*QueryTradesRequest); i {
|
2022-02-19 20:41:39 +00:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_bbgo_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {
|
2022-02-23 04:19:23 +00:00
|
|
|
switch v := v.(*QueryTradesResponse); i {
|
2022-02-19 20:41:39 +00:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_bbgo_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} {
|
2022-02-23 04:19:23 +00:00
|
|
|
switch v := v.(*QueryKLinesRequest); i {
|
2022-02-21 03:38:43 +00:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_bbgo_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} {
|
2022-02-23 04:19:23 +00:00
|
|
|
switch v := v.(*QueryKLinesResponse); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_bbgo_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} {
|
2022-02-19 20:41:39 +00:00
|
|
|
switch v := v.(*KLine); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
2022-02-14 08:16:32 +00:00
|
|
|
}
|
|
|
|
type x struct{}
|
|
|
|
out := protoimpl.TypeBuilder{
|
|
|
|
File: protoimpl.DescBuilder{
|
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
|
RawDescriptor: file_bbgo_proto_rawDesc,
|
|
|
|
NumEnums: 0,
|
2022-02-23 04:19:23 +00:00
|
|
|
NumMessages: 24,
|
2022-02-14 08:16:32 +00:00
|
|
|
NumExtensions: 0,
|
|
|
|
NumServices: 1,
|
|
|
|
},
|
|
|
|
GoTypes: file_bbgo_proto_goTypes,
|
|
|
|
DependencyIndexes: file_bbgo_proto_depIdxs,
|
|
|
|
MessageInfos: file_bbgo_proto_msgTypes,
|
|
|
|
}.Build()
|
|
|
|
File_bbgo_proto = out.File
|
|
|
|
file_bbgo_proto_rawDesc = nil
|
|
|
|
file_bbgo_proto_goTypes = nil
|
|
|
|
file_bbgo_proto_depIdxs = nil
|
|
|
|
}
|