Skip to content

Commit

Permalink
Merge pull request thrasher-corp#17 from asalei/patch-1
Browse files Browse the repository at this point in the history
Incorrect Huobi URL
thrasher- authored Dec 1, 2016

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
2 parents 60b475f + 2d3d328 commit 58e96ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions huobihttp.go
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 58e96ac

Please sign in to comment.