mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 23:05:15 +00:00
xfunding: remove debug log and test code
This commit is contained in:
parent
1517076f6d
commit
4669692b8d
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user