types

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2022 License: Apache-2.0 Imports: 0 Imported by: 1

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 (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