From b731405658011f4d3ebcca4d9b21d3f3924634a1 Mon Sep 17 00:00:00 2001 From: c9s Date: Thu, 9 Jun 2022 15:49:13 +0800 Subject: [PATCH] add fixedpoint.Value to simple types --- pkg/bbgo/notifier.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkg/bbgo/notifier.go b/pkg/bbgo/notifier.go index 9a84ef53f..8a390b47e 100644 --- a/pkg/bbgo/notifier.go +++ b/pkg/bbgo/notifier.go @@ -1,6 +1,10 @@ package bbgo -import "github.com/sirupsen/logrus" +import ( + "github.com/sirupsen/logrus" + + "github.com/c9s/bbgo/pkg/fixedpoint" +) type Notifier interface { NotifyTo(channel string, obj interface{}, args ...interface{}) @@ -69,7 +73,7 @@ func (m *Notifiability) NotifyTo(channel string, obj interface{}, args ...interf func filterSimpleArgs(args []interface{}) (simpleArgs []interface{}) { for _, arg := range args { switch arg.(type) { - case int, int64, int32, uint64, uint32, string, []byte, float64, float32: + case int, int64, int32, uint64, uint32, string, []byte, float64, float32, fixedpoint.Value: simpleArgs = append(simpleArgs, arg) } }