Reputation: 608
Upvotes: 3
Views: 485
Reputation: 76
Instead of
var hashInBase64 = CryptoJS.enc.Base64.stringify(hash);
pm.environment.set("hmacd", hashInBase64);
You should use
var hashInHex = CryptoJS.enc.Hex.stringify(hash);
pm.environment.set("hmacd", hashInHex);
As Poloniex uses Hex encoding instead of Base64 encoding for the signature.
Upvotes: 4