Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountConfig ¶
type AccountConfig struct {
Name string `yaml:"name"`
Broker string `yaml:"broker"` // currently supported: broker.CodeKIS, broker.CodeKiwoom
Sandbox bool `yaml:"sandbox"`
AppKey string `yaml:"app_key"`
AppSecret string `yaml:"app_secret"`
AccountID string `yaml:"account_id"`
}
AccountConfig represents a broker account configuration
type Config ¶
type Config struct {
Server ServerConfig `yaml:"server"`
Storage StorageConfig `yaml:"storage,omitempty"`
Accounts []AccountConfig `yaml:"accounts,omitempty"`
}
Config represents the application configuration
type ServerConfig ¶
ServerConfig represents server configuration
type StorageConfig ¶
type StorageConfig struct {
TokenDir string `yaml:"token_dir"`
OrderContextDir string `yaml:"order_context_dir"`
}
StorageConfig represents local persistence paths.
Click to show internal directories.
Click to hide internal directories.