From bd347d5aa5b386415cb3c2394e10dfc8df83d53f Mon Sep 17 00:00:00 2001 From: c9s Date: Fri, 16 Jun 2023 17:57:53 +0800 Subject: [PATCH] xfunding: log positionRisks --- pkg/strategy/xfunding/strategy.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/strategy/xfunding/strategy.go b/pkg/strategy/xfunding/strategy.go index 99bb23dd8..1a2634d78 100644 --- a/pkg/strategy/xfunding/strategy.go +++ b/pkg/strategy/xfunding/strategy.go @@ -714,7 +714,7 @@ func (s *Strategy) syncFuturesPosition(ctx context.Context) { return } - log.Infof("position comparision: %s (spot) <=> %s (futures)", spotBase.String(), futuresBase.String()) + log.Infof("syncFuturesPosition: position comparision: %s (spot) <=> %s (futures)", spotBase.String(), futuresBase.String()) if futuresBase.Sign() > 0 { // unexpected error @@ -1133,6 +1133,8 @@ func (s *Strategy) checkAndRestorePositionRisks(ctx context.Context) error { return err } + log.Infof("fetched futures position risks: %+v", positionRisks) + for _, positionRisk := range positionRisks { if positionRisk.Symbol != s.Symbol { continue