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
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() EnumDescriptor
func (x StreamExoticIndicesPosition) Enum() *StreamExoticIndicesPosition
func (StreamExoticIndicesPosition) EnumDescriptor() ([]int)
Deprecated: Use StreamExoticIndicesPosition.Descriptor instead.
func (x StreamExoticIndicesPosition) Number() EnumNumber
func (x StreamExoticIndicesPosition) String() string
func (StreamExoticIndicesPosition) Type() EnumType
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() ([]int)
Deprecated: Use StreamExoticIndicesServiceRequestV1.ProtoReflect.Descriptor instead.
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() Message
func (x *StreamExoticIndicesServiceRequestV1) Reset()
func (x *StreamExoticIndicesServiceRequestV1) String() string
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() ([]int)
Deprecated: Use StreamExoticIndicesServiceResponseComposition.ProtoReflect.Descriptor instead.
func (x *StreamExoticIndicesServiceResponseComposition) GetBase() string
func (x *StreamExoticIndicesServiceResponseComposition) GetCurrencyConversion() string
func (x *StreamExoticIndicesServiceResponseComposition) GetQuote() string
func (x *StreamExoticIndicesServiceResponseComposition) GetTsEvent() *Timestamp
func (x *StreamExoticIndicesServiceResponseComposition) GetUnderlyingInstrument() string
func (*StreamExoticIndicesServiceResponseComposition) ProtoMessage()
func (x *StreamExoticIndicesServiceResponseComposition) ProtoReflect() Message
func (x *StreamExoticIndicesServiceResponseComposition) Reset()
func (x *StreamExoticIndicesServiceResponseComposition) String() string
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() ([]int)
Deprecated: Use StreamExoticIndicesServiceResponsePair.ProtoReflect.Descriptor instead.
func (x *StreamExoticIndicesServiceResponsePair) GetCappingFactor() float64
func (x *StreamExoticIndicesServiceResponsePair) GetCurrencyConversionFactor() float64
func (x *StreamExoticIndicesServiceResponsePair) GetPosition() StreamExoticIndicesPosition
func (x *StreamExoticIndicesServiceResponsePair) GetUnderlyingInstrument() string
func (x *StreamExoticIndicesServiceResponsePair) GetUnderlyingPrice() *DoubleValue
func (x *StreamExoticIndicesServiceResponsePair) GetWeightingFactor() float64
func (*StreamExoticIndicesServiceResponsePair) ProtoMessage()
func (x *StreamExoticIndicesServiceResponsePair) ProtoReflect() Message
func (x *StreamExoticIndicesServiceResponsePair) Reset()
func (x *StreamExoticIndicesServiceResponsePair) String() string
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() ([]int)
Deprecated: Use StreamExoticIndicesServiceResponsePrices.ProtoReflect.Descriptor instead.
func (x *StreamExoticIndicesServiceResponsePrices) GetDivisor() float64
func (x *StreamExoticIndicesServiceResponsePrices) GetIndexValue() float64
func (x *StreamExoticIndicesServiceResponsePrices) GetPairs() []*StreamExoticIndicesServiceResponsePair
func (*StreamExoticIndicesServiceResponsePrices) ProtoMessage()
func (x *StreamExoticIndicesServiceResponsePrices) ProtoReflect() Message
func (x *StreamExoticIndicesServiceResponsePrices) Reset()
func (x *StreamExoticIndicesServiceResponsePrices) String() string
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() ([]int)
Deprecated: Use StreamExoticIndicesServiceResponseV1.ProtoReflect.Descriptor instead.
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
func (x *StreamExoticIndicesServiceResponseV1) GetTsEvent() *Timestamp
func (*StreamExoticIndicesServiceResponseV1) ProtoMessage()
func (x *StreamExoticIndicesServiceResponseV1) ProtoReflect() Message
func (x *StreamExoticIndicesServiceResponseV1) Reset()
func (x *StreamExoticIndicesServiceResponseV1) String() string