key

package
v0.0.0-...-068a453 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExchangeAsset

type ExchangeAsset struct {
	Exchange string
	Asset    asset.Item
}

ExchangeAsset is a unique map key signature for exchange and asset

type ExchangePairAsset

type ExchangePairAsset struct {
	Exchange string
	Base     *currency.Item
	Quote    *currency.Item
	Asset    asset.Item
}

ExchangePairAsset is a unique map key signature for exchange, currency pair and asset

func (*ExchangePairAsset) MatchesExchange

func (k *ExchangePairAsset) MatchesExchange(exch string) bool

MatchesExchange checks if the exchange matches

func (*ExchangePairAsset) MatchesExchangeAsset

func (k *ExchangePairAsset) MatchesExchangeAsset(exch string, item asset.Item) bool

MatchesExchangeAsset checks if the key matches the exchange and asset

func (*ExchangePairAsset) MatchesPairAsset

func (k *ExchangePairAsset) MatchesPairAsset(pair currency.Pair, item asset.Item) bool

MatchesPairAsset checks if the key matches the pair and asset

func (*ExchangePairAsset) Pair

func (k *ExchangePairAsset) Pair() currency.Pair

Pair combines the base and quote into a pair

type PairAsset

type PairAsset struct {
	Base  *currency.Item
	Quote *currency.Item
	Asset asset.Item
}

PairAsset is a unique map key signature for currency pair and asset

func (*PairAsset) Pair

func (k *PairAsset) Pair() currency.Pair

Pair combines the base and quote into a pair

type SubAccountCurrencyAsset

type SubAccountCurrencyAsset struct {
	SubAccount string
	Currency   *currency.Item
	Asset      asset.Item
}

SubAccountCurrencyAsset is a unique map key signature for subaccount, currency code and asset

Jump to

Keyboard shortcuts

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