mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53:52 +00:00
xnav: pass session to the record assets method call
This commit is contained in:
parent
6ed6f15b75
commit
d78e0c607a
|
@ -110,7 +110,7 @@ func (s *Strategy) recordNetAssetValue(ctx context.Context, sessions map[string]
|
|||
allPrices[m] = p
|
||||
}
|
||||
|
||||
s.Environment.RecordAsset(priceTime, sessionName, session.ExchangeName, session.SubAccount, assets)
|
||||
s.Environment.RecordAsset(priceTime, session, assets)
|
||||
}
|
||||
|
||||
assets := totalBalances.Assets(allPrices, time.Now())
|
||||
|
@ -123,7 +123,7 @@ func (s *Strategy) recordNetAssetValue(ctx context.Context, sessions map[string]
|
|||
totalAssets[currency] = asset
|
||||
}
|
||||
|
||||
s.Environment.RecordAsset(priceTime, "ALL", "", "", totalAssets)
|
||||
s.Environment.RecordAsset(priceTime, &bbgo.ExchangeSession{Name: "ALL"}, totalAssets)
|
||||
|
||||
s.Notifiability.Notify(totalAssets)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user