Skip to content

Commit

Permalink
1.10.227
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
Travis CI committed Nov 27, 2017
1 parent 7f154eb commit 6969adb
Show file tree
Hide file tree
Showing 11 changed files with 71 additions and 25 deletions.
24 changes: 18 additions & 6 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 errors = require ('./js/base/errors')
//-----------------------------------------------------------------------------
// this is updated by vss.js when building

const version = '1.10.226'
const version = '1.10.227'

Exchange.ccxtVersion = version

Expand Down
2 changes: 1 addition & 1 deletion ccxt.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

namespace ccxt;

$version = '1.10.226';
$version = '1.10.227';

const CLASSES_DIR = __DIR__ . DIRECTORY_SEPARATOR . 'php' . DIRECTORY_SEPARATOR;

Expand Down
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.10.226",
"version": "1.10.227",
"description": "A JavaScript / Python / PHP cryptocurrency trading library with support for 90+ exchanges",
"main": "./ccxt.js",
"unpkg": "build/ccxt.browser.js",
Expand Down
20 changes: 16 additions & 4 deletions php/bitfinex.php
Original file line number Diff line number Diff line change
Expand Up @@ -486,8 +486,19 @@ public function get_currency_name ($currency) {
throw new NotSupported ($this->id . ' ' . $currency . ' not supported for withdrawal');
}

public function deposit ($currency, $params = array ()) {
$this->load_markets();
public function create_deposit_address ($currency, $params = array ()) {
$response = $this->fetch_deposit_address ($currency, array_merge (array (
'renew' => 1,
), $params));
return array (
'currency' => $currency,
'address' => $response['address'],
'status' => 'ok',
'info' => $response['info'],
);
}

public function fetch_deposit_address ($currency, $params = array ()) {
$name = $this->get_currency_name ($currency);
$request = array (
'method' => $name,
Expand All @@ -496,13 +507,14 @@ public function deposit ($currency, $params = array ()) {
);
$response = $this->privatePostDepositNew (array_merge ($request, $params));
return array (
'info' => $response,
'currency' => $currency,
'address' => $response['address'],
'status' => 'ok',
'info' => $response,
);
}

public function withdraw ($currency, $amount, $address, $params = array ()) {
$this->load_markets();
$name = $this->get_currency_name ($currency);
$request = array (
'withdraw_type' => $name,
Expand Down
2 changes: 1 addition & 1 deletion python/ccxt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

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

__version__ = '1.10.226'
__version__ = '1.10.227'

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

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

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

__version__ = '1.10.226'
__version__ = '1.10.227'

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

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

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

__version__ = '1.10.226'
__version__ = '1.10.227'

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

Expand Down
19 changes: 15 additions & 4 deletions python/ccxt/async/bitfinex.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,8 +457,18 @@ def get_currency_name(self, currency):
return 'tetheruso'
raise NotSupported(self.id + ' ' + currency + ' not supported for withdrawal')

async def deposit(self, currency, params={}):
await self.load_markets()
async def create_deposit_address(self, currency, params={}):
response = await self.fetch_deposit_address(currency, self.extend({
'renew': 1,
}, params))
return {
'currency': currency,
'address': response['address'],
'status': 'ok',
'info': response['info'],
}

async def fetch_deposit_address(self, currency, params={}):
name = self.get_currency_name(currency)
request = {
'method': name,
Expand All @@ -467,12 +477,13 @@ async def deposit(self, currency, params={}):
}
response = await self.privatePostDepositNew(self.extend(request, params))
return {
'info': response,
'currency': currency,
'address': response['address'],
'status': 'ok',
'info': response,
}

async def withdraw(self, currency, amount, address, params={}):
await self.load_markets()
name = self.get_currency_name(currency)
request = {
'withdraw_type': name,
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.10.226'
__version__ = '1.10.227'

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

Expand Down
19 changes: 15 additions & 4 deletions python/ccxt/bitfinex.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,8 +457,18 @@ def get_currency_name(self, currency):
return 'tetheruso'
raise NotSupported(self.id + ' ' + currency + ' not supported for withdrawal')

def deposit(self, currency, params={}):
self.load_markets()
def create_deposit_address(self, currency, params={}):
response = self.fetch_deposit_address(currency, self.extend({
'renew': 1,
}, params))
return {
'currency': currency,
'address': response['address'],
'status': 'ok',
'info': response['info'],
}

def fetch_deposit_address(self, currency, params={}):
name = self.get_currency_name(currency)
request = {
'method': name,
Expand All @@ -467,12 +477,13 @@ def deposit(self, currency, params={}):
}
response = self.privatePostDepositNew(self.extend(request, params))
return {
'info': response,
'currency': currency,
'address': response['address'],
'status': 'ok',
'info': response,
}

def withdraw(self, currency, amount, address, params={}):
self.load_markets()
name = self.get_currency_name(currency)
request = {
'withdraw_type': name,
Expand Down

0 comments on commit 6969adb

Please sign in to comment.