store

package
v0.0.0-...-1c05aee Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = errors.New("not found")
	ErrExist    = errors.New("exist")
)

Functions

This section is empty.

Types

type Store

type Store interface {
	Get() *Trader
	Update([]*indicator.Kline)
	Reset() error
}

type Trader

type Trader struct {
	Margin       float64
	Leverage     float64
	HistKlines   []*indicator.Kline
	PosAmt       float64
	PosQty       int
	EntryPrice   float64
	PosSide      futures.SideType
	StopLoss     float64
	RefreshTime  map[string]int64
	Openk        float64
	LockKline    bool
	MoveStopLoss [][]float64
	MSLTrigger   float64
	Wsk
}

type Wsk

type Wsk struct {
	H   float64
	L   float64
	O   float64
	C   float64
	V   float64
	E   int64
	ST  int64
	Cma float64
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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