diff --git a/pkg/strategy/xmaker/strategy.go b/pkg/strategy/xmaker/strategy.go index 31e2eeafb..c20738ae9 100644 --- a/pkg/strategy/xmaker/strategy.go +++ b/pkg/strategy/xmaker/strategy.go @@ -677,6 +677,8 @@ func (s *Strategy) Hedge(ctx context.Context, pos fixedpoint.Value) { } } + notional := quantity.Mul(lastPrice) + // adjust quantity according to the balances account := s.sourceSession.GetAccount() switch side {