From 4669692b8db9f620442dda265172781d6292edbd Mon Sep 17 00:00:00 2001 From: c9s Date: Fri, 24 Mar 2023 03:16:51 +0800 Subject: [PATCH] xfunding: remove debug log and test code --- pkg/strategy/xfunding/strategy.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pkg/strategy/xfunding/strategy.go b/pkg/strategy/xfunding/strategy.go index 02414a1a3..2c2dfc72e 100644 --- a/pkg/strategy/xfunding/strategy.go +++ b/pkg/strategy/xfunding/strategy.go @@ -314,9 +314,6 @@ func (s *Strategy) CrossRun(ctx context.Context, orderExecutionRouter bbgo.Order s.futuresOrderExecutor = s.allocateOrderExecutor(ctx, s.futuresSession, instanceID, s.FuturesPosition) s.futuresOrderExecutor.TradeCollector().OnTrade(func(trade types.Trade, profit fixedpoint.Value, netProfit fixedpoint.Value) { - - log.Infof("futures trade: %v", trade) - if s.positionType != types.PositionShort { return } @@ -630,7 +627,7 @@ func (s *Strategy) increaseSpotPosition(ctx context.Context) { s.setPositionState(PositionReady) // DEBUG CODE - triggering closing position automatically - s.startClosingPosition() + // s.startClosingPosition() return }