mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
types: fix balance filtering
This commit is contained in:
parent
17b5e3566a
commit
de1b0bccfc
|
@ -220,7 +220,7 @@ func (m BalanceMap) Assets(prices PriceMap, priceTime time.Time) AssetMap {
|
|||
|
||||
func (m BalanceMap) Print() {
|
||||
for _, balance := range m {
|
||||
if balance.Available.IsZero() && balance.Locked.IsZero() {
|
||||
if balance.Net().IsZero() {
|
||||
continue
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user