ccxt 4.2.66 → 4.2.67
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 +15 -6
- package/dist/ccxt.browser.min.js +2 -2
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/base/Exchange.js +8 -2
- package/dist/cjs/src/bitfinex2.js +4 -2
- package/dist/cjs/src/gate.js +2 -1
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/base/Exchange.js +8 -2
- package/js/src/bitfinex2.js +4 -2
- package/js/src/gate.js +2 -1
- package/package.json +1 -1
- package/skip-tests.json +14 -7
package/README.md
CHANGED
|
@@ -210,13 +210,13 @@ console.log(version, Object.keys(exchanges));
|
|
|
210
210
|
|
|
211
211
|
All-in-one browser bundle (dependencies included), served from a CDN of your choice:
|
|
212
212
|
|
|
213
|
-
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.2.
|
|
214
|
-
* unpkg: https://unpkg.com/ccxt@4.2.
|
|
213
|
+
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.2.67/dist/ccxt.browser.js
|
|
214
|
+
* unpkg: https://unpkg.com/ccxt@4.2.67/dist/ccxt.browser.js
|
|
215
215
|
|
|
216
216
|
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.
|
|
217
217
|
|
|
218
218
|
```HTML
|
|
219
|
-
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.2.
|
|
219
|
+
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.2.67/dist/ccxt.browser.js"></script>
|
|
220
220
|
```
|
|
221
221
|
|
|
222
222
|
Creates a global `ccxt` object:
|
package/dist/ccxt.browser.js
CHANGED
|
@@ -12356,7 +12356,10 @@ class Exchange {
|
|
|
12356
12356
|
const response = await this[method](symbol, undefined, maxEntriesPerRequest, params);
|
|
12357
12357
|
const responseLength = response.length;
|
|
12358
12358
|
if (this.verbose) {
|
|
12359
|
-
|
|
12359
|
+
let backwardMessage = 'Dynamic pagination call ' + this.numberToString(calls) + ' method ' + method + ' response length ' + this.numberToString(responseLength);
|
|
12360
|
+
if (paginationTimestamp !== undefined) {
|
|
12361
|
+
backwardMessage += ' timestamp ' + this.numberToString(paginationTimestamp);
|
|
12362
|
+
}
|
|
12360
12363
|
this.log(backwardMessage);
|
|
12361
12364
|
}
|
|
12362
12365
|
if (responseLength === 0) {
|
|
@@ -12375,7 +12378,10 @@ class Exchange {
|
|
|
12375
12378
|
const response = await this[method](symbol, paginationTimestamp, maxEntriesPerRequest, params);
|
|
12376
12379
|
const responseLength = response.length;
|
|
12377
12380
|
if (this.verbose) {
|
|
12378
|
-
|
|
12381
|
+
let forwardMessage = 'Dynamic pagination call ' + this.numberToString(calls) + ' method ' + method + ' response length ' + this.numberToString(responseLength);
|
|
12382
|
+
if (paginationTimestamp !== undefined) {
|
|
12383
|
+
forwardMessage += ' timestamp ' + this.numberToString(paginationTimestamp);
|
|
12384
|
+
}
|
|
12379
12385
|
this.log(forwardMessage);
|
|
12380
12386
|
}
|
|
12381
12387
|
if (responseLength === 0) {
|
|
@@ -41502,9 +41508,11 @@ class bitfinex2 extends _abstract_bitfinex2_js__WEBPACK_IMPORTED_MODULE_0__/* ["
|
|
|
41502
41508
|
'symbol': market['id'],
|
|
41503
41509
|
'timeframe': this.safeString(this.timeframes, timeframe, timeframe),
|
|
41504
41510
|
'sort': 1,
|
|
41505
|
-
'start': since,
|
|
41506
41511
|
'limit': limit,
|
|
41507
41512
|
};
|
|
41513
|
+
if (since !== undefined) {
|
|
41514
|
+
request['start'] = since;
|
|
41515
|
+
}
|
|
41508
41516
|
[request, params] = this.handleUntilOption('end', request, params);
|
|
41509
41517
|
const response = await this.publicGetCandlesTradeTimeframeSymbolHist(this.extend(request, params));
|
|
41510
41518
|
//
|
|
@@ -43077,7 +43085,7 @@ class bitfinex2 extends _abstract_bitfinex2_js__WEBPACK_IMPORTED_MODULE_0__/* ["
|
|
|
43077
43085
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
43078
43086
|
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
43079
43087
|
*/
|
|
43080
|
-
return this.fetchFundingRates([symbol], params);
|
|
43088
|
+
return await this.fetchFundingRates([symbol], params);
|
|
43081
43089
|
}
|
|
43082
43090
|
async fetchFundingRates(symbols = undefined, params = {}) {
|
|
43083
43091
|
/**
|
|
@@ -135482,7 +135490,8 @@ class gate extends _abstract_gate_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"]
|
|
|
135482
135490
|
const [request, requestParams] = this.prepareRequest(market, type, query);
|
|
135483
135491
|
request['type'] = 'fund'; // 'dnw' 'pnl' 'fee' 'refr' 'fund' 'point_dnw' 'point_fee' 'point_refr'
|
|
135484
135492
|
if (since !== undefined) {
|
|
135485
|
-
|
|
135493
|
+
// from should be integer
|
|
135494
|
+
request['from'] = this.parseToInt(since / 1000);
|
|
135486
135495
|
}
|
|
135487
135496
|
if (limit !== undefined) {
|
|
135488
135497
|
request['limit'] = limit;
|
|
@@ -316805,7 +316814,7 @@ SOFTWARE.
|
|
|
316805
316814
|
|
|
316806
316815
|
//-----------------------------------------------------------------------------
|
|
316807
316816
|
// this is updated by vss.js when building
|
|
316808
|
-
const version = '4.2.
|
|
316817
|
+
const version = '4.2.67';
|
|
316809
316818
|
_src_base_Exchange_js__WEBPACK_IMPORTED_MODULE_0__/* .Exchange */ .e.ccxtVersion = version;
|
|
316810
316819
|
//-----------------------------------------------------------------------------
|
|
316811
316820
|
|