trade

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ses *config.Session) error

New will attempt to buy and sell automagically.

func NewDrops

func NewDrops(session *config.Session) error

NewDrops cancels active orders.

func NewEject added in v1.0.5

func NewEject(session *config.Session) error

NewEject sells everything, full stop. Conceived Developed

func NewExits

func NewExits(session *config.Session) error

NewExits sells every active trading position.

func NewHolds

func NewHolds(session *config.Session) error

NewHolds will create a limit sell entry order for every trade that does not already meet or exceed the goal price.

func NewSell

func NewSell(
	session *config.Session,
	tradeID time.Time,
	productID,
	size string,
	entryPrice,
	goalPrice float64,
	entryTime time.Time) (*float64, error)

NewSell is responsible for selling an available product balance at a goal price or better.

func NewSells

func NewSells(session *config.Session) error

NewSells attempts to sell the available balance at or beyond goal prices.

Types

This section is empty.

Jump to

Keyboard shortcuts

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