money

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bimoney

type Bimoney int64

Bimoney is an integer representation of money on Binance with up to 8 levels of scale/precision.

func ParseBimoney

func ParseBimoney(strAmont string) (Bimoney, error)

ParseBimoney converts a string representation of an integer or a float to Bimoney. Only dots '.' are considered valid decimal place delimiters, commas ',' are not accepted.

func (Bimoney) AmountFromPercentage

func (m Bimoney) AmountFromPercentage(percentage Bimoney) Bimoney

func (Bimoney) FormatBimoney

func (b Bimoney) FormatBimoney(fitToLot bool) string

func (Bimoney) PercentageChange

func (m Bimoney) PercentageChange(newVal Bimoney) Bimoney

func (Bimoney) PortionOf

func (m Bimoney) PortionOf(value Bimoney) Bimoney

Jump to

Keyboard shortcuts

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