673 lines
27 KiB
Go
673 lines
27 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
// versions:
|
||
// protoc-gen-go v1.36.1
|
||
// protoc v3.19.4
|
||
// source: generate/rpc/blockchain.proto
|
||
|
||
package app_cloudep_blockchain
|
||
|
||
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)
|
||
)
|
||
|
||
// OKResp
|
||
type OKResp struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *OKResp) Reset() {
|
||
*x = OKResp{}
|
||
mi := &file_generate_rpc_blockchain_proto_msgTypes[0]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *OKResp) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*OKResp) ProtoMessage() {}
|
||
|
||
func (x *OKResp) ProtoReflect() protoreflect.Message {
|
||
mi := &file_generate_rpc_blockchain_proto_msgTypes[0]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use OKResp.ProtoReflect.Descriptor instead.
|
||
func (*OKResp) Descriptor() ([]byte, []int) {
|
||
return file_generate_rpc_blockchain_proto_rawDescGZIP(), []int{0}
|
||
}
|
||
|
||
// NoneReq
|
||
type NoneReq struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *NoneReq) Reset() {
|
||
*x = NoneReq{}
|
||
mi := &file_generate_rpc_blockchain_proto_msgTypes[1]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *NoneReq) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*NoneReq) ProtoMessage() {}
|
||
|
||
func (x *NoneReq) ProtoReflect() protoreflect.Message {
|
||
mi := &file_generate_rpc_blockchain_proto_msgTypes[1]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use NoneReq.ProtoReflect.Descriptor instead.
|
||
func (*NoneReq) Descriptor() ([]byte, []int) {
|
||
return file_generate_rpc_blockchain_proto_rawDescGZIP(), []int{1}
|
||
}
|
||
|
||
// ListSymbolsRequest is the request for the ListSymbols RPC.
|
||
// It is currently empty but can be extended with filtering or pagination fields in the future.
|
||
type ListSymbolsRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *ListSymbolsRequest) Reset() {
|
||
*x = ListSymbolsRequest{}
|
||
mi := &file_generate_rpc_blockchain_proto_msgTypes[2]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *ListSymbolsRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*ListSymbolsRequest) ProtoMessage() {}
|
||
|
||
func (x *ListSymbolsRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_generate_rpc_blockchain_proto_msgTypes[2]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use ListSymbolsRequest.ProtoReflect.Descriptor instead.
|
||
func (*ListSymbolsRequest) Descriptor() ([]byte, []int) {
|
||
return file_generate_rpc_blockchain_proto_rawDescGZIP(), []int{2}
|
||
}
|
||
|
||
// ListSymbolsResponse contains a list of symbols.
|
||
type ListSymbolsResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Symbols []*Symbol `protobuf:"bytes,1,rep,name=symbols,proto3" json:"symbols,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *ListSymbolsResponse) Reset() {
|
||
*x = ListSymbolsResponse{}
|
||
mi := &file_generate_rpc_blockchain_proto_msgTypes[3]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *ListSymbolsResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*ListSymbolsResponse) ProtoMessage() {}
|
||
|
||
func (x *ListSymbolsResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_generate_rpc_blockchain_proto_msgTypes[3]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use ListSymbolsResponse.ProtoReflect.Descriptor instead.
|
||
func (*ListSymbolsResponse) Descriptor() ([]byte, []int) {
|
||
return file_generate_rpc_blockchain_proto_rawDescGZIP(), []int{3}
|
||
}
|
||
|
||
func (x *ListSymbolsResponse) GetSymbols() []*Symbol {
|
||
if x != nil {
|
||
return x.Symbols
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// Symbol represents information about a trading pair.
|
||
type Symbol struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"` // 交易對名稱 (BTCUSDT)
|
||
Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` // 狀態(如 "TRADING" 表示可交易)
|
||
BaseAsset string `protobuf:"bytes,3,opt,name=base_asset,json=baseAsset,proto3" json:"base_asset,omitempty"` // 主幣種(如 BTCUSDT 的 BTC)
|
||
BaseAssetPrecision int32 `protobuf:"varint,4,opt,name=base_asset_precision,json=baseAssetPrecision,proto3" json:"base_asset_precision,omitempty"` // 主幣的小數點精度
|
||
QuoteAsset string `protobuf:"bytes,5,opt,name=quote_asset,json=quoteAsset,proto3" json:"quote_asset,omitempty"` // 報價幣種(如 BTCUSDT 的 USDT)
|
||
QuoteAssetPrecision int32 `protobuf:"varint,6,opt,name=quote_asset_precision,json=quoteAssetPrecision,proto3" json:"quote_asset_precision,omitempty"` // 報價資產顯示的小數位數
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *Symbol) Reset() {
|
||
*x = Symbol{}
|
||
mi := &file_generate_rpc_blockchain_proto_msgTypes[4]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *Symbol) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*Symbol) ProtoMessage() {}
|
||
|
||
func (x *Symbol) ProtoReflect() protoreflect.Message {
|
||
mi := &file_generate_rpc_blockchain_proto_msgTypes[4]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use Symbol.ProtoReflect.Descriptor instead.
|
||
func (*Symbol) Descriptor() ([]byte, []int) {
|
||
return file_generate_rpc_blockchain_proto_rawDescGZIP(), []int{4}
|
||
}
|
||
|
||
func (x *Symbol) GetSymbol() string {
|
||
if x != nil {
|
||
return x.Symbol
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Symbol) GetStatus() string {
|
||
if x != nil {
|
||
return x.Status
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Symbol) GetBaseAsset() string {
|
||
if x != nil {
|
||
return x.BaseAsset
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Symbol) GetBaseAssetPrecision() int32 {
|
||
if x != nil {
|
||
return x.BaseAssetPrecision
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *Symbol) GetQuoteAsset() string {
|
||
if x != nil {
|
||
return x.QuoteAsset
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Symbol) GetQuoteAssetPrecision() int32 {
|
||
if x != nil {
|
||
return x.QuoteAssetPrecision
|
||
}
|
||
return 0
|
||
}
|
||
|
||
type HistoryReq struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"` // 交易對名稱 (BTCUSDT)
|
||
Interval string `protobuf:"bytes,2,opt,name=interval,proto3" json:"interval,omitempty"` // 4h 1m 1d ...
|
||
StartTime string `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
|
||
EndTime string `protobuf:"bytes,4,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *HistoryReq) Reset() {
|
||
*x = HistoryReq{}
|
||
mi := &file_generate_rpc_blockchain_proto_msgTypes[5]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *HistoryReq) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*HistoryReq) ProtoMessage() {}
|
||
|
||
func (x *HistoryReq) ProtoReflect() protoreflect.Message {
|
||
mi := &file_generate_rpc_blockchain_proto_msgTypes[5]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use HistoryReq.ProtoReflect.Descriptor instead.
|
||
func (*HistoryReq) Descriptor() ([]byte, []int) {
|
||
return file_generate_rpc_blockchain_proto_rawDescGZIP(), []int{5}
|
||
}
|
||
|
||
func (x *HistoryReq) GetSymbol() string {
|
||
if x != nil {
|
||
return x.Symbol
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *HistoryReq) GetInterval() string {
|
||
if x != nil {
|
||
return x.Interval
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *HistoryReq) GetStartTime() string {
|
||
if x != nil {
|
||
return x.StartTime
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *HistoryReq) GetEndTime() string {
|
||
if x != nil {
|
||
return x.EndTime
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type ListCandleDataResp struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Data []*Kline `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *ListCandleDataResp) Reset() {
|
||
*x = ListCandleDataResp{}
|
||
mi := &file_generate_rpc_blockchain_proto_msgTypes[6]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *ListCandleDataResp) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*ListCandleDataResp) ProtoMessage() {}
|
||
|
||
func (x *ListCandleDataResp) ProtoReflect() protoreflect.Message {
|
||
mi := &file_generate_rpc_blockchain_proto_msgTypes[6]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use ListCandleDataResp.ProtoReflect.Descriptor instead.
|
||
func (*ListCandleDataResp) Descriptor() ([]byte, []int) {
|
||
return file_generate_rpc_blockchain_proto_rawDescGZIP(), []int{6}
|
||
}
|
||
|
||
func (x *ListCandleDataResp) GetData() []*Kline {
|
||
if x != nil {
|
||
return x.Data
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// 單根 K 線
|
||
type Kline struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
OpenTime int64 `protobuf:"varint,1,opt,name=open_time,json=openTime,proto3" json:"open_time,omitempty"` // 開盤時間(毫秒)
|
||
Open string `protobuf:"bytes,2,opt,name=open,proto3" json:"open,omitempty"` // 開盤價
|
||
High string `protobuf:"bytes,3,opt,name=high,proto3" json:"high,omitempty"` // 最高價
|
||
Low string `protobuf:"bytes,4,opt,name=low,proto3" json:"low,omitempty"` // 最低價
|
||
Close string `protobuf:"bytes,5,opt,name=close,proto3" json:"close,omitempty"` // 收盤價
|
||
Volume string `protobuf:"bytes,6,opt,name=volume,proto3" json:"volume,omitempty"` // 成交量
|
||
CloseTime int64 `protobuf:"varint,7,opt,name=close_time,json=closeTime,proto3" json:"close_time,omitempty"` // 收盤時間(毫秒)
|
||
QuoteAssetVolume string `protobuf:"bytes,8,opt,name=quote_asset_volume,json=quoteAssetVolume,proto3" json:"quote_asset_volume,omitempty"` // 成交額(以報價資產計)
|
||
NumberOfTrades int32 `protobuf:"varint,9,opt,name=number_of_trades,json=numberOfTrades,proto3" json:"number_of_trades,omitempty"` // 交易筆數
|
||
TakerBuyBaseAssetVolume string `protobuf:"bytes,10,opt,name=taker_buy_base_asset_volume,json=takerBuyBaseAssetVolume,proto3" json:"taker_buy_base_asset_volume,omitempty"` // 主動買入成交量
|
||
TakerBuyQuoteAssetVolume string `protobuf:"bytes,11,opt,name=taker_buy_quote_asset_volume,json=takerBuyQuoteAssetVolume,proto3" json:"taker_buy_quote_asset_volume,omitempty"` // 主動買入成交額
|
||
Symbol string `protobuf:"bytes,12,opt,name=symbol,proto3" json:"symbol,omitempty"` // 交易對 (partition key)
|
||
Interval string `protobuf:"bytes,13,opt,name=interval,proto3" json:"interval,omitempty"` // K 線區間 (partition key) e.g. 1d, 4h, 15m
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *Kline) Reset() {
|
||
*x = Kline{}
|
||
mi := &file_generate_rpc_blockchain_proto_msgTypes[7]
|
||
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 {
|
||
mi := &file_generate_rpc_blockchain_proto_msgTypes[7]
|
||
if 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) {
|
||
return file_generate_rpc_blockchain_proto_rawDescGZIP(), []int{7}
|
||
}
|
||
|
||
func (x *Kline) GetOpenTime() int64 {
|
||
if x != nil {
|
||
return x.OpenTime
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *Kline) GetOpen() string {
|
||
if x != nil {
|
||
return x.Open
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Kline) GetHigh() string {
|
||
if x != nil {
|
||
return x.High
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Kline) GetLow() string {
|
||
if x != nil {
|
||
return x.Low
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Kline) GetClose() string {
|
||
if x != nil {
|
||
return x.Close
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Kline) GetVolume() string {
|
||
if x != nil {
|
||
return x.Volume
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Kline) GetCloseTime() int64 {
|
||
if x != nil {
|
||
return x.CloseTime
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *Kline) GetQuoteAssetVolume() string {
|
||
if x != nil {
|
||
return x.QuoteAssetVolume
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Kline) GetNumberOfTrades() int32 {
|
||
if x != nil {
|
||
return x.NumberOfTrades
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *Kline) GetTakerBuyBaseAssetVolume() string {
|
||
if x != nil {
|
||
return x.TakerBuyBaseAssetVolume
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Kline) GetTakerBuyQuoteAssetVolume() string {
|
||
if x != nil {
|
||
return x.TakerBuyQuoteAssetVolume
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Kline) GetSymbol() string {
|
||
if x != nil {
|
||
return x.Symbol
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Kline) GetInterval() string {
|
||
if x != nil {
|
||
return x.Interval
|
||
}
|
||
return ""
|
||
}
|
||
|
||
var File_generate_rpc_blockchain_proto protoreflect.FileDescriptor
|
||
|
||
var file_generate_rpc_blockchain_proto_rawDesc = []byte{
|
||
0x0a, 0x1d, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x62,
|
||
0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
|
||
0x0a, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x22, 0x08, 0x0a, 0x06, 0x4f,
|
||
0x4b, 0x52, 0x65, 0x73, 0x70, 0x22, 0x09, 0x0a, 0x07, 0x4e, 0x6f, 0x6e, 0x65, 0x52, 0x65, 0x71,
|
||
0x22, 0x14, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x73, 0x52,
|
||
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x43, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x79,
|
||
0x6d, 0x62, 0x6f, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a,
|
||
0x07, 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12,
|
||
0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x53, 0x79, 0x6d, 0x62,
|
||
0x6f, 0x6c, 0x52, 0x07, 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x73, 0x22, 0xde, 0x01, 0x0a, 0x06,
|
||
0x53, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c,
|
||
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x12, 0x16,
|
||
0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
|
||
0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x61,
|
||
0x73, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x62, 0x61, 0x73, 0x65,
|
||
0x41, 0x73, 0x73, 0x65, 0x74, 0x12, 0x30, 0x0a, 0x14, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x61, 0x73,
|
||
0x73, 0x65, 0x74, 0x5f, 0x70, 0x72, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20,
|
||
0x01, 0x28, 0x05, 0x52, 0x12, 0x62, 0x61, 0x73, 0x65, 0x41, 0x73, 0x73, 0x65, 0x74, 0x50, 0x72,
|
||
0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x71, 0x75, 0x6f, 0x74, 0x65,
|
||
0x5f, 0x61, 0x73, 0x73, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x71, 0x75,
|
||
0x6f, 0x74, 0x65, 0x41, 0x73, 0x73, 0x65, 0x74, 0x12, 0x32, 0x0a, 0x15, 0x71, 0x75, 0x6f, 0x74,
|
||
0x65, 0x5f, 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, 0x70, 0x72, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f,
|
||
0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x13, 0x71, 0x75, 0x6f, 0x74, 0x65, 0x41, 0x73,
|
||
0x73, 0x65, 0x74, 0x50, 0x72, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x7a, 0x0a, 0x0a,
|
||
0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x79,
|
||
0x6d, 0x62, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x79, 0x6d, 0x62,
|
||
0x6f, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x02,
|
||
0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x1d,
|
||
0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01,
|
||
0x28, 0x09, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x19, 0x0a,
|
||
0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||
0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x3b, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74,
|
||
0x43, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x12, 0x25,
|
||
0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x62,
|
||
0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4b, 0x6c, 0x69, 0x6e, 0x65, 0x52,
|
||
0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0xb5, 0x03, 0x0a, 0x05, 0x4b, 0x6c, 0x69, 0x6e, 0x65, 0x12,
|
||
0x1b, 0x0a, 0x09, 0x6f, 0x70, 0x65, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
|
||
0x28, 0x03, 0x52, 0x08, 0x6f, 0x70, 0x65, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04,
|
||
0x6f, 0x70, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6f, 0x70, 0x65, 0x6e,
|
||
0x12, 0x12, 0x0a, 0x04, 0x68, 0x69, 0x67, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
|
||
0x68, 0x69, 0x67, 0x68, 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x6f, 0x77, 0x18, 0x04, 0x20, 0x01, 0x28,
|
||
0x09, 0x52, 0x03, 0x6c, 0x6f, 0x77, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x18,
|
||
0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06,
|
||
0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x76, 0x6f,
|
||
0x6c, 0x75, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x5f, 0x74, 0x69,
|
||
0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x54,
|
||
0x69, 0x6d, 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x71, 0x75, 0x6f, 0x74, 0x65, 0x5f, 0x61, 0x73, 0x73,
|
||
0x65, 0x74, 0x5f, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||
0x10, 0x71, 0x75, 0x6f, 0x74, 0x65, 0x41, 0x73, 0x73, 0x65, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d,
|
||
0x65, 0x12, 0x28, 0x0a, 0x10, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x6f, 0x66, 0x5f, 0x74,
|
||
0x72, 0x61, 0x64, 0x65, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x6e, 0x75, 0x6d,
|
||
0x62, 0x65, 0x72, 0x4f, 0x66, 0x54, 0x72, 0x61, 0x64, 0x65, 0x73, 0x12, 0x3c, 0x0a, 0x1b, 0x74,
|
||
0x61, 0x6b, 0x65, 0x72, 0x5f, 0x62, 0x75, 0x79, 0x5f, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x61, 0x73,
|
||
0x73, 0x65, 0x74, 0x5f, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09,
|
||
0x52, 0x17, 0x74, 0x61, 0x6b, 0x65, 0x72, 0x42, 0x75, 0x79, 0x42, 0x61, 0x73, 0x65, 0x41, 0x73,
|
||
0x73, 0x65, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x3e, 0x0a, 0x1c, 0x74, 0x61, 0x6b,
|
||
0x65, 0x72, 0x5f, 0x62, 0x75, 0x79, 0x5f, 0x71, 0x75, 0x6f, 0x74, 0x65, 0x5f, 0x61, 0x73, 0x73,
|
||
0x65, 0x74, 0x5f, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||
0x18, 0x74, 0x61, 0x6b, 0x65, 0x72, 0x42, 0x75, 0x79, 0x51, 0x75, 0x6f, 0x74, 0x65, 0x41, 0x73,
|
||
0x73, 0x65, 0x74, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x79, 0x6d,
|
||
0x62, 0x6f, 0x6c, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x79, 0x6d, 0x62, 0x6f,
|
||
0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x0d, 0x20,
|
||
0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x32, 0xa1, 0x02,
|
||
0x0a, 0x11, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x53, 0x65, 0x72, 0x76,
|
||
0x69, 0x63, 0x65, 0x12, 0x4e, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x79, 0x6d, 0x62, 0x6f,
|
||
0x6c, 0x73, 0x12, 0x1e, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e,
|
||
0x4c, 0x69, 0x73, 0x74, 0x53, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
|
||
0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e,
|
||
0x4c, 0x69, 0x73, 0x74, 0x53, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
||
0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72,
|
||
0x79, 0x4b, 0x6c, 0x69, 0x6e, 0x65, 0x44, 0x61, 0x74, 0x61, 0x12, 0x16, 0x2e, 0x62, 0x6c, 0x6f,
|
||
0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x52,
|
||
0x65, 0x71, 0x1a, 0x12, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e,
|
||
0x4f, 0x4b, 0x52, 0x65, 0x73, 0x70, 0x12, 0x48, 0x0a, 0x0e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x61,
|
||
0x6e, 0x64, 0x6c, 0x65, 0x44, 0x61, 0x74, 0x61, 0x12, 0x16, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
|
||
0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71,
|
||
0x1a, 0x1e, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4c, 0x69,
|
||
0x73, 0x74, 0x43, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70,
|
||
0x12, 0x2f, 0x0a, 0x04, 0x50, 0x69, 0x6e, 0x67, 0x12, 0x13, 0x2e, 0x62, 0x6c, 0x6f, 0x63, 0x6b,
|
||
0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4e, 0x6f, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x12, 0x2e,
|
||
0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2e, 0x4f, 0x4b, 0x52, 0x65, 0x73,
|
||
0x70, 0x42, 0x2e, 0x5a, 0x2c, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x33, 0x30, 0x63, 0x6d, 0x2e, 0x6e,
|
||
0x65, 0x74, 0x2f, 0x64, 0x69, 0x67, 0x69, 0x6d, 0x6f, 0x6e, 0x2f, 0x61, 0x70, 0x70, 0x2d, 0x63,
|
||
0x6c, 0x6f, 0x75, 0x64, 0x65, 0x70, 0x2d, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x63, 0x68, 0x61, 0x69,
|
||
0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||
}
|
||
|
||
var (
|
||
file_generate_rpc_blockchain_proto_rawDescOnce sync.Once
|
||
file_generate_rpc_blockchain_proto_rawDescData = file_generate_rpc_blockchain_proto_rawDesc
|
||
)
|
||
|
||
func file_generate_rpc_blockchain_proto_rawDescGZIP() []byte {
|
||
file_generate_rpc_blockchain_proto_rawDescOnce.Do(func() {
|
||
file_generate_rpc_blockchain_proto_rawDescData = protoimpl.X.CompressGZIP(file_generate_rpc_blockchain_proto_rawDescData)
|
||
})
|
||
return file_generate_rpc_blockchain_proto_rawDescData
|
||
}
|
||
|
||
var file_generate_rpc_blockchain_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
|
||
var file_generate_rpc_blockchain_proto_goTypes = []any{
|
||
(*OKResp)(nil), // 0: blockchain.OKResp
|
||
(*NoneReq)(nil), // 1: blockchain.NoneReq
|
||
(*ListSymbolsRequest)(nil), // 2: blockchain.ListSymbolsRequest
|
||
(*ListSymbolsResponse)(nil), // 3: blockchain.ListSymbolsResponse
|
||
(*Symbol)(nil), // 4: blockchain.Symbol
|
||
(*HistoryReq)(nil), // 5: blockchain.HistoryReq
|
||
(*ListCandleDataResp)(nil), // 6: blockchain.ListCandleDataResp
|
||
(*Kline)(nil), // 7: blockchain.Kline
|
||
}
|
||
var file_generate_rpc_blockchain_proto_depIdxs = []int32{
|
||
4, // 0: blockchain.ListSymbolsResponse.symbols:type_name -> blockchain.Symbol
|
||
7, // 1: blockchain.ListCandleDataResp.data:type_name -> blockchain.Kline
|
||
2, // 2: blockchain.BlockchainService.ListSymbols:input_type -> blockchain.ListSymbolsRequest
|
||
5, // 3: blockchain.BlockchainService.GetHistoryKlineData:input_type -> blockchain.HistoryReq
|
||
5, // 4: blockchain.BlockchainService.ListCandleData:input_type -> blockchain.HistoryReq
|
||
1, // 5: blockchain.BlockchainService.Ping:input_type -> blockchain.NoneReq
|
||
3, // 6: blockchain.BlockchainService.ListSymbols:output_type -> blockchain.ListSymbolsResponse
|
||
0, // 7: blockchain.BlockchainService.GetHistoryKlineData:output_type -> blockchain.OKResp
|
||
6, // 8: blockchain.BlockchainService.ListCandleData:output_type -> blockchain.ListCandleDataResp
|
||
0, // 9: blockchain.BlockchainService.Ping:output_type -> blockchain.OKResp
|
||
6, // [6:10] is the sub-list for method output_type
|
||
2, // [2:6] is the sub-list for method input_type
|
||
2, // [2:2] is the sub-list for extension type_name
|
||
2, // [2:2] is the sub-list for extension extendee
|
||
0, // [0:2] is the sub-list for field type_name
|
||
}
|
||
|
||
func init() { file_generate_rpc_blockchain_proto_init() }
|
||
func file_generate_rpc_blockchain_proto_init() {
|
||
if File_generate_rpc_blockchain_proto != nil {
|
||
return
|
||
}
|
||
type x struct{}
|
||
out := protoimpl.TypeBuilder{
|
||
File: protoimpl.DescBuilder{
|
||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||
RawDescriptor: file_generate_rpc_blockchain_proto_rawDesc,
|
||
NumEnums: 0,
|
||
NumMessages: 8,
|
||
NumExtensions: 0,
|
||
NumServices: 1,
|
||
},
|
||
GoTypes: file_generate_rpc_blockchain_proto_goTypes,
|
||
DependencyIndexes: file_generate_rpc_blockchain_proto_depIdxs,
|
||
MessageInfos: file_generate_rpc_blockchain_proto_msgTypes,
|
||
}.Build()
|
||
File_generate_rpc_blockchain_proto = out.File
|
||
file_generate_rpc_blockchain_proto_rawDesc = nil
|
||
file_generate_rpc_blockchain_proto_goTypes = nil
|
||
file_generate_rpc_blockchain_proto_depIdxs = nil
|
||
}
|