提交 3826e792 编写于 作者: T Travis CI

1.62.88

[ci skip]
上级 ba5522a8
......@@ -219,13 +219,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.62.87/dist/ccxt.browser.js
* unpkg: https://unpkg.com/ccxt@1.62.87/dist/ccxt.browser.js
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@1.62.88/dist/ccxt.browser.js
* unpkg: https://unpkg.com/ccxt@1.62.88/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.62.87/dist/ccxt.browser.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@1.62.88/dist/ccxt.browser.js"></script>
```
Creates a global `ccxt` object:
......
......@@ -36,7 +36,7 @@ const Exchange = require ('./js/base/Exchange')
//-----------------------------------------------------------------------------
// this is updated by vss.js when building
const version = '1.62.87'
const version = '1.62.88'
Exchange.ccxtVersion = version
......
......@@ -44,7 +44,7 @@ const Exchange = require ('./js/base/Exchange')
//-----------------------------------------------------------------------------
// this is updated by vss.js when building
const version = '1.62.87'
const version = '1.62.88'
Exchange.ccxtVersion = version
......@@ -8418,7 +8418,7 @@ module.exports = {
/* ------------------------------------------------------------------------ */
const { now } = require ('./time')
const { now, sleep } = require ('./time')
/* ------------------------------------------------------------------------ */
......@@ -8451,7 +8451,7 @@ class Throttle {
this.running = false
}
} else {
await new Promise (x => setTimeout (x, this.config['delay'] * 1000));
await sleep (this.config['delay'] * 1000);
const current = now ()
const elapsed = current - lastTimestamp
lastTimestamp = current
......@@ -8520,6 +8520,11 @@ const uuidv1 = () => {
const setTimeout_original = setTimeout
const setTimeout_safe = (done, ms, setTimeout = setTimeout_original /* overrideable for mocking purposes */, targetTime = now () + ms) => {
// avoid MAX_INT issue https://stackoverflow.com/questions/60474110
if (ms >= 2147483647) {
throw new Exception('setTimeout() function was called with unrealistic value of ' + ms.toString ())
}
// The built-in setTimeout function can fire its callback earlier than specified, so we
// need to ensure that it does not happen: sleep recursively until `targetTime` is reached...
......@@ -1924,14 +1924,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.62.87/dist/ccxt.browser.js
* unpkg: https://unpkg.com/ccxt@1.62.87/dist/ccxt.browser.js
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@1.62.88/dist/ccxt.browser.js
* unpkg: https://unpkg.com/ccxt@1.62.88/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.62.87/dist/ccxt.browser.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@1.62.88/dist/ccxt.browser.js"></script>
Creates a global ``ccxt`` object:
......
{
"name": "ccxt",
"version": "1.62.87",
"version": "1.62.88",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
......
{
"name": "ccxt",
"version": "1.62.87",
"version": "1.62.88",
"description": "A JavaScript / Python / PHP cryptocurrency trading library with support for 130+ exchanges",
"main": "./ccxt.js",
"unpkg": "dist/ccxt.browser.js",
......
......@@ -36,7 +36,7 @@ use Elliptic\EdDSA;
use BN\BN;
use Exception;
$version = '1.62.87';
$version = '1.62.88';
// rounding mode
const TRUNCATE = 0;
......@@ -55,7 +55,7 @@ const PAD_WITH_ZERO = 1;
class Exchange {
const VERSION = '1.62.87';
const VERSION = '1.62.88';
private static $base58_alphabet = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';
private static $base58_encoder = null;
......
......@@ -28,11 +28,11 @@ use Exception;
include 'Throttle.php';
$version = '1.62.87';
$version = '1.62.88';
class Exchange extends \ccxt\Exchange {
const VERSION = '1.62.87';
const VERSION = '1.62.88';
public static $loop;
public static $kernel;
......
......@@ -219,13 +219,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.62.87/dist/ccxt.browser.js
* unpkg: https://unpkg.com/ccxt@1.62.87/dist/ccxt.browser.js
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@1.62.88/dist/ccxt.browser.js
* unpkg: https://unpkg.com/ccxt@1.62.88/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.62.87/dist/ccxt.browser.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@1.62.88/dist/ccxt.browser.js"></script>
```
Creates a global `ccxt` object:
......
......@@ -22,7 +22,7 @@
# ----------------------------------------------------------------------------
__version__ = '1.62.87'
__version__ = '1.62.88'
# ----------------------------------------------------------------------------
......
......@@ -4,7 +4,7 @@
# -----------------------------------------------------------------------------
__version__ = '1.62.87'
__version__ = '1.62.88'
# -----------------------------------------------------------------------------
......
......@@ -2,7 +2,7 @@
# -----------------------------------------------------------------------------
__version__ = '1.62.87'
__version__ = '1.62.88'
# -----------------------------------------------------------------------------
......
......@@ -4,7 +4,7 @@
# -----------------------------------------------------------------------------
__version__ = '1.62.87'
__version__ = '1.62.88'
# -----------------------------------------------------------------------------
......
{
"name": "ccxt",
"version": "1.62.87",
"version": "1.62.88",
"description": "A JavaScript / Python / PHP cryptocurrency trading library with support for 130+ exchanges",
"main": "./ccxt.js",
"unpkg": "dist/ccxt.browser.js",
......
......@@ -40,13 +40,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.62.87/dist/ccxt.browser.js
* unpkg: https://unpkg.com/ccxt@1.62.87/dist/ccxt.browser.js
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@1.62.88/dist/ccxt.browser.js
* unpkg: https://unpkg.com/ccxt@1.62.88/dist/ccxt.browser.js
You can obtain a live-updated version of the bundle by removing the version number from the URL (the `@a.b.c` thing) — however, we do not recommend to do that, as it may break your app eventually. Also, 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.62.87/dist/ccxt.browser.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@1.62.88/dist/ccxt.browser.js"></script>
```
Creates a global `ccxt` object:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册