Skip to content

Commit

Permalink
1.14.138
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
Travis CI committed Jun 5, 2018
1 parent 8fad5a9 commit 40b1e9b
Show file tree
Hide file tree
Showing 11 changed files with 65 additions and 13 deletions.
19 changes: 16 additions & 3 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.137'
const version = '1.14.138'

Exchange.ccxtVersion = version

Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "ccxt",
"version": "1.14.137",
"version": "1.14.138",
"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.137';
$version = '1.14.138';

// rounding mode
const TRUNCATE = 0;
Expand Down
15 changes: 14 additions & 1 deletion php/gateio.php
Expand Up @@ -114,6 +114,17 @@ public function describe () {
'20' => 'Your order size is too small',
'21' => 'You don\'t have enough fund',
),
'options' => array (
'limits' => array (
'cost' => array (
'min' => array (
'BTC' => 0.0001,
'ETH' => 0.001,
'USDT' => 1,
),
),
),
),
));
}

Expand Down Expand Up @@ -146,8 +157,10 @@ public function fetch_markets () {
'min' => pow (10, -$details['decimal_places']),
'max' => null,
);
$defaultCost = $amountLimits['min'] * $priceLimits['min'];
$minCost = $this->safe_float($this->options['limits']['cost']['min'], $quote, $defaultCost);
$costLimits = array (
'min' => $amountLimits['min'] * $priceLimits['min'],
'min' => $minCost,
'max' => null,
);
$limits = array (
Expand Down
2 changes: 1 addition & 1 deletion python/ccxt/__init__.py
Expand Up @@ -22,7 +22,7 @@

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

__version__ = '1.14.137'
__version__ = '1.14.138'

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

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

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

__version__ = '1.14.137'
__version__ = '1.14.138'

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

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

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

__version__ = '1.14.137'
__version__ = '1.14.138'

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

Expand Down
15 changes: 14 additions & 1 deletion python/ccxt/async/gateio.py
Expand Up @@ -129,6 +129,17 @@ def describe(self):
'20': 'Your order size is too small',
'21': 'You don\'t have enough fund',
},
'options': {
'limits': {
'cost': {
'min': {
'BTC': 0.0001,
'ETH': 0.001,
'USDT': 1,
},
},
},
},
})

async def fetch_markets(self):
Expand Down Expand Up @@ -160,8 +171,10 @@ async def fetch_markets(self):
'min': math.pow(10, -details['decimal_places']),
'max': None,
}
defaultCost = amountLimits['min'] * priceLimits['min']
minCost = self.safe_float(self.options['limits']['cost']['min'], quote, defaultCost)
costLimits = {
'min': amountLimits['min'] * priceLimits['min'],
'min': minCost,
'max': None,
}
limits = {
Expand Down
2 changes: 1 addition & 1 deletion python/ccxt/base/exchange.py
Expand Up @@ -4,7 +4,7 @@

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

__version__ = '1.14.137'
__version__ = '1.14.138'

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

Expand Down
15 changes: 14 additions & 1 deletion python/ccxt/gateio.py
Expand Up @@ -129,6 +129,17 @@ def describe(self):
'20': 'Your order size is too small',
'21': 'You don\'t have enough fund',
},
'options': {
'limits': {
'cost': {
'min': {
'BTC': 0.0001,
'ETH': 0.001,
'USDT': 1,
},
},
},
},
})

def fetch_markets(self):
Expand Down Expand Up @@ -160,8 +171,10 @@ def fetch_markets(self):
'min': math.pow(10, -details['decimal_places']),
'max': None,
}
defaultCost = amountLimits['min'] * priceLimits['min']
minCost = self.safe_float(self.options['limits']['cost']['min'], quote, defaultCost)
costLimits = {
'min': amountLimits['min'] * priceLimits['min'],
'min': minCost,
'max': None,
}
limits = {
Expand Down

0 comments on commit 40b1e9b

Please sign in to comment.