package
Version:
v1.1.8
Opens a new window with list of versions in this module.
Published: May 3, 2020
License: MIT
Opens a new window with license information.
Imports: 5
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 SConfig struct {
Exchanges []SExchange `toml:"exchange"`
Options map[string]interface{} `toml:"option"`
}
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"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.