Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExchangeAsset ¶
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 ¶
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
Click to show internal directories.
Click to hide internal directories.