mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 23:05:15 +00:00
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:
commit
1086845522
|
@ -75,6 +75,7 @@ func (s *ProtectiveStopLoss) placeStopOrder(ctx context.Context, position *types
|
||||||
StopPrice: s.stopLossPrice,
|
StopPrice: s.stopLossPrice,
|
||||||
Market: position.Market,
|
Market: position.Market,
|
||||||
Tag: "protectiveStopLoss",
|
Tag: "protectiveStopLoss",
|
||||||
|
MarginSideEffect: types.SideEffectTypeAutoRepay,
|
||||||
})
|
})
|
||||||
|
|
||||||
if len(createdOrders) > 0 {
|
if len(createdOrders) > 0 {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user