strategy

package
v0.0.0-...-0d73d77 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CandleType1Min  = "1m"
	CandleType5Min  = "5m"
	CandleType15Min = "15m"
	CandleType30Min = "30m"
	CandleType1H    = "1h"
	CandleType4H    = "4h"
	CandleType1D    = "1d"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Total      float64
	CandleType string `json:"candle"`
}

type Strategy

type Strategy interface {
	OnTicker(ticker exchange.Ticker) (*types.Signal, error)
	OnCandle(candle exchange.Candle) (*types.Signal, error)
	Start(ctx context.Context)
}

Jump to

Keyboard shortcuts

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