Skip to content

Commit

Permalink
fixed createOrder
Browse files Browse the repository at this point in the history
  • Loading branch information
tankakatan committed May 30, 2018
1 parent 739dd13 commit 30caf06
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/cointiger.js
Expand Up @@ -485,7 +485,7 @@ module.exports = class cointiger extends huobipro {
let timestamp = this.milliseconds ();
return {
'info': response,
'id': response['order_id'].toString (),
'id': response['data']['order_id'].toString (),
'timestamp': timestamp,
'datetime': this.iso8601 (timestamp),
'lastTradeTimestamp': undefined,
Expand Down Expand Up @@ -537,7 +537,7 @@ module.exports = class cointiger extends huobipro {
}, urlParams)));
url += '&sign=' + this.decode (signature);
if (method === 'POST') {
body = this.urlencode (query);
body = /* JSON.stringify (query); */ this.urlencode (query);
headers = {
'Content-Type': 'application/x-www-form-urlencoded',
};
Expand All @@ -550,6 +550,7 @@ module.exports = class cointiger extends huobipro {
if (Object.keys (params).length)
url += '?' + this.urlencode (params);
}
// console.log ({ 'url': url, 'method': method, 'body': body, 'headers': headers })
return { 'url': url, 'method': method, 'body': body, 'headers': headers };
}

Expand Down

0 comments on commit 30caf06

Please sign in to comment.