Skip to content

Commit

Permalink
1.10.424
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
Travis CI committed Dec 19, 2017
1 parent eccfd6e commit b6d75f1
Show file tree
Hide file tree
Showing 11 changed files with 33 additions and 29 deletions.
15 changes: 8 additions & 7 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.423'
const version = '1.10.424'

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.423';
$version = '1.10.424';

define('PATH_TO_CCXT', __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.423",
"version": "1.10.424",
"description": "A JavaScript / Python / PHP cryptocurrency trading library with support for 90+ exchanges",
"main": "./ccxt.js",
"unpkg": "build/ccxt.browser.js",
Expand Down
11 changes: 6 additions & 5 deletions php/bitbay.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ public function create_order ($symbol, $type, $side, $amount, $price = null, $pa
$market = $this->market ($symbol);
return $this->privatePostTrade (array_merge (array (
'type' => $side,
'currency' => $market['base'],
'currency' => $market['baseId'],
'amount' => $amount,
'payment_currency' => $market['quote'],
'payment_currency' => $market['quoteId'],
'rate' => $price,
), $params));
}
Expand All @@ -200,14 +200,15 @@ public function is_fiat ($currency) {
return false;
}

public function withdraw ($currency, $amount, $address, $params = array ()) {
public function withdraw ($code, $amount, $address, $params = array ()) {
$this->load_markets();
$method = null;
$currency = $this->currency ($code);
$request = array (
'currency' => $currency,
'currency' => $currency['id'],
'quantity' => $amount,
);
if ($this->is_fiat ($currency)) {
if ($this->is_fiat ($code)) {
$method = 'privatePostWithdraw';
// $request['account'] = $params['account']; // they demand an account number
// $request['express'] = $params['express']; // whatever it means, they don't explain
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.423'
__version__ = '1.10.424'

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

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.423'
__version__ = '1.10.424'

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

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.423'
__version__ = '1.10.424'

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

Expand Down
11 changes: 6 additions & 5 deletions python/ccxt/async/bitbay.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,9 @@ async def create_order(self, symbol, type, side, amount, price=None, params={}):
market = self.market(symbol)
return self.privatePostTrade(self.extend({
'type': side,
'currency': market['base'],
'currency': market['baseId'],
'amount': amount,
'payment_currency': market['quote'],
'payment_currency': market['quoteId'],
'rate': price,
}, params))

Expand All @@ -191,14 +191,15 @@ def is_fiat(self, currency):
return True
return False

async def withdraw(self, currency, amount, address, params={}):
async def withdraw(self, code, amount, address, params={}):
await self.load_markets()
method = None
currency = self.currency(code)
request = {
'currency': currency,
'currency': currency['id'],
'quantity': amount,
}
if self.is_fiat(currency):
if self.is_fiat(code):
method = 'privatePostWithdraw'
# request['account'] = params['account'] # they demand an account number
# request['express'] = params['express'] # whatever it means, they don't explain
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.423'
__version__ = '1.10.424'

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

Expand Down
11 changes: 6 additions & 5 deletions python/ccxt/bitbay.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,9 @@ def create_order(self, symbol, type, side, amount, price=None, params={}):
market = self.market(symbol)
return self.privatePostTrade(self.extend({
'type': side,
'currency': market['base'],
'currency': market['baseId'],
'amount': amount,
'payment_currency': market['quote'],
'payment_currency': market['quoteId'],
'rate': price,
}, params))

Expand All @@ -191,14 +191,15 @@ def is_fiat(self, currency):
return True
return False

def withdraw(self, currency, amount, address, params={}):
def withdraw(self, code, amount, address, params={}):
self.load_markets()
method = None
currency = self.currency(code)
request = {
'currency': currency,
'currency': currency['id'],
'quantity': amount,
}
if self.is_fiat(currency):
if self.is_fiat(code):
method = 'privatePostWithdraw'
# request['account'] = params['account'] # they demand an account number
# request['express'] = params['express'] # whatever it means, they don't explain
Expand Down

0 comments on commit b6d75f1

Please sign in to comment.