mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 08:45:16 +00:00
Merge pull request #808 from c9s/fix/kline-with-filtering
This commit is contained in:
commit
e6d9a8a84a
|
@ -609,7 +609,7 @@ type KLineCallBack func(k KLine)
|
|||
|
||||
func KLineWith(symbol string, interval Interval, callback KLineCallBack) KLineCallBack {
|
||||
return func(k KLine) {
|
||||
if k.Symbol != symbol || k.Interval != interval {
|
||||
if k.Symbol != symbol || (k.Interval != "" && k.Interval != interval) {
|
||||
return
|
||||
}
|
||||
callback(k)
|
||||
|
|
Loading…
Reference in New Issue
Block a user