Skip to content

Commit

Permalink
1.17.466
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
Travis CI committed Nov 4, 2018
1 parent d6de55e commit 954a98d
Show file tree
Hide file tree
Showing 33 changed files with 68 additions and 26 deletions.
21 changes: 16 additions & 5 deletions build/ccxt.browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const Exchange = require ('./js/base/Exchange')
//-----------------------------------------------------------------------------
// this is updated by vss.js when building

const version = '1.17.465'
const version = '1.17.466'

Exchange.ccxtVersion = version

Expand Down Expand Up @@ -9210,9 +9210,10 @@ module.exports = class bitfinex extends Exchange {
let address = this.safeString (response, 'address');
this.checkAddress (address);
return {
'info': response['info'],
'currency': code,
'address': address,
'info': response['info'],
'tag': undefined,
};
}

Expand Down Expand Up @@ -13134,6 +13135,7 @@ module.exports = class bitsane extends Exchange {
return {
'currency': code,
'address': address,
'tag': undefined,
'info': response,
};
}
Expand Down Expand Up @@ -31449,12 +31451,15 @@ module.exports = class cryptopia extends Exchange {
'Currency': currency['id'],
}, params));
let address = this.safeString (response['Data'], 'BaseAddress');
if (!address)
address = this.safeString (response['Data'], 'Address');
let tag = this.safeString (response['Data'], 'Address');
if (address === undefined) {
address = tag;
}
this.checkAddress (address);
return {
'currency': code,
'address': address,
'tag': tag,
'info': response,
};
}
Expand Down Expand Up @@ -31703,7 +31708,7 @@ module.exports = class deribit extends Exchange {
return {
'currency': 'BTC',
'address': account['depositAddress'],
'status': 'ok',
'tag': undefined,
'info': account,
};
}
Expand Down Expand Up @@ -35987,6 +35992,7 @@ module.exports = class gatecoin extends Exchange {
return {
'currency': code,
'address': address,
'tag': undefined,
'info': response,
};
}
Expand All @@ -36003,6 +36009,7 @@ module.exports = class gatecoin extends Exchange {
return {
'currency': code,
'address': address,
'tag': undefined,
'info': response,
};
}
Expand Down Expand Up @@ -37869,6 +37876,7 @@ module.exports = class gemini extends Exchange {
return {
'currency': code,
'address': address,
'tag': undefined,
'info': response,
};
}
Expand Down Expand Up @@ -41313,6 +41321,7 @@ module.exports = class huobipro extends Exchange {
return {
'currency': code,
'address': address,
'tag': undefined,
'info': response,
};
}
Expand Down Expand Up @@ -44668,10 +44677,12 @@ module.exports = class kraken extends Exchange {
if (numResults < 1)
throw new InvalidAddress (this.id + ' privatePostDepositAddresses() returned no addresses');
let address = this.safeString (result[0], 'address');
let tag = this.safeString2 (result[0], 'tag', 'memo');
this.checkAddress (address);
return {
'currency': code,
'address': address,
'tag': tag,
'info': response,
};
}
Expand Down
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.17.465'
const version = '1.17.466'

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.17.465",
"version": "1.17.466",
"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.17.465';
$version = '1.17.466';

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

class Exchange {

const VERSION = '1.17.465';
const VERSION = '1.17.466';

public static $eth_units = array (
'wei' => '1',
Expand Down
3 changes: 2 additions & 1 deletion php/bitfinex.php
Original file line number Diff line number Diff line change
Expand Up @@ -781,9 +781,10 @@ public function create_deposit_address ($code, $params = array ()) {
$address = $this->safe_string($response, 'address');
$this->check_address($address);
return array (
'info' => $response['info'],
'currency' => $code,
'address' => $address,
'info' => $response['info'],
'tag' => null,
);
}

Expand Down
1 change: 1 addition & 0 deletions php/bitsane.php
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@ public function fetch_deposit_address ($code, $params = array ()) {
return array (
'currency' => $code,
'address' => $address,
'tag' => null,
'info' => $response,
);
}
Expand Down
7 changes: 5 additions & 2 deletions php/cryptopia.php
Original file line number Diff line number Diff line change
Expand Up @@ -696,12 +696,15 @@ public function fetch_deposit_address ($code, $params = array ()) {
'Currency' => $currency['id'],
), $params));
$address = $this->safe_string($response['Data'], 'BaseAddress');
if (!$address)
$address = $this->safe_string($response['Data'], 'Address');
$tag = $this->safe_string($response['Data'], 'Address');
if ($address === null) {
$address = $tag;
}
$this->check_address($address);
return array (
'currency' => $code,
'address' => $address,
'tag' => $tag,
'info' => $response,
);
}
Expand Down
2 changes: 1 addition & 1 deletion php/deribit.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public function fetch_deposit_address ($currency, $params = array ()) {
return array (
'currency' => 'BTC',
'address' => $account['depositAddress'],
'status' => 'ok',
'tag' => null,
'info' => $account,
);
}
Expand Down
2 changes: 2 additions & 0 deletions php/gatecoin.php
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,7 @@ public function fetch_deposit_address ($code, $params = array ()) {
return array (
'currency' => $code,
'address' => $address,
'tag' => null,
'info' => $response,
);
}
Expand All @@ -655,6 +656,7 @@ public function create_deposit_address ($code, $params = array ()) {
return array (
'currency' => $code,
'address' => $address,
'tag' => null,
'info' => $response,
);
}
Expand Down
1 change: 1 addition & 0 deletions php/gemini.php
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,7 @@ public function create_deposit_address ($code, $params = array ()) {
return array (
'currency' => $code,
'address' => $address,
'tag' => null,
'info' => $response,
);
}
Expand Down
1 change: 1 addition & 0 deletions php/huobipro.php
Original file line number Diff line number Diff line change
Expand Up @@ -802,6 +802,7 @@ public function fetch_deposit_address ($code, $params = array ()) {
return array (
'currency' => $code,
'address' => $address,
'tag' => null,
'info' => $response,
);
}
Expand Down
2 changes: 2 additions & 0 deletions php/kraken.php
Original file line number Diff line number Diff line change
Expand Up @@ -997,10 +997,12 @@ public function fetch_deposit_address ($code, $params = array ()) {
if ($numResults < 1)
throw new InvalidAddress ($this->id . ' privatePostDepositAddresses() returned no addresses');
$address = $this->safe_string($result[0], 'address');
$tag = $this->safe_string_2($result[0], 'tag', 'memo');
$this->check_address($address);
return array (
'currency' => $code,
'address' => $address,
'tag' => $tag,
'info' => $response,
);
}
Expand Down
2 changes: 1 addition & 1 deletion python/ccxt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

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

__version__ = '1.17.465'
__version__ = '1.17.466'

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

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

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

__version__ = '1.17.465'
__version__ = '1.17.466'

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

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

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

__version__ = '1.17.465'
__version__ = '1.17.466'

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

Expand Down
3 changes: 2 additions & 1 deletion python/ccxt/async_support/bitfinex.py
Original file line number Diff line number Diff line change
Expand Up @@ -758,9 +758,10 @@ async def create_deposit_address(self, code, params={}):
address = self.safe_string(response, 'address')
self.check_address(address)
return {
'info': response['info'],
'currency': code,
'address': address,
'info': response['info'],
'tag': None,
}

async def fetch_deposit_address(self, code, params={}):
Expand Down
1 change: 1 addition & 0 deletions python/ccxt/async_support/bitsane.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ async def fetch_deposit_address(self, code, params={}):
return {
'currency': code,
'address': address,
'tag': None,
'info': response,
}

Expand Down
6 changes: 4 additions & 2 deletions python/ccxt/async_support/cryptopia.py
Original file line number Diff line number Diff line change
Expand Up @@ -647,12 +647,14 @@ async def fetch_deposit_address(self, code, params={}):
'Currency': currency['id'],
}, params))
address = self.safe_string(response['Data'], 'BaseAddress')
if not address:
address = self.safe_string(response['Data'], 'Address')
tag = self.safe_string(response['Data'], 'Address')
if address is None:
address = tag
self.check_address(address)
return {
'currency': code,
'address': address,
'tag': tag,
'info': response,
}

Expand Down
2 changes: 1 addition & 1 deletion python/ccxt/async_support/deribit.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ async def fetch_deposit_address(self, currency, params={}):
return {
'currency': 'BTC',
'address': account['depositAddress'],
'status': 'ok',
'tag': None,
'info': account,
}

Expand Down
2 changes: 2 additions & 0 deletions python/ccxt/async_support/gatecoin.py
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,7 @@ async def fetch_deposit_address(self, code, params={}):
return {
'currency': code,
'address': address,
'tag': None,
'info': response,
}

Expand All @@ -631,6 +632,7 @@ async def create_deposit_address(self, code, params={}):
return {
'currency': code,
'address': address,
'tag': None,
'info': response,
}

Expand Down
1 change: 1 addition & 0 deletions python/ccxt/async_support/gemini.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,5 +411,6 @@ async def create_deposit_address(self, code, params={}):
return {
'currency': code,
'address': address,
'tag': None,
'info': response,
}
1 change: 1 addition & 0 deletions python/ccxt/async_support/huobipro.py
Original file line number Diff line number Diff line change
Expand Up @@ -745,6 +745,7 @@ async def fetch_deposit_address(self, code, params={}):
return {
'currency': code,
'address': address,
'tag': None,
'info': response,
}

Expand Down
2 changes: 2 additions & 0 deletions python/ccxt/async_support/kraken.py
Original file line number Diff line number Diff line change
Expand Up @@ -949,10 +949,12 @@ async def fetch_deposit_address(self, code, params={}):
if numResults < 1:
raise InvalidAddress(self.id + ' privatePostDepositAddresses() returned no addresses')
address = self.safe_string(result[0], 'address')
tag = self.safe_string_2(result[0], 'tag', 'memo')
self.check_address(address)
return {
'currency': code,
'address': address,
'tag': tag,
'info': response,
}

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.17.465'
__version__ = '1.17.466'

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

Expand Down
3 changes: 2 additions & 1 deletion python/ccxt/bitfinex.py
Original file line number Diff line number Diff line change
Expand Up @@ -758,9 +758,10 @@ def create_deposit_address(self, code, params={}):
address = self.safe_string(response, 'address')
self.check_address(address)
return {
'info': response['info'],
'currency': code,
'address': address,
'info': response['info'],
'tag': None,
}

def fetch_deposit_address(self, code, params={}):
Expand Down
1 change: 1 addition & 0 deletions python/ccxt/bitsane.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ def fetch_deposit_address(self, code, params={}):
return {
'currency': code,
'address': address,
'tag': None,
'info': response,
}

Expand Down
6 changes: 4 additions & 2 deletions python/ccxt/cryptopia.py
Original file line number Diff line number Diff line change
Expand Up @@ -647,12 +647,14 @@ def fetch_deposit_address(self, code, params={}):
'Currency': currency['id'],
}, params))
address = self.safe_string(response['Data'], 'BaseAddress')
if not address:
address = self.safe_string(response['Data'], 'Address')
tag = self.safe_string(response['Data'], 'Address')
if address is None:
address = tag
self.check_address(address)
return {
'currency': code,
'address': address,
'tag': tag,
'info': response,
}

Expand Down
Loading

0 comments on commit 954a98d

Please sign in to comment.