...

Package aggregated_price_v1

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

Overview ▾

Index ▾

Variables
type StreamAggregatedPriceRequestV1
    func (*StreamAggregatedPriceRequestV1) Descriptor() ([]byte, []int)
    func (x *StreamAggregatedPriceRequestV1) GetCode() string
    func (x *StreamAggregatedPriceRequestV1) GetInstrumentClass() string
    func (x *StreamAggregatedPriceRequestV1) GetInterval() *core.DataInterval
    func (*StreamAggregatedPriceRequestV1) ProtoMessage()
    func (x *StreamAggregatedPriceRequestV1) ProtoReflect() protoreflect.Message
    func (x *StreamAggregatedPriceRequestV1) Reset()
    func (x *StreamAggregatedPriceRequestV1) String() string
type StreamAggregatedPriceResponseV1
    func (*StreamAggregatedPriceResponseV1) Descriptor() ([]byte, []int)
    func (x *StreamAggregatedPriceResponseV1) GetAggregate() string
    func (x *StreamAggregatedPriceResponseV1) GetCode() string
    func (x *StreamAggregatedPriceResponseV1) GetEventType() StreamAggregatedPriceResponseV1_EventType
    func (x *StreamAggregatedPriceResponseV1) GetInstrumentClass() string
    func (x *StreamAggregatedPriceResponseV1) GetTsEvent() *timestamp.Timestamp
    func (x *StreamAggregatedPriceResponseV1) GetValue() *StreamAggregatedPriceValue
    func (*StreamAggregatedPriceResponseV1) ProtoMessage()
    func (x *StreamAggregatedPriceResponseV1) ProtoReflect() protoreflect.Message
    func (x *StreamAggregatedPriceResponseV1) Reset()
    func (x *StreamAggregatedPriceResponseV1) String() string
type StreamAggregatedPriceResponseV1_EventType
    func (StreamAggregatedPriceResponseV1_EventType) Descriptor() protoreflect.EnumDescriptor
    func (x StreamAggregatedPriceResponseV1_EventType) Enum() *StreamAggregatedPriceResponseV1_EventType
    func (StreamAggregatedPriceResponseV1_EventType) EnumDescriptor() ([]byte, []int)
    func (x StreamAggregatedPriceResponseV1_EventType) Number() protoreflect.EnumNumber
    func (x StreamAggregatedPriceResponseV1_EventType) String() string
    func (StreamAggregatedPriceResponseV1_EventType) Type() protoreflect.EnumType
type StreamAggregatedPriceValue
    func (*StreamAggregatedPriceValue) Descriptor() ([]byte, []int)
    func (x *StreamAggregatedPriceValue) GetPrice() string
    func (x *StreamAggregatedPriceValue) GetVolume() string
    func (*StreamAggregatedPriceValue) ProtoMessage()
    func (x *StreamAggregatedPriceValue) ProtoReflect() protoreflect.Message
    func (x *StreamAggregatedPriceValue) Reset()
    func (x *StreamAggregatedPriceValue) String() string

Package files

request.pb.go response.pb.go

Variables

Enum value maps for StreamAggregatedPriceResponseV1_EventType.

var (
    StreamAggregatedPriceResponseV1_EventType_name = map[string{
        0: "UNKNOWN",
        1: "BEST_ASK",
        2: "BEST_BID",
    }
    StreamAggregatedPriceResponseV1_EventType_value = map[int32{
        "UNKNOWN":  0,
        "BEST_ASK": 1,
        "BEST_BID": 2,
    }
)
var File_sdk_stream_aggregated_price_v1_request_proto FileDescriptor
var File_sdk_stream_aggregated_price_v1_response_proto FileDescriptor

type StreamAggregatedPriceRequestV1

StreamAggregatedPriceRequestV1

type StreamAggregatedPriceRequestV1 struct {

    // Instrument class. See https://docs.kaiko.com/?python#instruments.
    InstrumentClass string `protobuf:"bytes,1,opt,name=instrument_class,json=instrumentClass,proto3" json:"instrument_class,omitempty"`
    // Instrument code. See https://docs.kaiko.com/?python#instruments.
    Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,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 (*StreamAggregatedPriceRequestV1) Descriptor

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

Deprecated: Use StreamAggregatedPriceRequestV1.ProtoReflect.Descriptor instead.

func (*StreamAggregatedPriceRequestV1) GetCode

func (x *StreamAggregatedPriceRequestV1) GetCode() string

func (*StreamAggregatedPriceRequestV1) GetInstrumentClass

func (x *StreamAggregatedPriceRequestV1) GetInstrumentClass() string

func (*StreamAggregatedPriceRequestV1) GetInterval

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

func (*StreamAggregatedPriceRequestV1) ProtoMessage

func (*StreamAggregatedPriceRequestV1) ProtoMessage()

func (*StreamAggregatedPriceRequestV1) ProtoReflect

func (x *StreamAggregatedPriceRequestV1) ProtoReflect() Message

func (*StreamAggregatedPriceRequestV1) Reset

func (x *StreamAggregatedPriceRequestV1) Reset()

func (*StreamAggregatedPriceRequestV1) String

func (x *StreamAggregatedPriceRequestV1) String() string

type StreamAggregatedPriceResponseV1

StreamAggregatedPriceResponseV1

type StreamAggregatedPriceResponseV1 struct {

    // Aggregate (interval).
    Aggregate string `protobuf:"bytes,1,opt,name=aggregate,proto3" json:"aggregate,omitempty"`
    // Instrument class. See https://docs.kaiko.com/?python#instruments.
    InstrumentClass string `protobuf:"bytes,2,opt,name=instrument_class,json=instrumentClass,proto3" json:"instrument_class,omitempty"`
    // Instrument code. See https://docs.kaiko.com/?python#instruments.
    Code string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"`
    // Value is update value (price and volume). Field is absent if the ticker has no update during the aggregate inerval.
    Value *StreamAggregatedPriceValue `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
    // Event type is ASK or BID.
    EventType StreamAggregatedPriceResponseV1_EventType `protobuf:"varint,5,opt,name=event_type,json=eventType,proto3,enum=kaikosdk.StreamAggregatedPriceResponseV1_EventType" json:"event_type,omitempty"`
    // Timestamp of event.
    TsEvent *Timestamp `protobuf:"bytes,6,opt,name=ts_event,json=tsEvent,proto3" json:"ts_event,omitempty"`
    // contains filtered or unexported fields
}

func (*StreamAggregatedPriceResponseV1) Descriptor

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

Deprecated: Use StreamAggregatedPriceResponseV1.ProtoReflect.Descriptor instead.

func (*StreamAggregatedPriceResponseV1) GetAggregate

func (x *StreamAggregatedPriceResponseV1) GetAggregate() string

func (*StreamAggregatedPriceResponseV1) GetCode

func (x *StreamAggregatedPriceResponseV1) GetCode() string

func (*StreamAggregatedPriceResponseV1) GetEventType

func (x *StreamAggregatedPriceResponseV1) GetEventType() StreamAggregatedPriceResponseV1_EventType

func (*StreamAggregatedPriceResponseV1) GetInstrumentClass

func (x *StreamAggregatedPriceResponseV1) GetInstrumentClass() string

func (*StreamAggregatedPriceResponseV1) GetTsEvent

func (x *StreamAggregatedPriceResponseV1) GetTsEvent() *Timestamp

func (*StreamAggregatedPriceResponseV1) GetValue

func (x *StreamAggregatedPriceResponseV1) GetValue() *StreamAggregatedPriceValue

func (*StreamAggregatedPriceResponseV1) ProtoMessage

func (*StreamAggregatedPriceResponseV1) ProtoMessage()

func (*StreamAggregatedPriceResponseV1) ProtoReflect

func (x *StreamAggregatedPriceResponseV1) ProtoReflect() Message

func (*StreamAggregatedPriceResponseV1) Reset

func (x *StreamAggregatedPriceResponseV1) Reset()

func (*StreamAggregatedPriceResponseV1) String

func (x *StreamAggregatedPriceResponseV1) String() string

type StreamAggregatedPriceResponseV1_EventType

EventType is event category for a value.

type StreamAggregatedPriceResponseV1_EventType int32
const (
    // Unknown type.
    StreamAggregatedPriceResponseV1_UNKNOWN StreamAggregatedPriceResponseV1_EventType = 0
    // BEST_ASK type.
    StreamAggregatedPriceResponseV1_BEST_ASK StreamAggregatedPriceResponseV1_EventType = 1
    // BEST_BID type.
    StreamAggregatedPriceResponseV1_BEST_BID StreamAggregatedPriceResponseV1_EventType = 2
)

func (StreamAggregatedPriceResponseV1_EventType) Descriptor

func (StreamAggregatedPriceResponseV1_EventType) Descriptor() EnumDescriptor

func (StreamAggregatedPriceResponseV1_EventType) Enum

func (x StreamAggregatedPriceResponseV1_EventType) Enum() *StreamAggregatedPriceResponseV1_EventType

func (StreamAggregatedPriceResponseV1_EventType) EnumDescriptor

func (StreamAggregatedPriceResponseV1_EventType) EnumDescriptor() ([]int)

Deprecated: Use StreamAggregatedPriceResponseV1_EventType.Descriptor instead.

func (StreamAggregatedPriceResponseV1_EventType) Number

func (x StreamAggregatedPriceResponseV1_EventType) Number() EnumNumber

func (StreamAggregatedPriceResponseV1_EventType) String

func (x StreamAggregatedPriceResponseV1_EventType) String() string

func (StreamAggregatedPriceResponseV1_EventType) Type

func (StreamAggregatedPriceResponseV1_EventType) Type() EnumType

type StreamAggregatedPriceValue

StreamAggregatedPriceValue is wrapper for update values.

type StreamAggregatedPriceValue struct {

    // Price of top of book entry.
    Price string `protobuf:"bytes,1,opt,name=price,proto3" json:"price,omitempty"`
    // Volume of top of book entry.
    Volume string `protobuf:"bytes,2,opt,name=volume,proto3" json:"volume,omitempty"`
    // contains filtered or unexported fields
}

func (*StreamAggregatedPriceValue) Descriptor

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

Deprecated: Use StreamAggregatedPriceValue.ProtoReflect.Descriptor instead.

func (*StreamAggregatedPriceValue) GetPrice

func (x *StreamAggregatedPriceValue) GetPrice() string

func (*StreamAggregatedPriceValue) GetVolume

func (x *StreamAggregatedPriceValue) GetVolume() string

func (*StreamAggregatedPriceValue) ProtoMessage

func (*StreamAggregatedPriceValue) ProtoMessage()

func (*StreamAggregatedPriceValue) ProtoReflect

func (x *StreamAggregatedPriceValue) ProtoReflect() Message

func (*StreamAggregatedPriceValue) Reset

func (x *StreamAggregatedPriceValue) Reset()

func (*StreamAggregatedPriceValue) String

func (x *StreamAggregatedPriceValue) String() string