...

Package index_v1

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

Overview ▾

Index ▾

Variables
type StreamIndexCommodity
    func (StreamIndexCommodity) Descriptor() protoreflect.EnumDescriptor
    func (x StreamIndexCommodity) Enum() *StreamIndexCommodity
    func (StreamIndexCommodity) EnumDescriptor() ([]byte, []int)
    func (x StreamIndexCommodity) Number() protoreflect.EnumNumber
    func (x StreamIndexCommodity) String() string
    func (StreamIndexCommodity) Type() protoreflect.EnumType
type StreamIndexServiceRequestV1
    func (*StreamIndexServiceRequestV1) Descriptor() ([]byte, []int)
    func (x *StreamIndexServiceRequestV1) GetCommodities() []StreamIndexCommodity
    func (x *StreamIndexServiceRequestV1) GetIndexCode() string
    func (x *StreamIndexServiceRequestV1) GetInterval() *core.DataInterval
    func (*StreamIndexServiceRequestV1) ProtoMessage()
    func (x *StreamIndexServiceRequestV1) ProtoReflect() protoreflect.Message
    func (x *StreamIndexServiceRequestV1) Reset()
    func (x *StreamIndexServiceRequestV1) String() string
type StreamIndexServiceResponseBaseAsset
    func (*StreamIndexServiceResponseBaseAsset) Descriptor() ([]byte, []int)
    func (x *StreamIndexServiceResponseBaseAsset) GetAsset() string
    func (x *StreamIndexServiceResponseBaseAsset) GetWeight() float64
    func (*StreamIndexServiceResponseBaseAsset) ProtoMessage()
    func (x *StreamIndexServiceResponseBaseAsset) ProtoReflect() protoreflect.Message
    func (x *StreamIndexServiceResponseBaseAsset) Reset()
    func (x *StreamIndexServiceResponseBaseAsset) String() string
type StreamIndexServiceResponseInstruments
    func (*StreamIndexServiceResponseInstruments) Descriptor() ([]byte, []int)
    func (x *StreamIndexServiceResponseInstruments) GetCount() uint64
    func (x *StreamIndexServiceResponseInstruments) GetPartition() string
    func (x *StreamIndexServiceResponseInstruments) GetPrice() float64
    func (x *StreamIndexServiceResponseInstruments) GetUnderlyingTrade() *StreamIndexServiceUnderlyingTrade
    func (x *StreamIndexServiceResponseInstruments) GetVolume() float64
    func (*StreamIndexServiceResponseInstruments) ProtoMessage()
    func (x *StreamIndexServiceResponseInstruments) ProtoReflect() protoreflect.Message
    func (x *StreamIndexServiceResponseInstruments) Reset()
    func (x *StreamIndexServiceResponseInstruments) String() string
type StreamIndexServiceResponsePairs
    func (*StreamIndexServiceResponsePairs) Descriptor() ([]byte, []int)
    func (x *StreamIndexServiceResponsePairs) GetInstruments() []*StreamIndexServiceResponseInstruments
    func (x *StreamIndexServiceResponsePairs) GetPair() string
    func (x *StreamIndexServiceResponsePairs) GetWeight() float64
    func (*StreamIndexServiceResponsePairs) ProtoMessage()
    func (x *StreamIndexServiceResponsePairs) ProtoReflect() protoreflect.Message
    func (x *StreamIndexServiceResponsePairs) Reset()
    func (x *StreamIndexServiceResponsePairs) String() string
type StreamIndexServiceResponsePercentage
    func (*StreamIndexServiceResponsePercentage) Descriptor() ([]byte, []int)
    func (x *StreamIndexServiceResponsePercentage) GetPairs() []*StreamIndexServiceResponsePairs
    func (x *StreamIndexServiceResponsePercentage) GetPercentage() float64
    func (x *StreamIndexServiceResponsePercentage) GetPrice() float64
    func (*StreamIndexServiceResponsePercentage) ProtoMessage()
    func (x *StreamIndexServiceResponsePercentage) ProtoReflect() protoreflect.Message
    func (x *StreamIndexServiceResponsePercentage) Reset()
    func (x *StreamIndexServiceResponsePercentage) String() string
type StreamIndexServiceResponseV1
    func (*StreamIndexServiceResponseV1) Descriptor() ([]byte, []int)
    func (x *StreamIndexServiceResponseV1) GetBases() []*StreamIndexServiceResponseBaseAsset
    func (x *StreamIndexServiceResponseV1) GetCommodity() StreamIndexCommodity
    func (x *StreamIndexServiceResponseV1) GetExchanges() []string
    func (x *StreamIndexServiceResponseV1) GetIndexCode() string
    func (x *StreamIndexServiceResponseV1) GetInterval() *core.DataInterval
    func (x *StreamIndexServiceResponseV1) GetLastIngestTime() *timestamp.Timestamp
    func (x *StreamIndexServiceResponseV1) GetPercentages() []*StreamIndexServiceResponsePercentage
    func (x *StreamIndexServiceResponseV1) GetQuote() string
    func (x *StreamIndexServiceResponseV1) GetSequenceId() string
    func (x *StreamIndexServiceResponseV1) GetTsEvent() *timestamp.Timestamp
    func (*StreamIndexServiceResponseV1) ProtoMessage()
    func (x *StreamIndexServiceResponseV1) ProtoReflect() protoreflect.Message
    func (x *StreamIndexServiceResponseV1) Reset()
    func (x *StreamIndexServiceResponseV1) String() string
type StreamIndexServiceUnderlyingTrade
    func (*StreamIndexServiceUnderlyingTrade) Descriptor() ([]byte, []int)
    func (x *StreamIndexServiceUnderlyingTrade) GetDatetime() *timestamp.Timestamp
    func (x *StreamIndexServiceUnderlyingTrade) GetExchange() string
    func (x *StreamIndexServiceUnderlyingTrade) GetId() string
    func (x *StreamIndexServiceUnderlyingTrade) GetVolume() float64
    func (*StreamIndexServiceUnderlyingTrade) ProtoMessage()
    func (x *StreamIndexServiceUnderlyingTrade) ProtoReflect() protoreflect.Message
    func (x *StreamIndexServiceUnderlyingTrade) Reset()
    func (x *StreamIndexServiceUnderlyingTrade) String() string

Package files

commodity.pb.go request.pb.go response.pb.go

Variables

Enum value maps for StreamIndexCommodity.

var (
    StreamIndexCommodity_name = map[string{
        0: "SIC_UNKNOWN",
        1: "SIC_REAL_TIME",
        2: "SIC_DAILY_FIXING",
    }
    StreamIndexCommodity_value = map[int32{
        "SIC_UNKNOWN":      0,
        "SIC_REAL_TIME":    1,
        "SIC_DAILY_FIXING": 2,
    }
)
var File_sdk_stream_index_v1_commodity_proto FileDescriptor
var File_sdk_stream_index_v1_request_proto FileDescriptor
var File_sdk_stream_index_v1_response_proto FileDescriptor

type StreamIndexCommodity

StreamIndexCommodity allows selecting kind of index update wanted.

type StreamIndexCommodity int32
const (
    // Unknown commodity.
    StreamIndexCommodity_SIC_UNKNOWN StreamIndexCommodity = 0
    // REAL_TIME commodity.
    StreamIndexCommodity_SIC_REAL_TIME StreamIndexCommodity = 1
    // DAILY_FIXING commodity.
    StreamIndexCommodity_SIC_DAILY_FIXING StreamIndexCommodity = 2
)

func (StreamIndexCommodity) Descriptor

func (StreamIndexCommodity) Descriptor() EnumDescriptor

func (StreamIndexCommodity) Enum

func (x StreamIndexCommodity) Enum() *StreamIndexCommodity

func (StreamIndexCommodity) EnumDescriptor

func (StreamIndexCommodity) EnumDescriptor() ([]int)

Deprecated: Use StreamIndexCommodity.Descriptor instead.

func (StreamIndexCommodity) Number

func (x StreamIndexCommodity) Number() EnumNumber

func (StreamIndexCommodity) String

func (x StreamIndexCommodity) String() string

func (StreamIndexCommodity) Type

func (StreamIndexCommodity) Type() EnumType

type StreamIndexServiceRequestV1

StreamIndexServiceRequestV1

type StreamIndexServiceRequestV1 struct {

    // Index code.
    IndexCode string `protobuf:"bytes,1,opt,name=index_code,json=indexCode,proto3" json:"index_code,omitempty"`
    // Enum indicating type of feed.
    Commodities []StreamIndexCommodity `protobuf:"varint,2,rep,packed,name=commodities,proto3,enum=kaikosdk.StreamIndexCommodity" json:"commodities,omitempty"`
    // Data interval. For historical data only.
    Interval *core.DataInterval `protobuf:"bytes,3,opt,name=interval,proto3" json:"interval,omitempty"`
    // contains filtered or unexported fields
}

func (*StreamIndexServiceRequestV1) Descriptor

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

Deprecated: Use StreamIndexServiceRequestV1.ProtoReflect.Descriptor instead.

func (*StreamIndexServiceRequestV1) GetCommodities

func (x *StreamIndexServiceRequestV1) GetCommodities() []StreamIndexCommodity

func (*StreamIndexServiceRequestV1) GetIndexCode

func (x *StreamIndexServiceRequestV1) GetIndexCode() string

func (*StreamIndexServiceRequestV1) GetInterval

func (x *StreamIndexServiceRequestV1) GetInterval() *core.DataInterval

func (*StreamIndexServiceRequestV1) ProtoMessage

func (*StreamIndexServiceRequestV1) ProtoMessage()

func (*StreamIndexServiceRequestV1) ProtoReflect

func (x *StreamIndexServiceRequestV1) ProtoReflect() Message

func (*StreamIndexServiceRequestV1) Reset

func (x *StreamIndexServiceRequestV1) Reset()

func (*StreamIndexServiceRequestV1) String

func (x *StreamIndexServiceRequestV1) String() string

type StreamIndexServiceResponseBaseAsset

StreamIndexServiceResponseBaseAsset is base asset involved in computation.

type StreamIndexServiceResponseBaseAsset struct {

    // Asset.
    Asset string `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"`
    // Weight.
    Weight float64 `protobuf:"fixed64,2,opt,name=weight,proto3" json:"weight,omitempty"`
    // contains filtered or unexported fields
}

func (*StreamIndexServiceResponseBaseAsset) Descriptor

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

Deprecated: Use StreamIndexServiceResponseBaseAsset.ProtoReflect.Descriptor instead.

func (*StreamIndexServiceResponseBaseAsset) GetAsset

func (x *StreamIndexServiceResponseBaseAsset) GetAsset() string

func (*StreamIndexServiceResponseBaseAsset) GetWeight

func (x *StreamIndexServiceResponseBaseAsset) GetWeight() float64

func (*StreamIndexServiceResponseBaseAsset) ProtoMessage

func (*StreamIndexServiceResponseBaseAsset) ProtoMessage()

func (*StreamIndexServiceResponseBaseAsset) ProtoReflect

func (x *StreamIndexServiceResponseBaseAsset) ProtoReflect() Message

func (*StreamIndexServiceResponseBaseAsset) Reset

func (x *StreamIndexServiceResponseBaseAsset) Reset()

func (*StreamIndexServiceResponseBaseAsset) String

func (x *StreamIndexServiceResponseBaseAsset) String() string

type StreamIndexServiceResponseInstruments

StreamIndexServiceResponseInstruments is computation result by instruments.

type StreamIndexServiceResponseInstruments struct {

    // Partition.
    Partition string `protobuf:"bytes,1,opt,name=partition,proto3" json:"partition,omitempty"`
    // Price.
    Price float64 `protobuf:"fixed64,2,opt,name=price,proto3" json:"price,omitempty"`
    // Volume.
    Volume float64 `protobuf:"fixed64,3,opt,name=volume,proto3" json:"volume,omitempty"`
    // Count.
    Count uint64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
    // Underlying trade for the partition.
    UnderlyingTrade *StreamIndexServiceUnderlyingTrade `protobuf:"bytes,5,opt,name=underlying_trade,json=underlyingTrade,proto3" json:"underlying_trade,omitempty"`
    // contains filtered or unexported fields
}

func (*StreamIndexServiceResponseInstruments) Descriptor

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

Deprecated: Use StreamIndexServiceResponseInstruments.ProtoReflect.Descriptor instead.

func (*StreamIndexServiceResponseInstruments) GetCount

func (x *StreamIndexServiceResponseInstruments) GetCount() uint64

func (*StreamIndexServiceResponseInstruments) GetPartition

func (x *StreamIndexServiceResponseInstruments) GetPartition() string

func (*StreamIndexServiceResponseInstruments) GetPrice

func (x *StreamIndexServiceResponseInstruments) GetPrice() float64

func (*StreamIndexServiceResponseInstruments) GetUnderlyingTrade

func (x *StreamIndexServiceResponseInstruments) GetUnderlyingTrade() *StreamIndexServiceUnderlyingTrade

func (*StreamIndexServiceResponseInstruments) GetVolume

func (x *StreamIndexServiceResponseInstruments) GetVolume() float64

func (*StreamIndexServiceResponseInstruments) ProtoMessage

func (*StreamIndexServiceResponseInstruments) ProtoMessage()

func (*StreamIndexServiceResponseInstruments) ProtoReflect

func (x *StreamIndexServiceResponseInstruments) ProtoReflect() Message

func (*StreamIndexServiceResponseInstruments) Reset

func (x *StreamIndexServiceResponseInstruments) Reset()

func (*StreamIndexServiceResponseInstruments) String

func (x *StreamIndexServiceResponseInstruments) String() string

type StreamIndexServiceResponsePairs

StreamIndexServiceResponsePairs is computation result by pairs.

type StreamIndexServiceResponsePairs struct {

    // Pair.
    Pair string `protobuf:"bytes,1,opt,name=pair,proto3" json:"pair,omitempty"`
    // Weight (for multiple assets indices).
    Weight float64 `protobuf:"fixed64,2,opt,name=weight,proto3" json:"weight,omitempty"`
    // Detailed computation by instruments.
    Instruments []*StreamIndexServiceResponseInstruments `protobuf:"bytes,3,rep,name=instruments,proto3" json:"instruments,omitempty"`
    // contains filtered or unexported fields
}

func (*StreamIndexServiceResponsePairs) Descriptor

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

Deprecated: Use StreamIndexServiceResponsePairs.ProtoReflect.Descriptor instead.

func (*StreamIndexServiceResponsePairs) GetInstruments

func (x *StreamIndexServiceResponsePairs) GetInstruments() []*StreamIndexServiceResponseInstruments

func (*StreamIndexServiceResponsePairs) GetPair

func (x *StreamIndexServiceResponsePairs) GetPair() string

func (*StreamIndexServiceResponsePairs) GetWeight

func (x *StreamIndexServiceResponsePairs) GetWeight() float64

func (*StreamIndexServiceResponsePairs) ProtoMessage

func (*StreamIndexServiceResponsePairs) ProtoMessage()

func (*StreamIndexServiceResponsePairs) ProtoReflect

func (x *StreamIndexServiceResponsePairs) ProtoReflect() Message

func (*StreamIndexServiceResponsePairs) Reset

func (x *StreamIndexServiceResponsePairs) Reset()

func (*StreamIndexServiceResponsePairs) String

func (x *StreamIndexServiceResponsePairs) String() string

type StreamIndexServiceResponsePercentage

StreamIndexServiceResponsePercentage is computation result by percentage.

type StreamIndexServiceResponsePercentage struct {

    // Percentage.
    Percentage float64 `protobuf:"fixed64,1,opt,name=percentage,proto3" json:"percentage,omitempty"`
    // Price computed for the whole percentage.
    Price float64 `protobuf:"fixed64,2,opt,name=price,proto3" json:"price,omitempty"`
    // Detailed computation by pairs.
    Pairs []*StreamIndexServiceResponsePairs `protobuf:"bytes,3,rep,name=pairs,proto3" json:"pairs,omitempty"`
    // contains filtered or unexported fields
}

func (*StreamIndexServiceResponsePercentage) Descriptor

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

Deprecated: Use StreamIndexServiceResponsePercentage.ProtoReflect.Descriptor instead.

func (*StreamIndexServiceResponsePercentage) GetPairs

func (x *StreamIndexServiceResponsePercentage) GetPairs() []*StreamIndexServiceResponsePairs

func (*StreamIndexServiceResponsePercentage) GetPercentage

func (x *StreamIndexServiceResponsePercentage) GetPercentage() float64

func (*StreamIndexServiceResponsePercentage) GetPrice

func (x *StreamIndexServiceResponsePercentage) GetPrice() float64

func (*StreamIndexServiceResponsePercentage) ProtoMessage

func (*StreamIndexServiceResponsePercentage) ProtoMessage()

func (*StreamIndexServiceResponsePercentage) ProtoReflect

func (x *StreamIndexServiceResponsePercentage) ProtoReflect() Message

func (*StreamIndexServiceResponsePercentage) Reset

func (x *StreamIndexServiceResponsePercentage) Reset()

func (*StreamIndexServiceResponsePercentage) String

func (x *StreamIndexServiceResponsePercentage) String() string

type StreamIndexServiceResponseV1

StreamIndexServiceResponseV1

type StreamIndexServiceResponseV1 struct {

    // Index code.
    IndexCode string `protobuf:"bytes,1,opt,name=index_code,json=indexCode,proto3" json:"index_code,omitempty"`
    // Event type.
    Commodity StreamIndexCommodity `protobuf:"varint,2,opt,name=commodity,proto3,enum=kaikosdk.StreamIndexCommodity" json:"commodity,omitempty"`
    // Data interval.
    Interval *core.DataInterval `protobuf:"bytes,3,opt,name=interval,proto3" json:"interval,omitempty"`
    // Quote.
    Quote string `protobuf:"bytes,4,opt,name=quote,proto3" json:"quote,omitempty"`
    // Bases.
    Bases []*StreamIndexServiceResponseBaseAsset `protobuf:"bytes,5,rep,name=bases,proto3" json:"bases,omitempty"`
    // Exchanges.
    Exchanges []string `protobuf:"bytes,6,rep,name=exchanges,proto3" json:"exchanges,omitempty"`
    // Detailed computation by percentage.
    Percentages []*StreamIndexServiceResponsePercentage `protobuf:"bytes,7,rep,name=percentages,proto3" json:"percentages,omitempty"`
    // Event generation timestamp (event created by Kaiko), after normalization.
    TsEvent *Timestamp `protobuf:"bytes,8,opt,name=ts_event,json=tsEvent,proto3" json:"ts_event,omitempty"`
    // Sequence ID for event. Sortable in lexicographic order.
    SequenceId string `protobuf:"bytes,9,opt,name=sequence_id,json=sequenceId,proto3" json:"sequence_id,omitempty"`
    // Last internal ingest date used for computation. Useful for replication purposes.
    LastIngestTime *Timestamp `protobuf:"bytes,10,opt,name=last_ingest_time,json=lastIngestTime,proto3" json:"last_ingest_time,omitempty"`
    // contains filtered or unexported fields
}

func (*StreamIndexServiceResponseV1) Descriptor

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

Deprecated: Use StreamIndexServiceResponseV1.ProtoReflect.Descriptor instead.

func (*StreamIndexServiceResponseV1) GetBases

func (x *StreamIndexServiceResponseV1) GetBases() []*StreamIndexServiceResponseBaseAsset

func (*StreamIndexServiceResponseV1) GetCommodity

func (x *StreamIndexServiceResponseV1) GetCommodity() StreamIndexCommodity

func (*StreamIndexServiceResponseV1) GetExchanges

func (x *StreamIndexServiceResponseV1) GetExchanges() []string

func (*StreamIndexServiceResponseV1) GetIndexCode

func (x *StreamIndexServiceResponseV1) GetIndexCode() string

func (*StreamIndexServiceResponseV1) GetInterval

func (x *StreamIndexServiceResponseV1) GetInterval() *core.DataInterval

func (*StreamIndexServiceResponseV1) GetLastIngestTime

func (x *StreamIndexServiceResponseV1) GetLastIngestTime() *Timestamp

func (*StreamIndexServiceResponseV1) GetPercentages

func (x *StreamIndexServiceResponseV1) GetPercentages() []*StreamIndexServiceResponsePercentage

func (*StreamIndexServiceResponseV1) GetQuote

func (x *StreamIndexServiceResponseV1) GetQuote() string

func (*StreamIndexServiceResponseV1) GetSequenceId

func (x *StreamIndexServiceResponseV1) GetSequenceId() string

func (*StreamIndexServiceResponseV1) GetTsEvent

func (x *StreamIndexServiceResponseV1) GetTsEvent() *Timestamp

func (*StreamIndexServiceResponseV1) ProtoMessage

func (*StreamIndexServiceResponseV1) ProtoMessage()

func (*StreamIndexServiceResponseV1) ProtoReflect

func (x *StreamIndexServiceResponseV1) ProtoReflect() Message

func (*StreamIndexServiceResponseV1) Reset

func (x *StreamIndexServiceResponseV1) Reset()

func (*StreamIndexServiceResponseV1) String

func (x *StreamIndexServiceResponseV1) String() string

type StreamIndexServiceUnderlyingTrade

StreamIndexServiceUnderlyingTrade is underlying trade information for a partition.

type StreamIndexServiceUnderlyingTrade struct {

    // Amount / quantity of asset bought or sold, displayed in base currency.
    Volume float64 `protobuf:"fixed64,1,opt,name=volume,proto3" json:"volume,omitempty"`
    // Instrument exchange code, for example "cbse" (Coinbase).
    Exchange string `protobuf:"bytes,2,opt,name=exchange,proto3" json:"exchange,omitempty"`
    // Trade ID, empty string when not present.
    Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
    // Date of trade.
    Datetime *Timestamp `protobuf:"bytes,4,opt,name=datetime,proto3" json:"datetime,omitempty"`
    // contains filtered or unexported fields
}

func (*StreamIndexServiceUnderlyingTrade) Descriptor

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

Deprecated: Use StreamIndexServiceUnderlyingTrade.ProtoReflect.Descriptor instead.

func (*StreamIndexServiceUnderlyingTrade) GetDatetime

func (x *StreamIndexServiceUnderlyingTrade) GetDatetime() *Timestamp

func (*StreamIndexServiceUnderlyingTrade) GetExchange

func (x *StreamIndexServiceUnderlyingTrade) GetExchange() string

func (*StreamIndexServiceUnderlyingTrade) GetId

func (x *StreamIndexServiceUnderlyingTrade) GetId() string

func (*StreamIndexServiceUnderlyingTrade) GetVolume

func (x *StreamIndexServiceUnderlyingTrade) GetVolume() float64

func (*StreamIndexServiceUnderlyingTrade) ProtoMessage

func (*StreamIndexServiceUnderlyingTrade) ProtoMessage()

func (*StreamIndexServiceUnderlyingTrade) ProtoReflect

func (x *StreamIndexServiceUnderlyingTrade) ProtoReflect() Message

func (*StreamIndexServiceUnderlyingTrade) Reset

func (x *StreamIndexServiceUnderlyingTrade) Reset()

func (*StreamIndexServiceUnderlyingTrade) String

func (x *StreamIndexServiceUnderlyingTrade) String() string