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():