...

Package derivatives_instrument_metrics_v1

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

Overview ▾

Index ▾

Variables
type StreamDerivativesInstrumentCommodityKindV1
    func (StreamDerivativesInstrumentCommodityKindV1) Descriptor() protoreflect.EnumDescriptor
    func (x StreamDerivativesInstrumentCommodityKindV1) Enum() *StreamDerivativesInstrumentCommodityKindV1
    func (StreamDerivativesInstrumentCommodityKindV1) EnumDescriptor() ([]byte, []int)
    func (x StreamDerivativesInstrumentCommodityKindV1) Number() protoreflect.EnumNumber
    func (x StreamDerivativesInstrumentCommodityKindV1) String() string
    func (StreamDerivativesInstrumentCommodityKindV1) Type() protoreflect.EnumType
type StreamDerivativesInstrumentMetricsRequestV1
    func (*StreamDerivativesInstrumentMetricsRequestV1) Descriptor() ([]byte, []int)
    func (x *StreamDerivativesInstrumentMetricsRequestV1) GetCommodities() []StreamDerivativesInstrumentCommodityKindV1
    func (x *StreamDerivativesInstrumentMetricsRequestV1) GetInstrumentCriteria() *core.InstrumentCriteria
    func (*StreamDerivativesInstrumentMetricsRequestV1) ProtoMessage()
    func (x *StreamDerivativesInstrumentMetricsRequestV1) ProtoReflect() protoreflect.Message
    func (x *StreamDerivativesInstrumentMetricsRequestV1) Reset()
    func (x *StreamDerivativesInstrumentMetricsRequestV1) String() string
type StreamDerivativesInstrumentMetricsResponseV1
    func (*StreamDerivativesInstrumentMetricsResponseV1) Descriptor() ([]byte, []int)
    func (x *StreamDerivativesInstrumentMetricsResponseV1) GetCommodity() string
    func (x *StreamDerivativesInstrumentMetricsResponseV1) GetCommodityKind() StreamDerivativesInstrumentCommodityKindV1
    func (x *StreamDerivativesInstrumentMetricsResponseV1) GetExchange() string
    func (x *StreamDerivativesInstrumentMetricsResponseV1) GetLegacySymbol() string
    func (x *StreamDerivativesInstrumentMetricsResponseV1) GetTsCollection() *timestamp.Timestamp
    func (x *StreamDerivativesInstrumentMetricsResponseV1) GetTsEvent() *timestamp.Timestamp
    func (x *StreamDerivativesInstrumentMetricsResponseV1) GetValue() string
    func (*StreamDerivativesInstrumentMetricsResponseV1) ProtoMessage()
    func (x *StreamDerivativesInstrumentMetricsResponseV1) ProtoReflect() protoreflect.Message
    func (x *StreamDerivativesInstrumentMetricsResponseV1) Reset()
    func (x *StreamDerivativesInstrumentMetricsResponseV1) String() string

Package files

commodity_kind.pb.go request.pb.go response.pb.go

Variables

Enum value maps for StreamDerivativesInstrumentCommodityKindV1.

var (
    StreamDerivativesInstrumentCommodityKindV1_name = map[string{
        0: "SDICK_UNKNOWN",
        1: "SDICK_PRICE",
        2: "SDICK_RISK",
    }
    StreamDerivativesInstrumentCommodityKindV1_value = map[int32{
        "SDICK_UNKNOWN": 0,
        "SDICK_PRICE":   1,
        "SDICK_RISK":    2,
    }
)
var File_sdk_stream_derivatives_instrument_metrics_v1_commodity_kind_proto FileDescriptor
var File_sdk_stream_derivatives_instrument_metrics_v1_request_proto FileDescriptor
var File_sdk_stream_derivatives_instrument_metrics_v1_response_proto FileDescriptor

type StreamDerivativesInstrumentCommodityKindV1

StreamDerivativesInstrumentCommodityKindV1 allows selecting kind of commodity update wanted.

type StreamDerivativesInstrumentCommodityKindV1 int32
const (
    // Unknown kind.
    StreamDerivativesInstrumentCommodityKindV1_SDICK_UNKNOWN StreamDerivativesInstrumentCommodityKindV1 = 0
    // SDICK_PRICE commodity.
    StreamDerivativesInstrumentCommodityKindV1_SDICK_PRICE StreamDerivativesInstrumentCommodityKindV1 = 1
    // SDICK_RISK commodity.
    StreamDerivativesInstrumentCommodityKindV1_SDICK_RISK StreamDerivativesInstrumentCommodityKindV1 = 2
)

func (StreamDerivativesInstrumentCommodityKindV1) Descriptor

func (StreamDerivativesInstrumentCommodityKindV1) Descriptor() EnumDescriptor

func (StreamDerivativesInstrumentCommodityKindV1) Enum

func (x StreamDerivativesInstrumentCommodityKindV1) Enum() *StreamDerivativesInstrumentCommodityKindV1

func (StreamDerivativesInstrumentCommodityKindV1) EnumDescriptor

func (StreamDerivativesInstrumentCommodityKindV1) EnumDescriptor() ([]int)

Deprecated: Use StreamDerivativesInstrumentCommodityKindV1.Descriptor instead.

func (StreamDerivativesInstrumentCommodityKindV1) Number

func (x StreamDerivativesInstrumentCommodityKindV1) Number() EnumNumber

func (StreamDerivativesInstrumentCommodityKindV1) String

func (x StreamDerivativesInstrumentCommodityKindV1) String() string

func (StreamDerivativesInstrumentCommodityKindV1) Type

func (StreamDerivativesInstrumentCommodityKindV1) Type() EnumType

type StreamDerivativesInstrumentMetricsRequestV1

StreamDerivativesInstrumentMetricsRequestV1.

type StreamDerivativesInstrumentMetricsRequestV1 struct {

    // InstrumentCriteria is instrument exchange, class and code, wildcard (*) can be used.
    InstrumentCriteria *core.InstrumentCriteria `protobuf:"bytes,1,opt,name=instrument_criteria,json=instrumentCriteria,proto3" json:"instrument_criteria,omitempty"`
    // Enum indicating type of feed.  If no commodity is specified, you get all commodities by default, otherwise you get only specified commodities.
    Commodities []StreamDerivativesInstrumentCommodityKindV1 `protobuf:"varint,2,rep,packed,name=commodities,proto3,enum=kaikosdk.StreamDerivativesInstrumentCommodityKindV1" json:"commodities,omitempty"`
    // contains filtered or unexported fields
}

func (*StreamDerivativesInstrumentMetricsRequestV1) Descriptor

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

Deprecated: Use StreamDerivativesInstrumentMetricsRequestV1.ProtoReflect.Descriptor instead.

func (*StreamDerivativesInstrumentMetricsRequestV1) GetCommodities

func (x *StreamDerivativesInstrumentMetricsRequestV1) GetCommodities() []StreamDerivativesInstrumentCommodityKindV1

func (*StreamDerivativesInstrumentMetricsRequestV1) GetInstrumentCriteria

func (x *StreamDerivativesInstrumentMetricsRequestV1) GetInstrumentCriteria() *core.InstrumentCriteria

func (*StreamDerivativesInstrumentMetricsRequestV1) ProtoMessage

func (*StreamDerivativesInstrumentMetricsRequestV1) ProtoMessage()

func (*StreamDerivativesInstrumentMetricsRequestV1) ProtoReflect

func (x *StreamDerivativesInstrumentMetricsRequestV1) ProtoReflect() Message

func (*StreamDerivativesInstrumentMetricsRequestV1) Reset

func (x *StreamDerivativesInstrumentMetricsRequestV1) Reset()

func (*StreamDerivativesInstrumentMetricsRequestV1) String

func (x *StreamDerivativesInstrumentMetricsRequestV1) String() string

type StreamDerivativesInstrumentMetricsResponseV1

StreamDerivativesInstrumentMetricsResponseV1 derivatives v1 response.

type StreamDerivativesInstrumentMetricsResponseV1 struct {

    // Value of the commodity.
    Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
    // Legacy symbol.
    LegacySymbol string `protobuf:"bytes,2,opt,name=legacy_symbol,json=legacySymbol,proto3" json:"legacy_symbol,omitempty"`
    // Exchange.
    Exchange string `protobuf:"bytes,3,opt,name=exchange,proto3" json:"exchange,omitempty"`
    // Commodity.
    // See https://docs.kaiko.com/v/kaiko-rest-api/market-data/derivatives/derivatives-metrics/risk#fields
    // and https://docs.kaiko.com/v/kaiko-rest-api/market-data/derivatives/derivatives-metrics/price#fields.
    Commodity string `protobuf:"bytes,4,opt,name=commodity,proto3" json:"commodity,omitempty"`
    // Kind of commodity (price of risk).
    CommodityKind StreamDerivativesInstrumentCommodityKindV1 `protobuf:"varint,5,opt,name=commodity_kind,json=commodityKind,proto3,enum=kaikosdk.StreamDerivativesInstrumentCommodityKindV1" json:"commodity_kind,omitempty"`
    // Timestamp of collection (event entered Kaiko's infrastructure), before nomalization.
    TsCollection *Timestamp `protobuf:"bytes,6,opt,name=ts_collection,json=tsCollection,proto3" json:"ts_collection,omitempty"`
    // Event generation timestamp (event created by Kaiko), after normalization.
    TsEvent *Timestamp `protobuf:"bytes,7,opt,name=ts_event,json=tsEvent,proto3" json:"ts_event,omitempty"`
    // contains filtered or unexported fields
}

func (*StreamDerivativesInstrumentMetricsResponseV1) Descriptor

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

Deprecated: Use StreamDerivativesInstrumentMetricsResponseV1.ProtoReflect.Descriptor instead.

func (*StreamDerivativesInstrumentMetricsResponseV1) GetCommodity

func (x *StreamDerivativesInstrumentMetricsResponseV1) GetCommodity() string

func (*StreamDerivativesInstrumentMetricsResponseV1) GetCommodityKind

func (x *StreamDerivativesInstrumentMetricsResponseV1) GetCommodityKind() StreamDerivativesInstrumentCommodityKindV1

func (*StreamDerivativesInstrumentMetricsResponseV1) GetExchange

func (x *StreamDerivativesInstrumentMetricsResponseV1) GetExchange() string

func (*StreamDerivativesInstrumentMetricsResponseV1) GetLegacySymbol

func (x *StreamDerivativesInstrumentMetricsResponseV1) GetLegacySymbol() string

func (*StreamDerivativesInstrumentMetricsResponseV1) GetTsCollection

func (x *StreamDerivativesInstrumentMetricsResponseV1) GetTsCollection() *Timestamp

func (*StreamDerivativesInstrumentMetricsResponseV1) GetTsEvent

func (x *StreamDerivativesInstrumentMetricsResponseV1) GetTsEvent() *Timestamp

func (*StreamDerivativesInstrumentMetricsResponseV1) GetValue

func (x *StreamDerivativesInstrumentMetricsResponseV1) GetValue() string

func (*StreamDerivativesInstrumentMetricsResponseV1) ProtoMessage

func (*StreamDerivativesInstrumentMetricsResponseV1) ProtoMessage()

func (*StreamDerivativesInstrumentMetricsResponseV1) ProtoReflect

func (x *StreamDerivativesInstrumentMetricsResponseV1) ProtoReflect() Message

func (*StreamDerivativesInstrumentMetricsResponseV1) Reset

func (x *StreamDerivativesInstrumentMetricsResponseV1) Reset()

func (*StreamDerivativesInstrumentMetricsResponseV1) String

func (x *StreamDerivativesInstrumentMetricsResponseV1) String() string