Merge pull request #961 from frin1/fix/exit_protective_stop_loss-repay

Feature: Add auto-repay to exit_protective_stop_loss
This commit is contained in:
Yo-An Lin 2022-09-20 12:04:24 +08:00 committed by GitHub
commit 1086845522
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 {