mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 01:01:56 +00:00
xgap: print currency
This commit is contained in:
parent
b7a397bb4b
commit
9c108380e8
|
@ -336,12 +336,12 @@ func (s *Strategy) placeOrders(ctx context.Context) {
|
|||
minQuantity := s.tradingMarket.AdjustQuantityByMinNotional(s.tradingMarket.MinQuantity, price)
|
||||
|
||||
if baseBalance.Available.Compare(minQuantity) < 0 {
|
||||
log.Infof("base balance: %s is not enough, skip", baseBalance.Available.String())
|
||||
log.Infof("base balance: %s %s is not enough, skip", baseBalance.Available.String(), s.tradingMarket.BaseCurrency)
|
||||
return
|
||||
}
|
||||
|
||||
if quoteBalance.Available.Div(price).Compare(minQuantity) < 0 {
|
||||
log.Infof("quote balance: %s is not enough, skip", quoteBalance.Available.String())
|
||||
log.Infof("quote balance: %s %s is not enough, skip", quoteBalance.Available.String(), s.tradingMarket.QuoteCurrency)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user