mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53:52 +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
|
||||
account := s.sourceSession.GetAccount()
|
||||
switch side {
|
||||
|
|
Loading…
Reference in New Issue
Block a user