price

package
v0.0.0-...-b8dc01b Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAvailableCurrencies

func GetAvailableCurrencies() []string

func GetCurrencyLabel

func GetCurrencyLabel(currency string) string

func GetEthPrice

func GetEthPrice(currency string) float64

func GetEthRoundPrice

func GetEthRoundPrice(currency float64) uint64

func GetSymbol

func GetSymbol(currency string) string

func Init

func Init(chainId uint64, eth1Endpoint string)

Types

type EthPrice

type EthPrice struct {
	Ethereum struct {
		Cad float64 `json:"cad"`
		Cny float64 `json:"cny"`
		Eur float64 `json:"eur"`
		Jpy float64 `json:"jpy"`
		Usd float64 `json:"usd"`
		Gbp float64 `json:"gbp"`
		Aud float64 `json:"aud"`
	} `json:"ethereum"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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