ccxt 4.1.72 → 4.1.73

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
@@ -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.72/dist/ccxt.browser.js
215
- * unpkg: https://unpkg.com/ccxt@4.1.72/dist/ccxt.browser.js
214
+ * jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.1.73/dist/ccxt.browser.js
215
+ * unpkg: https://unpkg.com/ccxt@4.1.73/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.72/dist/ccxt.browser.js"></script>
220
+ <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.1.73/dist/ccxt.browser.js"></script>
221
221
  ```
222
222
 
223
223
  Creates a global `ccxt` object:
@@ -10655,10 +10655,10 @@ class Exchange {
10655
10655
  */
10656
10656
  throw new _errors_js__WEBPACK_IMPORTED_MODULE_3__.NotSupported(this.id + ' fetchDepositsWithdrawals() is not supported yet');
10657
10657
  }
10658
- async fetchDeposits(symbol = undefined, since = undefined, limit = undefined, params = {}) {
10658
+ async fetchDeposits(code = undefined, since = undefined, limit = undefined, params = {}) {
10659
10659
  throw new _errors_js__WEBPACK_IMPORTED_MODULE_3__.NotSupported(this.id + ' fetchDeposits() is not supported yet');
10660
10660
  }
10661
- async fetchWithdrawals(symbol = undefined, since = undefined, limit = undefined, params = {}) {
10661
+ async fetchWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
10662
10662
  throw new _errors_js__WEBPACK_IMPORTED_MODULE_3__.NotSupported(this.id + ' fetchWithdrawals() is not supported yet');
10663
10663
  }
10664
10664
  async fetchOpenInterest(symbol, params = {}) {
@@ -91181,8 +91181,8 @@ class coinex extends _abstract_coinex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
91181
91181
  'cancelOrder': true,
91182
91182
  'cancelOrders': true,
91183
91183
  'createDepositAddress': true,
91184
- 'createOrder': true,
91185
91184
  'createMarketBuyOrderWithCost': true,
91185
+ 'createOrder': true,
91186
91186
  'createOrders': true,
91187
91187
  'createReduceOnlyOrder': true,
91188
91188
  'editOrder': true,
@@ -164960,13 +164960,19 @@ class latoken extends _abstract_latoken_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
164960
164960
  * @param {object} [params] extra parameters specific to the exchange API endpoint
164961
164961
  * @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
164962
164962
  */
164963
- let method = this.safeString(params, 'method');
164963
+ const options = this.safeValue(this.options, 'fetchTradingFee', {});
164964
+ const defaultMethod = this.safeString(options, 'method', 'fetchPrivateTradingFee');
164965
+ const method = this.safeString(params, 'method', defaultMethod);
164964
164966
  params = this.omit(params, 'method');
164965
- if (method === undefined) {
164966
- const options = this.safeValue(this.options, 'fetchTradingFee', {});
164967
- method = this.safeString(options, 'method', 'fetchPrivateTradingFee');
164967
+ if (method === 'fetchPrivateTradingFee') {
164968
+ return await this.fetchPrivateTradingFee(symbol, params);
164969
+ }
164970
+ else if (method === 'fetchPublicTradingFee') {
164971
+ return await this.fetchPublicTradingFee(symbol, params);
164972
+ }
164973
+ else {
164974
+ throw new _base_errors_js__WEBPACK_IMPORTED_MODULE_2__.NotSupported(this.id + ' not support this method');
164968
164975
  }
164969
- return await this[method](symbol, params);
164970
164976
  }
164971
164977
  async fetchPublicTradingFee(symbol, params = {}) {
164972
164978
  await this.loadMarkets();
@@ -165032,18 +165038,20 @@ class latoken extends _abstract_latoken_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
165032
165038
  // 'from': this.milliseconds (),
165033
165039
  // 'limit': limit, // default '100'
165034
165040
  };
165035
- let method = 'privateGetAuthTrade';
165036
165041
  let market = undefined;
165042
+ if (limit !== undefined) {
165043
+ request['limit'] = limit; // default 100
165044
+ }
165045
+ let response = undefined;
165037
165046
  if (symbol !== undefined) {
165038
165047
  market = this.market(symbol);
165039
165048
  request['currency'] = market['baseId'];
165040
165049
  request['quote'] = market['quoteId'];
165041
- method = 'privateGetAuthTradePairCurrencyQuote';
165050
+ response = await this.privateGetAuthTradePairCurrencyQuote(this.extend(request, params));
165042
165051
  }
165043
- if (limit !== undefined) {
165044
- request['limit'] = limit; // default 100
165052
+ else {
165053
+ response = await this.privateGetAuthTrade(this.extend(request, params));
165045
165054
  }
165046
- const response = await this[method](this.extend(request, params));
165047
165055
  //
165048
165056
  // [
165049
165057
  // {
@@ -165709,22 +165717,21 @@ class latoken extends _abstract_latoken_js__WEBPACK_IMPORTED_MODULE_0__/* ["defa
165709
165717
  */
165710
165718
  await this.loadMarkets();
165711
165719
  const currency = this.currency(code);
165712
- let method = undefined;
165720
+ const request = {
165721
+ 'currency': currency['id'],
165722
+ 'recipient': toAccount,
165723
+ 'value': this.currencyToPrecision(code, amount),
165724
+ };
165725
+ let response = undefined;
165713
165726
  if (toAccount.indexOf('@') >= 0) {
165714
- method = 'privatePostAuthTransferEmail';
165727
+ response = await this.privatePostAuthTransferEmail(this.extend(request, params));
165715
165728
  }
165716
165729
  else if (toAccount.length === 36) {
165717
- method = 'privatePostAuthTransferId';
165730
+ response = await this.privatePostAuthTransferId(this.extend(request, params));
165718
165731
  }
165719
165732
  else {
165720
- method = 'privatePostAuthTransferPhone';
165733
+ response = await this.privatePostAuthTransferPhone(this.extend(request, params));
165721
165734
  }
165722
- const request = {
165723
- 'currency': currency['id'],
165724
- 'recipient': toAccount,
165725
- 'value': this.currencyToPrecision(code, amount),
165726
- };
165727
- const response = await this[method](this.extend(request, params));
165728
165735
  //
165729
165736
  // {
165730
165737
  // "id": "e6fc4ace-7750-44e4-b7e9-6af038ac7107",
@@ -288551,7 +288558,7 @@ SOFTWARE.
288551
288558
 
288552
288559
  //-----------------------------------------------------------------------------
288553
288560
  // this is updated by vss.js when building
288554
- const version = '4.1.72';
288561
+ const version = '4.1.73';
288555
288562
  _src_base_Exchange_js__WEBPACK_IMPORTED_MODULE_0__/* .Exchange */ .e.ccxtVersion = version;
288556
288563
  //-----------------------------------------------------------------------------
288557
288564