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