mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-13 02:23:51 +00:00
fix float formatting
This commit is contained in:
parent
57435419b4
commit
061312771c
|
@ -97,7 +97,7 @@ func (s *Strategy) generateGridBuyOrders(session *bbgo.ExchangeSession) ([]types
|
||||||
balances := session.Account.Balances()
|
balances := session.Account.Balances()
|
||||||
quoteBalance := balances[s.Market.QuoteCurrency].Available
|
quoteBalance := balances[s.Market.QuoteCurrency].Available
|
||||||
if quoteBalance <= 0 {
|
if quoteBalance <= 0 {
|
||||||
return nil, fmt.Errorf("quote balance %s is zero: %+v", s.Market.QuoteCurrency, quoteBalance.Float64())
|
return nil, fmt.Errorf("quote balance %s is zero: %f", s.Market.QuoteCurrency, quoteBalance.Float64())
|
||||||
}
|
}
|
||||||
|
|
||||||
upBand, downBand := s.boll.LastUpBand(), s.boll.LastDownBand()
|
upBand, downBand := s.boll.LastUpBand(), s.boll.LastDownBand()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user