helpers

package
v0.0.0-...-e7ea114 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2024 License: Unlicense Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFloat

func AddFloat(data ...string) float64

func AlignPrice

func AlignPrice(rawPrice float64, stepSize string) float64

func AlignPriceToString

func AlignPriceToString(rawPrice float64, stepSize string) string

func AlignQuantity

func AlignQuantity(quantity float64, stepSize string) float64

may be not allow in case round to < min

func AlignQuantityToString

func AlignQuantityToString(quantity float64, stepSize string) string

func AmountToLotSize

func AmountToLotSize(lot float64, precision int, amount float64) float64

func CheckCurrentCandle

func CheckCurrentCandle(candleData interface{}, interval string) error

func DivFloatToString

func DivFloatToString(fraction, numerator string) string

func FloatToString

func FloatToString(val float64) string

func MinFloat

func MinFloat(a, b string) float64

func MulFloatToString

func MulFloatToString(a, b float64) string

func ResolvePositionSide

func ResolvePositionSide(rsi float64) string

func StringToFloat

func StringToFloat(val string) float64

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL