Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrCurrencyContainsUSD is raised when the currency already contains a USD equivalent ErrCurrencyContainsUSD = errors.New("currency already contains a USD equivalent") // ErrCurrencyDoesNotContainsUSD is raised when the currency does not contain a USD equivalent ErrCurrencyDoesNotContainsUSD = errors.New("currency does not contains a USD equivalent") )
Functions ¶
func CurrencyIsUSDTracked ¶
CurrencyIsUSDTracked checks if the currency passed in tracks against USD value, ie is in rankedUSDs
Types ¶
type TrackingPair ¶
type TrackingPair struct { Exchange string Asset asset.Item Base currency.Code Quote currency.Code }
TrackingPair is basic pair data used to create more pairs based whether they contain a USD equivalent
func CreateUSDTrackingPairs ¶
func CreateUSDTrackingPairs(tp []TrackingPair, em *engine.ExchangeManager) ([]TrackingPair, error)
CreateUSDTrackingPairs is responsible for loading exchanges, ensuring the exchange have the latest currency pairs and if a pair doesn't have a USD currency to track price, to add those settings
Click to show internal directories.
Click to hide internal directories.