From 900db74fb93f4728f80926a5399656ad0527e993 Mon Sep 17 00:00:00 2001 From: narumi Date: Thu, 19 Oct 2023 15:14:28 +0800 Subject: [PATCH] skip public session --- pkg/strategy/xnav/strategy.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/strategy/xnav/strategy.go b/pkg/strategy/xnav/strategy.go index b4b33cab7..91e3bc22f 100644 --- a/pkg/strategy/xnav/strategy.go +++ b/pkg/strategy/xnav/strategy.go @@ -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")