diff --git a/README.md b/README.md index 31a0de427d065..fb186a3061e9f 100644 --- a/README.md +++ b/README.md @@ -225,13 +225,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.75.94/dist/ccxt.browser.js -* unpkg: https://unpkg.com/ccxt@1.75.94/dist/ccxt.browser.js +* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@1.75.95/dist/ccxt.browser.js +* unpkg: https://unpkg.com/ccxt@1.75.95/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 8fe6eb14528fa..388bcd6d3e9cc 100644 --- a/ccxt.js +++ b/ccxt.js @@ -36,7 +36,7 @@ const Exchange = require ('./js/base/Exchange') //----------------------------------------------------------------------------- // this is updated by vss.js when building -const version = '1.75.94' +const version = '1.75.95' Exchange.ccxtVersion = version diff --git a/dist/ccxt.browser.js b/dist/ccxt.browser.js index 14c31e3b19e46..72f63f88b574a 100644 --- a/dist/ccxt.browser.js +++ b/dist/ccxt.browser.js @@ -44,7 +44,7 @@ const Exchange = require ('./js/base/Exchange') //----------------------------------------------------------------------------- // this is updated by vss.js when building -const version = '1.75.94' +const version = '1.75.95' Exchange.ccxtVersion = version @@ -80810,7 +80810,7 @@ module.exports = class gateio extends Exchange { async fetchSpotMarkets (params) { const marginResponse = await this.publicMarginGetCurrencyPairs (params); const spotMarketsResponse = await this.publicSpotGetCurrencyPairs (params); - const spotMarkets = this.indexBy (spotMarketsResponse, 'id'); + const marginMarkets = this.indexBy (marginResponse, 'id'); // // Spot // [ @@ -80842,11 +80842,11 @@ module.exports = class gateio extends Exchange { // ] // const result = []; - for (let i = 0; i < marginResponse.length; i++) { - let market = marginResponse[i]; + for (let i = 0; i < spotMarketsResponse.length; i++) { + let market = spotMarketsResponse[i]; const id = this.safeString (market, 'id'); - const spotMarket = this.safeValue (spotMarkets, id); - market = this.deepExtend (spotMarket, market); + const marginMarket = this.safeValue (marginMarkets, id); + market = this.deepExtend (marginMarket, market); const [ baseId, quoteId ] = id.split ('_'); const base = this.safeCurrencyCode (baseId); const quote = this.safeCurrencyCode (quoteId); diff --git a/doc/readme.rst b/doc/readme.rst index 3a4547e43618c..b39759285f646 100644 --- a/doc/readme.rst +++ b/doc/readme.rst @@ -1999,14 +1999,14 @@ JavaScript (for use with the `` + Creates a global ``ccxt`` object: diff --git a/package-lock.json b/package-lock.json index be4751d7d6234..312b23b808517 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ccxt", - "version": "1.75.94", + "version": "1.75.95", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "ccxt", - "version": "1.75.94", + "version": "1.75.95", "hasInstallScript": true, "license": "MIT", "devDependencies": { diff --git a/package.json b/package.json index 3fc49f45df2d6..a0b65993a0124 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ccxt", - "version": "1.75.94", + "version": "1.75.95", "description": "A JavaScript / Python / PHP cryptocurrency trading library with support for 130+ exchanges", "main": "./ccxt.js", "unpkg": "dist/ccxt.browser.js", @@ -215,7 +215,7 @@ "ccex", "C-CEX", "cex", - "CEX.IO", + "cex.io", "CHBTC", "ChileBit", "chilebit.net", @@ -385,7 +385,7 @@ "fybse.se", "fybsg.com", "gatecoin.com", - "gate.io", + "Gate.io", "gdax.com", "gemini.com", "getbtc.org", @@ -502,8 +502,8 @@ "dsxglobal.com", "bitvavo.com", "Bitvavo", - "currency.com", - "waves.exchange", + "Currency.com", + "Waves.Exchange", "phemex.com", "Phemex", "huobi.co.jp", @@ -552,7 +552,7 @@ "Binance USDⓈ-M", "eqonex.com", "EQONEX", - "fmfw.io", + "FMFW.io", "mexc.com", "MEXC Global", "bitrue.com", @@ -566,8 +566,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 677802aea0569..0a9c8505970e4 100644 --- a/php/Exchange.php +++ b/php/Exchange.php @@ -36,7 +36,7 @@ use BN\BN; use Exception; -$version = '1.75.94'; +$version = '1.75.95'; // rounding mode const TRUNCATE = 0; @@ -55,7 +55,7 @@ class Exchange { - const VERSION = '1.75.94'; + const VERSION = '1.75.95'; private static $base58_alphabet = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'; private static $base58_encoder = null; diff --git a/php/async/Exchange.php b/php/async/Exchange.php index 80ec2940803e3..6c812be805ee5 100644 --- a/php/async/Exchange.php +++ b/php/async/Exchange.php @@ -28,11 +28,11 @@ include 'Throttle.php'; -$version = '1.75.94'; +$version = '1.75.95'; class Exchange extends \ccxt\Exchange { - const VERSION = '1.75.94'; + const VERSION = '1.75.95'; public static $loop; public static $kernel; diff --git a/php/async/gateio.php b/php/async/gateio.php index 662784cebc040..cb01759b72b1d 100644 --- a/php/async/gateio.php +++ b/php/async/gateio.php @@ -602,7 +602,7 @@ public function fetch_markets($params = array ()) { public function fetch_spot_markets($params) { $marginResponse = yield $this->publicMarginGetCurrencyPairs ($params); $spotMarketsResponse = yield $this->publicSpotGetCurrencyPairs ($params); - $spotMarkets = $this->index_by($spotMarketsResponse, 'id'); + $marginMarkets = $this->index_by($marginResponse, 'id'); // // Spot // array( @@ -634,11 +634,11 @@ public function fetch_spot_markets($params) { // ) // $result = array(); - for ($i = 0; $i < count($marginResponse); $i++) { - $market = $marginResponse[$i]; + for ($i = 0; $i < count($spotMarketsResponse); $i++) { + $market = $spotMarketsResponse[$i]; $id = $this->safe_string($market, 'id'); - $spotMarket = $this->safe_value($spotMarkets, $id); - $market = $this->deep_extend($spotMarket, $market); + $marginMarket = $this->safe_value($marginMarkets, $id); + $market = $this->deep_extend($marginMarket, $market); list($baseId, $quoteId) = explode('_', $id); $base = $this->safe_currency_code($baseId); $quote = $this->safe_currency_code($quoteId); diff --git a/php/gateio.php b/php/gateio.php index 6d40f2890f731..fcc8f123943f7 100644 --- a/php/gateio.php +++ b/php/gateio.php @@ -601,7 +601,7 @@ public function fetch_markets($params = array ()) { public function fetch_spot_markets($params) { $marginResponse = $this->publicMarginGetCurrencyPairs ($params); $spotMarketsResponse = $this->publicSpotGetCurrencyPairs ($params); - $spotMarkets = $this->index_by($spotMarketsResponse, 'id'); + $marginMarkets = $this->index_by($marginResponse, 'id'); // // Spot // array( @@ -633,11 +633,11 @@ public function fetch_spot_markets($params) { // ) // $result = array(); - for ($i = 0; $i < count($marginResponse); $i++) { - $market = $marginResponse[$i]; + for ($i = 0; $i < count($spotMarketsResponse); $i++) { + $market = $spotMarketsResponse[$i]; $id = $this->safe_string($market, 'id'); - $spotMarket = $this->safe_value($spotMarkets, $id); - $market = $this->deep_extend($spotMarket, $market); + $marginMarket = $this->safe_value($marginMarkets, $id); + $market = $this->deep_extend($marginMarket, $market); list($baseId, $quoteId) = explode('_', $id); $base = $this->safe_currency_code($baseId); $quote = $this->safe_currency_code($quoteId); diff --git a/python/README.md b/python/README.md index 31a0de427d065..fb186a3061e9f 100644 --- a/python/README.md +++ b/python/README.md @@ -225,13 +225,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.75.94/dist/ccxt.browser.js -* unpkg: https://unpkg.com/ccxt@1.75.94/dist/ccxt.browser.js +* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@1.75.95/dist/ccxt.browser.js +* unpkg: https://unpkg.com/ccxt@1.75.95/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 3cbae2dcb5015..34fbe933bc8f1 100644 --- a/python/ccxt/__init__.py +++ b/python/ccxt/__init__.py @@ -22,7 +22,7 @@ # ---------------------------------------------------------------------------- -__version__ = '1.75.94' +__version__ = '1.75.95' # ---------------------------------------------------------------------------- diff --git a/python/ccxt/async_support/__init__.py b/python/ccxt/async_support/__init__.py index 363e6b4934faf..b0dd9b957aaae 100644 --- a/python/ccxt/async_support/__init__.py +++ b/python/ccxt/async_support/__init__.py @@ -4,7 +4,7 @@ # ----------------------------------------------------------------------------- -__version__ = '1.75.94' +__version__ = '1.75.95' # ----------------------------------------------------------------------------- diff --git a/python/ccxt/async_support/base/exchange.py b/python/ccxt/async_support/base/exchange.py index 8629344253b26..e82e95311c901 100644 --- a/python/ccxt/async_support/base/exchange.py +++ b/python/ccxt/async_support/base/exchange.py @@ -2,7 +2,7 @@ # ----------------------------------------------------------------------------- -__version__ = '1.75.94' +__version__ = '1.75.95' # ----------------------------------------------------------------------------- diff --git a/python/ccxt/async_support/gateio.py b/python/ccxt/async_support/gateio.py index c777622dd2514..da7063fc4c82e 100644 --- a/python/ccxt/async_support/gateio.py +++ b/python/ccxt/async_support/gateio.py @@ -606,7 +606,7 @@ async def fetch_markets(self, params={}): async def fetch_spot_markets(self, params): marginResponse = await self.publicMarginGetCurrencyPairs(params) spotMarketsResponse = await self.publicSpotGetCurrencyPairs(params) - spotMarkets = self.index_by(spotMarketsResponse, 'id') + marginMarkets = self.index_by(marginResponse, 'id') # # Spot # [ @@ -638,11 +638,11 @@ async def fetch_spot_markets(self, params): # ] # result = [] - for i in range(0, len(marginResponse)): - market = marginResponse[i] + for i in range(0, len(spotMarketsResponse)): + market = spotMarketsResponse[i] id = self.safe_string(market, 'id') - spotMarket = self.safe_value(spotMarkets, id) - market = self.deep_extend(spotMarket, market) + marginMarket = self.safe_value(marginMarkets, id) + market = self.deep_extend(marginMarket, market) baseId, quoteId = id.split('_') base = self.safe_currency_code(baseId) quote = self.safe_currency_code(quoteId) diff --git a/python/ccxt/base/exchange.py b/python/ccxt/base/exchange.py index 6becac8ead3c2..789ab252ac907 100644 --- a/python/ccxt/base/exchange.py +++ b/python/ccxt/base/exchange.py @@ -4,7 +4,7 @@ # ----------------------------------------------------------------------------- -__version__ = '1.75.94' +__version__ = '1.75.95' # ----------------------------------------------------------------------------- diff --git a/python/ccxt/gateio.py b/python/ccxt/gateio.py index 229bfb5eea9c3..642360cb4469b 100644 --- a/python/ccxt/gateio.py +++ b/python/ccxt/gateio.py @@ -606,7 +606,7 @@ def fetch_markets(self, params={}): def fetch_spot_markets(self, params): marginResponse = self.publicMarginGetCurrencyPairs(params) spotMarketsResponse = self.publicSpotGetCurrencyPairs(params) - spotMarkets = self.index_by(spotMarketsResponse, 'id') + marginMarkets = self.index_by(marginResponse, 'id') # # Spot # [ @@ -638,11 +638,11 @@ def fetch_spot_markets(self, params): # ] # result = [] - for i in range(0, len(marginResponse)): - market = marginResponse[i] + for i in range(0, len(spotMarketsResponse)): + market = spotMarketsResponse[i] id = self.safe_string(market, 'id') - spotMarket = self.safe_value(spotMarkets, id) - market = self.deep_extend(spotMarket, market) + marginMarket = self.safe_value(marginMarkets, id) + market = self.deep_extend(marginMarket, market) baseId, quoteId = id.split('_') base = self.safe_currency_code(baseId) quote = self.safe_currency_code(quoteId) diff --git a/python/package.json b/python/package.json index 3fc49f45df2d6..a0b65993a0124 100644 --- a/python/package.json +++ b/python/package.json @@ -1,6 +1,6 @@ { "name": "ccxt", - "version": "1.75.94", + "version": "1.75.95", "description": "A JavaScript / Python / PHP cryptocurrency trading library with support for 130+ exchanges", "main": "./ccxt.js", "unpkg": "dist/ccxt.browser.js", @@ -215,7 +215,7 @@ "ccex", "C-CEX", "cex", - "CEX.IO", + "cex.io", "CHBTC", "ChileBit", "chilebit.net", @@ -385,7 +385,7 @@ "fybse.se", "fybsg.com", "gatecoin.com", - "gate.io", + "Gate.io", "gdax.com", "gemini.com", "getbtc.org", @@ -502,8 +502,8 @@ "dsxglobal.com", "bitvavo.com", "Bitvavo", - "currency.com", - "waves.exchange", + "Currency.com", + "Waves.Exchange", "phemex.com", "Phemex", "huobi.co.jp", @@ -552,7 +552,7 @@ "Binance USDⓈ-M", "eqonex.com", "EQONEX", - "fmfw.io", + "FMFW.io", "mexc.com", "MEXC Global", "bitrue.com", @@ -566,8 +566,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 3ccc525200eae..51404e249020f 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@1.75.94/dist/ccxt.browser.js -* unpkg: https://unpkg.com/ccxt@1.75.94/dist/ccxt.browser.js +* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@1.75.95/dist/ccxt.browser.js +* unpkg: https://unpkg.com/ccxt@1.75.95/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: