mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 16:25:16 +00:00
xdepthmaker: use pips
This commit is contained in:
parent
ae7d5e9dd8
commit
9cced25ffb
|
@ -1027,9 +1027,9 @@ func (s *Strategy) generateMakerOrders(
|
||||||
if lastMakerPrice.Sign() > 0 && depthPrice.Compare(lastMakerPrice) == 0 {
|
if lastMakerPrice.Sign() > 0 && depthPrice.Compare(lastMakerPrice) == 0 {
|
||||||
switch side {
|
switch side {
|
||||||
case types.SideTypeBuy:
|
case types.SideTypeBuy:
|
||||||
depthPrice = depthPrice.Sub(s.makerMarket.TickSize)
|
depthPrice = depthPrice.Sub(s.makerMarket.TickSize.Mul(s.Pips))
|
||||||
case types.SideTypeSell:
|
case types.SideTypeSell:
|
||||||
depthPrice = depthPrice.Add(s.makerMarket.TickSize)
|
depthPrice = depthPrice.Add(s.makerMarket.TickSize.Mul(s.Pips))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user