bbgo: init call to updateMarginAssetMaxBorrowable

This commit is contained in:
c9s 2022-09-19 09:25:54 +08:00
parent 8180153e9c
commit 1d1d5d497f
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -88,6 +88,7 @@ func (e *GeneralOrderExecutor) marginAssetMaxBorrowableUpdater(ctx context.Conte
t := time.NewTicker(util.MillisecondsJitter(interval, 500)) t := time.NewTicker(util.MillisecondsJitter(interval, 500))
defer t.Stop() defer t.Stop()
e.updateMarginAssetMaxBorrowable(ctx, marginService, market)
for { for {
select { select {
case <-ctx.Done(): case <-ctx.Done():