strategy

package
v0.0.0-...-8ecc595 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Calculation

type Calculation struct {
	ICalculation
}

Calculation -

type ICalculation

type ICalculation interface {
	New()
	GetValue(int, int) []float64
	GetValues(int, int) []rates.Points
	GetCurrent(int) rates.Points
	GetServerTime() int64
	GetLogger() *logger.Logger
	GetAssetID() string
}

ICalculation -

type SendingSignal

type SendingSignal struct {
	Hash    string    `json:"hash"`
	Signal  string    `json:"signal"`
	Time    time.Time `json:"time"`
	AssetID string    `json:"assetId"`
}

SendingSignal -

type Strategy

type Strategy struct {
	Hash      string                `json:"hash"`
	Name      string                `json:"name"`
	Indicator []indicator.Indicator `json:"indicator"`
	Assets    []string              `json:"assets"`
	Active    bool                  `json:"active"`
}

Strategy -

Jump to

Keyboard shortcuts

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