Skip to content

Commit

Permalink
proper bitflyer signing for empty request body fix ccxt#1597
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor committed Jan 30, 2018
1 parent 7cf6720 commit 5dad1d6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions js/bitflyer.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,11 @@ module.exports = class bitflyer extends Exchange {
if (api === 'private') {
this.checkRequiredCredentials ();
let nonce = this.nonce ().toString ();
if (Object.keys (params).length)
let auth = [ nonce, method, request ].join ('');
if (Object.keys (params).length) {
body = this.json (params);
let auth = [ nonce, method, request, body ].join ('');
auth += body;
}
headers = {
'ACCESS-KEY': this.apiKey,
'ACCESS-TIMESTAMP': nonce,
Expand Down

0 comments on commit 5dad1d6

Please sign in to comment.