mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53:52 +00:00
Merge pull request #1346 from c9s/narumi/xnav/skip-public
FIX: [xnav] skip public only session
This commit is contained in:
commit
5dbb7bdde8
|
@ -82,6 +82,11 @@ func (s *Strategy) recordNetAssetValue(ctx context.Context, sessions map[string]
|
|||
// iterate the sessions and record them
|
||||
quoteCurrency := "USDT"
|
||||
for sessionName, session := range sessions {
|
||||
if session.PublicOnly {
|
||||
log.Infof("session %s is public only, skip", sessionName)
|
||||
continue
|
||||
}
|
||||
|
||||
// update the account balances and the margin information
|
||||
if _, err := session.UpdateAccount(ctx); err != nil {
|
||||
log.WithError(err).Errorf("can not update account")
|
||||
|
|
Loading…
Reference in New Issue
Block a user