Fix Bithumb GetAllTickers type assertion
@@ -6,6 +6,7 @@ import (
"fmt"
"log"
"net/url"
+ "reflect"
"strconv"
"time"
@@ -177,6 +178,10 @@ func (b *Bithumb) GetAllTickers() (map[string]Ticker, error) {
continue
}
+ if reflect.TypeOf(v).String() != "map[string]interface {}" {
+ continue
+ }
+
data := v.(map[string]interface{})
var t Ticker
t.AveragePrice, _ = strconv.ParseFloat(data["average_price"].(string), 64)
