mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 00:35:15 +00:00
pivotshort: add repay margin side effect
This commit is contained in:
parent
2aac5bb273
commit
30be15dd34
|
@ -114,6 +114,9 @@ func (s *Strategy) ClosePosition(ctx context.Context, percentage fixedpoint.Valu
|
|||
Quantity: quantity,
|
||||
Market: s.Market,
|
||||
}
|
||||
if s.session.Margin {
|
||||
submitOrder.MarginSideEffect = s.MarginOrderSideEffect
|
||||
}
|
||||
|
||||
//s.Notify("Submitting %s %s order to close position by %v", s.Symbol, side.String(), percentage, submitOrder)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user