Skip to content

Commit

Permalink
1.14.109
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
Travis CI committed May 31, 2018
1 parent bafe556 commit a78aa93
Show file tree
Hide file tree
Showing 11 changed files with 71 additions and 9 deletions.
20 changes: 18 additions & 2 deletions build/ccxt.browser.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion ccxt.js
Expand Up @@ -37,7 +37,7 @@ const Exchange = require ('./js/base/Exchange')
//-----------------------------------------------------------------------------
// this is updated by vss.js when building

const version = '1.14.108'
const version = '1.14.109'

Exchange.ccxtVersion = version

Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "ccxt",
"version": "1.14.108",
"version": "1.14.109",
"description": "A JavaScript / Python / PHP cryptocurrency trading library with support for 100+ exchanges",
"main": "./ccxt.js",
"unpkg": "build/ccxt.browser.js",
Expand Down
2 changes: 1 addition & 1 deletion php/Exchange.php
Expand Up @@ -30,7 +30,7 @@

namespace ccxt;

$version = '1.14.108';
$version = '1.14.109';

// rounding mode
const TRUNCATE = 0;
Expand Down
16 changes: 16 additions & 0 deletions php/gatecoin.php
Expand Up @@ -659,6 +659,22 @@ public function create_deposit_address ($code, $params = array ()) {
);
}

public function create_user_wallet ($code, $address, $name, $password, $params = array ()) {
$this->load_markets();
$currency = $this->currency ($code);
$request = array (
'DigiCurrency' => $currency['id'],
'AddressName' => $name,
'Address' => $address,
'Password' => $password,
);
$response = $this->privatePostElectronicWalletUserWalletsDigiCurrency (array_merge ($request, $params));
return array (
'status' => 'ok',
'info' => $response,
);
}

public function handle_errors ($code, $reason, $url, $method, $headers, $body) {
if (gettype ($body) != 'string')
return; // fallback to default error handler
Expand Down
2 changes: 1 addition & 1 deletion python/ccxt/__init__.py
Expand Up @@ -22,7 +22,7 @@

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

__version__ = '1.14.108'
__version__ = '1.14.109'

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

Expand Down
2 changes: 1 addition & 1 deletion python/ccxt/async/__init__.py
Expand Up @@ -4,7 +4,7 @@

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

__version__ = '1.14.108'
__version__ = '1.14.109'

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

Expand Down
2 changes: 1 addition & 1 deletion python/ccxt/async/base/exchange.py
Expand Up @@ -2,7 +2,7 @@

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

__version__ = '1.14.108'
__version__ = '1.14.109'

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

Expand Down
15 changes: 15 additions & 0 deletions python/ccxt/async/gatecoin.py
Expand Up @@ -630,6 +630,21 @@ async def create_deposit_address(self, code, params={}):
'info': response,
}

async def create_user_wallet(self, code, address, name, password, params={}):
await self.load_markets()
currency = self.currency(code)
request = {
'DigiCurrency': currency['id'],
'AddressName': name,
'Address': address,
'Password': password,
}
response = await self.privatePostElectronicWalletUserWalletsDigiCurrency(self.extend(request, params))
return {
'status': 'ok',
'info': response,
}

def handle_errors(self, code, reason, url, method, headers, body):
if not isinstance(body, basestring):
return # fallback to default error handler
Expand Down
2 changes: 1 addition & 1 deletion python/ccxt/base/exchange.py
Expand Up @@ -4,7 +4,7 @@

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

__version__ = '1.14.108'
__version__ = '1.14.109'

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

Expand Down
15 changes: 15 additions & 0 deletions python/ccxt/gatecoin.py
Expand Up @@ -630,6 +630,21 @@ def create_deposit_address(self, code, params={}):
'info': response,
}

def create_user_wallet(self, code, address, name, password, params={}):
self.load_markets()
currency = self.currency(code)
request = {
'DigiCurrency': currency['id'],
'AddressName': name,
'Address': address,
'Password': password,
}
response = self.privatePostElectronicWalletUserWalletsDigiCurrency(self.extend(request, params))
return {
'status': 'ok',
'info': response,
}

def handle_errors(self, code, reason, url, method, headers, body):
if not isinstance(body, basestring):
return # fallback to default error handler
Expand Down

0 comments on commit a78aa93

Please sign in to comment.