mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
Compare commits
4 Commits
6466c1e956
...
74946b8798
Author | SHA1 | Date | |
---|---|---|---|
|
74946b8798 | ||
|
0a0620b870 | ||
|
80430fec46 | ||
|
1f8b2b3710 |
|
@ -359,6 +359,7 @@ func (b *ActiveOrderBook) Add(orders ...types.Order) {
|
|||
}
|
||||
|
||||
b.add(order)
|
||||
b.EmitNew(order)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -91,8 +91,8 @@ func PrintConfig(s interface{}, f io.Writer, style *table.Style, withColor bool,
|
|||
continue
|
||||
}
|
||||
if jtag := tt.Tag.Get("json"); jtag != "" && jtag != "-" {
|
||||
disableConfigPrint := tt.Tag.Get("disableConfigPrint")
|
||||
if disableConfigPrint == "true" {
|
||||
unprintable := tt.Tag.Get("unprintable")
|
||||
if unprintable == "true" {
|
||||
continue
|
||||
}
|
||||
name := strings.Split(jtag, ",")[0]
|
||||
|
@ -110,8 +110,8 @@ func PrintConfig(s interface{}, f io.Writer, style *table.Style, withColor bool,
|
|||
}
|
||||
default:
|
||||
name := strings.Split(jsonTag, ",")[0]
|
||||
disableConfigPrint := t.Tag.Get("disableConfigPrint")
|
||||
if disableConfigPrint == "true" {
|
||||
unprintable := t.Tag.Get("unprintable")
|
||||
if unprintable == "true" {
|
||||
continue
|
||||
}
|
||||
if _, ok := redundantSet[name]; ok {
|
||||
|
|
Loading…
Reference in New Issue
Block a user