mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 22:43:52 +00:00
xmaker: log best bid and best ask
This commit is contained in:
parent
d36bbe5fb5
commit
e187614179
|
@ -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())
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user