bbgo: add deprecation warning

This commit is contained in:
c9s 2023-07-01 13:24:23 +08:00
parent 31e9aa8c22
commit 334204b46a
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -503,6 +503,8 @@ func (session *ExchangeSession) Indicators(symbol string) *IndicatorSet {
}
func (session *ExchangeSession) StandardIndicatorSet(symbol string) *StandardIndicatorSet {
log.Warnf("StandardIndicatorSet() is deprecated in v1.49.0 and which will be removed in the next version, please use Indicators() instead")
set, ok := session.standardIndicatorSets[symbol]
if ok {
return set