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

@@ -149,7 +149,7 @@ func TestCheckFXString(t *testing.T) {
t.Parallel()
p := pair.NewCurrencyPairDelimiter("FXBTC_JPY", "_")
p = b.CheckFXString(p)
if p.GetFirstCurrency().String() != "FX_BTC" {
if p.FirstCurrency.String() != "FX_BTC" {
t.Error("test failed - Bitflyer - CheckFXString() error")
}
}

View File

@@ -81,7 +81,7 @@ func (b *Bitflyer) GetTickerPrice(p pair.CurrencyPair, assetType string) (ticker
// CheckFXString upgrades currency pair if needed
func (b *Bitflyer) CheckFXString(p pair.CurrencyPair) pair.CurrencyPair {
if common.StringContains(p.GetFirstCurrency().String(), "FX") {
if common.StringContains(p.FirstCurrency.String(), "FX") {
p.FirstCurrency = "FX_BTC"
return p
}