Documentation ¶
Index ¶
Constants ¶
View Source
const (
ONE_GWEI = uint64(1e9)
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EMA ¶
type EMA struct {
// contains filtered or unexported fields
}
EMA is a moving average with exponential decay. It doesn't have any concept of weight so it will only work on homogenous (evenly spaced) time series. ema := NewEMA(0.1818) avg1 = ema.Tick(price1) avg2 = ema.Tick(price2) spike := checkPriceMovingAvg(price, avg, 20%)
type GasGauge ¶
type GasGauge struct {
// contains filtered or unexported fields
}
func NewGasGauge ¶
func (*GasGauge) Subscribe ¶
func (g *GasGauge) Subscribe() ethmonitor.Subscription
func (*GasGauge) SuggestedGasPrice ¶
func (g *GasGauge) SuggestedGasPrice() SuggestedGasPrice
func (*GasGauge) WaitSuggestedGasPrice ¶
func (g *GasGauge) WaitSuggestedGasPrice() SuggestedGasPrice
Click to show internal directories.
Click to hide internal directories.