Package currency

This commit is contained in:
Adrian Gallagher
2017-03-28 15:52:16 +11:00
parent aeb327c80c
commit a9d9ee54f7
8 changed files with 105 additions and 80 deletions

View File

@@ -2,6 +2,8 @@ package main
import (
"sort"
"github.com/thrasher-/gocryptotrader/currency"
)
type ExchangeInfo struct {
@@ -43,7 +45,7 @@ func (this ByVolume) Swap(i, j int) {
}
func AddExchangeInfo(exchange, crypto, fiat string, price, volume float64) {
if !IsFiatCurrency(fiat) {
if !currency.IsFiatCurrency(fiat) {
return
}
if len(ExchInfo) == 0 {