freqtrade

package
v4.0.0-...-4970bd5 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2021 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LOG_CONST = "logs"
	LOG_ERROR = "ERROR"
	LOG_WARN  = "WARNING"
	LOG_INFO  = "INFO"
)
View Source
const (
	STAT_CONST     = "stats"
	StatNotANumber = "N/A"
)
View Source
const BALANCE_CONST = "balance"
View Source
const COUNT_CONST = "count"
View Source
const LOCK_CONST = "locks"
View Source
const PERF_CONST = "performance"
View Source
const PING_CONST = "ping"
View Source
const PROFIT_CONST = "profit"
View Source
const SCHEDULER_PERF_CONST = "schedule_perf"
View Source
const STATUS_CONST = "show_config"
View Source
const VERSION_CONST = "version"
View Source
const WHITELIST_CONST = "whitelist"

Variables

This section is empty.

Functions

func Build

func Build(connections []*connection.Connection) (result []connection.Connector)

func New

func New(connection *connection.Connection) connection.Connector

func NewBalance

func NewBalance() *balance

func NewCount

func NewCount() *count

func NewLocks

func NewLocks() *locks

func NewPerformance

func NewPerformance() *performances

func NewPing

func NewPing() *ping

func NewProfit

func NewProfit() *profit

func NewSchedulerPerformance

func NewSchedulerPerformance() *schedulerPerformance

func NewStat

func NewStat() *stat

func NewStatus

func NewStatus() *status

func NewVersion

func NewVersion() *version

func NewWhitelist

func NewWhitelist() *whitelist

func ToBalance

func ToBalance(connector connection.Connector) (*balance, error)

func ToCount

func ToCount(connector connection.Connector) (*count, error)

func ToLocks

func ToLocks(connector connection.Connector) (*locks, error)

func ToLogLevel

func ToLogLevel(connector connection.Connector) (map[string]float64, error)

func ToPerformance

func ToPerformance(connector connection.Connector) (*performances, error)

func ToPing

func ToPing(connector connection.Connector) bool

func ToProfit

func ToProfit(connector connection.Connector) (*profit, error)

func ToSchedulerPerformance

func ToSchedulerPerformance(connector connection.Connector) (*schedulerPerformance, error)

func ToStat

func ToStat(connector connection.Connector) (*stat, error)

func ToStatus

func ToStatus(connector connection.Connector) (*status, error)

func ToVersion

func ToVersion(connector connection.Connector) string

func ToWhitelist

func ToWhitelist(connector connection.Connector) (*whitelist, error)

Types

type Freqtrade

type Freqtrade struct {
	Connection *connection.Connection
	// contains filtered or unexported fields
}

func (*Freqtrade) Cleanup

func (f *Freqtrade) Cleanup() error

func (*Freqtrade) Cluster

func (f *Freqtrade) Cluster() string

func (*Freqtrade) Connect

func (f *Freqtrade) Connect(name string) (interface{}, error)

func (*Freqtrade) ConnectAll

func (f *Freqtrade) ConnectAll() *errors.Handler

func (*Freqtrade) Initial

func (f *Freqtrade) Initial() error

func (*Freqtrade) Parent

func (f *Freqtrade) Parent() connection.Connector

func (*Freqtrade) Plugin

func (f *Freqtrade) Plugin(plugin Plugin) *Freqtrade

func (*Freqtrade) Save

func (f *Freqtrade) Save(name string, data interface{}) connection.Connector

func (*Freqtrade) String

func (f *Freqtrade) String() string

func (*Freqtrade) WithParent

type Log

type Log struct {
	Datetime  string
	Timestamp float64
	Namespace string
	Level     string
	Message   string
}

type Logs

type Logs struct {
	Total int
	Valid int
	List  []*Log
}

func NewLogs

func NewLogs() *Logs

func ToLogs

func ToLogs(connector connection.Connector) (*Logs, error)

func (*Logs) Build

func (l *Logs) Build(connector connection.Connector, connection *connection.Connection, history *datatype.Queue) (interface{}, error)

func (*Logs) Name

func (l *Logs) Name() string

type Plugin

type Plugin interface {
	// Current plugin name, this will be unique
	Name() string

	// Connection is for data from freqtrade itself or from database
	// This function also provide history data from previous build,
	// history data will avaliable only if you add `WithCache()` to the connector
	// otherwise, history data will always be empty.
	Build(connector connection.Connector, connection *connection.Connection, history *datatype.Queue) (interface{}, error)
}

Jump to

Keyboard shortcuts

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