Skip to content

Commit ad8ea86

Browse files
committed
change max borrowable query from error to warn
1 parent b7a397b commit ad8ea86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/bbgo/order_executor_general.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,15 +125,15 @@ func (e *GeneralOrderExecutor) updateMarginAssetMaxBorrowable(
125125
) {
126126
maxBorrowable, err := marginService.QueryMarginAssetMaxBorrowable(ctx, market.BaseCurrency)
127127
if err != nil {
128-
log.WithError(err).Errorf("can not query margin base asset %s max borrowable", market.BaseCurrency)
128+
log.WithError(err).Warnf("can not query margin base asset %s max borrowable", market.BaseCurrency)
129129
} else {
130130
log.Infof("updating margin base asset %s max borrowable amount: %f", market.BaseCurrency, maxBorrowable.Float64())
131131
e.marginBaseMaxBorrowable = maxBorrowable
132132
}
133133

134134
maxBorrowable, err = marginService.QueryMarginAssetMaxBorrowable(ctx, market.QuoteCurrency)
135135
if err != nil {
136-
log.WithError(err).Errorf("can not query margin quote asset %s max borrowable", market.QuoteCurrency)
136+
log.WithError(err).Warnf("can not query margin quote asset %s max borrowable", market.QuoteCurrency)
137137
} else {
138138
log.Infof("updating margin quote asset %s max borrowable amount: %f", market.QuoteCurrency, maxBorrowable.Float64())
139139
e.marginQuoteMaxBorrowable = maxBorrowable

0 commit comments

Comments
 (0)