mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-04 07:26:47 +00:00
Remove non-needed getter functions for currency pairs
Fixes https://github.com/thrasher-/gocryptotrader/issues/180
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user