config

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	AccessKey  string
	SecretKey  string
	TgBotToken string
}

type Cfg

type Cfg struct {
	// contains filtered or unexported fields
}

func New

func New(cfgType string, cfgFile string) *Cfg

func (*Cfg) GetInConfig

func (c *Cfg) GetInConfig() (configuration *Configuration, err error)

func (*Cfg) GetStringMap

func (c *Cfg) GetStringMap(key string) map[string]interface{}

type Configuration

type Configuration struct {
	Account
	Trade
	Tune map[string]interface{}
}

type Trade

type Trade struct {
	Dialect     string
	Symbol      string
	Interval    string
	Leverage    float64
	HistKRange  int
	Margin      float64
	MarginRatio float64
	MarginLimit float64
}

Jump to

Keyboard shortcuts

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