From 52609827ebf44250ecac5064fab1306e7328c6be Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 11 Dec 2018 10:38:00 +1100 Subject: [PATCH] Fixes huobi hadax signature for authenticated methods (#216) --- exchanges/huobihadax/huobihadax.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exchanges/huobihadax/huobihadax.go b/exchanges/huobihadax/huobihadax.go index ab4d788f..7e47ad31 100644 --- a/exchanges/huobihadax/huobihadax.go +++ b/exchanges/huobihadax/huobihadax.go @@ -763,7 +763,7 @@ func (h *HUOBIHADAX) SendAuthenticatedHTTPPostRequest(method, endpoint, postBody signatureParams.Set("Timestamp", time.Now().UTC().Format("2006-01-02T15:04:05")) endpoint = fmt.Sprintf("/v%s/%s", huobihadaxAPIVersion, endpoint) - payload := fmt.Sprintf("%s\napi.huobi.pro\n%s\n%s", + payload := fmt.Sprintf("%s\napi.hadax.com\n%s\n%s", method, endpoint, signatureParams.Encode()) headers := make(map[string]string) @@ -791,7 +791,7 @@ func (h *HUOBIHADAX) SendAuthenticatedHTTPRequest(method, endpoint string, value values.Set("Timestamp", time.Now().UTC().Format("2006-01-02T15:04:05")) endpoint = fmt.Sprintf("/v%s/%s", huobihadaxAPIVersion, endpoint) - payload := fmt.Sprintf("%s\napi.huobi.pro\n%s\n%s", + payload := fmt.Sprintf("%s\napi.hadax.com\n%s\n%s", method, endpoint, values.Encode()) headers := make(map[string]string)