mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
interact: skip total == 0 balance
This commit is contained in:
parent
d1cfaec7d3
commit
5d54e6fded
|
@ -69,6 +69,10 @@ func (it *CoreInteraction) Commands(i *interact.Interact) {
|
|||
message := "Your balances\n"
|
||||
balances := session.Account.Balances()
|
||||
for _, balance := range balances {
|
||||
if balance.Total() == 0 {
|
||||
continue
|
||||
}
|
||||
|
||||
message += "- " + balance.String() + "\n"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user