xmaker: log best bid and best ask

This commit is contained in:
c9s 2024-08-28 22:32:41 +08:00
parent d36bbe5fb5
commit e187614179
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -573,6 +573,7 @@ func (s *Strategy) updateQuote(ctx context.Context) {
}
if i == 0 {
s.logger.Infof("maker best bid price %f", bidPrice.Float64())
makerBestBidPriceMetrics.With(labels).Set(bidPrice.Float64())
}
@ -640,6 +641,7 @@ func (s *Strategy) updateQuote(ctx context.Context) {
}
if i == 0 {
s.logger.Infof("maker best ask price %f", askPrice.Float64())
makerBestAskPriceMetrics.With(labels).Set(askPrice.Float64())
}