Change exchanges usage of GetName to Name (#378)

* Change exchanges usage of GetName to Name

* Changed GetName to Name
This commit is contained in:
lozdog245
2019-11-20 09:50:14 +11:00
committed by Adrian Gallagher
parent af5556efe6
commit 52e2686b9e
57 changed files with 205 additions and 205 deletions

View File

@@ -202,7 +202,7 @@ func (b *Bithumb) UpdateTicker(p currency.Pair, assetType asset.Item) (ticker.Pr
// FetchTicker returns the ticker for a currency pair
func (b *Bithumb) FetchTicker(p currency.Pair, assetType asset.Item) (ticker.Price, error) {
tickerNew, err := ticker.GetTicker(b.GetName(), p, assetType)
tickerNew, err := ticker.GetTicker(b.Name, p, assetType)
if err != nil {
return b.UpdateTicker(p, assetType)
}
@@ -211,7 +211,7 @@ func (b *Bithumb) FetchTicker(p currency.Pair, assetType asset.Item) (ticker.Pri
// FetchOrderbook returns orderbook base on the currency pair
func (b *Bithumb) FetchOrderbook(p currency.Pair, assetType asset.Item) (orderbook.Base, error) {
ob, err := orderbook.Get(b.GetName(), p, assetType)
ob, err := orderbook.Get(b.Name, p, assetType)
if err != nil {
return b.UpdateOrderbook(p, assetType)
}
@@ -245,7 +245,7 @@ func (b *Bithumb) UpdateOrderbook(p currency.Pair, assetType asset.Item) (orderb
}
orderBook.Pair = p
orderBook.ExchangeName = b.GetName()
orderBook.ExchangeName = b.Name
orderBook.AssetType = assetType
err = orderBook.Process()
@@ -284,7 +284,7 @@ func (b *Bithumb) GetAccountInfo() (exchange.AccountInfo, error) {
Currencies: exchangeBalances,
})
info.Exchange = b.GetName()
info.Exchange = b.Name
return info, nil
}