mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
xmaker: set notional var back
This commit is contained in:
parent
6011fd5157
commit
1e2f086643
|
@ -677,6 +677,8 @@ func (s *Strategy) Hedge(ctx context.Context, pos fixedpoint.Value) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
notional := quantity.Mul(lastPrice)
|
||||||
|
|
||||||
// adjust quantity according to the balances
|
// adjust quantity according to the balances
|
||||||
account := s.sourceSession.GetAccount()
|
account := s.sourceSession.GetAccount()
|
||||||
switch side {
|
switch side {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user