Add auto-repay

This commit is contained in:
Fredrik 2022-09-19 21:39:13 +02:00
parent c489794198
commit 2dfa27d934

View File

@ -75,6 +75,7 @@ func (s *ProtectiveStopLoss) placeStopOrder(ctx context.Context, position *types
StopPrice: s.stopLossPrice,
Market: position.Market,
Tag: "protectiveStopLoss",
MarginSideEffect: types.SideEffectTypeAutoRepay,
})
if len(createdOrders) > 0 {