pair

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2025 License: GPL-3.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidPair is returned when the pair symbol is invalid.
	ErrInvalidPair = errors.New("invalid pair symbol")
)

Functions

func FormatPair

func FormatPair(baseSymbol, quoteSymbol string) string

FormatPair formats a pair symbol.

func ParsePair

func ParsePair(symbol string) (baseSymbol, quoteSymbol string, err error)

ParsePair parses a pair symbol.

Types

This section is empty.

Jump to

Keyboard shortcuts

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