mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-23 07:41:25 +00:00
update stock example
This commit is contained in:
@@ -114,10 +114,10 @@ type OrderBookRequest struct {
|
||||
Stock string `protobuf:"bytes,1,opt,name=stock,proto3" json:"stock,omitempty"`
|
||||
// the date in format YYYY-MM-dd
|
||||
Date string `protobuf:"bytes,2,opt,name=date,proto3" json:"date,omitempty"`
|
||||
// optional nanosecond timestamp start
|
||||
Start int64 `protobuf:"varint,3,opt,name=start,proto3" json:"start,omitempty"`
|
||||
// optional nanosecond timestamp end
|
||||
End int64 `protobuf:"varint,4,opt,name=end,proto3" json:"end,omitempty"`
|
||||
// optional RFC3339Nano start time e.g 2006-01-02T15:04:05.999999999Z07:00
|
||||
Start string `protobuf:"bytes,3,opt,name=start,proto3" json:"start,omitempty"`
|
||||
// optional RFC3339Nano end time e.g 2006-01-02T15:04:05.999999999Z07:00
|
||||
End string `protobuf:"bytes,4,opt,name=end,proto3" json:"end,omitempty"`
|
||||
// limit number of prices
|
||||
Limit int32 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"`
|
||||
}
|
||||
@@ -168,18 +168,18 @@ func (x *OrderBookRequest) GetDate() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *OrderBookRequest) GetStart() int64 {
|
||||
func (x *OrderBookRequest) GetStart() string {
|
||||
if x != nil {
|
||||
return x.Start
|
||||
}
|
||||
return 0
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *OrderBookRequest) GetEnd() int64 {
|
||||
func (x *OrderBookRequest) GetEnd() string {
|
||||
if x != nil {
|
||||
return x.End
|
||||
}
|
||||
return 0
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *OrderBookRequest) GetLimit() int32 {
|
||||
@@ -681,9 +681,9 @@ var file_proto_stock_proto_rawDesc = []byte{
|
||||
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x6f, 0x63, 0x6b, 0x18,
|
||||
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x74, 0x6f, 0x63, 0x6b, 0x12, 0x12, 0x0a, 0x04,
|
||||
0x64, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x65,
|
||||
0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52,
|
||||
0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||
0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x6e, 0x64, 0x18, 0x04, 0x20,
|
||||
0x01, 0x28, 0x03, 0x52, 0x03, 0x65, 0x6e, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69,
|
||||
0x01, 0x28, 0x09, 0x52, 0x03, 0x65, 0x6e, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69,
|
||||
0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x22, 0x65,
|
||||
0x0a, 0x11, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
||||
0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x18, 0x01, 0x20,
|
||||
|
||||
@@ -30,10 +30,10 @@ message OrderBookRequest {
|
||||
string stock = 1;
|
||||
// the date in format YYYY-MM-dd
|
||||
string date = 2;
|
||||
// optional nanosecond timestamp start
|
||||
int64 start = 3;
|
||||
// optional nanosecond timestamp end
|
||||
int64 end = 4;
|
||||
// optional RFC3339Nano start time e.g 2006-01-02T15:04:05.999999999Z07:00
|
||||
string start = 3;
|
||||
// optional RFC3339Nano end time e.g 2006-01-02T15:04:05.999999999Z07:00
|
||||
string end = 4;
|
||||
// limit number of prices
|
||||
int32 limit = 5;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user