Skip to content

Commit

Permalink
1.10.324
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
Travis CI committed Dec 8, 2017
1 parent 1d5df23 commit 5599f78
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 18 deletions.
5 changes: 3 additions & 2 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 errors = require ('./js/base/errors')
//-----------------------------------------------------------------------------
// this is updated by vss.js when building

const version = '1.10.323'
const version = '1.10.324'

Exchange.ccxtVersion = version

Expand Down
2 changes: 1 addition & 1 deletion ccxt.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

namespace ccxt;

$version = '1.10.323';
$version = '1.10.324';

const CLASSES_DIR = __DIR__ . DIRECTORY_SEPARATOR . 'php' . DIRECTORY_SEPARATOR;

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.323",
"version": "1.10.324",
"description": "A JavaScript / Python / PHP cryptocurrency trading library with support for 90+ exchanges",
"main": "./ccxt.js",
"unpkg": "build/ccxt.browser.js",
Expand Down
19 changes: 10 additions & 9 deletions php/huobipro.php
Original file line number Diff line number Diff line change
Expand Up @@ -313,23 +313,24 @@ public function fetch_orders ($symbol = null, $since = null, $limit = null, $par
throw new ExchangeError ($this->id . ' fetchOrders() requires a $symbol parameter');
$this->load_markets ();
$market = $this->market ($symbol);
$status = null;
if (array_key_exists ('type', $params)) {
status = $params['type'];
$status = $params['type'];
} else if (array_key_exists ('status', $params)) {
status = $params['status']
$status = $params['status']
} else {
throw new ExchangeError ($this->id . ' fetchOrders() requires type param or status param for spot $market ' . $symbol . '(0 or "open" for unfilled or partial filled orders, 1 or "closed" for filled orders)')
throw new ExchangeError ($this->id . ' fetchOrders() requires type param or $status param for spot $market ' . $symbol . '(0 or "open" for unfilled or partial filled orders, 1 or "closed" for filled orders)')
}
if ((status == 0) || (status == 'open')) {
status = 'submitted,partial-filled';
} else if ((status == 1) || (status == 'closed')) {
status = 'filled,partial-canceled'
if (($status == 0) || ($status == 'open')) {
$status = 'submitted,partial-filled';
} else if (($status == 1) || ($status == 'closed')) {
$status = 'filled,partial-canceled'
} else {
throw new ExchangeError ($this->id . ' fetchOrders() wrong type param or status param for spot $market ' . $symbol . '(0 or "open" for unfilled or partial filled orders, 1 or "closed" for filled orders)');
throw new ExchangeError ($this->id . ' fetchOrders() wrong type param or $status param for spot $market ' . $symbol . '(0 or "open" for unfilled or partial filled orders, 1 or "closed" for filled orders)');
}
$response = $this->privateGetOrderOrders (array_merge (array (
'symbol' => $market['id'],
'states' => status,
'states' => $status,
)));
return $this->parse_orders($response['data'], $market);
}
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.323'
__version__ = '1.10.324'

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

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.323'
__version__ = '1.10.324'

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

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.323'
__version__ = '1.10.324'

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

Expand Down
1 change: 1 addition & 0 deletions python/ccxt/async/huobipro.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ async def fetch_orders(self, symbol=None, since=None, limit=None, params={}):
raise ExchangeError(self.id + ' fetchOrders() requires a symbol parameter')
self.load_markets()
market = self.market(symbol)
status = None
if 'type' in params:
status = params['type']
elif 'status' in 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.323'
__version__ = '1.10.324'

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

Expand Down
1 change: 1 addition & 0 deletions python/ccxt/huobipro.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ def fetch_orders(self, symbol=None, since=None, limit=None, params={}):
raise ExchangeError(self.id + ' fetchOrders() requires a symbol parameter')
self.load_markets()
market = self.market(symbol)
status = None
if 'type' in params:
status = params['type']
elif 'status' in params:
Expand Down

0 comments on commit 5599f78

Please sign in to comment.