pivotshort: add repay margin side effect

This commit is contained in:
austin362667 2022-06-02 21:42:05 +08:00
parent 2aac5bb273
commit 30be15dd34

View File

@ -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)