diff --git a/README.md b/README.md index e290f6826948..d3ad0032e97d 100644 --- a/README.md +++ b/README.md @@ -223,13 +223,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.91.34/dist/ccxt.browser.js -* unpkg: https://unpkg.com/ccxt@1.91.34/dist/ccxt.browser.js +* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@1.91.35/dist/ccxt.browser.js +* unpkg: https://unpkg.com/ccxt@1.91.35/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 87b2c54b456b..07421c4d86d4 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.91.34' +const version = '1.91.35' Exchange.ccxtVersion = version diff --git a/dist/ccxt.browser.js b/dist/ccxt.browser.js index 366717d62908..c1f07cb6b270 100644 --- a/dist/ccxt.browser.js +++ b/dist/ccxt.browser.js @@ -46,7 +46,7 @@ const Exchange = require ('./js/base/Exchange') //----------------------------------------------------------------------------- // this is updated by vss.js when building -const version = '1.91.34' +const version = '1.91.35' Exchange.ccxtVersion = version @@ -17671,6 +17671,9 @@ module.exports = class binance extends Exchange { request['startTime'] = since; } if (limit !== undefined) { + if (type === 'future' || type === 'delivery') { + limit = Math.min (limit, 1000); // above 1000, returns error + } request['limit'] = limit; } const response = await this[method] (this.extend (request, params)); diff --git a/doc/readme.rst b/doc/readme.rst index 9f60ed3ac4d8..58f5e05c1897 100644 --- a/doc/readme.rst +++ b/doc/readme.rst @@ -2027,14 +2027,14 @@ JavaScript (for use with the `` + Creates a global ``ccxt`` object: diff --git a/package-lock.json b/package-lock.json index faf1633dcedf..2a3ba1801b8b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ccxt", - "version": "1.91.34", + "version": "1.91.35", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "ccxt", - "version": "1.91.34", + "version": "1.91.35", "hasInstallScript": true, "license": "MIT", "devDependencies": { diff --git a/package.json b/package.json index 5b6b92e36a82..9b4ff524c4ee 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ccxt", - "version": "1.91.34", + "version": "1.91.35", "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 e66a72eeba4f..e11125dfcda7 100644 --- a/php/Exchange.php +++ b/php/Exchange.php @@ -36,7 +36,7 @@ use BN\BN; use Exception; -$version = '1.91.34'; +$version = '1.91.35'; // rounding mode const TRUNCATE = 0; @@ -55,7 +55,7 @@ class Exchange { - const VERSION = '1.91.34'; + const VERSION = '1.91.35'; private static $base58_alphabet = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'; private static $base58_encoder = null; diff --git a/php/async/Exchange.php b/php/async/Exchange.php index 584ec3863c84..ff8ae6a9d482 100644 --- a/php/async/Exchange.php +++ b/php/async/Exchange.php @@ -32,11 +32,11 @@ include 'Throttle.php'; -$version = '1.91.34'; +$version = '1.91.35'; class Exchange extends \ccxt\Exchange { - const VERSION = '1.91.34'; + const VERSION = '1.91.35'; public static $loop; public static $kernel; diff --git a/php/async/binance.php b/php/async/binance.php index 1c98ae795577..32baefec5875 100644 --- a/php/async/binance.php +++ b/php/async/binance.php @@ -3382,6 +3382,9 @@ public function fetch_my_trades($symbol = null, $since = null, $limit = null, $p $request['startTime'] = $since; } if ($limit !== null) { + if ($type === 'future' || $type === 'delivery') { + $limit = min ($limit, 1000); // above 1000, returns error + } $request['limit'] = $limit; } $response = yield $this->$method (array_merge($request, $params)); diff --git a/php/binance.php b/php/binance.php index d4eabee7589f..103cc2eda789 100644 --- a/php/binance.php +++ b/php/binance.php @@ -3381,6 +3381,9 @@ public function fetch_my_trades($symbol = null, $since = null, $limit = null, $p $request['startTime'] = $since; } if ($limit !== null) { + if ($type === 'future' || $type === 'delivery') { + $limit = min ($limit, 1000); // above 1000, returns error + } $request['limit'] = $limit; } $response = $this->$method (array_merge($request, $params)); diff --git a/python/README.md b/python/README.md index e290f6826948..d3ad0032e97d 100644 --- a/python/README.md +++ b/python/README.md @@ -223,13 +223,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.91.34/dist/ccxt.browser.js -* unpkg: https://unpkg.com/ccxt@1.91.34/dist/ccxt.browser.js +* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@1.91.35/dist/ccxt.browser.js +* unpkg: https://unpkg.com/ccxt@1.91.35/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 7d21cfcbd7c9..763b35ceb30e 100644 --- a/python/ccxt/__init__.py +++ b/python/ccxt/__init__.py @@ -22,7 +22,7 @@ # ---------------------------------------------------------------------------- -__version__ = '1.91.34' +__version__ = '1.91.35' # ---------------------------------------------------------------------------- diff --git a/python/ccxt/async_support/__init__.py b/python/ccxt/async_support/__init__.py index b33bce780c46..4310c7ec07d4 100644 --- a/python/ccxt/async_support/__init__.py +++ b/python/ccxt/async_support/__init__.py @@ -4,7 +4,7 @@ # ----------------------------------------------------------------------------- -__version__ = '1.91.34' +__version__ = '1.91.35' # ----------------------------------------------------------------------------- diff --git a/python/ccxt/async_support/base/exchange.py b/python/ccxt/async_support/base/exchange.py index 09c29e2a4c8f..0ef1821b060a 100644 --- a/python/ccxt/async_support/base/exchange.py +++ b/python/ccxt/async_support/base/exchange.py @@ -2,7 +2,7 @@ # ----------------------------------------------------------------------------- -__version__ = '1.91.34' +__version__ = '1.91.35' # ----------------------------------------------------------------------------- diff --git a/python/ccxt/async_support/binance.py b/python/ccxt/async_support/binance.py index 2bf592cf095a..8531031a9bf6 100644 --- a/python/ccxt/async_support/binance.py +++ b/python/ccxt/async_support/binance.py @@ -3253,6 +3253,8 @@ async def fetch_my_trades(self, symbol=None, since=None, limit=None, params={}): if since is not None: request['startTime'] = since if limit is not None: + if type == 'future' or type == 'delivery': + limit = min(limit, 1000) # above 1000, returns error request['limit'] = limit response = await getattr(self, method)(self.extend(request, params)) # diff --git a/python/ccxt/base/exchange.py b/python/ccxt/base/exchange.py index a467d3cc3e5f..e662bf05dbbd 100644 --- a/python/ccxt/base/exchange.py +++ b/python/ccxt/base/exchange.py @@ -4,7 +4,7 @@ # ----------------------------------------------------------------------------- -__version__ = '1.91.34' +__version__ = '1.91.35' # ----------------------------------------------------------------------------- diff --git a/python/ccxt/binance.py b/python/ccxt/binance.py index 98a2a1c3fdc9..47b16ee7fb12 100644 --- a/python/ccxt/binance.py +++ b/python/ccxt/binance.py @@ -3253,6 +3253,8 @@ def fetch_my_trades(self, symbol=None, since=None, limit=None, params={}): if since is not None: request['startTime'] = since if limit is not None: + if type == 'future' or type == 'delivery': + limit = min(limit, 1000) # above 1000, returns error request['limit'] = limit response = getattr(self, method)(self.extend(request, params)) # diff --git a/python/package.json b/python/package.json index 5b6b92e36a82..9b4ff524c4ee 100644 --- a/python/package.json +++ b/python/package.json @@ -1,6 +1,6 @@ { "name": "ccxt", - "version": "1.91.34", + "version": "1.91.35", "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 4f0fa22f287c..8ebe11862ac1 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.91.34/dist/ccxt.browser.js -* unpkg: https://unpkg.com/ccxt@1.91.34/dist/ccxt.browser.js +* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@1.91.35/dist/ccxt.browser.js +* unpkg: https://unpkg.com/ccxt@1.91.35/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: