Incorrect Huobi URL

Change http://market.huobi.com/staticmarket/ to http://api.huobi.com/staticmarket/. The previous one got 404 error.
This commit is contained in:
somebody
2016-11-21 10:01:42 +08:00
committed by GitHub
parent 60b475f46c
commit 2d3d328d8a

View File

@@ -126,7 +126,7 @@ func (h *HUOBI) Run() {
func (h *HUOBI) GetTicker(symbol string) HuobiTicker {
resp := HuobiTickerResponse{}
path := fmt.Sprintf("http://market.huobi.com/staticmarket/ticker_%s_json.js", symbol)
path := fmt.Sprintf("http://api.huobi.com/staticmarket/ticker_%s_json.js", symbol)
err := SendHTTPGetRequest(path, true, &resp)
if err != nil {
@@ -151,7 +151,7 @@ func (h *HUOBI) GetTickerPrice(currency string) TickerPrice {
}
func (h *HUOBI) GetOrderBook(symbol string) bool {
path := fmt.Sprintf("http://market.huobi.com/staticmarket/depth_%s_json.js", symbol)
path := fmt.Sprintf("http://api.huobi.com/staticmarket/depth_%s_json.js", symbol)
err := SendHTTPGetRequest(path, true, nil)
if err != nil {
log.Println(err)