validation

package
v0.0.0-...-ea1cebd Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RoundBinancePriceAndQuantity

func RoundBinancePriceAndQuantity(orderPrice, orderQuantity *apd.Decimal, priceFilter, lotSize map[string]interface{}) (
	price, qtt *apd.Decimal, err error)

func RoundBybitPriceAndQuantity

func RoundBybitPriceAndQuantity(orderPrice, orderQuantity *apd.Decimal, lotSizeString, tickSizeString string) (
	price, qtt *apd.Decimal, err error)

func RoundPhemexPriceAndQuantity

func RoundPhemexPriceAndQuantity(orderPrice, orderQuantity *apd.Decimal, lotSizeString, tickSizeString string) (
	price, qtt *apd.Decimal, err error)

func ValidateBinancePrice

func ValidateBinancePrice(orderPrice, orderQuantity *apd.Decimal, priceFilter, notion, lotSize map[string]interface{}) error

func ValidateBinanceQuantity

func ValidateBinanceQuantity(orderQuantity *apd.Decimal, priceFilter, notion, lotSize map[string]interface{}) error

func ValidatePhemexPrice

func ValidatePhemexPrice(orderPrice *apd.Decimal, lotSizeString, tickSizeString string) error

func ValidatePhemexQuantity

func ValidatePhemexQuantity(orderQuantity *apd.Decimal, lotSizeString, tickSizeString string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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