ccxt 4.0.95 → 4.0.97
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 +1009 -3007
- package/dist/ccxt.browser.min.js +9 -9
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/bitfinex2.js +1 -1
- package/dist/cjs/src/bitmex.js +1 -1
- package/dist/cjs/src/bitso.js +14 -4
- package/dist/cjs/src/bitvavo.js +1 -1
- package/dist/cjs/src/btctradeua.js +30 -0
- package/dist/cjs/src/bybit.js +1012 -3050
- package/dist/cjs/src/deribit.js +1 -1
- package/dist/cjs/src/digifinex.js +1 -1
- package/dist/cjs/src/hitbtc.js +1 -1
- package/dist/cjs/src/kucoin.js +1 -1
- package/dist/cjs/src/latoken.js +2 -2
- package/dist/cjs/src/probit.js +1 -1
- package/dist/cjs/src/wazirx.js +1 -1
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/bitfinex2.js +1 -1
- package/js/src/bitmex.js +1 -1
- package/js/src/bitso.js +14 -4
- package/js/src/bitvavo.js +1 -1
- package/js/src/btctradeua.js +30 -0
- package/js/src/bybit.d.ts +9 -40
- package/js/src/bybit.js +1012 -3050
- package/js/src/deribit.js +1 -1
- package/js/src/digifinex.js +1 -1
- package/js/src/hitbtc.js +1 -1
- package/js/src/kucoin.js +1 -1
- package/js/src/latoken.js +2 -2
- package/js/src/probit.js +1 -1
- package/js/src/wazirx.js +1 -1
- package/package.json +1 -1
package/js/src/deribit.js
CHANGED
|
@@ -1320,7 +1320,7 @@ export default class deribit extends Exchange {
|
|
|
1320
1320
|
request['start_timestamp'] = since;
|
|
1321
1321
|
}
|
|
1322
1322
|
if (limit !== undefined) {
|
|
1323
|
-
request['count'] = limit; // default 10
|
|
1323
|
+
request['count'] = Math.min(limit, 1000); // default 10
|
|
1324
1324
|
}
|
|
1325
1325
|
const response = await this[method](this.extend(request, params));
|
|
1326
1326
|
//
|
package/js/src/digifinex.js
CHANGED
|
@@ -1369,7 +1369,7 @@ export default class digifinex extends Exchange {
|
|
|
1369
1369
|
request['symbol'] = market['id'];
|
|
1370
1370
|
}
|
|
1371
1371
|
if (limit !== undefined) {
|
|
1372
|
-
request['limit'] = limit;
|
|
1372
|
+
request['limit'] = market['swap'] ? Math.min(limit, 100) : limit;
|
|
1373
1373
|
}
|
|
1374
1374
|
const response = await this[method](this.extend(request, params));
|
|
1375
1375
|
//
|
package/js/src/hitbtc.js
CHANGED
|
@@ -1110,7 +1110,7 @@ export default class hitbtc extends Exchange {
|
|
|
1110
1110
|
request['symbols'] = market['id'];
|
|
1111
1111
|
}
|
|
1112
1112
|
if (limit !== undefined) {
|
|
1113
|
-
request['limit'] = limit;
|
|
1113
|
+
request['limit'] = Math.min(limit, 1000);
|
|
1114
1114
|
}
|
|
1115
1115
|
if (since !== undefined) {
|
|
1116
1116
|
request['from'] = since;
|
package/js/src/kucoin.js
CHANGED
|
@@ -4144,7 +4144,7 @@ export default class kucoin extends Exchange {
|
|
|
4144
4144
|
this.throwExactlyMatchedException(this.exceptions['exact'], message, feedback);
|
|
4145
4145
|
this.throwExactlyMatchedException(this.exceptions['exact'], errorCode, feedback);
|
|
4146
4146
|
this.throwBroadlyMatchedException(this.exceptions['broad'], body, feedback);
|
|
4147
|
-
if (errorCode !== '200000') {
|
|
4147
|
+
if (errorCode !== '200000' && errorCode !== '200') {
|
|
4148
4148
|
throw new ExchangeError(feedback);
|
|
4149
4149
|
}
|
|
4150
4150
|
return undefined;
|
package/js/src/latoken.js
CHANGED
|
@@ -798,10 +798,10 @@ export default class latoken extends Exchange {
|
|
|
798
798
|
'currency': market['baseId'],
|
|
799
799
|
'quote': market['quoteId'],
|
|
800
800
|
// 'from': since.toString (), // milliseconds
|
|
801
|
-
// 'limit': limit, // default 100,
|
|
801
|
+
// 'limit': limit, // default 100, limit 100
|
|
802
802
|
};
|
|
803
803
|
if (limit !== undefined) {
|
|
804
|
-
request['limit'] = limit; // default 100,
|
|
804
|
+
request['limit'] = Math.min(limit, 100); // default 100, limit 100
|
|
805
805
|
}
|
|
806
806
|
const response = await this.publicGetTradeHistoryCurrencyQuote(this.extend(request, params));
|
|
807
807
|
//
|
package/js/src/probit.js
CHANGED
|
@@ -776,7 +776,7 @@ export default class probit extends Exchange {
|
|
|
776
776
|
request['start_time'] = this.iso8601(since);
|
|
777
777
|
}
|
|
778
778
|
if (limit !== undefined) {
|
|
779
|
-
request['limit'] = limit;
|
|
779
|
+
request['limit'] = Math.min(limit, 10000);
|
|
780
780
|
}
|
|
781
781
|
const response = await this.publicGetTrade(this.extend(request, params));
|
|
782
782
|
//
|
package/js/src/wazirx.js
CHANGED
|
@@ -447,7 +447,7 @@ export default class wazirx extends Exchange {
|
|
|
447
447
|
'symbol': market['id'],
|
|
448
448
|
};
|
|
449
449
|
if (limit !== undefined) {
|
|
450
|
-
request['limit'] = limit; // Default 500; max 1000.
|
|
450
|
+
request['limit'] = Math.min(limit, 1000); // Default 500; max 1000.
|
|
451
451
|
}
|
|
452
452
|
const method = this.safeString(this.options, 'fetchTradesMethod', 'publicGetTrades');
|
|
453
453
|
const response = await this[method](this.extend(request, params));
|
package/package.json
CHANGED