...

Package exotic_indices_v1

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

Overview ▾

Index ▾

Variables
type StreamExoticIndicesPosition
    func (StreamExoticIndicesPosition) Descriptor() protoreflect.EnumDescriptor
    func (x StreamExoticIndicesPosition) Enum() *StreamExoticIndicesPosition
    func (StreamExoticIndicesPosition) EnumDescriptor() ([]byte, []int)
    func (x StreamExoticIndicesPosition) Number() protoreflect.EnumNumber
    func (x StreamExoticIndicesPosition) String() string
    func (StreamExoticIndicesPosition) Type() protoreflect.EnumType
type StreamExoticIndicesServiceRequestV1
    func (*StreamExoticIndicesServiceRequestV1) Descriptor() ([]byte, []int)
    func (x *StreamExoticIndicesServiceRequestV1) GetCommodities() []index_v1.StreamIndexCommodity
    func (x *StreamExoticIndicesServiceRequestV1) GetIndexCode() string
    func (x *StreamExoticIndicesServiceRequestV1) GetInterval() *core.DataInterval
    func (*StreamExoticIndicesServiceRequestV1) ProtoMessage()
    func (x *StreamExoticIndicesServiceRequestV1) ProtoReflect() protoreflect.Message
    func (x *StreamExoticIndicesServiceRequestV1) Reset()
    func (x *StreamExoticIndicesServiceRequestV1) String() string
type StreamExoticIndicesServiceResponseComposition
    func (*StreamExoticIndicesServiceResponseComposition) Descriptor() ([]byte, []int)
    func (x *StreamExoticIndicesServiceResponseComposition) GetBase() string
    func (x *StreamExoticIndicesServiceResponseComposition) GetCurrencyConversion() string
    func (x *StreamExoticIndicesServiceResponseComposition) GetQuote() string
    func (x *StreamExoticIndicesServiceResponseComposition) GetTsEvent() *timestamp.Timestamp
    func (x *StreamExoticIndicesServiceResponseComposition) GetUnderlyingInstrument() string
    func (*StreamExoticIndicesServiceResponseComposition) ProtoMessage()
    func (x *StreamExoticIndicesServiceResponseComposition) ProtoReflect() protoreflect.Message
    func (x *StreamExoticIndicesServiceResponseComposition) Reset()
    func (x *StreamExoticIndicesServiceResponseComposition) String() string
type StreamExoticIndicesServiceResponsePair
    func (*StreamExoticIndicesServiceResponsePair) Descriptor() ([]byte, []int)
    func (x *StreamExoticIndicesServiceResponsePair) GetCappingFactor() float64
    func (x *StreamExoticIndicesServiceResponsePair) GetCurrencyConversionFactor() float64
    func (x *StreamExoticIndicesServiceResponsePair) GetPosition() StreamExoticIndicesPosition
    func (x *StreamExoticIndicesServiceResponsePair) GetUnderlyingInstrument() string
    func (x *StreamExoticIndicesServiceResponsePair) GetUnderlyingPrice() *wrappers.DoubleValue
    func (x *StreamExoticIndicesServiceResponsePair) GetWeightingFactor() float64
    func (*StreamExoticIndicesServiceResponsePair) ProtoMessage()
    func (x *StreamExoticIndicesServiceResponsePair) ProtoReflect() protoreflect.Message
    func (x *StreamExoticIndicesServiceResponsePair) Reset()
    func (x *StreamExoticIndicesServiceResponsePair) String() string
type StreamExoticIndicesServiceResponsePrices
    func (*StreamExoticIndicesServiceResponsePrices) Descriptor() ([]byte, []int)
    func (x *StreamExoticIndicesServiceResponsePrices) GetDivisor() float64
    func (x *StreamExoticIndicesServiceResponsePrices) GetIndexValue() float64
    func (x *StreamExoticIndicesServiceResponsePrices) GetPairs() []*StreamExoticIndicesServiceResponsePair
    func (*StreamExoticIndicesServiceResponsePrices) ProtoMessage()
    func (x *StreamExoticIndicesServiceResponsePrices) ProtoReflect() protoreflect.Message
    func (x *StreamExoticIndicesServiceResponsePrices) Reset()
    func (x *StreamExoticIndicesServiceResponsePrices) String() string
type StreamExoticIndicesServiceResponseV1
    func (*StreamExoticIndicesServiceResponseV1) Descriptor() ([]byte, []int)
    func (x *StreamExoticIndicesServiceResponseV1) GetCommodity() index_v1.StreamIndexCommodity
    func (x *StreamExoticIndicesServiceResponseV1) GetCompositions() []*StreamExoticIndicesServiceResponseComposition
    func (x *StreamExoticIndicesServiceResponseV1) GetIndexCode() string
    func (x *StreamExoticIndicesServiceResponseV1) GetInterval() *core.DataInterval
    func (x *StreamExoticIndicesServiceResponseV1) GetMainQuote() string
    func (x *StreamExoticIndicesServiceResponseV1) GetPrice() *StreamExoticIndicesServiceResponsePrices
    func (x *StreamExoticIndicesServiceResponseV1) GetTsCompute() *timestamp.Timestamp
    func (x *StreamExoticIndicesServiceResponseV1) GetTsEvent() *timestamp.Timestamp
    func (*StreamExoticIndicesServiceResponseV1) ProtoMessage()
    func (x *StreamExoticIndicesServiceResponseV1) ProtoReflect() protoreflect.Message
    func (x *StreamExoticIndicesServiceResponseV1) Reset()
    func (x *StreamExoticIndicesServiceResponseV1) String() string

Package files

request.pb.go response.pb.go

Variables

Enum value maps for StreamExoticIndicesPosition.

var (
    StreamExoticIndicesPosition_name = map[string{
        0: "SEIP_POSITION_UNKNOWN",
        1: "SEIP_LONG",
        2: "SEIP_SHORT",
    }
    StreamExoticIndicesPosition_value = map[int32{
        "SEIP_POSITION_UNKNOWN": 0,
        "SEIP_LONG":             1,
        "SEIP_SHORT":            2,
    }
)
var File_sdk_stream_exotic_indices_v1_request_proto FileDescriptor
var File_sdk_stream_exotic_indices_v1_response_proto FileDescriptor

type StreamExoticIndicesPosition

Position is the position of the indice

type StreamExoticIndicesPosition int32
const (
    // Position unknown.
    StreamExoticIndicesPosition_SEIP_POSITION_UNKNOWN StreamExoticIndicesPosition = 0
    // Long position.
    StreamExoticIndicesPosition_SEIP_LONG StreamExoticIndicesPosition = 1
    // Short position.
    StreamExoticIndicesPosition_SEIP_SHORT StreamExoticIndicesPosition = 2
)

func (StreamExoticIndicesPosition) Descriptor

func (StreamExoticIndicesPosition) Descriptor() EnumDescriptor

func (StreamExoticIndicesPosition) Enum

func (x StreamExoticIndicesPosition) Enum() *StreamExoticIndicesPosition

func (StreamExoticIndicesPosition) EnumDescriptor

func (StreamExoticIndicesPosition) EnumDescriptor() ([]int)

Deprecated: Use StreamExoticIndicesPosition.Descriptor instead.

func (StreamExoticIndicesPosition) Number

func (x StreamExoticIndicesPosition) Number() EnumNumber

func (StreamExoticIndicesPosition) String

func (x StreamExoticIndicesPosition) String() string

func (StreamExoticIndicesPosition) Type

func (StreamExoticIndicesPosition) Type() EnumType

type StreamExoticIndicesServiceRequestV1

StreamIndexServiceRequestV1

type StreamExoticIndicesServiceRequestV1 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 []index_v1.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 (*StreamExoticIndicesServiceRequestV1) Descriptor

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

Deprecated: Use StreamExoticIndicesServiceRequestV1.ProtoReflect.Descriptor instead.

func (*StreamExoticIndicesServiceRequestV1) GetCommodities

func (x *StreamExoticIndicesServiceRequestV1) GetCommodities() []index_v1.StreamIndexCommodity

func (*StreamExoticIndicesServiceRequestV1) GetIndexCode

func (x *StreamExoticIndicesServiceRequestV1) GetIndexCode() string

func (*StreamExoticIndicesServiceRequestV1) GetInterval

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

func (*StreamExoticIndicesServiceRequestV1) ProtoMessage

func (*StreamExoticIndicesServiceRequestV1) ProtoMessage()

func (*StreamExoticIndicesServiceRequestV1) ProtoReflect

func (x *StreamExoticIndicesServiceRequestV1) ProtoReflect() Message

func (*StreamExoticIndicesServiceRequestV1) Reset

func (x *StreamExoticIndicesServiceRequestV1) Reset()

func (*StreamExoticIndicesServiceRequestV1) String

func (x *StreamExoticIndicesServiceRequestV1) String() string

type StreamExoticIndicesServiceResponseComposition

StreamExoticIndicesServiceResponseComposition is the composition used to compute the index.

type StreamExoticIndicesServiceResponseComposition struct {

    // Underlying rate of the indices.
    UnderlyingInstrument string `protobuf:"bytes,1,opt,name=underlying_instrument,json=underlyingInstrument,proto3" json:"underlying_instrument,omitempty"`
    // Base.
    Base string `protobuf:"bytes,2,opt,name=base,proto3" json:"base,omitempty"`
    // Quote.
    Quote string `protobuf:"bytes,3,opt,name=quote,proto3" json:"quote,omitempty"`
    // Currency conversion.
    CurrencyConversion string `protobuf:"bytes,6,opt,name=currency_conversion,json=currencyConversion,proto3" json:"currency_conversion,omitempty"`
    // Timestamp (tick) of underlying rate ts.
    TsEvent *Timestamp `protobuf:"bytes,7,opt,name=ts_event,json=tsEvent,proto3" json:"ts_event,omitempty"`
    // contains filtered or unexported fields
}

func (*StreamExoticIndicesServiceResponseComposition) Descriptor

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

Deprecated: Use StreamExoticIndicesServiceResponseComposition.ProtoReflect.Descriptor instead.

func (*StreamExoticIndicesServiceResponseComposition) GetBase

func (x *StreamExoticIndicesServiceResponseComposition) GetBase() string

func (*StreamExoticIndicesServiceResponseComposition) GetCurrencyConversion

func (x *StreamExoticIndicesServiceResponseComposition) GetCurrencyConversion() string

func (*StreamExoticIndicesServiceResponseComposition) GetQuote

func (x *StreamExoticIndicesServiceResponseComposition) GetQuote() string

func (*StreamExoticIndicesServiceResponseComposition) GetTsEvent

func (x *StreamExoticIndicesServiceResponseComposition) GetTsEvent() *Timestamp

func (*StreamExoticIndicesServiceResponseComposition) GetUnderlyingInstrument

func (x *StreamExoticIndicesServiceResponseComposition) GetUnderlyingInstrument() string

func (*StreamExoticIndicesServiceResponseComposition) ProtoMessage

func (*StreamExoticIndicesServiceResponseComposition) ProtoMessage()

func (*StreamExoticIndicesServiceResponseComposition) ProtoReflect

func (x *StreamExoticIndicesServiceResponseComposition) ProtoReflect() Message

func (*StreamExoticIndicesServiceResponseComposition) Reset

func (x *StreamExoticIndicesServiceResponseComposition) Reset()

func (*StreamExoticIndicesServiceResponseComposition) String

func (x *StreamExoticIndicesServiceResponseComposition) String() string

type StreamExoticIndicesServiceResponsePair

StreamExoticIndicesServiceResponsePair is the pair information for the rates used

type StreamExoticIndicesServiceResponsePair struct {

    // Underlying instrument of the indices.
    UnderlyingInstrument string `protobuf:"bytes,1,opt,name=underlying_instrument,json=underlyingInstrument,proto3" json:"underlying_instrument,omitempty"`
    // Underlying price of the instrument.
    UnderlyingPrice *DoubleValue `protobuf:"bytes,2,opt,name=underlying_price,json=underlyingPrice,proto3" json:"underlying_price,omitempty"`
    // Weighting factor of the instrument.
    WeightingFactor float64 `protobuf:"fixed64,3,opt,name=weighting_factor,json=weightingFactor,proto3" json:"weighting_factor,omitempty"`
    // Capping factor of the instrument.
    CappingFactor float64 `protobuf:"fixed64,4,opt,name=capping_factor,json=cappingFactor,proto3" json:"capping_factor,omitempty"`
    // Currency conversion factor of the instrument.
    CurrencyConversionFactor float64 `protobuf:"fixed64,5,opt,name=currency_conversion_factor,json=currencyConversionFactor,proto3" json:"currency_conversion_factor,omitempty"`
    // Position of the instrument.
    Position StreamExoticIndicesPosition `protobuf:"varint,6,opt,name=position,proto3,enum=kaikosdk.StreamExoticIndicesPosition" json:"position,omitempty"`
    // contains filtered or unexported fields
}

func (*StreamExoticIndicesServiceResponsePair) Descriptor

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

Deprecated: Use StreamExoticIndicesServiceResponsePair.ProtoReflect.Descriptor instead.

func (*StreamExoticIndicesServiceResponsePair) GetCappingFactor

func (x *StreamExoticIndicesServiceResponsePair) GetCappingFactor() float64

func (*StreamExoticIndicesServiceResponsePair) GetCurrencyConversionFactor

func (x *StreamExoticIndicesServiceResponsePair) GetCurrencyConversionFactor() float64

func (*StreamExoticIndicesServiceResponsePair) GetPosition

func (x *StreamExoticIndicesServiceResponsePair) GetPosition() StreamExoticIndicesPosition

func (*StreamExoticIndicesServiceResponsePair) GetUnderlyingInstrument

func (x *StreamExoticIndicesServiceResponsePair) GetUnderlyingInstrument() string

func (*StreamExoticIndicesServiceResponsePair) GetUnderlyingPrice

func (x *StreamExoticIndicesServiceResponsePair) GetUnderlyingPrice() *DoubleValue

func (*StreamExoticIndicesServiceResponsePair) GetWeightingFactor

func (x *StreamExoticIndicesServiceResponsePair) GetWeightingFactor() float64

func (*StreamExoticIndicesServiceResponsePair) ProtoMessage

func (*StreamExoticIndicesServiceResponsePair) ProtoMessage()

func (*StreamExoticIndicesServiceResponsePair) ProtoReflect

func (x *StreamExoticIndicesServiceResponsePair) ProtoReflect() Message

func (*StreamExoticIndicesServiceResponsePair) Reset

func (x *StreamExoticIndicesServiceResponsePair) Reset()

func (*StreamExoticIndicesServiceResponsePair) String

func (x *StreamExoticIndicesServiceResponsePair) String() string

type StreamExoticIndicesServiceResponsePrices

StreamExoticIndicesServiceResponsePrices is the prices informations on the pair used

type StreamExoticIndicesServiceResponsePrices struct {

    // Index value.
    IndexValue float64 `protobuf:"fixed64,1,opt,name=index_value,json=indexValue,proto3" json:"index_value,omitempty"`
    // Divisor.
    Divisor float64 `protobuf:"fixed64,2,opt,name=divisor,proto3" json:"divisor,omitempty"`
    // StreamExoticIndicesServiceResponsePair is the pair information.
    Pairs []*StreamExoticIndicesServiceResponsePair `protobuf:"bytes,3,rep,name=pairs,proto3" json:"pairs,omitempty"`
    // contains filtered or unexported fields
}

func (*StreamExoticIndicesServiceResponsePrices) Descriptor

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

Deprecated: Use StreamExoticIndicesServiceResponsePrices.ProtoReflect.Descriptor instead.

func (*StreamExoticIndicesServiceResponsePrices) GetDivisor

func (x *StreamExoticIndicesServiceResponsePrices) GetDivisor() float64

func (*StreamExoticIndicesServiceResponsePrices) GetIndexValue

func (x *StreamExoticIndicesServiceResponsePrices) GetIndexValue() float64

func (*StreamExoticIndicesServiceResponsePrices) GetPairs

func (x *StreamExoticIndicesServiceResponsePrices) GetPairs() []*StreamExoticIndicesServiceResponsePair

func (*StreamExoticIndicesServiceResponsePrices) ProtoMessage

func (*StreamExoticIndicesServiceResponsePrices) ProtoMessage()

func (*StreamExoticIndicesServiceResponsePrices) ProtoReflect

func (x *StreamExoticIndicesServiceResponsePrices) ProtoReflect() Message

func (*StreamExoticIndicesServiceResponsePrices) Reset

func (x *StreamExoticIndicesServiceResponsePrices) Reset()

func (*StreamExoticIndicesServiceResponsePrices) String

func (x *StreamExoticIndicesServiceResponsePrices) String() string

type StreamExoticIndicesServiceResponseV1

StreamIndexServiceResponseV1 is the response for the exotic indices.

type StreamExoticIndicesServiceResponseV1 struct {

    // Event type.
    Commodity index_v1.StreamIndexCommodity `protobuf:"varint,1,opt,name=commodity,proto3,enum=kaikosdk.StreamIndexCommodity" json:"commodity,omitempty"`
    // Index code.
    IndexCode string `protobuf:"bytes,2,opt,name=index_code,json=indexCode,proto3" json:"index_code,omitempty"`
    // Data interval.
    Interval *core.DataInterval `protobuf:"bytes,3,opt,name=interval,proto3" json:"interval,omitempty"`
    // Quote.
    MainQuote string `protobuf:"bytes,4,opt,name=main_quote,json=mainQuote,proto3" json:"main_quote,omitempty"`
    // List of indices compositions.
    Compositions []*StreamExoticIndicesServiceResponseComposition `protobuf:"bytes,5,rep,name=compositions,proto3" json:"compositions,omitempty"`
    // Price of the indice.
    Price *StreamExoticIndicesServiceResponsePrices `protobuf:"bytes,6,opt,name=price,proto3" json:"price,omitempty"`
    // Event generation timestamp (event created by Kaiko).
    TsEvent *Timestamp `protobuf:"bytes,7,opt,name=ts_event,json=tsEvent,proto3" json:"ts_event,omitempty"`
    // Timestamp of computation.
    TsCompute *Timestamp `protobuf:"bytes,8,opt,name=ts_compute,json=tsCompute,proto3" json:"ts_compute,omitempty"`
    // contains filtered or unexported fields
}

func (*StreamExoticIndicesServiceResponseV1) Descriptor

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

Deprecated: Use StreamExoticIndicesServiceResponseV1.ProtoReflect.Descriptor instead.

func (*StreamExoticIndicesServiceResponseV1) GetCommodity

func (x *StreamExoticIndicesServiceResponseV1) GetCommodity() index_v1.StreamIndexCommodity

func (*StreamExoticIndicesServiceResponseV1) GetCompositions

func (x *StreamExoticIndicesServiceResponseV1) GetCompositions() []*StreamExoticIndicesServiceResponseComposition

func (*StreamExoticIndicesServiceResponseV1) GetIndexCode

func (x *StreamExoticIndicesServiceResponseV1) GetIndexCode() string

func (*StreamExoticIndicesServiceResponseV1) GetInterval

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

func (*StreamExoticIndicesServiceResponseV1) GetMainQuote

func (x *StreamExoticIndicesServiceResponseV1) GetMainQuote() string

func (*StreamExoticIndicesServiceResponseV1) GetPrice

func (x *StreamExoticIndicesServiceResponseV1) GetPrice() *StreamExoticIndicesServiceResponsePrices

func (*StreamExoticIndicesServiceResponseV1) GetTsCompute

func (x *StreamExoticIndicesServiceResponseV1) GetTsCompute() *Timestamp

func (*StreamExoticIndicesServiceResponseV1) GetTsEvent

func (x *StreamExoticIndicesServiceResponseV1) GetTsEvent() *Timestamp

func (*StreamExoticIndicesServiceResponseV1) ProtoMessage

func (*StreamExoticIndicesServiceResponseV1) ProtoMessage()

func (*StreamExoticIndicesServiceResponseV1) ProtoReflect

func (x *StreamExoticIndicesServiceResponseV1) ProtoReflect() Message

func (*StreamExoticIndicesServiceResponseV1) Reset

func (x *StreamExoticIndicesServiceResponseV1) Reset()

func (*StreamExoticIndicesServiceResponseV1) String

func (x *StreamExoticIndicesServiceResponseV1) String() string