models

package
v0.0.0-...-b8f6e48 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	USDSymbol = "BUSD"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Strategy          string             `yaml:"strategy"`
	MinimumBalance    float64            `yaml:"minimum_balance"`
	ExpectedPriceDrop float64            `yaml:"expected_price_drop"`
	AssetWeights      map[string]float64 `yaml:"asset_weights,flow"`
}

type StrategyData

type StrategyData struct {
	MinimumBalance    float64
	ExpectedPriceDrop float64
	AssetWeights      map[string]float64
	LastClose         map[string]float64
	LastHigh          map[string]float64
	AssetStake        map[string]float64
	Volume            map[string]float64
	ATHTest           map[string]float64
	Slugs             map[string]string
}

func NewStrategyData

func NewStrategyData(config *Config) (*StrategyData, error)

Jump to

Keyboard shortcuts

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