trader

package
v0.0.0-...-148b98b Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Trader

type Trader struct {
	TradingRunning bool
	StorageClient  storage.StorageClient
	ExchangeClient binancew.ExchangeClient
	Settings       map[string]storage.Setting
	TickerChan     <-chan time.Time
}

func SetupTrader

func SetupTrader() (*Trader, error)

func (*Trader) StartTradingSession

func (t *Trader) StartTradingSession(w output.Writer) chan error

func (*Trader) StopTradingSession

func (t *Trader) StopTradingSession() error

func (*Trader) Trade

func (t *Trader) Trade(strategy, symbol string, series *techan.TimeSeries) (*storage.Order, error)

Jump to

Keyboard shortcuts

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