mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 15:09:42 +00:00
COINUT: Fix SendHTTPRequest authenticated requests (#308)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user