Skip to content

Commit

Permalink
1.10.858
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
Travis CI committed Jan 27, 2018
1 parent 245b150 commit 3fe30aa
Show file tree
Hide file tree
Showing 11 changed files with 33 additions and 13 deletions.
11 changes: 8 additions & 3 deletions build/ccxt.browser.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion ccxt.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const Exchange = require ('./js/base/Exchange')
//-----------------------------------------------------------------------------
// this is updated by vss.js when building

const version = '1.10.857'
const version = '1.10.858'

Exchange.ccxtVersion = version

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ccxt",
"version": "1.10.857",
"version": "1.10.858",
"description": "A JavaScript / Python / PHP cryptocurrency trading library with support for 90+ exchanges",
"main": "./ccxt.js",
"unpkg": "build/ccxt.browser.js",
Expand Down
2 changes: 1 addition & 1 deletion php/Exchange.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

namespace ccxt;

$version = '1.10.857';
$version = '1.10.858';

abstract class Exchange {

Expand Down
7 changes: 6 additions & 1 deletion php/huobipro.php
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,8 @@ public function sign ($path, $api = 'public', $method = 'GET', $params = array (
'Timestamp' => $timestamp,
), $query));
$auth = $this->urlencode ($request);
$payload = implode ('\n', array ($method, $this->hostname, $url, $auth));
// unfortunately, PHP demands double quotes for the escaped newline symbol
$payload = implode ("\n", array ($method, $this->hostname, $url, $auth));
$signature = $this->hmac ($this->encode ($payload), $this->encode ($this->secret), 'sha256', 'base64');
$auth .= '&' . $this->urlencode (array ( 'Signature' => $signature ));
$url .= '?' . $auth;
Expand All @@ -465,6 +466,10 @@ public function sign ($path, $api = 'public', $method = 'GET', $params = array (
$headers = array (
'Content-Type' => 'application/json',
);
} else {
$headers = array (
'Content-Type' => 'application/x-www-form-urlencoded',
);
}
} else {
if ($params)
Expand Down
2 changes: 1 addition & 1 deletion python/ccxt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

# ----------------------------------------------------------------------------

__version__ = '1.10.857'
__version__ = '1.10.858'

# ----------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion python/ccxt/async/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# -----------------------------------------------------------------------------

__version__ = '1.10.857'
__version__ = '1.10.858'

# -----------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion python/ccxt/async/base/exchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# -----------------------------------------------------------------------------

__version__ = '1.10.857'
__version__ = '1.10.858'

# -----------------------------------------------------------------------------

Expand Down
7 changes: 6 additions & 1 deletion python/ccxt/async/huobipro.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,8 @@ def sign(self, path, api='public', method='GET', params={}, headers=None, body=N
'Timestamp': timestamp,
}, query))
auth = self.urlencode(request)
payload = '\n'.join([method, self.hostname, url, auth])
# unfortunately, PHP demands double quotes for the escaped newline symbol
payload = "\n".join([method, self.hostname, url, auth])
signature = self.hmac(self.encode(payload), self.encode(self.secret), hashlib.sha256, 'base64')
auth += '&' + self.urlencode({'Signature': signature})
url += '?' + auth
Expand All @@ -433,6 +434,10 @@ def sign(self, path, api='public', method='GET', params={}, headers=None, body=N
headers = {
'Content-Type': 'application/json',
}
else:
headers = {
'Content-Type': 'application/x-www-form-urlencoded',
}
else:
if params:
url += '?' + self.urlencode(params)
Expand Down
2 changes: 1 addition & 1 deletion python/ccxt/base/exchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# -----------------------------------------------------------------------------

__version__ = '1.10.857'
__version__ = '1.10.858'

# -----------------------------------------------------------------------------

Expand Down
7 changes: 6 additions & 1 deletion python/ccxt/huobipro.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,8 @@ def sign(self, path, api='public', method='GET', params={}, headers=None, body=N
'Timestamp': timestamp,
}, query))
auth = self.urlencode(request)
payload = '\n'.join([method, self.hostname, url, auth])
# unfortunately, PHP demands double quotes for the escaped newline symbol
payload = "\n".join([method, self.hostname, url, auth])
signature = self.hmac(self.encode(payload), self.encode(self.secret), hashlib.sha256, 'base64')
auth += '&' + self.urlencode({'Signature': signature})
url += '?' + auth
Expand All @@ -433,6 +434,10 @@ def sign(self, path, api='public', method='GET', params={}, headers=None, body=N
headers = {
'Content-Type': 'application/json',
}
else:
headers = {
'Content-Type': 'application/x-www-form-urlencoded',
}
else:
if params:
url += '?' + self.urlencode(params)
Expand Down

0 comments on commit 3fe30aa

Please sign in to comment.