exchange

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Exchange

type Exchange struct {
	// contains filtered or unexported fields
}

func NewExchange

func NewExchange(conf config.Exchange, currencies ...currency.Currencies) Exchange

func (Exchange) Convert

func (e Exchange) Convert(from currency.Currency, to currency.Currency, amount float64) float64

func (Exchange) Currencies

func (e Exchange) Currencies() currency.Currencies

func (Exchange) SupportsCurrency

func (e Exchange) SupportsCurrency(curr currency.Currency) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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