xmaker: set notional var back

This commit is contained in:
c9s 2024-08-27 22:45:43 +08:00
parent 6011fd5157
commit 1e2f086643
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

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