Skip to content

Commit

Permalink
exx default userAgent added fix ccxt#3613
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor committed Aug 11, 2018
1 parent 1704401 commit 807d3f4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/exx.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ module.exports = class exx extends Exchange {
'name': 'EXX',
'countries': [ 'CN' ],
'rateLimit': 1000 / 10,
'userAgent': this.userAgents['chrome'],
'has': {
'fetchOrder': true,
'fetchTickers': true,
Expand Down Expand Up @@ -366,6 +367,9 @@ module.exports = class exx extends Exchange {
}, params)));
let signature = this.hmac (this.encode (query), this.encode (this.secret), 'sha512');
url += '?' + query + '&signature=' + signature;
headers = {
'Content-Type': 'application/x-www-form-urlencoded',
};
}
return { 'url': url, 'method': method, 'body': body, 'headers': headers };
}
Expand Down

0 comments on commit 807d3f4

Please sign in to comment.