From 1d1d5d497f86e1769ac41fa9661f0d9dc020cf20 Mon Sep 17 00:00:00 2001 From: c9s Date: Mon, 19 Sep 2022 09:25:54 +0800 Subject: [PATCH] bbgo: init call to updateMarginAssetMaxBorrowable --- pkg/bbgo/order_executor_general.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/bbgo/order_executor_general.go b/pkg/bbgo/order_executor_general.go index 0b8f60f67..91eabedbf 100644 --- a/pkg/bbgo/order_executor_general.go +++ b/pkg/bbgo/order_executor_general.go @@ -88,6 +88,7 @@ func (e *GeneralOrderExecutor) marginAssetMaxBorrowableUpdater(ctx context.Conte t := time.NewTicker(util.MillisecondsJitter(interval, 500)) defer t.Stop() + e.updateMarginAssetMaxBorrowable(ctx, marginService, market) for { select { case <-ctx.Done():