Add common StringReplace function

This commit is contained in:
Adrian Gallagher
2017-08-21 14:50:22 +10:00
parent 65f3a25888
commit 0fea98857c
3 changed files with 29 additions and 2 deletions

View File

@@ -2,9 +2,9 @@ package bittrex
import (
"log"
"strings"
"time"
"github.com/thrasher-/gocryptotrader/common"
"github.com/thrasher-/gocryptotrader/currency/pair"
"github.com/thrasher-/gocryptotrader/exchanges"
"github.com/thrasher-/gocryptotrader/exchanges/orderbook"
@@ -34,7 +34,7 @@ func (b *Bittrex) Run() {
continue
}
currencies = append(currencies,
strings.Replace(exchangeProducts[x].MarketName, "-", "", -1))
common.ReplaceString(exchangeProducts[x].MarketName, "-", "", -1))
}
err = b.UpdateAvailableCurrencies(currencies)
if err != nil {