ccxt 4.2.42 → 4.2.43

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 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.42/dist/ccxt.browser.js
214
- * unpkg: https://unpkg.com/ccxt@4.2.42/dist/ccxt.browser.js
213
+ * jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.2.43/dist/ccxt.browser.js
214
+ * unpkg: https://unpkg.com/ccxt@4.2.43/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.42/dist/ccxt.browser.js"></script>
219
+ <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.2.43/dist/ccxt.browser.js"></script>
220
220
  ```
221
221
 
222
222
  Creates a global `ccxt` object:
@@ -8975,6 +8975,15 @@ class Exchange {
8975
8975
  async setPositionMode(hedged, symbol = undefined, params = {}) {
8976
8976
  throw new _errors_js__WEBPACK_IMPORTED_MODULE_3__.NotSupported(this.id + ' setPositionMode() is not supported yet');
8977
8977
  }
8978
+ async addMargin(symbol, amount, params = {}) {
8979
+ throw new _errors_js__WEBPACK_IMPORTED_MODULE_3__.NotSupported(this.id + ' addMargin() is not supported yet');
8980
+ }
8981
+ async reduceMargin(symbol, amount, params = {}) {
8982
+ throw new _errors_js__WEBPACK_IMPORTED_MODULE_3__.NotSupported(this.id + ' reduceMargin() is not supported yet');
8983
+ }
8984
+ async setMargin(symbol, amount, params = {}) {
8985
+ throw new _errors_js__WEBPACK_IMPORTED_MODULE_3__.NotSupported(this.id + ' setMargin() is not supported yet');
8986
+ }
8978
8987
  async setMarginMode(marginMode, symbol = undefined, params = {}) {
8979
8988
  throw new _errors_js__WEBPACK_IMPORTED_MODULE_3__.NotSupported(this.id + ' setMarginMode() is not supported yet');
8980
8989
  }
@@ -24200,8 +24209,9 @@ class binance extends _abstract_binance_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
24200
24209
  * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
24201
24210
  * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
24202
24211
  */
24203
- const orders = await this.fetchOrders(symbol, since, limit, params);
24204
- return this.filterBy(orders, 'status', 'closed');
24212
+ const orders = await this.fetchOrders(symbol, since, undefined, params);
24213
+ const filteredOrders = this.filterBy(orders, 'status', 'closed');
24214
+ return this.filterBySinceLimit(filteredOrders, since, limit);
24205
24215
  }
24206
24216
  async fetchCanceledOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
24207
24217
  /**
@@ -221124,7 +221134,7 @@ class binanceus extends _binance_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] *
221124
221134
  // eslint-disable-next-line new-cap
221125
221135
  const restInstance = new _binanceus_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z();
221126
221136
  const restDescribe = restInstance.describe();
221127
- const extended = this.deepExtend(super.describe(), restDescribe);
221137
+ const extended = this.deepExtend(restDescribe, super.describe());
221128
221138
  return this.deepExtend(extended, {
221129
221139
  'id': 'binanceus',
221130
221140
  'name': 'Binance US',
@@ -305272,7 +305282,7 @@ SOFTWARE.
305272
305282
 
305273
305283
  //-----------------------------------------------------------------------------
305274
305284
  // this is updated by vss.js when building
305275
- const version = '4.2.42';
305285
+ const version = '4.2.43';
305276
305286
  _src_base_Exchange_js__WEBPACK_IMPORTED_MODULE_0__/* .Exchange */ .e.ccxtVersion = version;
305277
305287
  //-----------------------------------------------------------------------------
305278
305288