From d97bc636c01034dadbbe90c337f27409060b2335 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Thu, 15 Dec 2022 16:28:49 +0000 Subject: [PATCH] 2.4.17 [ci skip] --- README.md | 6 +++--- ccxt.js | 2 +- dist/ccxt.browser.js | 9 +++++---- doc/readme.rst | 6 +++--- package-lock.json | 4 ++-- package.json | 16 ++++++++-------- php/Exchange.php | 4 ++-- php/async/Exchange.php | 4 ++-- php/pro/bitmart.php | 7 ++++--- python/README.md | 6 +++--- python/ccxt/__init__.py | 2 +- python/ccxt/async_support/__init__.py | 2 +- python/ccxt/async_support/base/exchange.py | 2 +- python/ccxt/base/exchange.py | 2 +- python/ccxt/pro/__init__.py | 2 +- python/ccxt/pro/base/exchange.py | 2 +- python/ccxt/pro/bitmart.py | 7 ++++--- python/package.json | 16 ++++++++-------- wiki/Install.md | 6 +++--- 19 files changed, 54 insertions(+), 51 deletions(-) diff --git a/README.md b/README.md index d2512f563731..7130f80da446 100644 --- a/README.md +++ b/README.md @@ -208,13 +208,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@2.4.16/dist/ccxt.browser.js -* unpkg: https://unpkg.com/ccxt@2.4.16/dist/ccxt.browser.js +* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@2.4.17/dist/ccxt.browser.js +* unpkg: https://unpkg.com/ccxt@2.4.17/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 - + ``` Creates a global `ccxt` object: diff --git a/ccxt.js b/ccxt.js index f477ba4468ab..561524ded4b8 100644 --- a/ccxt.js +++ b/ccxt.js @@ -37,7 +37,7 @@ const Exchange = require ('./js/base/Exchange') //----------------------------------------------------------------------------- // this is updated by vss.js when building -const version = '2.4.16' +const version = '2.4.17' Exchange.ccxtVersion = version diff --git a/dist/ccxt.browser.js b/dist/ccxt.browser.js index 42cc8281e9b2..7690c1eb4fd0 100644 --- a/dist/ccxt.browser.js +++ b/dist/ccxt.browser.js @@ -47,7 +47,7 @@ const Exchange = require ('./js/base/Exchange') //----------------------------------------------------------------------------- // this is updated by vss.js when building -const version = '2.4.16' +const version = '2.4.17' Exchange.ccxtVersion = version @@ -177684,7 +177684,7 @@ module.exports = class bitmart extends bitmartRest { 'options': { 'defaultType': 'spot', 'watchOrderBook': { - 'depth': 'depth5', // depth5, depth400 + 'depth': 'depth5', // depth5, depth20, depth50 }, 'ws': { 'inflate': true, @@ -178053,7 +178053,7 @@ module.exports = class bitmart extends bitmartRest { * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/en/latest/manual.html#order-book-structure} indexed by market symbols */ const options = this.safeValue (this.options, 'watchOrderBook', {}); - const depth = this.safeString (options, 'depth', 'depth400'); + const depth = this.safeString (options, 'depth', 'depth50'); const orderbook = await this.subscribe (depth, symbol, params); return orderbook.limit (); } @@ -178274,7 +178274,8 @@ module.exports = class bitmart extends bitmartRest { const methods = { 'depth': this.handleOrderBook, 'depth5': this.handleOrderBook, - 'depth400': this.handleOrderBook, + 'depth20': this.handleOrderBook, + 'depth50': this.handleOrderBook, 'ticker': this.handleTicker, 'trade': this.handleTrade, // ... diff --git a/doc/readme.rst b/doc/readme.rst index 1315675b200a..1cf1c593e850 100644 --- a/doc/readme.rst +++ b/doc/readme.rst @@ -1864,14 +1864,14 @@ JavaScript (for use with the `` + Creates a global ``ccxt`` object: diff --git a/package-lock.json b/package-lock.json index 88db816a44b7..edb379a42a6d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ccxt", - "version": "2.4.16", + "version": "2.4.17", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "ccxt", - "version": "2.4.16", + "version": "2.4.17", "hasInstallScript": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index 40dd7247e3e3..34b6f1726760 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ccxt", - "version": "2.4.16", + "version": "2.4.17", "description": "A JavaScript / Python / PHP cryptocurrency trading library with support for 130+ exchanges", "main": "./ccxt.js", "unpkg": "dist/ccxt.browser.js", @@ -241,7 +241,7 @@ "ccex", "C-CEX", "cex", - "CEX.IO", + "cex.io", "CHBTC", "ChileBit", "chilebit.net", @@ -411,7 +411,7 @@ "fybse.se", "fybsg.com", "gatecoin.com", - "gate.io", + "Gate.io", "gdax.com", "gemini.com", "getbtc.org", @@ -528,8 +528,8 @@ "dsxglobal.com", "bitvavo.com", "Bitvavo", - "currency.com", - "waves.exchange", + "Currency.com", + "Waves.Exchange", "phemex.com", "Phemex", "huobi.co.jp", @@ -578,7 +578,7 @@ "Binance USDⓈ-M", "eqonex.com", "EQONEX", - "fmfw.io", + "FMFW.io", "mexc.com", "MEXC Global", "bitrue.com", @@ -592,8 +592,8 @@ "Zonda", "futures.kucoin.com", "KuCoin Futures", - "blockchain.com", - "crypto.com", + "Blockchain.com", + "Crypto.com", "wazirx.com", "WazirX", "woo.org", diff --git a/php/Exchange.php b/php/Exchange.php index 95ada61fc082..1e18c7724954 100644 --- a/php/Exchange.php +++ b/php/Exchange.php @@ -36,7 +36,7 @@ use BN\BN; use Exception; -$version = '2.4.16'; +$version = '2.4.17'; // rounding mode const TRUNCATE = 0; @@ -55,7 +55,7 @@ class Exchange { - const VERSION = '2.4.16'; + const VERSION = '2.4.17'; private static $base58_alphabet = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'; private static $base58_encoder = null; diff --git a/php/async/Exchange.php b/php/async/Exchange.php index b5b3fcece18f..648532fa13e8 100644 --- a/php/async/Exchange.php +++ b/php/async/Exchange.php @@ -34,11 +34,11 @@ include 'Throttle.php'; -$version = '2.4.16'; +$version = '2.4.17'; class Exchange extends \ccxt\Exchange { - const VERSION = '2.4.16'; + const VERSION = '2.4.17'; public $browser; public $marketsLoading = null; diff --git a/php/pro/bitmart.php b/php/pro/bitmart.php index eb1d70f0aea5..4333068a9809 100644 --- a/php/pro/bitmart.php +++ b/php/pro/bitmart.php @@ -35,7 +35,7 @@ public function describe() { 'options' => array( 'defaultType' => 'spot', 'watchOrderBook' => array( - 'depth' => 'depth5', // depth5, depth400 + 'depth' => 'depth5', // depth5, depth20, depth50 ), 'ws' => array( 'inflate' => true, @@ -407,7 +407,7 @@ public function watch_order_book($symbol, $limit = null, $params = array ()) { * @return {array} A dictionary of {@link https://docs.ccxt.com/en/latest/manual.html#order-book-structure order book structures} indexed by market symbols */ $options = $this->safe_value($this->options, 'watchOrderBook', array()); - $depth = $this->safe_string($options, 'depth', 'depth400'); + $depth = $this->safe_string($options, 'depth', 'depth50'); $orderbook = Async\await($this->subscribe($depth, $symbol, $params)); return $orderbook->limit (); }) (); @@ -631,7 +631,8 @@ public function handle_message($client, $message) { $methods = array( 'depth' => array($this, 'handle_order_book'), 'depth5' => array($this, 'handle_order_book'), - 'depth400' => array($this, 'handle_order_book'), + 'depth20' => array($this, 'handle_order_book'), + 'depth50' => array($this, 'handle_order_book'), 'ticker' => array($this, 'handle_ticker'), 'trade' => array($this, 'handle_trade'), // ... diff --git a/python/README.md b/python/README.md index d2512f563731..7130f80da446 100644 --- a/python/README.md +++ b/python/README.md @@ -208,13 +208,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@2.4.16/dist/ccxt.browser.js -* unpkg: https://unpkg.com/ccxt@2.4.16/dist/ccxt.browser.js +* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@2.4.17/dist/ccxt.browser.js +* unpkg: https://unpkg.com/ccxt@2.4.17/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 - + ``` Creates a global `ccxt` object: diff --git a/python/ccxt/__init__.py b/python/ccxt/__init__.py index c721e960b7a7..a9a40bece52b 100644 --- a/python/ccxt/__init__.py +++ b/python/ccxt/__init__.py @@ -22,7 +22,7 @@ # ---------------------------------------------------------------------------- -__version__ = '2.4.16' +__version__ = '2.4.17' # ---------------------------------------------------------------------------- diff --git a/python/ccxt/async_support/__init__.py b/python/ccxt/async_support/__init__.py index f9b0953d14da..56e58fa473d7 100644 --- a/python/ccxt/async_support/__init__.py +++ b/python/ccxt/async_support/__init__.py @@ -4,7 +4,7 @@ # ----------------------------------------------------------------------------- -__version__ = '2.4.16' +__version__ = '2.4.17' # ----------------------------------------------------------------------------- diff --git a/python/ccxt/async_support/base/exchange.py b/python/ccxt/async_support/base/exchange.py index 29a074a957c9..5c07ff869334 100644 --- a/python/ccxt/async_support/base/exchange.py +++ b/python/ccxt/async_support/base/exchange.py @@ -2,7 +2,7 @@ # ----------------------------------------------------------------------------- -__version__ = '2.4.16' +__version__ = '2.4.17' # ----------------------------------------------------------------------------- diff --git a/python/ccxt/base/exchange.py b/python/ccxt/base/exchange.py index 06cd7e8f1d13..6d0e4e278b5b 100644 --- a/python/ccxt/base/exchange.py +++ b/python/ccxt/base/exchange.py @@ -4,7 +4,7 @@ # ----------------------------------------------------------------------------- -__version__ = '2.4.16' +__version__ = '2.4.17' # ----------------------------------------------------------------------------- diff --git a/python/ccxt/pro/__init__.py b/python/ccxt/pro/__init__.py index 582c790c85b0..4b69c9d42b01 100644 --- a/python/ccxt/pro/__init__.py +++ b/python/ccxt/pro/__init__.py @@ -4,7 +4,7 @@ # ---------------------------------------------------------------------------- -__version__ = '2.4.16' +__version__ = '2.4.17' # ---------------------------------------------------------------------------- diff --git a/python/ccxt/pro/base/exchange.py b/python/ccxt/pro/base/exchange.py index 57e9982fa3e8..592b1a5044f0 100644 --- a/python/ccxt/pro/base/exchange.py +++ b/python/ccxt/pro/base/exchange.py @@ -2,7 +2,7 @@ # ----------------------------------------------------------------------------- -__version__ = '2.4.16' +__version__ = '2.4.17' # ----------------------------------------------------------------------------- diff --git a/python/ccxt/pro/bitmart.py b/python/ccxt/pro/bitmart.py index 8433d32195d6..0c51d677344c 100644 --- a/python/ccxt/pro/bitmart.py +++ b/python/ccxt/pro/bitmart.py @@ -34,7 +34,7 @@ def describe(self): 'options': { 'defaultType': 'spot', 'watchOrderBook': { - 'depth': 'depth5', # depth5, depth400 + 'depth': 'depth5', # depth5, depth20, depth50 }, 'ws': { 'inflate': True, @@ -367,7 +367,7 @@ async def watch_order_book(self, symbol, limit=None, params={}): :returns dict: A dictionary of `order book structures ` indexed by market symbols """ options = self.safe_value(self.options, 'watchOrderBook', {}) - depth = self.safe_string(options, 'depth', 'depth400') + depth = self.safe_string(options, 'depth', 'depth50') orderbook = await self.subscribe(depth, symbol, params) return orderbook.limit() @@ -567,7 +567,8 @@ def handle_message(self, client, message): methods = { 'depth': self.handle_order_book, 'depth5': self.handle_order_book, - 'depth400': self.handle_order_book, + 'depth20': self.handle_order_book, + 'depth50': self.handle_order_book, 'ticker': self.handle_ticker, 'trade': self.handle_trade, # ... diff --git a/python/package.json b/python/package.json index 40dd7247e3e3..34b6f1726760 100644 --- a/python/package.json +++ b/python/package.json @@ -1,6 +1,6 @@ { "name": "ccxt", - "version": "2.4.16", + "version": "2.4.17", "description": "A JavaScript / Python / PHP cryptocurrency trading library with support for 130+ exchanges", "main": "./ccxt.js", "unpkg": "dist/ccxt.browser.js", @@ -241,7 +241,7 @@ "ccex", "C-CEX", "cex", - "CEX.IO", + "cex.io", "CHBTC", "ChileBit", "chilebit.net", @@ -411,7 +411,7 @@ "fybse.se", "fybsg.com", "gatecoin.com", - "gate.io", + "Gate.io", "gdax.com", "gemini.com", "getbtc.org", @@ -528,8 +528,8 @@ "dsxglobal.com", "bitvavo.com", "Bitvavo", - "currency.com", - "waves.exchange", + "Currency.com", + "Waves.Exchange", "phemex.com", "Phemex", "huobi.co.jp", @@ -578,7 +578,7 @@ "Binance USDⓈ-M", "eqonex.com", "EQONEX", - "fmfw.io", + "FMFW.io", "mexc.com", "MEXC Global", "bitrue.com", @@ -592,8 +592,8 @@ "Zonda", "futures.kucoin.com", "KuCoin Futures", - "blockchain.com", - "crypto.com", + "Blockchain.com", + "Crypto.com", "wazirx.com", "WazirX", "woo.org", diff --git a/wiki/Install.md b/wiki/Install.md index 310000c2bb4f..88a2b2895388 100644 --- a/wiki/Install.md +++ b/wiki/Install.md @@ -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@2.4.16/dist/ccxt.browser.js -* unpkg: https://unpkg.com/ccxt@2.4.16/dist/ccxt.browser.js +* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@2.4.17/dist/ccxt.browser.js +* unpkg: https://unpkg.com/ccxt@2.4.17/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 - + ``` Creates a global `ccxt` object: