mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
core: log number of loaded converters
This commit is contained in:
parent
52abb9193d
commit
e9bf4babe2
|
@ -35,6 +35,8 @@ func (s *ConverterSetting) InitializeConverter() (Converter, error) {
|
||||||
return converter, err
|
return converter, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ConverterManager manages the converters for trade conversion
|
||||||
|
// It can be used to convert the trade symbol into the target symbol, or convert the price, volume into different units.
|
||||||
type ConverterManager struct {
|
type ConverterManager struct {
|
||||||
ConverterSettings []ConverterSetting `json:"converters,omitempty" yaml:"converters,omitempty"`
|
ConverterSettings []ConverterSetting `json:"converters,omitempty" yaml:"converters,omitempty"`
|
||||||
|
|
||||||
|
@ -53,6 +55,8 @@ func (c *ConverterManager) Initialize() error {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
numConverters := len(c.converters)
|
||||||
|
logrus.Infof("%d converters loaded", numConverters)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user