diff --git a/pkg/bbgo/order_executor_general.go b/pkg/bbgo/order_executor_general.go index 026829466..652f1bb4d 100644 --- a/pkg/bbgo/order_executor_general.go +++ b/pkg/bbgo/order_executor_general.go @@ -125,7 +125,7 @@ func (e *GeneralOrderExecutor) updateMarginAssetMaxBorrowable( ) { maxBorrowable, err := marginService.QueryMarginAssetMaxBorrowable(ctx, market.BaseCurrency) if err != nil { - log.WithError(err).Errorf("can not query margin base asset %s max borrowable", market.BaseCurrency) + log.WithError(err).Warnf("can not query margin base asset %s max borrowable", market.BaseCurrency) } else { log.Infof("updating margin base asset %s max borrowable amount: %f", market.BaseCurrency, maxBorrowable.Float64()) e.marginBaseMaxBorrowable = maxBorrowable @@ -133,7 +133,7 @@ func (e *GeneralOrderExecutor) updateMarginAssetMaxBorrowable( maxBorrowable, err = marginService.QueryMarginAssetMaxBorrowable(ctx, market.QuoteCurrency) if err != nil { - log.WithError(err).Errorf("can not query margin quote asset %s max borrowable", market.QuoteCurrency) + log.WithError(err).Warnf("can not query margin quote asset %s max borrowable", market.QuoteCurrency) } else { log.Infof("updating margin quote asset %s max borrowable amount: %f", market.QuoteCurrency, maxBorrowable.Float64()) e.marginQuoteMaxBorrowable = maxBorrowable