Skip to content

Commit

Permalink
bbgo: fetch non zero balances
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Nov 14, 2024
1 parent 8791da6 commit a8f1a49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/bbgo/account_value_calc.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func NewAccountValueCalculator(

// UpdatePrices updates the price index from the existing balances
func (c *AccountValueCalculator) UpdatePrices(ctx context.Context) error {
balances := c.session.Account.Balances()
balances := c.session.Account.Balances().NotZero()
currencies := balances.Currencies()
markets := c.session.Markets()

Expand Down

0 comments on commit a8f1a49

Please sign in to comment.