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
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() EnumDescriptor
func (x StreamDerivativesInstrumentCommodityKindV1) Enum() *StreamDerivativesInstrumentCommodityKindV1
func (StreamDerivativesInstrumentCommodityKindV1) EnumDescriptor() ([]int)
Deprecated: Use StreamDerivativesInstrumentCommodityKindV1.Descriptor instead.
func (x StreamDerivativesInstrumentCommodityKindV1) Number() EnumNumber
func (x StreamDerivativesInstrumentCommodityKindV1) String() string
func (StreamDerivativesInstrumentCommodityKindV1) Type() EnumType
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() ([]int)
Deprecated: Use StreamDerivativesInstrumentMetricsRequestV1.ProtoReflect.Descriptor instead.
func (x *StreamDerivativesInstrumentMetricsRequestV1) GetCommodities() []StreamDerivativesInstrumentCommodityKindV1
func (x *StreamDerivativesInstrumentMetricsRequestV1) GetInstrumentCriteria() *core.InstrumentCriteria
func (*StreamDerivativesInstrumentMetricsRequestV1) ProtoMessage()
func (x *StreamDerivativesInstrumentMetricsRequestV1) ProtoReflect() Message
func (x *StreamDerivativesInstrumentMetricsRequestV1) Reset()
func (x *StreamDerivativesInstrumentMetricsRequestV1) String() string
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() ([]int)
Deprecated: Use StreamDerivativesInstrumentMetricsResponseV1.ProtoReflect.Descriptor instead.
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
func (x *StreamDerivativesInstrumentMetricsResponseV1) GetTsEvent() *Timestamp
func (x *StreamDerivativesInstrumentMetricsResponseV1) GetValue() string
func (*StreamDerivativesInstrumentMetricsResponseV1) ProtoMessage()
func (x *StreamDerivativesInstrumentMetricsResponseV1) ProtoReflect() Message
func (x *StreamDerivativesInstrumentMetricsResponseV1) Reset()
func (x *StreamDerivativesInstrumentMetricsResponseV1) String() string