Documentation ¶
Index ¶
- Constants
- func Build(connections []*connection.Connection) (result []connection.Connector)
- func New(connection *connection.Connection) connection.Connector
- func NewBalance() *balance
- func NewCount() *count
- func NewLocks() *locks
- func NewPerformance() *performances
- func NewPing() *ping
- func NewProfit() *profit
- func NewSchedulerPerformance() *schedulerPerformance
- func NewStat() *stat
- func NewStatus() *status
- func NewVersion() *version
- func NewWhitelist() *whitelist
- func ToBalance(connector connection.Connector) (*balance, error)
- func ToCount(connector connection.Connector) (*count, error)
- func ToLocks(connector connection.Connector) (*locks, error)
- func ToLogLevel(connector connection.Connector) (map[string]float64, error)
- func ToPerformance(connector connection.Connector) (*performances, error)
- func ToPing(connector connection.Connector) bool
- func ToProfit(connector connection.Connector) (*profit, error)
- func ToSchedulerPerformance(connector connection.Connector) (*schedulerPerformance, error)
- func ToStat(connector connection.Connector) (*stat, error)
- func ToStatus(connector connection.Connector) (*status, error)
- func ToVersion(connector connection.Connector) string
- func ToWhitelist(connector connection.Connector) (*whitelist, error)
- type Freqtrade
- func (f *Freqtrade) Cleanup() error
- func (f *Freqtrade) Cluster() string
- func (f *Freqtrade) Connect(name string) (interface{}, error)
- func (f *Freqtrade) ConnectAll() *errors.Handler
- func (f *Freqtrade) Initial() error
- func (f *Freqtrade) Parent() connection.Connector
- func (f *Freqtrade) Plugin(plugin Plugin) *Freqtrade
- func (f *Freqtrade) Save(name string, data interface{}) connection.Connector
- func (f *Freqtrade) String() string
- func (f *Freqtrade) WithParent(p connection.Connector) connection.Connector
- type Log
- type Logs
- type Plugin
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 NewPerformance ¶
func NewPerformance() *performances
func NewSchedulerPerformance ¶
func NewSchedulerPerformance() *schedulerPerformance
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) ConnectAll ¶
func (*Freqtrade) Parent ¶
func (f *Freqtrade) Parent() connection.Connector
func (*Freqtrade) Save ¶
func (f *Freqtrade) Save(name string, data interface{}) connection.Connector
func (*Freqtrade) WithParent ¶
func (f *Freqtrade) WithParent(p connection.Connector) connection.Connector
type Logs ¶
func (*Logs) Build ¶
func (l *Logs) Build(connector connection.Connector, connection *connection.Connection, history *datatype.Queue) (interface{}, error)
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) }
Click to show internal directories.
Click to hide internal directories.