Skip to content

Commit

Permalink
1.13.140
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
Travis CI committed May 13, 2018
1 parent abfeff2 commit 6e172f7
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 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.13.139'
const version = '1.13.140'

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.13.139",
"version": "1.13.140",
"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
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

namespace ccxt;

$version = '1.13.139';
$version = '1.13.140';

// rounding mode
const TRUNCATE = 0;
Expand Down
2 changes: 1 addition & 1 deletion php/gdax.php
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ public function cancel_order ($id, $symbol = null, $params = array ()) {

public function fee_to_precision ($currency, $fee) {
$cost = floatval ($fee);
return sprintf ('%.' . $this->currencies[$currency].precision . 'f', $cost);
return sprintf ('%.' . $this->currencies[$currency]['precision'] . 'f', $cost);
}

public function calculate_fee ($symbol, $type, $side, $amount, $price, $takerOrMaker = 'taker', $params = array ()) {
Expand Down
2 changes: 1 addition & 1 deletion python/ccxt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

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

__version__ = '1.13.139'
__version__ = '1.13.140'

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

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.13.139'
__version__ = '1.13.140'

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

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.13.139'
__version__ = '1.13.140'

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

Expand Down
2 changes: 1 addition & 1 deletion python/ccxt/async/gdax.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ async def cancel_order(self, id, symbol=None, params={}):

def fee_to_precision(self, currency, fee):
cost = float(fee)
return('{:.' + str(self.currencies[currency].precision) + 'f}').format(cost)
return('{:.' + str(self.currencies[currency]['precision']) + 'f}').format(cost)

def calculate_fee(self, symbol, type, side, amount, price, takerOrMaker='taker', params={}):
market = self.markets[symbol]
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.13.139'
__version__ = '1.13.140'

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

Expand Down
2 changes: 1 addition & 1 deletion python/ccxt/gdax.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ def cancel_order(self, id, symbol=None, params={}):

def fee_to_precision(self, currency, fee):
cost = float(fee)
return('{:.' + str(self.currencies[currency].precision) + 'f}').format(cost)
return('{:.' + str(self.currencies[currency]['precision']) + 'f}').format(cost)

def calculate_fee(self, symbol, type, side, amount, price, takerOrMaker='taker', params={}):
market = self.markets[symbol]
Expand Down

0 comments on commit 6e172f7

Please sign in to comment.