Skip to content

Commit

Permalink
1.67.46
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
Travis CI committed Jan 13, 2022
1 parent 4f6de27 commit 5697ef2
Show file tree
Hide file tree
Showing 19 changed files with 126 additions and 40 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,13 +221,13 @@ console.log (ccxt.exchanges) // print all available exchanges

All-in-one browser bundle (dependencies included), served from a CDN of your choice:

* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@1.67.45/dist/ccxt.browser.js
* unpkg: https://unpkg.com/ccxt@1.67.45/dist/ccxt.browser.js
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@1.67.46/dist/ccxt.browser.js
* unpkg: https://unpkg.com/ccxt@1.67.46/dist/ccxt.browser.js

CDNs are not updated in real-time and may have delays. Defaulting to the most recent version without specifying the version number is not recommended. Please, keep in mind that we are not responsible for the correct operation of those CDN servers.

```HTML
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@1.67.45/dist/ccxt.browser.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@1.67.46/dist/ccxt.browser.js"></script>
```

Creates a global `ccxt` object:
Expand Down
2 changes: 1 addition & 1 deletion ccxt.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const Exchange = require ('./js/base/Exchange')
//-----------------------------------------------------------------------------
// this is updated by vss.js when building

const version = '1.67.45'
const version = '1.67.46'

Exchange.ccxtVersion = version

Expand Down
26 changes: 22 additions & 4 deletions dist/ccxt.browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const Exchange = require ('./js/base/Exchange')
//-----------------------------------------------------------------------------
// this is updated by vss.js when building

const version = '1.67.45'
const version = '1.67.46'

Exchange.ccxtVersion = version

Expand Down Expand Up @@ -86133,6 +86133,8 @@ module.exports = class huobi extends Exchange {
let minPrecision = undefined;
let minWithdraw = undefined;
let maxWithdraw = undefined;
let deposit = undefined;
let withdraw = undefined;
for (let j = 0; j < chains.length; j++) {
const chain = chains[j];
const networkId = this.safeString (chain, 'chain');
Expand All @@ -86148,14 +86150,26 @@ module.exports = class huobi extends Exchange {
const network = this.safeNetwork (baseChainProtocol);
minWithdraw = this.safeNumber (chain, 'minWithdrawAmt');
maxWithdraw = this.safeNumber (chain, 'maxWithdrawAmt');
const withdraw = this.safeString (chain, 'withdrawStatus');
const deposit = this.safeString (chain, 'depositStatus');
const active = (withdraw === 'allowed') && (deposit === 'allowed');
const withdrawStatus = this.safeString (chain, 'withdrawStatus');
const depositStatus = this.safeString (chain, 'depositStatus');
const withdrawEnabled = (withdrawStatus === 'allowed');
const depositEnabled = (depositStatus === 'allowed');
const active = withdrawEnabled && depositEnabled;
let precision = this.safeString (chain, 'withdrawPrecision');
if (precision !== undefined) {
precision = this.parseNumber ('1e-' + precision);
minPrecision = (minPrecision === undefined) ? precision : Math.max (precision, minPrecision);
}
if (withdrawEnabled && !withdraw) {
withdraw = true;
} else if (!withdrawEnabled) {
withdraw = false;
}
if (depositEnabled && !deposit) {
deposit = true;
} else if (!depositEnabled) {
deposit = false;
}
fee = this.safeNumber (chain, 'transactFeeWithdraw');
networks[network] = {
'info': chain,
Expand All @@ -86168,6 +86182,8 @@ module.exports = class huobi extends Exchange {
},
},
'active': active,
'deposit': depositEnabled,
'withdraw': withdrawEnabled,
'fee': fee,
'precision': precision,
};
Expand All @@ -86179,6 +86195,8 @@ module.exports = class huobi extends Exchange {
'code': code,
'id': currencyId,
'active': currencyActive,
'deposit': deposit,
'withdraw': withdraw,
'fee': (networkLength <= 1) ? fee : undefined,
'name': undefined,
'limits': {
Expand Down
6 changes: 3 additions & 3 deletions doc/readme.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1957,14 +1957,14 @@ JavaScript (for use with the ``<script>`` tag):
All-in-one browser bundle (dependencies included), served from a CDN of your choice:


* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@1.67.45/dist/ccxt.browser.js
* unpkg: https://unpkg.com/ccxt@1.67.45/dist/ccxt.browser.js
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@1.67.46/dist/ccxt.browser.js
* unpkg: https://unpkg.com/ccxt@1.67.46/dist/ccxt.browser.js

CDNs are not updated in real-time and may have delays. Defaulting to the most recent version without specifying the version number is not recommended. Please, keep in mind that we are not responsible for the correct operation of those CDN servers.

.. code-block:: HTML

<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@1.67.45/dist/ccxt.browser.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@1.67.46/dist/ccxt.browser.js"></script>

Creates a global ``ccxt`` object:

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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.67.45",
"version": "1.67.46",
"description": "A JavaScript / Python / PHP cryptocurrency trading library with support for 130+ exchanges",
"main": "./ccxt.js",
"unpkg": "dist/ccxt.browser.js",
Expand Down
4 changes: 2 additions & 2 deletions php/Exchange.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions php/async/Exchange.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@

include 'Throttle.php';

$version = '1.67.45';
$version = '1.67.46';

class Exchange extends \ccxt\Exchange {

const VERSION = '1.67.45';
const VERSION = '1.67.46';

public static $loop;
public static $kernel;
Expand Down
24 changes: 21 additions & 3 deletions php/async/huobi.php
Original file line number Diff line number Diff line change
Expand Up @@ -2221,6 +2221,8 @@ public function fetch_currencies($params = array ()) {
$minPrecision = null;
$minWithdraw = null;
$maxWithdraw = null;
$deposit = null;
$withdraw = null;
for ($j = 0; $j < count($chains); $j++) {
$chain = $chains[$j];
$networkId = $this->safe_string($chain, 'chain');
Expand All @@ -2236,14 +2238,26 @@ public function fetch_currencies($params = array ()) {
$network = $this->safe_network($baseChainProtocol);
$minWithdraw = $this->safe_number($chain, 'minWithdrawAmt');
$maxWithdraw = $this->safe_number($chain, 'maxWithdrawAmt');
$withdraw = $this->safe_string($chain, 'withdrawStatus');
$deposit = $this->safe_string($chain, 'depositStatus');
$active = ($withdraw === 'allowed') && ($deposit === 'allowed');
$withdrawStatus = $this->safe_string($chain, 'withdrawStatus');
$depositStatus = $this->safe_string($chain, 'depositStatus');
$withdrawEnabled = ($withdrawStatus === 'allowed');
$depositEnabled = ($depositStatus === 'allowed');
$active = $withdrawEnabled && $depositEnabled;
$precision = $this->safe_string($chain, 'withdrawPrecision');
if ($precision !== null) {
$precision = $this->parse_number('1e-' . $precision);
$minPrecision = ($minPrecision === null) ? $precision : max ($precision, $minPrecision);
}
if ($withdrawEnabled && !$withdraw) {
$withdraw = true;
} else if (!$withdrawEnabled) {
$withdraw = false;
}
if ($depositEnabled && !$deposit) {
$deposit = true;
} else if (!$depositEnabled) {
$deposit = false;
}
$fee = $this->safe_number($chain, 'transactFeeWithdraw');
$networks[$network] = array(
'info' => $chain,
Expand All @@ -2256,6 +2270,8 @@ public function fetch_currencies($params = array ()) {
),
),
'active' => $active,
'deposit' => $depositEnabled,
'withdraw' => $withdrawEnabled,
'fee' => $fee,
'precision' => $precision,
);
Expand All @@ -2267,6 +2283,8 @@ public function fetch_currencies($params = array ()) {
'code' => $code,
'id' => $currencyId,
'active' => $currencyActive,
'deposit' => $deposit,
'withdraw' => $withdraw,
'fee' => ($networkLength <= 1) ? $fee : null,
'name' => null,
'limits' => array(
Expand Down
24 changes: 21 additions & 3 deletions php/huobi.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,13 +221,13 @@ console.log (ccxt.exchanges) // print all available exchanges

All-in-one browser bundle (dependencies included), served from a CDN of your choice:

* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@1.67.45/dist/ccxt.browser.js
* unpkg: https://unpkg.com/ccxt@1.67.45/dist/ccxt.browser.js
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@1.67.46/dist/ccxt.browser.js
* unpkg: https://unpkg.com/ccxt@1.67.46/dist/ccxt.browser.js

CDNs are not updated in real-time and may have delays. Defaulting to the most recent version without specifying the version number is not recommended. Please, keep in mind that we are not responsible for the correct operation of those CDN servers.

```HTML
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@1.67.45/dist/ccxt.browser.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@1.67.46/dist/ccxt.browser.js"></script>
```

Creates a global `ccxt` object:
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.67.45'
__version__ = '1.67.46'

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

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

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

__version__ = '1.67.45'
__version__ = '1.67.46'

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

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

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

__version__ = '1.67.45'
__version__ = '1.67.46'

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

Expand Down
22 changes: 19 additions & 3 deletions python/ccxt/async_support/huobi.py
Original file line number Diff line number Diff line change
Expand Up @@ -2145,6 +2145,8 @@ async def fetch_currencies(self, params={}):
minPrecision = None
minWithdraw = None
maxWithdraw = None
deposit = None
withdraw = None
for j in range(0, len(chains)):
chain = chains[j]
networkId = self.safe_string(chain, 'chain')
Expand All @@ -2158,13 +2160,23 @@ async def fetch_currencies(self, params={}):
network = self.safe_network(baseChainProtocol)
minWithdraw = self.safe_number(chain, 'minWithdrawAmt')
maxWithdraw = self.safe_number(chain, 'maxWithdrawAmt')
withdraw = self.safe_string(chain, 'withdrawStatus')
deposit = self.safe_string(chain, 'depositStatus')
active = (withdraw == 'allowed') and (deposit == 'allowed')
withdrawStatus = self.safe_string(chain, 'withdrawStatus')
depositStatus = self.safe_string(chain, 'depositStatus')
withdrawEnabled = (withdrawStatus == 'allowed')
depositEnabled = (depositStatus == 'allowed')
active = withdrawEnabled and depositEnabled
precision = self.safe_string(chain, 'withdrawPrecision')
if precision is not None:
precision = self.parse_number('1e-' + precision)
minPrecision = precision if (minPrecision is None) else max(precision, minPrecision)
if withdrawEnabled and not withdraw:
withdraw = True
elif not withdrawEnabled:
withdraw = False
if depositEnabled and not deposit:
deposit = True
elif not depositEnabled:
deposit = False
fee = self.safe_number(chain, 'transactFeeWithdraw')
networks[network] = {
'info': chain,
Expand All @@ -2177,6 +2189,8 @@ async def fetch_currencies(self, params={}):
},
},
'active': active,
'deposit': depositEnabled,
'withdraw': withdrawEnabled,
'fee': fee,
'precision': precision,
}
Expand All @@ -2187,6 +2201,8 @@ async def fetch_currencies(self, params={}):
'code': code,
'id': currencyId,
'active': currencyActive,
'deposit': deposit,
'withdraw': withdraw,
'fee': fee if (networkLength <= 1) else None,
'name': None,
'limits': {
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.67.45'
__version__ = '1.67.46'

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

Expand Down

0 comments on commit 5697ef2

Please sign in to comment.