Enum value maps for SortCriteria.
var ( SortCriteria_name = map[string{ 0: "SORT_UNKNOWN", 1: "ASC", 2: "DESC", } SortCriteria_value = map[int32{ "SORT_UNKNOWN": 0, "ASC": 1, "DESC": 2, } )
var File_sdk_core_assets_proto FileDescriptor
var File_sdk_core_data_interval_proto FileDescriptor
var File_sdk_core_instrument_criteria_proto FileDescriptor
var File_sdk_core_sort_criteria_proto FileDescriptor
var File_sdk_core_source_data_proto FileDescriptor
var File_sdk_core_source_proto FileDescriptor
var File_sdk_core_window_proto FileDescriptor
var File_sdk_core_wrappers_proto FileDescriptor
Assets
type Assets struct { // Base asset. Base string `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` // Quote asset. Quote string `protobuf:"bytes,2,opt,name=quote,proto3" json:"quote,omitempty"` // contains filtered or unexported fields }
func (*Assets) Descriptor() ([]int)
Deprecated: Use Assets.ProtoReflect.Descriptor instead.
func (x *Assets) GetBase() string
func (x *Assets) GetQuote() string
func (*Assets) ProtoMessage()
func (x *Assets) ProtoReflect() Message
func (x *Assets) Reset()
func (x *Assets) String() string
DataInterval
type DataInterval struct { // Starting time (inclusive, ISO 8601 for REST). StartTime *Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // Ending time (exclusive, ISO 8601 for REST). EndTime *Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // contains filtered or unexported fields }
func (*DataInterval) Descriptor() ([]int)
Deprecated: Use DataInterval.ProtoReflect.Descriptor instead.
func (x *DataInterval) GetEndTime() *Timestamp
func (x *DataInterval) GetStartTime() *Timestamp
func (*DataInterval) ProtoMessage()
func (x *DataInterval) ProtoReflect() Message
func (x *DataInterval) Reset()
func (x *DataInterval) String() string
InstrumentCriteria
type InstrumentCriteria struct { // Instrument exchange code, for example "cbse" (Coinbase). Exchange string `protobuf:"bytes,1,opt,name=exchange,proto3" json:"exchange,omitempty"` // Instrument class. See https://docs.kaiko.com/?python#instruments. InstrumentClass string `protobuf:"bytes,2,opt,name=instrument_class,json=instrumentClass,proto3" json:"instrument_class,omitempty"` // Instrument code. See https://docs.kaiko.com/?python#instruments. Code string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"` // contains filtered or unexported fields }
func (*InstrumentCriteria) Descriptor() ([]int)
Deprecated: Use InstrumentCriteria.ProtoReflect.Descriptor instead.
func (x *InstrumentCriteria) GetCode() string
func (x *InstrumentCriteria) GetExchange() string
func (x *InstrumentCriteria) GetInstrumentClass() string
func (*InstrumentCriteria) ProtoMessage()
func (x *InstrumentCriteria) ProtoReflect() Message
func (x *InstrumentCriteria) Reset()
func (x *InstrumentCriteria) String() string
SortCriteria
type SortCriteria int32
const ( // SORT_UNKNOWN (sorting not specified). SortCriteria_SORT_UNKNOWN SortCriteria = 0 // ASC (ascendant). SortCriteria_ASC SortCriteria = 1 // DESC (descendant). SortCriteria_DESC SortCriteria = 2 )
func (SortCriteria) Descriptor() EnumDescriptor
func (x SortCriteria) Enum() *SortCriteria
func (SortCriteria) EnumDescriptor() ([]int)
Deprecated: Use SortCriteria.Descriptor instead.
func (x SortCriteria) Number() EnumNumber
func (x SortCriteria) String() string
func (SortCriteria) Type() EnumType
Source
type Source struct { // Prices for instrument code in each exchange. Data []*SourceData `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` // Price for related instrument code accross exchanges. Price string `protobuf:"bytes,2,opt,name=price,proto3" json:"price,omitempty"` // contains filtered or unexported fields }
func (*Source) Descriptor() ([]int)
Deprecated: Use Source.ProtoReflect.Descriptor instead.
func (x *Source) GetData() []*SourceData
func (x *Source) GetPrice() string
func (*Source) ProtoMessage()
func (x *Source) ProtoReflect() Message
func (x *Source) Reset()
func (x *Source) String() string
SourceData
type SourceData struct { // Instrument exchange code, for example "cbse" (Coinbase). ExchangeCode string `protobuf:"bytes,1,opt,name=exchange_code,json=exchangeCode,proto3" json:"exchange_code,omitempty"` // Number of trades for the given instrument code and aggregate. Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` // Price for the instrument code on the exchange and interval. Price string `protobuf:"bytes,3,opt,name=price,proto3" json:"price,omitempty"` // Volume for the instrument code on the exchange and interval. Volume string `protobuf:"bytes,4,opt,name=volume,proto3" json:"volume,omitempty"` // contains filtered or unexported fields }
func (*SourceData) Descriptor() ([]int)
Deprecated: Use SourceData.ProtoReflect.Descriptor instead.
func (x *SourceData) GetCount() int64
func (x *SourceData) GetExchangeCode() string
func (x *SourceData) GetPrice() string
func (x *SourceData) GetVolume() string
func (*SourceData) ProtoMessage()
func (x *SourceData) ProtoReflect() Message
func (x *SourceData) Reset()
func (x *SourceData) String() string
TimestampValue wraps optional timestamp.
type TimestampValue struct { // The timestamp value. Value *Timestamp `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*TimestampValue) Descriptor() ([]int)
Deprecated: Use TimestampValue.ProtoReflect.Descriptor instead.
func (x *TimestampValue) GetValue() *Timestamp
func (*TimestampValue) ProtoMessage()
func (x *TimestampValue) ProtoReflect() Message
func (x *TimestampValue) Reset()
func (x *TimestampValue) String() string
Window information.
type Window struct { // Start time of the aggregation window. StartTime *Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // End time of the aggregation window. EndTime *Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // duration Duration *Duration `protobuf:"bytes,3,opt,name=duration,proto3" json:"duration,omitempty"` // contains filtered or unexported fields }
func (*Window) Descriptor() ([]int)
Deprecated: Use Window.ProtoReflect.Descriptor instead.
func (x *Window) GetDuration() *Duration
func (x *Window) GetEndTime() *Timestamp
func (x *Window) GetStartTime() *Timestamp
func (*Window) ProtoMessage()
func (x *Window) ProtoReflect() Message
func (x *Window) Reset()
func (x *Window) String() string