serve

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: May 3, 2020 License: MIT Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(strategy Strategy) (err error)

Serve 加载策略并执行

func SetupStrategyFromConfig

func SetupStrategyFromConfig(strategy Strategy) (err error)

SetupStrategyFromConfig 根据配置文件设置策略参数

Types

type SConfig added in v1.1.8

type SConfig struct {
	Exchanges []SExchange            `toml:"exchange"`
	Options   map[string]interface{} `toml:"option"`
}

type SExchange added in v1.1.8

type SExchange struct {
	Name      string `toml:"name"`
	DebugMode bool   `toml:"debug_mode"`
	AccessKey string `toml:"access_key"`
	SecretKey string `toml:"secret_key"`
	Testnet   bool   `toml:"testnet"`
	WebSocket bool   `toml:"websocket"`
}

Jump to

Keyboard shortcuts

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