Skip to content

Commit

Permalink
1.14.101
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
Travis CI committed May 31, 2018
1 parent 5efaa16 commit a7d9e9b
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 10 deletions.
9 changes: 6 additions & 3 deletions build/ccxt.browser.js

Large diffs are not rendered by default.

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

const version = '1.14.100'
const version = '1.14.101'

Exchange.ccxtVersion = version

Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "ccxt",
"version": "1.14.100",
"version": "1.14.101",
"description": "A JavaScript / Python / PHP cryptocurrency trading library with support for 100+ exchanges",
"main": "./ccxt.js",
"unpkg": "build/ccxt.browser.js",
Expand Down
2 changes: 1 addition & 1 deletion php/Exchange.php
Expand Up @@ -30,7 +30,7 @@

namespace ccxt;

$version = '1.14.100';
$version = '1.14.101';

// rounding mode
const TRUNCATE = 0;
Expand Down
2 changes: 2 additions & 0 deletions php/poloniex.php
Expand Up @@ -844,6 +844,8 @@ public function handle_errors ($code, $reason, $url, $method, $headers, $body) {
throw new DDoSProtection ($feedback);
} else if (mb_strpos ($error, 'Total must be at least') !== false) {
throw new InvalidOrder ($feedback);
} else if (mb_strpos ($error, 'This account is frozen.') !== false) {
throw new AccountSuspended ($feedback);
} else if (mb_strpos ($error, 'Not enough') !== false) {
throw new InsufficientFunds ($feedback);
} else if (mb_strpos ($error, 'Nonce must be greater') !== false) {
Expand Down
2 changes: 1 addition & 1 deletion python/ccxt/__init__.py
Expand Up @@ -22,7 +22,7 @@

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

__version__ = '1.14.100'
__version__ = '1.14.101'

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

Expand Down
2 changes: 1 addition & 1 deletion python/ccxt/async/__init__.py
Expand Up @@ -4,7 +4,7 @@

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

__version__ = '1.14.100'
__version__ = '1.14.101'

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

Expand Down
2 changes: 1 addition & 1 deletion python/ccxt/async/base/exchange.py
Expand Up @@ -2,7 +2,7 @@

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

__version__ = '1.14.100'
__version__ = '1.14.101'

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

Expand Down
3 changes: 3 additions & 0 deletions python/ccxt/async/poloniex.py
Expand Up @@ -9,6 +9,7 @@
import json
from ccxt.base.errors import ExchangeError
from ccxt.base.errors import AuthenticationError
from ccxt.base.errors import AccountSuspended
from ccxt.base.errors import InsufficientFunds
from ccxt.base.errors import InvalidOrder
from ccxt.base.errors import OrderNotFound
Expand Down Expand Up @@ -786,6 +787,8 @@ def handle_errors(self, code, reason, url, method, headers, body):
raise DDoSProtection(feedback)
elif error.find('Total must be at least') >= 0:
raise InvalidOrder(feedback)
elif error.find('This account is frozen.') >= 0:
raise AccountSuspended(feedback)
elif error.find('Not enough') >= 0:
raise InsufficientFunds(feedback)
elif error.find('Nonce must be greater') >= 0:
Expand Down
2 changes: 1 addition & 1 deletion python/ccxt/base/exchange.py
Expand Up @@ -4,7 +4,7 @@

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

__version__ = '1.14.100'
__version__ = '1.14.101'

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

Expand Down
3 changes: 3 additions & 0 deletions python/ccxt/poloniex.py
Expand Up @@ -9,6 +9,7 @@
import json
from ccxt.base.errors import ExchangeError
from ccxt.base.errors import AuthenticationError
from ccxt.base.errors import AccountSuspended
from ccxt.base.errors import InsufficientFunds
from ccxt.base.errors import InvalidOrder
from ccxt.base.errors import OrderNotFound
Expand Down Expand Up @@ -786,6 +787,8 @@ def handle_errors(self, code, reason, url, method, headers, body):
raise DDoSProtection(feedback)
elif error.find('Total must be at least') >= 0:
raise InvalidOrder(feedback)
elif error.find('This account is frozen.') >= 0:
raise AccountSuspended(feedback)
elif error.find('Not enough') >= 0:
raise InsufficientFunds(feedback)
elif error.find('Nonce must be greater') >= 0:
Expand Down

0 comments on commit a7d9e9b

Please sign in to comment.