bbgo: add logging config struct

This commit is contained in:
c9s 2023-02-22 15:18:48 +08:00
parent 6dc92bea16
commit e3fa4587d9
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -89,6 +89,11 @@ type NotificationConfig struct {
Switches *NotificationSwitches `json:"switches" yaml:"switches"`
}
type LoggingConfig struct {
Trade bool `json:"trade,omitempty"`
Order bool `json:"order,omitempty"`
}
type Session struct {
Name string `json:"name,omitempty" yaml:"name,omitempty"`
ExchangeName string `json:"exchange" yaml:"exchange"`
@ -326,6 +331,8 @@ type Config struct {
RiskControls *RiskControls `json:"riskControls,omitempty" yaml:"riskControls,omitempty"`
Logging *LoggingConfig `json:"logging,omitempty"`
ExchangeStrategies []ExchangeStrategyMount `json:"-" yaml:"-"`
CrossExchangeStrategies []CrossExchangeStrategy `json:"-" yaml:"-"`