From a4a031881dfc8f9c6b7b53806cf667fbc112c7b2 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Wed, 12 Sep 2018 18:11:49 +0000 Subject: [PATCH] 1.17.279 [ci skip] --- build/ccxt.browser.js | 14 +++++++++++++- ccxt.js | 2 +- package.json | 2 +- php/Exchange.php | 4 ++-- php/cobinhood.php | 12 ++++++++++++ python/ccxt/__init__.py | 2 +- python/ccxt/async_support/__init__.py | 2 +- python/ccxt/async_support/base/exchange.py | 2 +- python/ccxt/async_support/cobinhood.py | 12 ++++++++++++ python/ccxt/base/exchange.py | 2 +- python/ccxt/cobinhood.py | 12 ++++++++++++ 11 files changed, 57 insertions(+), 9 deletions(-) diff --git a/build/ccxt.browser.js b/build/ccxt.browser.js index 2a9b9cf0c381..c5f11c4136ec 100644 --- a/build/ccxt.browser.js +++ b/build/ccxt.browser.js @@ -45,7 +45,7 @@ const Exchange = require ('./js/base/Exchange') //----------------------------------------------------------------------------- // this is updated by vss.js when building -const version = '1.17.278' +const version = '1.17.279' Exchange.ccxtVersion = version @@ -21951,15 +21951,27 @@ module.exports = class cobinhood extends Exchange { let response = await this.privateGetWalletDepositAddresses (this.extend ({ 'currency': currency['id'], }, params)); + // + // { success: true, + // result: { deposit_addresses: [ { address: "abcdefg", + // blockchain_id: "eosio", + // created_at: 1536768050235, + // currency: "EOS", + // memo: "12345678", + // type: "exchange" } ] } } + // let addresses = this.safeValue (response['result'], 'deposit_addresses', []); let address = undefined; + let tag = undefined; if (addresses.length > 0) { address = this.safeString (addresses[0], 'address'); + tag = this.safeString2 (addresses[0], 'memo', 'tag'); } this.checkAddress (address); return { 'currency': code, 'address': address, + 'tag': tag, 'info': response, }; } diff --git a/ccxt.js b/ccxt.js index 7bb16bb44999..d61ab7233647 100644 --- a/ccxt.js +++ b/ccxt.js @@ -37,7 +37,7 @@ const Exchange = require ('./js/base/Exchange') //----------------------------------------------------------------------------- // this is updated by vss.js when building -const version = '1.17.278' +const version = '1.17.279' Exchange.ccxtVersion = version diff --git a/package.json b/package.json index 332c1c97d6e5..3db9629cc2fc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ccxt", - "version": "1.17.278", + "version": "1.17.279", "description": "A JavaScript / Python / PHP cryptocurrency trading library with support for 100+ exchanges", "main": "./ccxt.js", "unpkg": "build/ccxt.browser.js", diff --git a/php/Exchange.php b/php/Exchange.php index edf4e3c3deb4..bf2690a975de 100644 --- a/php/Exchange.php +++ b/php/Exchange.php @@ -34,7 +34,7 @@ use kornrunner\Secp256k1; use kornrunner\Solidity; -$version = '1.17.278'; +$version = '1.17.279'; // rounding mode const TRUNCATE = 0; @@ -50,7 +50,7 @@ class Exchange { - const VERSION = '1.17.278'; + const VERSION = '1.17.279'; public static $eth_units = array ( 'wei' => '1', diff --git a/php/cobinhood.php b/php/cobinhood.php index 40d65fc47847..3a20745d1921 100644 --- a/php/cobinhood.php +++ b/php/cobinhood.php @@ -598,15 +598,27 @@ public function fetch_deposit_address ($code, $params = array ()) { $response = $this->privateGetWalletDepositAddresses (array_merge (array ( 'currency' => $currency['id'], ), $params)); + // + // { success => true, + // result => { deposit_addresses => array ( { $address => "abcdefg", + // blockchain_id => "eosio", + // created_at => 1536768050235, + // $currency => "EOS", + // memo => "12345678", + // type => "exchange" } ) } } + // $addresses = $this->safe_value($response['result'], 'deposit_addresses', array ()); $address = null; + $tag = null; if (strlen ($addresses) > 0) { $address = $this->safe_string($addresses[0], 'address'); + $tag = $this->safe_string_2($addresses[0], 'memo', 'tag'); } $this->check_address($address); return array ( 'currency' => $code, 'address' => $address, + 'tag' => $tag, 'info' => $response, ); } diff --git a/python/ccxt/__init__.py b/python/ccxt/__init__.py index e5d54fbb0012..557b4423e67f 100644 --- a/python/ccxt/__init__.py +++ b/python/ccxt/__init__.py @@ -22,7 +22,7 @@ # ---------------------------------------------------------------------------- -__version__ = '1.17.278' +__version__ = '1.17.279' # ---------------------------------------------------------------------------- diff --git a/python/ccxt/async_support/__init__.py b/python/ccxt/async_support/__init__.py index 1c82f118a4f8..3872c02e192d 100644 --- a/python/ccxt/async_support/__init__.py +++ b/python/ccxt/async_support/__init__.py @@ -4,7 +4,7 @@ # ----------------------------------------------------------------------------- -__version__ = '1.17.278' +__version__ = '1.17.279' # ----------------------------------------------------------------------------- diff --git a/python/ccxt/async_support/base/exchange.py b/python/ccxt/async_support/base/exchange.py index 4fc4ecebc1de..348960bbfe8f 100644 --- a/python/ccxt/async_support/base/exchange.py +++ b/python/ccxt/async_support/base/exchange.py @@ -2,7 +2,7 @@ # ----------------------------------------------------------------------------- -__version__ = '1.17.278' +__version__ = '1.17.279' # ----------------------------------------------------------------------------- diff --git a/python/ccxt/async_support/cobinhood.py b/python/ccxt/async_support/cobinhood.py index ed425e54f7b4..7f57751e6750 100644 --- a/python/ccxt/async_support/cobinhood.py +++ b/python/ccxt/async_support/cobinhood.py @@ -569,14 +569,26 @@ async def fetch_deposit_address(self, code, params={}): response = await self.privateGetWalletDepositAddresses(self.extend({ 'currency': currency['id'], }, params)) + # + # {success: True, + # result: {deposit_addresses: [{ address: "abcdefg", + # blockchain_id: "eosio", + # created_at: 1536768050235, + # currency: "EOS", + # memo: "12345678", + # type: "exchange" }]} } + # addresses = self.safe_value(response['result'], 'deposit_addresses', []) address = None + tag = None if len(addresses) > 0: address = self.safe_string(addresses[0], 'address') + tag = self.safe_string_2(addresses[0], 'memo', 'tag') self.check_address(address) return { 'currency': code, 'address': address, + 'tag': tag, 'info': response, } diff --git a/python/ccxt/base/exchange.py b/python/ccxt/base/exchange.py index 3709891c1ab7..3c3b318e69f3 100644 --- a/python/ccxt/base/exchange.py +++ b/python/ccxt/base/exchange.py @@ -4,7 +4,7 @@ # ----------------------------------------------------------------------------- -__version__ = '1.17.278' +__version__ = '1.17.279' # ----------------------------------------------------------------------------- diff --git a/python/ccxt/cobinhood.py b/python/ccxt/cobinhood.py index c47aaed6d34f..0e39365f8e54 100644 --- a/python/ccxt/cobinhood.py +++ b/python/ccxt/cobinhood.py @@ -569,14 +569,26 @@ def fetch_deposit_address(self, code, params={}): response = self.privateGetWalletDepositAddresses(self.extend({ 'currency': currency['id'], }, params)) + # + # {success: True, + # result: {deposit_addresses: [{ address: "abcdefg", + # blockchain_id: "eosio", + # created_at: 1536768050235, + # currency: "EOS", + # memo: "12345678", + # type: "exchange" }]} } + # addresses = self.safe_value(response['result'], 'deposit_addresses', []) address = None + tag = None if len(addresses) > 0: address = self.safe_string(addresses[0], 'address') + tag = self.safe_string_2(addresses[0], 'memo', 'tag') self.check_address(address) return { 'currency': code, 'address': address, + 'tag': tag, 'info': response, }