types

package
v0.0.0-...-f42d900 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CurrencyPair

type CurrencyPair struct {
	Base  string
	Quote string
}

CurrencyPair defines a currency exchange pair consisting of a base and a quote. We primarily utilize the base for broadcasting exchange rates and use the pair for querying for the ticker prices.

func MapPairsToSlice

func MapPairsToSlice(mapPairs map[string]CurrencyPair) []CurrencyPair

MapPairsToSlice returns the map of currency pairs as slice.

func (CurrencyPair) String

func (cp CurrencyPair) String() string

String implements the Stringer interface and defines a ticker symbol for querying the exchange rate.

Jump to

Keyboard shortcuts

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