Skip to content

Commit

Permalink
COINUT: Fix SendHTTPRequest authenticated requests (thrasher-corp#308)
Browse files Browse the repository at this point in the history
  • Loading branch information
thrasher- authored May 22, 2019
1 parent 506d601 commit 53964aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exchanges/coinut/coinut.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 53964aa

Please sign in to comment.