diff --git a/bbgo/fixedpoint/convert.go b/bbgo/fixedpoint/convert.go index 41c00c38c..b7fd3e9e7 100644 --- a/bbgo/fixedpoint/convert.go +++ b/bbgo/fixedpoint/convert.go @@ -23,6 +23,10 @@ func (v Value) Mul(v2 Value) Value { return NewFromFloat(v.Float64() * v2.Float64()) } +func (v Value) MulFloat64(v2 float64) Value { + return NewFromFloat(v.Float64() * v2) +} + func (v Value) Div(v2 Value) Value { return NewFromFloat(v.Float64() / v2.Float64()) }