mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 16:25:16 +00:00
bbgo: add logging config struct
This commit is contained in:
parent
6dc92bea16
commit
e3fa4587d9
|
@ -89,6 +89,11 @@ type NotificationConfig struct {
|
||||||
Switches *NotificationSwitches `json:"switches" yaml:"switches"`
|
Switches *NotificationSwitches `json:"switches" yaml:"switches"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type LoggingConfig struct {
|
||||||
|
Trade bool `json:"trade,omitempty"`
|
||||||
|
Order bool `json:"order,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
type Session struct {
|
type Session struct {
|
||||||
Name string `json:"name,omitempty" yaml:"name,omitempty"`
|
Name string `json:"name,omitempty" yaml:"name,omitempty"`
|
||||||
ExchangeName string `json:"exchange" yaml:"exchange"`
|
ExchangeName string `json:"exchange" yaml:"exchange"`
|
||||||
|
@ -326,6 +331,8 @@ type Config struct {
|
||||||
|
|
||||||
RiskControls *RiskControls `json:"riskControls,omitempty" yaml:"riskControls,omitempty"`
|
RiskControls *RiskControls `json:"riskControls,omitempty" yaml:"riskControls,omitempty"`
|
||||||
|
|
||||||
|
Logging *LoggingConfig `json:"logging,omitempty"`
|
||||||
|
|
||||||
ExchangeStrategies []ExchangeStrategyMount `json:"-" yaml:"-"`
|
ExchangeStrategies []ExchangeStrategyMount `json:"-" yaml:"-"`
|
||||||
CrossExchangeStrategies []CrossExchangeStrategy `json:"-" yaml:"-"`
|
CrossExchangeStrategies []CrossExchangeStrategy `json:"-" yaml:"-"`
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user