Skip to content

Commit

Permalink
1.10.1206
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
Travis CI committed Feb 25, 2018
1 parent aa76b7d commit 0014865
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 29 deletions.
14 changes: 7 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 Exchange = require ('./js/base/Exchange')
//-----------------------------------------------------------------------------
// this is updated by vss.js when building

const version = '1.10.1205'
const version = '1.10.1206'

Exchange.ccxtVersion = version

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.1205",
"version": "1.10.1206",
"description": "A JavaScript / Python / PHP cryptocurrency trading library with support for 90+ exchanges",
"main": "./ccxt.js",
"unpkg": "build/ccxt.browser.js",
Expand Down
2 changes: 1 addition & 1 deletion php/Exchange.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

namespace ccxt;

$version = '1.10.1205';
$version = '1.10.1206';

abstract class Exchange {

Expand Down
10 changes: 5 additions & 5 deletions php/cobinhood.php
Original file line number Diff line number Diff line change
Expand Up @@ -350,14 +350,14 @@ public function fetch_balance ($params = array ()) {
$balances = $response['result']['balances'];
for ($i = 0; $i < count ($balances); $i++) {
$balance = $balances[$i];
$id = $balance['currency'];
$currency = $this->common_currency_code($id);
$currency = $balance['currency'];
if (is_array ($this->currencies_by_id) && array_key_exists ($currency, $this->currencies_by_id))
$currency = $this->currencies_by_id[$currency]['code'];
$account = array (
'free' => floatval ($balance['total']),
'used' => floatval ($balance['on_order']),
'total' => 0.0,
'total' => floatval ($balance['total']),
);
$account['total'] = $this->sum ($account['free'], $account['used']);
$account['free'] = floatval ($account['total'] - $account['used']);
$result[$currency] = $account;
}
return $this->parse_balance($result);
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.1205'
__version__ = '1.10.1206'

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

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.1205'
__version__ = '1.10.1206'

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

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.1205'
__version__ = '1.10.1206'

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

Expand Down
10 changes: 5 additions & 5 deletions python/ccxt/async/cobinhood.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,14 +337,14 @@ async def fetch_balance(self, params={}):
balances = response['result']['balances']
for i in range(0, len(balances)):
balance = balances[i]
id = balance['currency']
currency = self.common_currency_code(id)
currency = balance['currency']
if currency in self.currencies_by_id:
currency = self.currencies_by_id[currency]['code']
account = {
'free': float(balance['total']),
'used': float(balance['on_order']),
'total': 0.0,
'total': float(balance['total']),
}
account['total'] = self.sum(account['free'], account['used'])
account['free'] = float(account['total'] - account['used'])
result[currency] = account
return self.parse_balance(result)

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.1205'
__version__ = '1.10.1206'

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

Expand Down
10 changes: 5 additions & 5 deletions python/ccxt/cobinhood.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,14 +337,14 @@ def fetch_balance(self, params={}):
balances = response['result']['balances']
for i in range(0, len(balances)):
balance = balances[i]
id = balance['currency']
currency = self.common_currency_code(id)
currency = balance['currency']
if currency in self.currencies_by_id:
currency = self.currencies_by_id[currency]['code']
account = {
'free': float(balance['total']),
'used': float(balance['on_order']),
'total': 0.0,
'total': float(balance['total']),
}
account['total'] = self.sum(account['free'], account['used'])
account['free'] = float(account['total'] - account['used'])
result[currency] = account
return self.parse_balance(result)

Expand Down

0 comments on commit 0014865

Please sign in to comment.