Remove non-needed getter functions for currency pairs

Fixes https://github.com/thrasher-/gocryptotrader/issues/180
This commit is contained in:
Adrian Gallagher
2018-09-20 15:01:11 +10:00
parent 042c4bfef2
commit 96cbf90446
9 changed files with 21 additions and 31 deletions

View File

@@ -121,8 +121,8 @@ func SecondCurrencyExists(exchange string, p pair.CurrencyPair) bool {
defer m.Unlock()
for _, y := range Tickers {
if y.ExchangeName == exchange {
if _, ok := y.Price[p.GetFirstCurrency()]; ok {
if _, ok := y.Price[p.GetFirstCurrency()][p.GetSecondCurrency()]; ok {
if _, ok := y.Price[p.FirstCurrency]; ok {
if _, ok := y.Price[p.FirstCurrency][p.SecondCurrency]; ok {
return true
}
}