ccxt 4.1.57 → 4.1.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/ccxt.browser.js +22 -13
- package/dist/ccxt.browser.min.js +2 -2
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/base/ws/Client.js +1 -1
- package/dist/cjs/src/bitmart.js +4 -4
- package/dist/cjs/src/pro/bittrex.js +9 -0
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/base/ws/Client.js +1 -1
- package/js/src/bitmart.js +4 -4
- package/js/src/pro/bittrex.js +9 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -211,13 +211,13 @@ console.log(version, Object.keys(exchanges));
|
|
|
211
211
|
|
|
212
212
|
All-in-one browser bundle (dependencies included), served from a CDN of your choice:
|
|
213
213
|
|
|
214
|
-
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.1.
|
|
215
|
-
* unpkg: https://unpkg.com/ccxt@4.1.
|
|
214
|
+
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.1.58/dist/ccxt.browser.js
|
|
215
|
+
* unpkg: https://unpkg.com/ccxt@4.1.58/dist/ccxt.browser.js
|
|
216
216
|
|
|
217
217
|
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.
|
|
218
218
|
|
|
219
219
|
```HTML
|
|
220
|
-
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.1.
|
|
220
|
+
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.1.58/dist/ccxt.browser.js"></script>
|
|
221
221
|
```
|
|
222
222
|
|
|
223
223
|
Creates a global `ccxt` object:
|
package/dist/ccxt.browser.js
CHANGED
|
@@ -13635,8 +13635,8 @@ class ArrayCacheBySymbolBySide extends ArrayCache {
|
|
|
13635
13635
|
/* harmony import */ var _static_dependencies_fflake_browser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7348);
|
|
13636
13636
|
/* harmony import */ var _Future_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2367);
|
|
13637
13637
|
/* harmony import */ var _base_functions_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(927);
|
|
13638
|
-
/* harmony import */ var _base_functions_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
|
|
13639
|
-
/* harmony import */ var _base_functions_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
|
|
13638
|
+
/* harmony import */ var _base_functions_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9125);
|
|
13639
|
+
/* harmony import */ var _base_functions_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(1621);
|
|
13640
13640
|
/* harmony import */ var _base_functions_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(1237);
|
|
13641
13641
|
/* harmony import */ var _static_dependencies_scure_base_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(9651);
|
|
13642
13642
|
|
|
@@ -13745,7 +13745,7 @@ class Client {
|
|
|
13745
13745
|
if (!this.isOpen()) {
|
|
13746
13746
|
const error = new _base_errors_js__WEBPACK_IMPORTED_MODULE_3__.RequestTimeout('Connection to ' + this.url + ' failed due to a connection timeout');
|
|
13747
13747
|
this.onError(error);
|
|
13748
|
-
this.connection.close(1006);
|
|
13748
|
+
this.connection.close(_base_functions_js__WEBPACK_IMPORTED_MODULE_4__/* .isNode */ .UG ? 1006 : 1000);
|
|
13749
13749
|
}
|
|
13750
13750
|
}
|
|
13751
13751
|
setConnectionTimeout() {
|
|
@@ -13772,7 +13772,7 @@ class Client {
|
|
|
13772
13772
|
}
|
|
13773
13773
|
onPingInterval() {
|
|
13774
13774
|
if (this.keepAlive && this.isOpen()) {
|
|
13775
|
-
const now = (0,
|
|
13775
|
+
const now = (0,_base_functions_js__WEBPACK_IMPORTED_MODULE_5__/* .milliseconds */ .m)();
|
|
13776
13776
|
this.lastPong = this.lastPong || now;
|
|
13777
13777
|
if ((this.lastPong + this.keepAlive * this.maxPingPongMisses) < now) {
|
|
13778
13778
|
this.onError(new _base_errors_js__WEBPACK_IMPORTED_MODULE_3__.RequestTimeout('Connection to ' + this.url + ' timed out due to a ping-pong keepalive missing on time'));
|
|
@@ -13781,7 +13781,7 @@ class Client {
|
|
|
13781
13781
|
if (this.ping) {
|
|
13782
13782
|
this.send(this.ping(this));
|
|
13783
13783
|
}
|
|
13784
|
-
else if (
|
|
13784
|
+
else if (_base_functions_js__WEBPACK_IMPORTED_MODULE_4__/* .isNode */ .UG) {
|
|
13785
13785
|
// can't do this inside browser
|
|
13786
13786
|
// https://stackoverflow.com/questions/10585355/sending-websocket-ping-pong-frame-from-browser
|
|
13787
13787
|
this.connection.ping();
|
|
@@ -13800,7 +13800,7 @@ class Client {
|
|
|
13800
13800
|
if (this.verbose) {
|
|
13801
13801
|
this.log(new Date(), 'onOpen');
|
|
13802
13802
|
}
|
|
13803
|
-
this.connectionEstablished = (0,
|
|
13803
|
+
this.connectionEstablished = (0,_base_functions_js__WEBPACK_IMPORTED_MODULE_5__/* .milliseconds */ .m)();
|
|
13804
13804
|
this.isConnected = true;
|
|
13805
13805
|
this.connected.resolve(this.url);
|
|
13806
13806
|
// this.connection.terminate () // debugging
|
|
@@ -13817,7 +13817,7 @@ class Client {
|
|
|
13817
13817
|
}
|
|
13818
13818
|
}
|
|
13819
13819
|
onPong() {
|
|
13820
|
-
this.lastPong = (0,
|
|
13820
|
+
this.lastPong = (0,_base_functions_js__WEBPACK_IMPORTED_MODULE_5__/* .milliseconds */ .m)();
|
|
13821
13821
|
if (this.verbose) {
|
|
13822
13822
|
this.log(new Date(), 'onPong');
|
|
13823
13823
|
}
|
|
@@ -13860,7 +13860,7 @@ class Client {
|
|
|
13860
13860
|
}
|
|
13861
13861
|
message = (typeof message === 'string') ? message : JSON.stringify(message);
|
|
13862
13862
|
const future = (0,_Future_js__WEBPACK_IMPORTED_MODULE_2__/* .createFuture */ .N)();
|
|
13863
|
-
if (
|
|
13863
|
+
if (_base_functions_js__WEBPACK_IMPORTED_MODULE_4__/* .isNode */ .UG) {
|
|
13864
13864
|
function onSendComplete(error) {
|
|
13865
13865
|
if (error) {
|
|
13866
13866
|
future.reject(error);
|
|
@@ -47814,15 +47814,15 @@ class bitmart extends _abstract_bitmart_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
47814
47814
|
'spot/v1/symbols/details': 5,
|
|
47815
47815
|
'spot/quotation/v3/tickers': 6,
|
|
47816
47816
|
'spot/quotation/v3/ticker': 4,
|
|
47817
|
-
'spot/quotation/v3/lite-klines':
|
|
47818
|
-
'spot/quotation/v3/klines':
|
|
47817
|
+
'spot/quotation/v3/lite-klines': 5,
|
|
47818
|
+
'spot/quotation/v3/klines': 7,
|
|
47819
47819
|
'spot/quotation/v3/books': 4,
|
|
47820
47820
|
'spot/quotation/v3/trades': 4,
|
|
47821
47821
|
'spot/v1/ticker': 5,
|
|
47822
47822
|
'spot/v2/ticker': 30,
|
|
47823
47823
|
'spot/v1/ticker_detail': 5,
|
|
47824
47824
|
'spot/v1/steps': 30,
|
|
47825
|
-
'spot/v1/symbols/kline':
|
|
47825
|
+
'spot/v1/symbols/kline': 6,
|
|
47826
47826
|
'spot/v1/symbols/book': 5,
|
|
47827
47827
|
'spot/v1/symbols/trades': 5,
|
|
47828
47828
|
// contract markets
|
|
@@ -47831,7 +47831,7 @@ class bitmart extends _abstract_bitmart_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
|
|
|
47831
47831
|
'contract/public/depth': 5,
|
|
47832
47832
|
'contract/public/open-interest': 30,
|
|
47833
47833
|
'contract/public/funding-rate': 30,
|
|
47834
|
-
'contract/public/kline':
|
|
47834
|
+
'contract/public/kline': 6,
|
|
47835
47835
|
'account/v1/currencies': 30,
|
|
47836
47836
|
},
|
|
47837
47837
|
},
|
|
@@ -214494,6 +214494,15 @@ class bittrex extends _bittrex_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */
|
|
|
214494
214494
|
return this.deepExtend(super.describe(), {
|
|
214495
214495
|
'has': {
|
|
214496
214496
|
'ws': true,
|
|
214497
|
+
'cancelAllOrdersWs': false,
|
|
214498
|
+
'cancelOrdersWs': false,
|
|
214499
|
+
'cancelOrderWs': false,
|
|
214500
|
+
'createOrderWs': false,
|
|
214501
|
+
'editOrderWs': false,
|
|
214502
|
+
'fetchBalanceWs': false,
|
|
214503
|
+
'fetchOpenOrdersWs': false,
|
|
214504
|
+
'fetchOrderWs': false,
|
|
214505
|
+
'fetchTradesWs': false,
|
|
214497
214506
|
'watchBalance': true,
|
|
214498
214507
|
'watchHeartbeat': true,
|
|
214499
214508
|
'watchMyTrades': true,
|
|
@@ -285901,7 +285910,7 @@ SOFTWARE.
|
|
|
285901
285910
|
|
|
285902
285911
|
//-----------------------------------------------------------------------------
|
|
285903
285912
|
// this is updated by vss.js when building
|
|
285904
|
-
const version = '4.1.
|
|
285913
|
+
const version = '4.1.58';
|
|
285905
285914
|
_src_base_Exchange_js__WEBPACK_IMPORTED_MODULE_0__/* .Exchange */ .e.ccxtVersion = version;
|
|
285906
285915
|
//-----------------------------------------------------------------------------
|
|
285907
285916
|
|