mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +00:00
xmaker: add more info into the signal logs
This commit is contained in:
parent
49e949dbc9
commit
6b54c90a53
|
@ -69,7 +69,13 @@ func (s *OrderBookBestPriceVolumeSignal) CalculateSignal(ctx context.Context) (f
|
||||||
signal = -numerator.Div(denominator).Float64()
|
signal = -numerator.Div(denominator).Float64()
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Infof("[OrderBookBestPriceVolumeSignal] %f bid/ask = %f/%f", signal, bid.Volume.Float64(), ask.Volume.Float64())
|
log.Infof("[OrderBookBestPriceVolumeSignal] %f bid/ask = %f/%f, bid ratio = %f, ratio threshold = %f",
|
||||||
|
signal,
|
||||||
|
bid.Volume.Float64(),
|
||||||
|
ask.Volume.Float64(),
|
||||||
|
bidRatio.Float64(),
|
||||||
|
s.RatioThreshold.Float64(),
|
||||||
|
)
|
||||||
|
|
||||||
orderBookSignalMetrics.WithLabelValues(s.symbol).Set(signal)
|
orderBookSignalMetrics.WithLabelValues(s.symbol).Set(signal)
|
||||||
return signal, nil
|
return signal, nil
|
||||||
|
|
Loading…
Reference in New Issue
Block a user