reference

package
v0.0.0-...-48f5d39 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2018 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

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) AddOption

func (r *Reference) AddOption(o *option.Option)

AddOption adds the option to be monitored by this strategy

func (*Reference) Execute

func (r *Reference) Execute(optionTicker string)

Execute runs the strategy on the instrument it's attached to

func (*Reference) Option

func (r *Reference) Option(optionTicker string) (o *option.Option, ok bool)

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

func (r *Reference) RemoveOption(o *option.Option)

RemoveOption removes the option from monitoring by this strategy

func (*Reference) TrackedOptions

func (r *Reference) TrackedOptions() []string

TrackedOptions retuns an array of options ticker symbols being tracked by this strategy

Jump to

Keyboard shortcuts

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