Skip to content

Commit

Permalink
1.18.54
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
Travis CI committed Dec 20, 2018
1 parent c6a39d0 commit ecf87a5
Show file tree
Hide file tree
Showing 174 changed files with 231 additions and 231 deletions.
114 changes: 57 additions & 57 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.18.53'
const version = '1.18.54'

Exchange.ccxtVersion = version

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

$version = '1.18.53';
$version = '1.18.54';

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

class Exchange {

const VERSION = '1.18.53';
const VERSION = '1.18.54';

public static $eth_units = array (
'wei' => '1',
Expand Down
2 changes: 1 addition & 1 deletion php/acx.php
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ public function sign ($path, $api = 'public', $method = 'GET', $params = array (
return array ( 'url' => $url, 'method' => $method, 'body' => $body, 'headers' => $headers );
}

public function handle_errors ($code, $reason, $url, $method, $headers, $body, $response = null) {
public function handle_errors ($code, $reason, $url, $method, $headers, $body, $response) {
if ($code === 400) {
$response = json_decode ($body, $as_associative_array = true);
$error = $this->safe_value($response, 'error');
Expand Down
2 changes: 1 addition & 1 deletion php/bcex.php
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ public function sign ($path, $api = 'public', $method = 'GET', $params = array (
return array ( 'url' => $url, 'method' => $method, 'body' => $body, 'headers' => $headers );
}

public function handle_errors ($code, $reason, $url, $method, $headers, $body, $response = null) {
public function handle_errors ($code, $reason, $url, $method, $headers, $body, $response) {
if (gettype ($body) !== 'string')
return; // fallback to default error handler
if (strlen ($body) < 2)
Expand Down
2 changes: 1 addition & 1 deletion php/bibox.php
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ public function sign ($path, $api = 'public', $method = 'GET', $params = array (
return array ( 'url' => $url, 'method' => $method, 'body' => $body, 'headers' => $headers );
}

public function handle_errors ($code, $reason, $url, $method, $headers, $body, $response = null) {
public function handle_errors ($code, $reason, $url, $method, $headers, $body, $response) {
if (strlen ($body) > 0) {
if ($body[0] === '{') {
$response = json_decode ($body, $as_associative_array = true);
Expand Down
2 changes: 1 addition & 1 deletion php/bigone.php
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ public function sign ($path, $api = 'public', $method = 'GET', $params = array (
return array ( 'url' => $url, 'method' => $method, 'body' => $body, 'headers' => $headers );
}

public function handle_errors ($httpCode, $reason, $url, $method, $headers, $body, $response = null) {
public function handle_errors ($httpCode, $reason, $url, $method, $headers, $body, $response) {
if (gettype ($body) !== 'string')
return; // fallback to default $error handler
if (strlen ($body) < 2)
Expand Down
2 changes: 1 addition & 1 deletion php/binance.php
Original file line number Diff line number Diff line change
Expand Up @@ -1143,7 +1143,7 @@ public function sign ($path, $api = 'public', $method = 'GET', $params = array (
return array ( 'url' => $url, 'method' => $method, 'body' => $body, 'headers' => $headers );
}

public function handle_errors ($code, $reason, $url, $method, $headers, $body, $response = null) {
public function handle_errors ($code, $reason, $url, $method, $headers, $body, $response) {
if (($code === 418) || ($code === 429))
throw new DDoSProtection ($this->id . ' ' . (string) $code . ' ' . $reason . ' ' . $body);
// $error $response in a form => array ( "$code" => -1013, "msg" => "Invalid quantity." )
Expand Down
2 changes: 1 addition & 1 deletion php/bitbay.php
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ public function sign ($path, $api = 'public', $method = 'GET', $params = array (
return array ( 'url' => $url, 'method' => $method, 'body' => $body, 'headers' => $headers );
}

public function handle_errors ($httpCode, $reason, $url, $method, $headers, $body, $response = null) {
public function handle_errors ($httpCode, $reason, $url, $method, $headers, $body, $response) {
if (gettype ($body) !== 'string')
return; // fallback to default error handler
if (strlen ($body) < 2)
Expand Down
2 changes: 1 addition & 1 deletion php/bitfinex.php
Original file line number Diff line number Diff line change
Expand Up @@ -975,7 +975,7 @@ public function sign ($path, $api = 'public', $method = 'GET', $params = array (
return array ( 'url' => $url, 'method' => $method, 'body' => $body, 'headers' => $headers );
}

public function handle_errors ($code, $reason, $url, $method, $headers, $body, $response = null) {
public function handle_errors ($code, $reason, $url, $method, $headers, $body, $response) {
if (strlen ($body) < 2)
return;
if ($code >= 400) {
Expand Down
2 changes: 1 addition & 1 deletion php/bitforex.php
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ public function sign ($path, $api = 'public', $method = 'GET', $params = array (
return array ( 'url' => $url, 'method' => $method, 'body' => $body, 'headers' => $headers );
}

public function handle_errors ($code, $reason, $url, $method, $headers, $body, $response = null) {
public function handle_errors ($code, $reason, $url, $method, $headers, $body, $response) {
if (gettype ($body) !== 'string') {
return; // fallback to default error handler
}
Expand Down
2 changes: 1 addition & 1 deletion php/bithumb.php
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ public function sign ($path, $api = 'public', $method = 'GET', $params = array (
return array ( 'url' => $url, 'method' => $method, 'body' => $body, 'headers' => $headers );
}

public function handle_errors ($httpCode, $reason, $url, $method, $headers, $body, $response = null) {
public function handle_errors ($httpCode, $reason, $url, $method, $headers, $body, $response) {
if (gettype ($body) !== 'string')
return; // fallback to default error handler
if (strlen ($body) < 2)
Expand Down
2 changes: 1 addition & 1 deletion php/bitmex.php
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ public function withdraw ($code, $amount, $address, $tag = null, $params = array
);
}

public function handle_errors ($code, $reason, $url, $method, $headers, $body, $response = null) {
public function handle_errors ($code, $reason, $url, $method, $headers, $body, $response) {
if ($code === 429)
throw new DDoSProtection ($this->id . ' ' . $body);
if ($code >= 400) {
Expand Down
2 changes: 1 addition & 1 deletion php/bitsane.php
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ public function sign ($path, $api = 'public', $method = 'GET', $params = array (
return array ( 'url' => $url, 'method' => $method, 'body' => $body, 'headers' => $headers );
}

public function handle_errors ($httpCode, $reason, $url, $method, $headers, $body, $response = null) {
public function handle_errors ($httpCode, $reason, $url, $method, $headers, $body, $response) {
if (gettype ($body) !== 'string')
return; // fallback to default error handler
if (strlen ($body) < 2)
Expand Down
2 changes: 1 addition & 1 deletion php/bitso.php
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ public function sign ($path, $api = 'public', $method = 'GET', $params = array (
return array ( 'url' => $url, 'method' => $method, 'body' => $body, 'headers' => $headers );
}

public function handle_errors ($httpCode, $reason, $url, $method, $headers, $body, $response = null) {
public function handle_errors ($httpCode, $reason, $url, $method, $headers, $body, $response) {
if (gettype ($body) !== 'string')
return; // fallback to default $error handler
if (strlen ($body) < 2)
Expand Down
2 changes: 1 addition & 1 deletion php/bitstamp.php
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,7 @@ public function sign ($path, $api = 'public', $method = 'GET', $params = array (
return array ( 'url' => $url, 'method' => $method, 'body' => $body, 'headers' => $headers );
}

public function handle_errors ($httpCode, $reason, $url, $method, $headers, $body, $response = null) {
public function handle_errors ($httpCode, $reason, $url, $method, $headers, $body, $response) {
if (gettype ($body) !== 'string')
return; // fallback to default $error handler
if (strlen ($body) < 2)
Expand Down
2 changes: 1 addition & 1 deletion php/bittrex.php
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@ public function sign ($path, $api = 'public', $method = 'GET', $params = array (
return array ( 'url' => $url, 'method' => $method, 'body' => $body, 'headers' => $headers );
}

public function handle_errors ($code, $reason, $url, $method, $headers, $body, $response = null) {
public function handle_errors ($code, $reason, $url, $method, $headers, $body, $response) {
if ($body[0] === '{') {
$response = json_decode ($body, $as_associative_array = true);
// array ( $success => false, $message => "$message" )
Expand Down
2 changes: 1 addition & 1 deletion php/bitz.php
Original file line number Diff line number Diff line change
Expand Up @@ -1037,7 +1037,7 @@ public function sign ($path, $api = 'market', $method = 'GET', $params = array (
return array ( 'url' => $url, 'method' => $method, 'body' => $body, 'headers' => $headers );
}

public function handle_errors ($httpCode, $reason, $url, $method, $headers, $body, $response = null) {
public function handle_errors ($httpCode, $reason, $url, $method, $headers, $body, $response) {
if (gettype ($body) !== 'string')
return; // fallback to default error handler
if (strlen ($body) < 2)
Expand Down
2 changes: 1 addition & 1 deletion php/btcalpha.php
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ public function sign ($path, $api = 'public', $method = 'GET', $params = array (
return array ( 'url' => $url, 'method' => $method, 'body' => $body, 'headers' => $headers );
}

public function handle_errors ($code, $reason, $url, $method, $headers, $body, $response = null) {
public function handle_errors ($code, $reason, $url, $method, $headers, $body, $response) {
if ($code < 400)
return;
if (gettype ($body) !== 'string')
Expand Down
2 changes: 1 addition & 1 deletion php/btcbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ public function sign ($path, $api = 'public', $method = 'GET', $params = array (
return array ( 'url' => $url, 'method' => $method, 'body' => $body, 'headers' => $headers );
}

public function handle_errors ($httpCode, $reason, $url, $method, $headers, $body, $response = null) {
public function handle_errors ($httpCode, $reason, $url, $method, $headers, $body, $response) {
// typical error $response => array ("$result":false,"code":"401")
if ($httpCode >= 400)
return; // resort to defaultErrorHandler
Expand Down
2 changes: 1 addition & 1 deletion php/btcmarkets.php
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ public function sign ($path, $api = 'public', $method = 'GET', $params = array (
return array ( 'url' => $url, 'method' => $method, 'body' => $body, 'headers' => $headers );
}

public function handle_errors ($code, $reason, $url, $method, $headers, $body, $response = null) {
public function handle_errors ($code, $reason, $url, $method, $headers, $body, $response) {
if (strlen ($body) < 2)
return; // fallback to default $error handler
if ($body[0] === '{') {
Expand Down
2 changes: 1 addition & 1 deletion php/buda.php
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ public function sign ($path, $api = 'public', $method = 'GET', $params = array (
return array ( 'url' => $url, 'method' => $method, 'body' => $body, 'headers' => $headers );
}

public function handle_errors ($code, $reason, $url, $method, $headers, $body, $response = null) {
public function handle_errors ($code, $reason, $url, $method, $headers, $body, $response) {
if (!$this->is_json_encoded_object($body)) {
return; // fallback to default error handler
}
Expand Down
2 changes: 1 addition & 1 deletion php/cobinhood.php
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ public function sign ($path, $api = 'public', $method = 'GET', $params = array (
return array ( 'url' => $url, 'method' => $method, 'body' => $body, 'headers' => $headers );
}

public function handle_errors ($code, $reason, $url, $method, $headers, $body, $response = null) {
public function handle_errors ($code, $reason, $url, $method, $headers, $body, $response) {
if ($code < 400 || $code >= 600) {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion php/coinbase.php
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ public function sign ($path, $api = 'public', $method = 'GET', $params = array (
return array ( 'url' => $url, 'method' => $method, 'body' => $body, 'headers' => $headers );
}

public function handle_errors ($code, $reason, $url, $method, $headers, $body, $response = null) {
public function handle_errors ($code, $reason, $url, $method, $headers, $body, $response) {
if (gettype ($body) !== 'string')
return; // fallback to default error handler
if (strlen ($body) < 2)
Expand Down
2 changes: 1 addition & 1 deletion php/coinegg.php
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ public function sign ($path, $api = 'public', $method = 'GET', $params = array (
return array ( 'url' => $url, 'method' => $method, 'body' => $body, 'headers' => $headers );
}

public function handle_errors ($code, $reason, $url, $method, $headers, $body, $response = null) {
public function handle_errors ($code, $reason, $url, $method, $headers, $body, $response) {
// checks against error codes
if (gettype ($body) !== 'string')
return;
Expand Down
2 changes: 1 addition & 1 deletion php/coinfalcon.php
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ public function sign ($path, $api = 'public', $method = 'GET', $params = array (
return array ( 'url' => $url, 'method' => $method, 'body' => $body, 'headers' => $headers );
}

public function handle_errors ($code, $reason, $url, $method, $headers, $body, $response = null) {
public function handle_errors ($code, $reason, $url, $method, $headers, $body, $response) {
if ($code < 400) {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion php/coinone.php
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ public function sign ($path, $api = 'public', $method = 'GET', $params = array (
return array ( 'url' => $url, 'method' => $method, 'body' => $body, 'headers' => $headers );
}

public function handle_errors ($code, $reason, $url, $method, $headers, $body, $response = null) {
public function handle_errors ($code, $reason, $url, $method, $headers, $body, $response) {
if (($body[0] === '{') || ($body[0] === '[')) {
$response = json_decode ($body, $as_associative_array = true);
if (is_array ($response) && array_key_exists ('result', $response)) {
Expand Down
2 changes: 1 addition & 1 deletion php/cointiger.php
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,7 @@ public function sign ($path, $api = 'public', $method = 'GET', $params = array (
return array ( 'url' => $url, 'method' => $method, 'body' => $body, 'headers' => $headers );
}

public function handle_errors ($httpCode, $reason, $url, $method, $headers, $body, $response = null) {
public function handle_errors ($httpCode, $reason, $url, $method, $headers, $body, $response) {
if (gettype ($body) !== 'string')
return; // fallback to default error handler
if (strlen ($body) < 2)
Expand Down
2 changes: 1 addition & 1 deletion php/crex24.php
Original file line number Diff line number Diff line change
Expand Up @@ -1183,7 +1183,7 @@ public function sign ($path, $api = 'public', $method = 'GET', $params = array (
return array ( 'url' => $url, 'method' => $method, 'body' => $body, 'headers' => $headers );
}

public function handle_errors ($code, $reason, $url, $method, $headers, $body, $response = null) {
public function handle_errors ($code, $reason, $url, $method, $headers, $body, $response) {
if (!$this->is_json_encoded_object($body)) {
return; // fallback to default error handler
}
Expand Down
2 changes: 1 addition & 1 deletion php/crypton.php
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ public function sign ($path, $api = 'public', $method = 'GET', $params = array (
return array ( 'url' => $url, 'method' => $method, 'body' => $body, 'headers' => $headers );
}

public function handle_errors ($code, $reason, $url, $method, $headers, $body, $response = null) {
public function handle_errors ($code, $reason, $url, $method, $headers, $body, $response) {
if ($body[0] === '{') {
$response = json_decode ($body, $as_associative_array = true);
$success = $this->safe_value($response, 'success');
Expand Down
2 changes: 1 addition & 1 deletion php/cryptopia.php
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ public function nonce () {
return $this->milliseconds ();
}

public function handle_errors ($code, $reason, $url, $method, $headers, $body, $response = null) {
public function handle_errors ($code, $reason, $url, $method, $headers, $body, $response) {
if (gettype ($body) !== 'string')
return; // fallback to default $error handler
if (strlen ($body) < 2)
Expand Down
2 changes: 1 addition & 1 deletion php/exmo.php
Original file line number Diff line number Diff line change
Expand Up @@ -1019,7 +1019,7 @@ public function nonce () {
return $this->milliseconds ();
}

public function handle_errors ($httpCode, $reason, $url, $method, $headers, $body, $response = null) {
public function handle_errors ($httpCode, $reason, $url, $method, $headers, $body, $response) {
if (gettype ($body) !== 'string')
return; // fallback to default error handler
if (strlen ($body) < 2)
Expand Down
2 changes: 1 addition & 1 deletion php/exx.php
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ public function sign ($path, $api = 'public', $method = 'GET', $params = array (
return array ( 'url' => $url, 'method' => $method, 'body' => $body, 'headers' => $headers );
}

public function handle_errors ($httpCode, $reason, $url, $method, $headers, $body, $response = null) {
public function handle_errors ($httpCode, $reason, $url, $method, $headers, $body, $response) {
if (gettype ($body) !== 'string')
return; // fallback to default error handler
if (strlen ($body) < 2)
Expand Down
2 changes: 1 addition & 1 deletion php/fcoin.php
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ public function sign ($path, $api = 'public', $method = 'GET', $params = array (
return array ( 'url' => $url, 'method' => $method, 'body' => $body, 'headers' => $headers );
}

public function handle_errors ($code, $reason, $url, $method, $headers, $body, $response = null) {
public function handle_errors ($code, $reason, $url, $method, $headers, $body, $response) {
if (gettype ($body) !== 'string')
return; // fallback to default error handler
if (strlen ($body) < 2)
Expand Down
2 changes: 1 addition & 1 deletion php/gatecoin.php
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ public function create_user_wallet ($code, $address, $name, $password, $params =
return $this->privatePostElectronicWalletUserWalletsDigiCurrency (array_merge ($request, $params));
}

public function handle_errors ($code, $reason, $url, $method, $headers, $body, $response = null) {
public function handle_errors ($code, $reason, $url, $method, $headers, $body, $response) {
if (gettype ($body) !== 'string')
return; // fallback to default error handler
if (strlen ($body) < 2)
Expand Down
2 changes: 1 addition & 1 deletion php/gateio.php
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ public function parse_ticker ($ticker, $market = null) {
);
}

public function handle_errors ($code, $reason, $url, $method, $headers, $body, $response = null) {
public function handle_errors ($code, $reason, $url, $method, $headers, $body, $response) {
if (strlen ($body) <= 0) {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion php/gdax.php
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ public function fetch_deposit_address ($code, $params = array ()) {
);
}

public function handle_errors ($code, $reason, $url, $method, $headers, $body, $response = null) {
public function handle_errors ($code, $reason, $url, $method, $headers, $body, $response) {
if (($code === 400) || ($code === 404)) {
if ($body[0] === '{') {
$response = json_decode ($body, $as_associative_array = true);
Expand Down
2 changes: 1 addition & 1 deletion php/hitbtc2.php
Original file line number Diff line number Diff line change
Expand Up @@ -1324,7 +1324,7 @@ public function sign ($path, $api = 'public', $method = 'GET', $params = array (
return array ( 'url' => $url, 'method' => $method, 'body' => $body, 'headers' => $headers );
}

public function handle_errors ($code, $reason, $url, $method, $headers, $body, $response = null) {
public function handle_errors ($code, $reason, $url, $method, $headers, $body, $response) {
if (gettype ($body) !== 'string')
return;
if ($code >= 400) {
Expand Down
2 changes: 1 addition & 1 deletion php/huobipro.php
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,7 @@ public function sign ($path, $api = 'public', $method = 'GET', $params = array (
return array ( 'url' => $url, 'method' => $method, 'body' => $body, 'headers' => $headers );
}

public function handle_errors ($httpCode, $reason, $url, $method, $headers, $body, $response = null) {
public function handle_errors ($httpCode, $reason, $url, $method, $headers, $body, $response) {
if (gettype ($body) !== 'string')
return; // fallback to default error handler
if (strlen ($body) < 2)
Expand Down
Loading

0 comments on commit ecf87a5

Please sign in to comment.