ccxt 4.2.6 → 4.2.7

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
@@ -209,13 +209,13 @@ console.log(version, Object.keys(exchanges));
209
209
 
210
210
  All-in-one browser bundle (dependencies included), served from a CDN of your choice:
211
211
 
212
- * jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.2.6/dist/ccxt.browser.js
213
- * unpkg: https://unpkg.com/ccxt@4.2.6/dist/ccxt.browser.js
212
+ * jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.2.7/dist/ccxt.browser.js
213
+ * unpkg: https://unpkg.com/ccxt@4.2.7/dist/ccxt.browser.js
214
214
 
215
215
  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.
216
216
 
217
217
  ```HTML
218
- <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.2.6/dist/ccxt.browser.js"></script>
218
+ <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.2.7/dist/ccxt.browser.js"></script>
219
219
  ```
220
220
 
221
221
  Creates a global `ccxt` object:
@@ -54503,6 +54503,7 @@ class bitmex extends _abstract_bitmex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
54503
54503
  'chat/connected': 5,
54504
54504
  'chat/pinned': 5,
54505
54505
  'funding': 5,
54506
+ 'guild': 5,
54506
54507
  'instrument': 5,
54507
54508
  'instrument/active': 5,
54508
54509
  'instrument/activeAndIndices': 5,
@@ -54531,6 +54532,7 @@ class bitmex extends _abstract_bitmex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
54531
54532
  },
54532
54533
  'private': {
54533
54534
  'get': {
54535
+ 'address': 5,
54534
54536
  'apiKey': 5,
54535
54537
  'execution': 5,
54536
54538
  'execution/tradeHistory': 5,
@@ -54543,21 +54545,33 @@ class bitmex extends _abstract_bitmex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
54543
54545
  'user/affiliateStatus': 5,
54544
54546
  'user/checkReferralCode': 5,
54545
54547
  'user/commission': 5,
54548
+ 'user/csa': 5,
54546
54549
  'user/depositAddress': 5,
54547
54550
  'user/executionHistory': 5,
54551
+ 'user/getWalletTransferAccounts': 5,
54548
54552
  'user/margin': 5,
54549
54553
  'user/quoteFillRatio': 5,
54550
54554
  'user/quoteValueRatio': 5,
54555
+ 'user/staking': 5,
54556
+ 'user/staking/instruments': 5,
54557
+ 'user/staking/tiers': 5,
54551
54558
  'user/tradingVolume': 5,
54559
+ 'user/unstakingRequests': 5,
54552
54560
  'user/wallet': 5,
54553
54561
  'user/walletHistory': 5,
54554
54562
  'user/walletSummary': 5,
54563
+ 'userAffiliates': 5,
54555
54564
  'userEvent': 5,
54556
54565
  },
54557
54566
  'post': {
54567
+ 'address': 5,
54558
54568
  'chat': 5,
54569
+ 'guild': 5,
54570
+ 'guild/archive': 5,
54559
54571
  'guild/join': 5,
54572
+ 'guild/kick': 5,
54560
54573
  'guild/leave': 5,
54574
+ 'guild/sharesTrades': 5,
54561
54575
  'order': 1,
54562
54576
  'order/cancelAllAfter': 5,
54563
54577
  'order/closePosition': 5,
@@ -54565,6 +54579,7 @@ class bitmex extends _abstract_bitmex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
54565
54579
  'position/leverage': 1,
54566
54580
  'position/riskLimit': 5,
54567
54581
  'position/transferMargin': 1,
54582
+ 'user/addSubaccount': 5,
54568
54583
  'user/cancelWithdrawal': 5,
54569
54584
  'user/communicationToken': 5,
54570
54585
  'user/confirmEmail': 5,
@@ -54572,13 +54587,18 @@ class bitmex extends _abstract_bitmex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
54572
54587
  'user/logout': 5,
54573
54588
  'user/preferences': 5,
54574
54589
  'user/requestWithdrawal': 5,
54590
+ 'user/unstakingRequests': 5,
54591
+ 'user/updateSubaccount': 5,
54592
+ 'user/walletTransfer': 5,
54575
54593
  },
54576
54594
  'put': {
54595
+ 'guild': 5,
54577
54596
  'order': 1,
54578
54597
  },
54579
54598
  'delete': {
54580
54599
  'order': 1,
54581
54600
  'order/all': 1,
54601
+ 'user/unstakingRequests': 5,
54582
54602
  },
54583
54603
  },
54584
54604
  },
@@ -55966,13 +55986,11 @@ class bitmex extends _abstract_bitmex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
55966
55986
  let fee = undefined;
55967
55987
  const feeCostString = this.numberToString(this.convertFromRawCost(symbol, this.safeString(trade, 'execComm')));
55968
55988
  if (feeCostString !== undefined) {
55969
- const currencyId = this.safeString(trade, 'settlCurrency');
55970
- const feeCurrencyCode = this.safeCurrencyCode(currencyId);
55971
- const feeRateString = this.safeString(trade, 'commission');
55989
+ const currencyId = this.safeString2(trade, 'settlCurrency', 'currency');
55972
55990
  fee = {
55973
- 'cost': _base_Precise_js__WEBPACK_IMPORTED_MODULE_3__/* .Precise */ .O.stringAbs(feeCostString),
55974
- 'currency': feeCurrencyCode,
55975
- 'rate': _base_Precise_js__WEBPACK_IMPORTED_MODULE_3__/* .Precise */ .O.stringAbs(feeRateString),
55991
+ 'cost': feeCostString,
55992
+ 'currency': this.safeCurrencyCode(currencyId),
55993
+ 'rate': this.safeString(trade, 'commission'),
55976
55994
  };
55977
55995
  }
55978
55996
  // Trade or Funding
@@ -198594,7 +198612,7 @@ class phemex extends _abstract_phemex_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
198594
198612
  },
198595
198613
  },
198596
198614
  'options': {
198597
- 'brokerId': 'ccxt2022',
198615
+ 'brokerId': 'CCXT',
198598
198616
  'x-phemex-request-expiry': 60,
198599
198617
  'createOrderByQuoteRequiresPrice': true,
198600
198618
  'networks': {
@@ -291900,7 +291918,7 @@ SOFTWARE.
291900
291918
 
291901
291919
  //-----------------------------------------------------------------------------
291902
291920
  // this is updated by vss.js when building
291903
- const version = '4.2.6';
291921
+ const version = '4.2.7';
291904
291922
  _src_base_Exchange_js__WEBPACK_IMPORTED_MODULE_0__/* .Exchange */ .e.ccxtVersion = version;
291905
291923
  //-----------------------------------------------------------------------------
291906
291924