liqmaker: fix log messages

This commit is contained in:
c9s 2024-10-28 17:31:21 +08:00
parent eae2d63ac1
commit 2b00c7ac01
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

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