diff --git a/backtester/engine/setup.go b/backtester/engine/setup.go index edabb56f..3557c8a8 100644 --- a/backtester/engine/setup.go +++ b/backtester/engine/setup.go @@ -499,7 +499,7 @@ func (bt *BackTest) setupExchangeSettings(cfg *config.Config) (*exchange.Exchang if bt.LiveDataHandler == nil { err = bt.Funding.AddUSDTrackingData(klineData) if err != nil && - !errors.Is(err, trackingcurrencies.ErrCurrencyDoesNotContainsUSD) && + !errors.Is(err, trackingcurrencies.ErrCurrencyDoesNotContainUSD) && !errors.Is(err, funding.ErrUSDTrackingDisabled) { return nil, err } diff --git a/backtester/funding/trackingcurrencies/trackingcurrencies.go b/backtester/funding/trackingcurrencies/trackingcurrencies.go index 4c66f23d..db85b5ad 100644 --- a/backtester/funding/trackingcurrencies/trackingcurrencies.go +++ b/backtester/funding/trackingcurrencies/trackingcurrencies.go @@ -13,15 +13,15 @@ import ( 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") - errNilPairs = errors.New("cannot assess with nil available pairs") - errNoMatchingPairUSDFound = errors.New("currency pair has no USD backed equivalent, cannot track price") - errCurrencyNotFoundInPairs = errors.New("currency does not exist in available pairs") - errNoMatchingBaseUSDFound = errors.New("base currency has no USD back equivalent, cannot track price") - errNoMatchingQuoteUSDFound = errors.New("quote currency has no USD back equivalent, cannot track price") - errNilPairsReceived = errors.New("nil tracking pairs received") - errExchangeManagerRequired = errors.New("exchange manager required") + // ErrCurrencyDoesNotContainUSD is raised when the currency does not contain a USD equivalent + ErrCurrencyDoesNotContainUSD = errors.New("currency does not contain a USD equivalent") + errNilPairs = errors.New("cannot assess with nil available pairs") + errNoMatchingPairUSDFound = errors.New("currency pair has no USD backed equivalent, cannot track price") + errCurrencyNotFoundInPairs = errors.New("currency does not exist in available pairs") + errNoMatchingBaseUSDFound = errors.New("base currency has no USD back equivalent, cannot track price") + errNoMatchingQuoteUSDFound = errors.New("quote currency has no USD back equivalent, cannot track price") + errNilPairsReceived = errors.New("nil tracking pairs received") + errExchangeManagerRequired = errors.New("exchange manager required") ) // rankedUSDs is a slice of USD tracked currencies diff --git a/cmd/exchange_wrapper_standards/exchange_wrapper_standards_test.go b/cmd/exchange_wrapper_standards/exchange_wrapper_standards_test.go index 77c78abf..a7b0df5c 100644 --- a/cmd/exchange_wrapper_standards/exchange_wrapper_standards_test.go +++ b/cmd/exchange_wrapper_standards/exchange_wrapper_standards_test.go @@ -613,8 +613,8 @@ var unsupportedAssets = []asset.Item{ var unsupportedExchangeNames = []string{ "testexch", "bitflyer", // Bitflyer has many "ErrNotYetImplemented, which is true, but not what we care to test for here - "btse", // TODO rm once timeout issues resolved - "poloniex", // outdated API // TODO rm once updated + "btse", // TODO rm once timeout issues resolved + "poloniex", // outdated API // TODO rm once updated } // cryptoChainPerExchange holds the deposit address chain per exchange diff --git a/common/common.go b/common/common.go index 070db74a..f6f2df6e 100644 --- a/common/common.go +++ b/common/common.go @@ -198,7 +198,7 @@ func StringSliceContainsInsensitive(haystack []string, needle string) bool { }) } -// IsEnabled takes in a boolean param and returns a string if it is enabled +// IsEnabled takes in a boolean param and returns a string if it is enabled // or disabled func IsEnabled(isEnabled bool) string { if isEnabled { diff --git a/currency/coinmarketcap/coinmarketcap.go b/currency/coinmarketcap/coinmarketcap.go index e6bcea3e..59de812d 100644 --- a/currency/coinmarketcap/coinmarketcap.go +++ b/currency/coinmarketcap/coinmarketcap.go @@ -300,7 +300,7 @@ func (c *Coinmarketcap) GetCryptocurrencyOHLCLatest(currencyID int64) (Cryptocur return resp.Data, nil } -// GetCryptocurrencyLatestQuotes returns the latest market quote for 1 or more +// GetCryptocurrencyLatestQuotes returns the latest market quote for 1 or more // cryptocurrencies. // // currencyID - refers to the coinmarketcap currency id