mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-31 15:10:42 +00:00
Fixes huobi hadax signature for authenticated methods (#216)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user