currency

package
v0.0.0-...-afd3e11 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2021 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BaseCurrencies = SymbolSlice{
	BTC, ETH, USDT, XRP,
}
View Source
var FiatCurrencies = SymbolSlice{
	USD, EUR, JPY,
}

Functions

func InitSymbols

func InitSymbols(ctx context.Context, tx *sql.Tx) error

Types

type Symbol

type Symbol string
const (
	USD Symbol = "USD"
	EUR Symbol = "EUR"
	JPY Symbol = "JPY"
)

Fiat

const (
	BTC  Symbol = "BTC"
	ETH  Symbol = "ETH"
	USDT Symbol = "USDT"
	XRP  Symbol = "XRP"
)

Crypto

func (Symbol) IsFiat

func (s Symbol) IsFiat() bool

func (Symbol) String

func (t Symbol) String() string

type SymbolSlice

type SymbolSlice []Symbol
var AllCurrencies SymbolSlice
var Currencies SymbolSlice

func (SymbolSlice) Strings

func (ss SymbolSlice) Strings() []string

Jump to

Keyboard shortcuts

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