Documentation
¶
Index ¶
- Variables
- type Signal
- func (*Signal) Descriptor() ([]byte, []int)deprecated
- func (x *Signal) GetAction() v1.ActionType
- func (x *Signal) GetExpiresAt() *timestamppb.Timestamp
- func (x *Signal) GetGeneratedAt() *timestamppb.Timestamp
- func (x *Signal) GetHorizon() string
- func (x *Signal) GetMeta() *v1.Meta
- func (x *Signal) GetModelId() string
- func (x *Signal) GetScore() *v1.Decimal
- func (x *Signal) GetSecurity() *v1.SecurityId
- func (x *Signal) GetType() v1.SignalType
- func (x *Signal) GetValue() isSignal_Value
- func (*Signal) ProtoMessage()
- func (x *Signal) ProtoReflect() protoreflect.Message
- func (x *Signal) Reset()
- func (x *Signal) String() string
- type SignalBatch
- type Signal_Action
- type Signal_Score
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) 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 (*Signal) GetModelId ¶
func (*Signal) GetSecurity ¶
func (x *Signal) GetSecurity() *v1.SecurityId
func (*Signal) GetType ¶
func (x *Signal) GetType() v1.SignalType
func (*Signal) ProtoMessage ¶
func (*Signal) ProtoMessage()
func (*Signal) ProtoReflect ¶
func (x *Signal) ProtoReflect() protoreflect.Message
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 ¶
Click to show internal directories.
Click to hide internal directories.