From 53964aadf5f1cdde8964717879ff82787e7baf3a Mon Sep 17 00:00:00 2001 From: Adrian Gallagher Date: Wed, 22 May 2019 17:03:35 +1000 Subject: [PATCH] COINUT: Fix SendHTTPRequest authenticated requests (#308) --- exchanges/coinut/coinut.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exchanges/coinut/coinut.go b/exchanges/coinut/coinut.go index 70d91c00..3990cecb 100644 --- a/exchanges/coinut/coinut.go +++ b/exchanges/coinut/coinut.go @@ -366,7 +366,7 @@ func (c *COINUT) SendHTTPRequest(apiRequest string, params map[string]interface{ headers := make(map[string]string) if authenticated { headers["X-USER"] = c.ClientID - hmac := common.GetHMAC(common.HashSHA256, payload, []byte(c.APISecret)) + hmac := common.GetHMAC(common.HashSHA256, payload, []byte(c.APIKey)) headers["X-SIGNATURE"] = common.HexEncodeToString(hmac) } headers["Content-Type"] = "application/json"