package
Version:
v1.1.5
Opens a new window with list of versions in this module.
Published: Apr 23, 2020
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 3
Opens a new window with list of known importers.
Documentation
¶
func Serve(strategy Strategy) (err error)
Serve 加载策略并执行
func SetupStrategyFromConfig(strategy Strategy) (err error)
SetupStrategyFromConfig 根据配置文件设置策略参数
type ExchangeConfig struct {
Exchanges []ExchangeItem `yaml:"exchanges"`
}
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"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.