Documentation ¶
Index ¶
- type Reference
- func (r *Reference) AddOption(o *option.Option)
- func (r *Reference) Execute(optionTicker string)
- func (r *Reference) Option(optionTicker string) (o *option.Option, ok bool)
- func (r *Reference) OrderStatusUpdate(orderStatus *orderstatus.OrderStatus)
- func (r *Reference) RemoveOption(o *option.Option)
- func (r *Reference) TrackedOptions() []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reference ¶
type Reference struct { }
Reference implementation of a strategy. Do not use in PROD, as it's only for educational purposes
func New ¶
func New() *Reference
New creates and returns a pointer to a new Reference implementation
func (*Reference) Option ¶
Option retuns the option (if it exists) based on the optionTicker for quick access
func (*Reference) OrderStatusUpdate ¶
func (r *Reference) OrderStatusUpdate(orderStatus *orderstatus.OrderStatus)
OrderStatusUpdate handler for order status updates
func (*Reference) RemoveOption ¶
RemoveOption removes the option from monitoring by this strategy
func (*Reference) TrackedOptions ¶
TrackedOptions retuns an array of options ticker symbols being tracked by this strategy
Click to show internal directories.
Click to hide internal directories.