This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Computes the HMAC for requests sent to the Coinbase Pro API. | |
// | |
// - Add the following code as Postman pre-request script | |
// - Adapt the getPatch function an the variable names according to your needs | |
const timestamp = Date.now() / 1000; | |
function getPath(url) { | |
// URL path regex works only if your URLs look like this: {{api_url}}/resource | |
// If you use hardcoded URLs or any other scheme, adapt the regex pattern! |