serve

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2020 License: MIT Imports: 7 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 ExchangeConfig

type ExchangeConfig struct {
	Exchanges []ExchangeItem `yaml:"exchanges"`
}

type ExchangeItem

type ExchangeItem struct {
	Name       string `yaml:"name"`
	Debug_Mode bool   `yaml:"debug_mode"`
	Access_Key string `yaml:"access_key"`
	Secret_Key string `yaml:"secret_key"`
	Testnet    bool   `yaml:"testnet"`
	WebSocket  bool   `yaml:"websocket"`
}

Jump to

Keyboard shortcuts

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