signalsv1

package
v1.0.30 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_ampy_signals_v1_signals_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Signal

type Signal struct {
	Security    *v1.SecurityId         `protobuf:"bytes,1,opt,name=security,proto3" json:"security,omitempty"`
	Type        v1.SignalType          `protobuf:"varint,2,opt,name=type,proto3,enum=ampy.common.v1.SignalType" json:"type,omitempty"`
	ModelId     string                 `protobuf:"bytes,3,opt,name=model_id,json=modelId,proto3" json:"model_id,omitempty"` // e.g., "hyper@2025-09-05"
	Horizon     string                 `protobuf:"bytes,4,opt,name=horizon,proto3" json:"horizon,omitempty"`                // e.g., "5d"
	GeneratedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=generated_at,json=generatedAt,proto3" json:"generated_at,omitempty"`
	ExpiresAt   *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
	// Payload
	//
	// Types that are valid to be assigned to Value:
	//
	//	*Signal_Score
	//	*Signal_Action
	Value isSignal_Value `protobuf_oneof:"value"`
	Meta  *v1.Meta       `protobuf:"bytes,9,opt,name=meta,proto3" json:"meta,omitempty"`
	// contains filtered or unexported fields
}

func (*Signal) Descriptor deprecated

func (*Signal) Descriptor() ([]byte, []int)

Deprecated: Use Signal.ProtoReflect.Descriptor instead.

func (*Signal) GetAction

func (x *Signal) GetAction() v1.ActionType

func (*Signal) GetExpiresAt

func (x *Signal) GetExpiresAt() *timestamppb.Timestamp

func (*Signal) GetGeneratedAt

func (x *Signal) GetGeneratedAt() *timestamppb.Timestamp

func (*Signal) GetHorizon

func (x *Signal) GetHorizon() string

func (*Signal) GetMeta

func (x *Signal) GetMeta() *v1.Meta

func (*Signal) GetModelId

func (x *Signal) GetModelId() string

func (*Signal) GetScore

func (x *Signal) GetScore() *v1.Decimal

func (*Signal) GetSecurity

func (x *Signal) GetSecurity() *v1.SecurityId

func (*Signal) GetType

func (x *Signal) GetType() v1.SignalType

func (*Signal) GetValue

func (x *Signal) GetValue() isSignal_Value

func (*Signal) ProtoMessage

func (*Signal) ProtoMessage()

func (*Signal) ProtoReflect

func (x *Signal) ProtoReflect() protoreflect.Message

func (*Signal) Reset

func (x *Signal) Reset()

func (*Signal) String

func (x *Signal) String() string

type SignalBatch

type SignalBatch struct {
	Signals []*Signal `protobuf:"bytes,1,rep,name=signals,proto3" json:"signals,omitempty"`
	// contains filtered or unexported fields
}

func (*SignalBatch) Descriptor deprecated

func (*SignalBatch) Descriptor() ([]byte, []int)

Deprecated: Use SignalBatch.ProtoReflect.Descriptor instead.

func (*SignalBatch) GetSignals

func (x *SignalBatch) GetSignals() []*Signal

func (*SignalBatch) ProtoMessage

func (*SignalBatch) ProtoMessage()

func (*SignalBatch) ProtoReflect

func (x *SignalBatch) ProtoReflect() protoreflect.Message

func (*SignalBatch) Reset

func (x *SignalBatch) Reset()

func (*SignalBatch) String

func (x *SignalBatch) String() string

type Signal_Action

type Signal_Action struct {
	Action v1.ActionType `protobuf:"varint,8,opt,name=action,proto3,enum=ampy.common.v1.ActionType,oneof"` // type = ACTION
}

type Signal_Score

type Signal_Score struct {
	Score *v1.Decimal `protobuf:"bytes,7,opt,name=score,proto3,oneof"` // type = ALPHA
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL