Skip to content
Permalink
Browse files
1.17.564
[ci skip]
  • Loading branch information
Travis CI committed Nov 30, 2018
1 parent a048635 commit 48662c72989f76ee6e8d630947e9da68eba29373
@@ -45,7 +45,7 @@ const Exchange = require ('./js/base/Exchange')
//-----------------------------------------------------------------------------
// this is updated by vss.js when building

const version = '1.17.563'
const version = '1.17.564'

Exchange.ccxtVersion = version

@@ -10954,7 +10954,7 @@ module.exports = class bitforex extends Exchange {
// ---------------------------------------------------------------------------

const Exchange = require ('./base/Exchange');
const { ExchangeError } = require ('./base/errors');
const { ExchangeError, AuthenticationError } = require ('./base/errors');

// ---------------------------------------------------------------------------

@@ -11016,7 +11016,8 @@ module.exports = class bithumb extends Exchange {
},
},
'exceptions': {
'5100': ExchangeError, // {"status":"5100","message":"After May 23th, recent_transactions is no longer, hence users will not be able to connect to recent_transactions"}
'Bad Request.(Auth Data)': AuthenticationError, // { "status": "5100", "message": "Bad Request.(Auth Data)" }
'After May 23th, recent_transactions is no longer, hence users will not be able to connect to recent_transactions': ExchangeError, // {"status":"5100","message":"After May 23th, recent_transactions is no longer, hence users will not be able to connect to recent_transactions"}
},
});
}
@@ -11317,14 +11318,17 @@ module.exports = class bithumb extends Exchange {
//
// {"status":"5100","message":"After May 23th, recent_transactions is no longer, hence users will not be able to connect to recent_transactions"}
//
let status = this.safeString (response, 'status');
const status = this.safeString (response, 'status');
const message = this.safeString (response, 'message');
if (status !== undefined) {
if (status === '0000')
return; // no error
const feedback = this.id + ' ' + this.json (response);
const exceptions = this.exceptions;
if (status in exceptions) {
throw new exceptions[status] (feedback);
} else if (message in exceptions) {
throw new exceptions[message] (feedback);
} else {
throw new ExchangeError (feedback);
}
@@ -37,7 +37,7 @@ const Exchange = require ('./js/base/Exchange')
//-----------------------------------------------------------------------------
// this is updated by vss.js when building

const version = '1.17.563'
const version = '1.17.564'

Exchange.ccxtVersion = version

Some generated files are not rendered by default. Learn more.

@@ -1,6 +1,6 @@
{
"name": "ccxt",
"version": "1.17.563",
"version": "1.17.564",
"description": "A JavaScript / Python / PHP cryptocurrency trading library with support for 100+ exchanges",
"main": "./ccxt.js",
"unpkg": "build/ccxt.browser.js",
@@ -34,7 +34,7 @@
use kornrunner\Secp256k1;
use kornrunner\Solidity;

$version = '1.17.563';
$version = '1.17.564';

// rounding mode
const TRUNCATE = 0;
@@ -50,7 +50,7 @@

class Exchange {

const VERSION = '1.17.563';
const VERSION = '1.17.564';

public static $eth_units = array (
'wei' => '1',
@@ -66,7 +66,8 @@ public function describe () {
),
),
'exceptions' => array (
'5100' => '\\ccxt\\ExchangeError', // array ("status":"5100","message":"After May 23th, recent_transactions is no longer, hence users will not be able to connect to recent_transactions")
'Bad Request.(Auth Data)' => '\\ccxt\\AuthenticationError', // array ( "status" => "5100", "message" => "Bad Request.(Auth Data)" )
'After May 23th, recent_transactions is no longer, hence users will not be able to connect to recent_transactions' => '\\ccxt\\ExchangeError', // array ("status":"5100","message":"After May 23th, recent_transactions is no longer, hence users will not be able to connect to recent_transactions")
),
));
}
@@ -365,16 +366,19 @@ public function handle_errors ($httpCode, $reason, $url, $method, $headers, $bod
$response = json_decode ($body, $as_associative_array = true);
if (is_array ($response) && array_key_exists ('status', $response)) {
//
// array ("$status":"5100","message":"After May 23th, recent_transactions is no longer, hence users will not be able to connect to recent_transactions")
// array ("$status":"5100","$message":"After May 23th, recent_transactions is no longer, hence users will not be able to connect to recent_transactions")
//
$status = $this->safe_string($response, 'status');
$message = $this->safe_string($response, 'message');
if ($status !== null) {
if ($status === '0000')
return; // no error
$feedback = $this->id . ' ' . $this->json ($response);
$exceptions = $this->exceptions;
if (is_array ($exceptions) && array_key_exists ($status, $exceptions)) {
throw new $exceptions[$status] ($feedback);
} else if (is_array ($exceptions) && array_key_exists ($message, $exceptions)) {
throw new $exceptions[$message] ($feedback);
} else {
throw new ExchangeError ($feedback);
}
@@ -22,7 +22,7 @@

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

__version__ = '1.17.563'
__version__ = '1.17.564'

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

@@ -4,7 +4,7 @@

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

__version__ = '1.17.563'
__version__ = '1.17.564'

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

@@ -2,7 +2,7 @@

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

__version__ = '1.17.563'
__version__ = '1.17.564'

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

@@ -15,6 +15,7 @@
import hashlib
import json
from ccxt.base.errors import ExchangeError
from ccxt.base.errors import AuthenticationError


class bithumb (Exchange):
@@ -76,7 +77,8 @@ def describe(self):
},
},
'exceptions': {
'5100': ExchangeError, # {"status":"5100","message":"After May 23th, recent_transactions is no longer, hence users will not be able to connect to recent_transactions"}
'Bad Request.(Auth Data)': AuthenticationError, # {"status": "5100", "message": "Bad Request.(Auth Data)"}
'After May 23th, recent_transactions is no longer, hence users will not be able to connect to recent_transactions': ExchangeError, # {"status":"5100","message":"After May 23th, recent_transactions is no longer, hence users will not be able to connect to recent_transactions"}
},
})

@@ -352,13 +354,16 @@ def handle_errors(self, httpCode, reason, url, method, headers, body, response=N
# {"status":"5100","message":"After May 23th, recent_transactions is no longer, hence users will not be able to connect to recent_transactions"}
#
status = self.safe_string(response, 'status')
message = self.safe_string(response, 'message')
if status is not None:
if status == '0000':
return # no error
feedback = self.id + ' ' + self.json(response)
exceptions = self.exceptions
if status in exceptions:
raise exceptions[status](feedback)
elif message in exceptions:
raise exceptions[message](feedback)
else:
raise ExchangeError(feedback)

@@ -4,7 +4,7 @@

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

__version__ = '1.17.563'
__version__ = '1.17.564'

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

@@ -15,6 +15,7 @@
import hashlib
import json
from ccxt.base.errors import ExchangeError
from ccxt.base.errors import AuthenticationError


class bithumb (Exchange):
@@ -76,7 +77,8 @@ def describe(self):
},
},
'exceptions': {
'5100': ExchangeError, # {"status":"5100","message":"After May 23th, recent_transactions is no longer, hence users will not be able to connect to recent_transactions"}
'Bad Request.(Auth Data)': AuthenticationError, # {"status": "5100", "message": "Bad Request.(Auth Data)"}
'After May 23th, recent_transactions is no longer, hence users will not be able to connect to recent_transactions': ExchangeError, # {"status":"5100","message":"After May 23th, recent_transactions is no longer, hence users will not be able to connect to recent_transactions"}
},
})

@@ -352,13 +354,16 @@ def handle_errors(self, httpCode, reason, url, method, headers, body, response=N
# {"status":"5100","message":"After May 23th, recent_transactions is no longer, hence users will not be able to connect to recent_transactions"}
#
status = self.safe_string(response, 'status')
message = self.safe_string(response, 'message')
if status is not None:
if status == '0000':
return # no error
feedback = self.id + ' ' + self.json(response)
exceptions = self.exceptions
if status in exceptions:
raise exceptions[status](feedback)
elif message in exceptions:
raise exceptions[message](feedback)
else:
raise ExchangeError(feedback)

0 comments on commit 48662c7

Please sign in to comment.