mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 22:43:52 +00:00
liqmaker: fix log messages
This commit is contained in:
parent
eae2d63ac1
commit
2b00c7ac01
|
@ -392,7 +392,7 @@ func (s *Strategy) placeLiquidityOrders(ctx context.Context) {
|
|||
if s.stopEMA != nil {
|
||||
emaPrice := fixedpoint.NewFromFloat(s.stopEMA.Last(0))
|
||||
if midPrice.Compare(emaPrice) > 0 {
|
||||
s.logger.Infof("mid price %f < stop ema price %f, turning off ask orders", midPrice.Float64(), emaPrice.Float64())
|
||||
s.logger.Infof("mid price %f > stop ema price %f, turning off bid orders", midPrice.Float64(), emaPrice.Float64())
|
||||
placeBid = false
|
||||
}
|
||||
|
||||
|
@ -445,6 +445,8 @@ func (s *Strategy) placeLiquidityOrders(ctx context.Context) {
|
|||
}
|
||||
}
|
||||
|
||||
s.logger.Infof("place bid: %v, place ask: %v", placeBid, placeAsk)
|
||||
|
||||
var bidExposureInUsd = fixedpoint.Zero
|
||||
var askExposureInUsd = fixedpoint.Zero
|
||||
var orderForms []types.SubmitOrder
|
||||
|
|
Loading…
Reference in New Issue
Block a user