Skip to content

Commit

Permalink
1.18.305
Browse files Browse the repository at this point in the history
[ci skip]
Travis CI committed Feb 28, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 4ea98d8 commit 5822243
Showing 15 changed files with 31 additions and 31 deletions.
14 changes: 7 additions & 7 deletions build/ccxt.browser.js
Original file line number Diff line number Diff line change
@@ -45,7 +45,7 @@ const Exchange = require ('./js/base/Exchange')
//-----------------------------------------------------------------------------
// this is updated by vss.js when building

const version = '1.18.304'
const version = '1.18.305'

Exchange.ccxtVersion = version

@@ -46154,7 +46154,7 @@ module.exports = class itbit extends Exchange {
// "executionId": "23132"
// }
//
const id = this.safeString2 (trade, 'executionId');
const id = this.safeString2 (trade, 'executionId', 'matchNumber');
const timestamp = this.parse8601 (this.safeString (trade, 'timestamp'));
const side = this.safeString (trade, 'direction');
const orderId = this.safeString (trade, 'orderId');
@@ -50983,11 +50983,11 @@ module.exports = class kucoin2 extends Exchange {
// good
// { code: '200000', data: { ... }}
//
let errorCode = this.safeString (response, 'code');
if (errorCode in this.exceptions) {
let Exception = this.exceptions[errorCode];
let message = this.safeString (response, 'msg', '');
throw new Exception (this.id + ' ' + message);
const errorCode = this.safeString (response, 'code');
const message = this.safeString (response, 'msg');
const ExceptionClass = this.safeValue2 (this.exceptions, message, errorCode);
if (ExceptionClass !== undefined) {
throw new ExceptionClass (this.id + ' ' + message);
}
}
};
2 changes: 1 addition & 1 deletion ccxt.js
Original file line number Diff line number Diff line change
@@ -37,7 +37,7 @@ const Exchange = require ('./js/base/Exchange')
//-----------------------------------------------------------------------------
// this is updated by vss.js when building

const version = '1.18.304'
const version = '1.18.305'

Exchange.ccxtVersion = version

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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.18.304",
"version": "1.18.305",
"description": "A JavaScript / Python / PHP cryptocurrency trading library with support for 130+ exchanges",
"main": "./ccxt.js",
"unpkg": "build/ccxt.browser.js",
4 changes: 2 additions & 2 deletions php/Exchange.php
Original file line number Diff line number Diff line change
@@ -34,7 +34,7 @@
use kornrunner\Secp256k1;
use kornrunner\Solidity;

$version = '1.18.304';
$version = '1.18.305';

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

class Exchange {

const VERSION = '1.18.304';
const VERSION = '1.18.305';

public static $eth_units = array (
'wei' => '1',
2 changes: 1 addition & 1 deletion php/itbit.php
Original file line number Diff line number Diff line change
@@ -154,7 +154,7 @@ public function parse_trade ($trade, $market = null) {
// "executionId" => "23132"
// }
//
$id = $this->safe_string_2($trade, 'executionId');
$id = $this->safe_string_2($trade, 'executionId', 'matchNumber');
$timestamp = $this->parse8601 ($this->safe_string($trade, 'timestamp'));
$side = $this->safe_string($trade, 'direction');
$orderId = $this->safe_string($trade, 'orderId');
8 changes: 4 additions & 4 deletions php/kucoin2.php
Original file line number Diff line number Diff line change
@@ -1081,10 +1081,10 @@ public function handle_errors ($code, $reason, $url, $method, $headers, $body, $
// array ( $code => '200000', data => { ... )}
//
$errorCode = $this->safe_string($response, 'code');
if (is_array ($this->exceptions) && array_key_exists ($errorCode, $this->exceptions)) {
$Exception = $this->exceptions[$errorCode];
$message = $this->safe_string($response, 'msg', '');
throw new $Exception ($this->id . ' ' . $message);
$message = $this->safe_string($response, 'msg');
$ExceptionClass = $this->safe_value_2($this->exceptions, $message, $errorCode);
if ($ExceptionClass !== null) {
throw new $ExceptionClass ($this->id . ' ' . $message);
}
}
}
2 changes: 1 addition & 1 deletion python/ccxt/__init__.py
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@

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

__version__ = '1.18.304'
__version__ = '1.18.305'

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

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

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

__version__ = '1.18.304'
__version__ = '1.18.305'

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

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

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

__version__ = '1.18.304'
__version__ = '1.18.305'

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

2 changes: 1 addition & 1 deletion python/ccxt/async_support/itbit.py
Original file line number Diff line number Diff line change
@@ -153,7 +153,7 @@ def parse_trade(self, trade, market=None):
# "executionId": "23132"
# }
#
id = self.safe_string_2(trade, 'executionId')
id = self.safe_string_2(trade, 'executionId', 'matchNumber')
timestamp = self.parse8601(self.safe_string(trade, 'timestamp'))
side = self.safe_string(trade, 'direction')
orderId = self.safe_string(trade, 'orderId')
8 changes: 4 additions & 4 deletions python/ccxt/async_support/kucoin2.py
Original file line number Diff line number Diff line change
@@ -1015,7 +1015,7 @@ def handle_errors(self, code, reason, url, method, headers, body, response):
# {code: '200000', data: {...}}
#
errorCode = self.safe_string(response, 'code')
if errorCode in self.exceptions:
Exception = self.exceptions[errorCode]
message = self.safe_string(response, 'msg', '')
raise Exception(self.id + ' ' + message)
message = self.safe_string(response, 'msg')
ExceptionClass = self.safe_value_2(self.exceptions, message, errorCode)
if ExceptionClass is not None:
raise ExceptionClass(self.id + ' ' + message)
2 changes: 1 addition & 1 deletion python/ccxt/base/exchange.py
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@

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

__version__ = '1.18.304'
__version__ = '1.18.305'

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

2 changes: 1 addition & 1 deletion python/ccxt/itbit.py
Original file line number Diff line number Diff line change
@@ -153,7 +153,7 @@ def parse_trade(self, trade, market=None):
# "executionId": "23132"
# }
#
id = self.safe_string_2(trade, 'executionId')
id = self.safe_string_2(trade, 'executionId', 'matchNumber')
timestamp = self.parse8601(self.safe_string(trade, 'timestamp'))
side = self.safe_string(trade, 'direction')
orderId = self.safe_string(trade, 'orderId')
8 changes: 4 additions & 4 deletions python/ccxt/kucoin2.py
Original file line number Diff line number Diff line change
@@ -1015,7 +1015,7 @@ def handle_errors(self, code, reason, url, method, headers, body, response):
# {code: '200000', data: {...}}
#
errorCode = self.safe_string(response, 'code')
if errorCode in self.exceptions:
Exception = self.exceptions[errorCode]
message = self.safe_string(response, 'msg', '')
raise Exception(self.id + ' ' + message)
message = self.safe_string(response, 'msg')
ExceptionClass = self.safe_value_2(self.exceptions, message, errorCode)
if ExceptionClass is not None:
raise ExceptionClass(self.id + ' ' + message)

0 comments on commit 5822243

Please sign in to comment.