Skip to content

Commit

Permalink
added v2 version constant
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor committed May 31, 2018
1 parent 8359c21 commit 95718ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/coinbase.js
Expand Up @@ -14,6 +14,7 @@ module.exports = class coinbase extends Exchange {
'name': 'coinbase',
'countries': 'US',
'rateLimit': 1000,
'version': 'v2',
'userAgent': this.userAgents['chrome'],
'has': {
'CORS': true,
Expand Down Expand Up @@ -182,7 +183,7 @@ module.exports = class coinbase extends Exchange {
payload = body;
}
}
let what = nonce + method + '/v2' + request + payload;
let what = nonce + method + '/' + this.version + request + payload;
let signature = this.hmac (this.encode (what), this.secret);
headers = {
'CB-ACCESS-KEY': this.apiKey,
Expand Down

0 comments on commit 95718ef

Please sign in to comment.