mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +00:00
change max borrowable query from error to warn
This commit is contained in:
parent
b7a397bb4b
commit
ad8ea86173
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user