mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 08:45:16 +00:00
bbgo: init call to updateMarginAssetMaxBorrowable
This commit is contained in:
parent
8180153e9c
commit
1d1d5d497f
|
@ -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():
|
||||||
|
|
Loading…
Reference in New Issue
Block a user