...

Package core

import "github.com/kaikodata/kaiko-go-sdk/core"
Overview
Index

Overview ▾

Index ▾

Variables
type Assets
    func (*Assets) Descriptor() ([]byte, []int)
    func (x *Assets) GetBase() string
    func (x *Assets) GetQuote() string
    func (*Assets) ProtoMessage()
    func (x *Assets) ProtoReflect() protoreflect.Message
    func (x *Assets) Reset()
    func (x *Assets) String() string
type DataInterval
    func (*DataInterval) Descriptor() ([]byte, []int)
    func (x *DataInterval) GetEndTime() *timestamp.Timestamp
    func (x *DataInterval) GetStartTime() *timestamp.Timestamp
    func (*DataInterval) ProtoMessage()
    func (x *DataInterval) ProtoReflect() protoreflect.Message
    func (x *DataInterval) Reset()
    func (x *DataInterval) String() string
type InstrumentCriteria
    func (*InstrumentCriteria) Descriptor() ([]byte, []int)
    func (x *InstrumentCriteria) GetCode() string
    func (x *InstrumentCriteria) GetExchange() string
    func (x *InstrumentCriteria) GetInstrumentClass() string
    func (*InstrumentCriteria) ProtoMessage()
    func (x *InstrumentCriteria) ProtoReflect() protoreflect.Message
    func (x *InstrumentCriteria) Reset()
    func (x *InstrumentCriteria) String() string
type SortCriteria
    func (SortCriteria) Descriptor() protoreflect.EnumDescriptor
    func (x SortCriteria) Enum() *SortCriteria
    func (SortCriteria) EnumDescriptor() ([]byte, []int)
    func (x SortCriteria) Number() protoreflect.EnumNumber
    func (x SortCriteria) String() string
    func (SortCriteria) Type() protoreflect.EnumType
type Source
    func (*Source) Descriptor() ([]byte, []int)
    func (x *Source) GetData() []*SourceData
    func (x *Source) GetPrice() string
    func (*Source) ProtoMessage()
    func (x *Source) ProtoReflect() protoreflect.Message
    func (x *Source) Reset()
    func (x *Source) String() string
type SourceData
    func (*SourceData) Descriptor() ([]byte, []int)
    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() protoreflect.Message
    func (x *SourceData) Reset()
    func (x *SourceData) String() string
type TimestampValue
    func (*TimestampValue) Descriptor() ([]byte, []int)
    func (x *TimestampValue) GetValue() *timestamp.Timestamp
    func (*TimestampValue) ProtoMessage()
    func (x *TimestampValue) ProtoReflect() protoreflect.Message
    func (x *TimestampValue) Reset()
    func (x *TimestampValue) String() string
type Window
    func (*Window) Descriptor() ([]byte, []int)
    func (x *Window) GetDuration() *duration.Duration
    func (x *Window) GetEndTime() *timestamp.Timestamp
    func (x *Window) GetStartTime() *timestamp.Timestamp
    func (*Window) ProtoMessage()
    func (x *Window) ProtoReflect() protoreflect.Message
    func (x *Window) Reset()
    func (x *Window) String() string

Package files

assets.pb.go data_interval.pb.go instrument_criteria.pb.go sort_criteria.pb.go source.pb.go source_data.pb.go window.pb.go wrappers.pb.go

Variables

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

type Assets

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

func (*Assets) Descriptor() ([]int)

Deprecated: Use Assets.ProtoReflect.Descriptor instead.

func (*Assets) GetBase

func (x *Assets) GetBase() string

func (*Assets) GetQuote

func (x *Assets) GetQuote() string

func (*Assets) ProtoMessage

func (*Assets) ProtoMessage()

func (*Assets) ProtoReflect

func (x *Assets) ProtoReflect() Message

func (*Assets) Reset

func (x *Assets) Reset()

func (*Assets) String

func (x *Assets) String() string

type DataInterval

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

func (*DataInterval) Descriptor() ([]int)

Deprecated: Use DataInterval.ProtoReflect.Descriptor instead.

func (*DataInterval) GetEndTime

func (x *DataInterval) GetEndTime() *Timestamp

func (*DataInterval) GetStartTime

func (x *DataInterval) GetStartTime() *Timestamp

func (*DataInterval) ProtoMessage

func (*DataInterval) ProtoMessage()

func (*DataInterval) ProtoReflect

func (x *DataInterval) ProtoReflect() Message

func (*DataInterval) Reset

func (x *DataInterval) Reset()

func (*DataInterval) String

func (x *DataInterval) String() string

type InstrumentCriteria

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

func (*InstrumentCriteria) Descriptor() ([]int)

Deprecated: Use InstrumentCriteria.ProtoReflect.Descriptor instead.

func (*InstrumentCriteria) GetCode

func (x *InstrumentCriteria) GetCode() string

func (*InstrumentCriteria) GetExchange

func (x *InstrumentCriteria) GetExchange() string

func (*InstrumentCriteria) GetInstrumentClass

func (x *InstrumentCriteria) GetInstrumentClass() string

func (*InstrumentCriteria) ProtoMessage

func (*InstrumentCriteria) ProtoMessage()

func (*InstrumentCriteria) ProtoReflect

func (x *InstrumentCriteria) ProtoReflect() Message

func (*InstrumentCriteria) Reset

func (x *InstrumentCriteria) Reset()

func (*InstrumentCriteria) String

func (x *InstrumentCriteria) String() string

type SortCriteria

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

func (SortCriteria) Descriptor() EnumDescriptor

func (SortCriteria) Enum

func (x SortCriteria) Enum() *SortCriteria

func (SortCriteria) EnumDescriptor

func (SortCriteria) EnumDescriptor() ([]int)

Deprecated: Use SortCriteria.Descriptor instead.

func (SortCriteria) Number

func (x SortCriteria) Number() EnumNumber

func (SortCriteria) String

func (x SortCriteria) String() string

func (SortCriteria) Type

func (SortCriteria) Type() EnumType

type Source

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

func (*Source) Descriptor() ([]int)

Deprecated: Use Source.ProtoReflect.Descriptor instead.

func (*Source) GetData

func (x *Source) GetData() []*SourceData

func (*Source) GetPrice

func (x *Source) GetPrice() string

func (*Source) ProtoMessage

func (*Source) ProtoMessage()

func (*Source) ProtoReflect

func (x *Source) ProtoReflect() Message

func (*Source) Reset

func (x *Source) Reset()

func (*Source) String

func (x *Source) String() string

type SourceData

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

func (*SourceData) Descriptor() ([]int)

Deprecated: Use SourceData.ProtoReflect.Descriptor instead.

func (*SourceData) GetCount

func (x *SourceData) GetCount() int64

func (*SourceData) GetExchangeCode

func (x *SourceData) GetExchangeCode() string

func (*SourceData) GetPrice

func (x *SourceData) GetPrice() string

func (*SourceData) GetVolume

func (x *SourceData) GetVolume() string

func (*SourceData) ProtoMessage

func (*SourceData) ProtoMessage()

func (*SourceData) ProtoReflect

func (x *SourceData) ProtoReflect() Message

func (*SourceData) Reset

func (x *SourceData) Reset()

func (*SourceData) String

func (x *SourceData) String() string

type TimestampValue

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

func (*TimestampValue) Descriptor() ([]int)

Deprecated: Use TimestampValue.ProtoReflect.Descriptor instead.

func (*TimestampValue) GetValue

func (x *TimestampValue) GetValue() *Timestamp

func (*TimestampValue) ProtoMessage

func (*TimestampValue) ProtoMessage()

func (*TimestampValue) ProtoReflect

func (x *TimestampValue) ProtoReflect() Message

func (*TimestampValue) Reset

func (x *TimestampValue) Reset()

func (*TimestampValue) String

func (x *TimestampValue) String() string

type Window

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

func (*Window) Descriptor() ([]int)

Deprecated: Use Window.ProtoReflect.Descriptor instead.

func (*Window) GetDuration

func (x *Window) GetDuration() *Duration

func (*Window) GetEndTime

func (x *Window) GetEndTime() *Timestamp

func (*Window) GetStartTime

func (x *Window) GetStartTime() *Timestamp

func (*Window) ProtoMessage

func (*Window) ProtoMessage()

func (*Window) ProtoReflect

func (x *Window) ProtoReflect() Message

func (*Window) Reset

func (x *Window) Reset()

func (*Window) String

func (x *Window) String() string