trademarket

package
v0.3.10 Latest Latest
Warning

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

Go to latest
Published: May 14, 2021 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidBaseAsset ...
	ErrInvalidBaseAsset = errors.New(
		"base asset must be a 32-byte array in hex format",
	)
	// ErrInvalidQuoteAsset ...
	ErrInvalidQuoteAsset = errors.New(
		"quote asset must be a 32-byte array in hex format",
	)
)

Functions

This section is empty.

Types

type Market

type Market struct {
	BaseAsset  string
	QuoteAsset string
}

func (*Market) Validate

func (m *Market) Validate() error

Validate cheks whether the current market is well-formed

Jump to

Keyboard shortcuts

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