currency

package
v1.61.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	USDT = "USDT"
	USDC = "USDC"
	BUSD = "BUSD"
)

Variables

View Source
var BNB = wrapper{accounting.Accounting{Symbol: "BNB ", Precision: 4}}
View Source
var BTC = wrapper{accounting.Accounting{Symbol: "BTC ", Precision: 8}}
View Source
var FiatCurrencies = []string{"USDC", "USDT", "USD", "TWD", "EUR", "GBP", "BUSD"}
View Source
var USD = wrapper{accounting.Accounting{Symbol: "$ ", Precision: 2}}
View Source
var USDFiatCurrencies = []string{"USDT", "USDC", "USD", "BUSD"}

USDFiatCurrencies lists the USD stable coins

Functions

func IsFiatCurrency

func IsFiatCurrency(currency string) bool

func IsUSDFiatCurrency

func IsUSDFiatCurrency(currency string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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