ccxt 4.0.70 → 4.0.71

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
@@ -18,6 +18,11 @@ Current feature list:
18
18
  - an out of the box unified API that is extremely easy to integrate
19
19
  - works in Node 10.4+, Python 3, PHP 8.1+, netstandard2.0/2.1 and web browsers
20
20
 
21
+ ## Sponsored Promotion
22
+
23
+ [![CCXT x Gate.io Upgrading Trading Campaign](https://github-production-user-asset-6210df.s3.amazonaws.com/1294454/261965226-7278c686-4ed1-4c6e-81aa-81f90a284cbe.jpg)](https://github.com/ccxt/ccxt/issues/18963)
24
+
25
+
21
26
  ## See Also
22
27
 
23
28
  - <sub>[![TabTrader](https://user-images.githubusercontent.com/1294454/66755907-9c3e8880-eea1-11e9-846e-0bff349ceb87.png)](https://tab-trader.com/?utm_source=ccxt)</sub> **[TabTrader](https://tab-trader.com/?utm_source=ccxt)** – trading on all exchanges in one app. Available on **[Android](https://play.google.com/store/apps/details?id=com.tabtrader.android&referrer=utm_source%3Dccxt)** and **[iOS](https://itunes.apple.com/app/apple-store/id1095716562?mt=8)**!
@@ -210,13 +215,13 @@ console.log(version, Object.keys(exchanges));
210
215
 
211
216
  All-in-one browser bundle (dependencies included), served from a CDN of your choice:
212
217
 
213
- * jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.0.70/dist/ccxt.browser.js
214
- * unpkg: https://unpkg.com/ccxt@4.0.70/dist/ccxt.browser.js
218
+ * jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.0.71/dist/ccxt.browser.js
219
+ * unpkg: https://unpkg.com/ccxt@4.0.71/dist/ccxt.browser.js
215
220
 
216
221
  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
222
 
218
223
  ```HTML
219
- <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.0.70/dist/ccxt.browser.js"></script>
224
+ <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.0.71/dist/ccxt.browser.js"></script>
220
225
  ```
221
226
 
222
227
  Creates a global `ccxt` object:
@@ -37023,6 +37023,8 @@ class bitget extends _abstract_bitget_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
37023
37023
  'market/depth': 1,
37024
37024
  'market/spot-vip-level': 2,
37025
37025
  'market/history-candles': 1,
37026
+ 'public/loan/coinInfos': 2,
37027
+ 'public/loan/hour-interest': 2, // 10 times/1s (IP) => 20/10 = 2
37026
37028
  },
37027
37029
  },
37028
37030
  'mix': {
@@ -37071,6 +37073,11 @@ class bitget extends _abstract_bitget_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
37071
37073
  'account/transferRecords': 1,
37072
37074
  'convert/currencies': 2,
37073
37075
  'convert/convert-record': 2,
37076
+ 'loan/ongoing-orders': 2,
37077
+ 'loan/repay-history': 2,
37078
+ 'loan/revise-history': 2,
37079
+ 'loan/borrow-history': 2,
37080
+ 'loan/debts': 2, // 10 times/1s (UID) => 20/10 = 2
37074
37081
  },
37075
37082
  'post': {
37076
37083
  'wallet/transfer': 4,
@@ -37101,6 +37108,9 @@ class bitget extends _abstract_bitget_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
37101
37108
  'plan/batchCancelPlan': 2,
37102
37109
  'convert/quoted-price': 4,
37103
37110
  'convert/trade': 4,
37111
+ 'loan/borrow': 2,
37112
+ 'loan/repay': 2,
37113
+ 'loan/revise-pledge': 2,
37104
37114
  'trace/order/orderCurrentList': 2,
37105
37115
  'trace/order/orderHistoryList': 2,
37106
37116
  'trace/order/closeTrackingOrder': 2,
@@ -37236,6 +37246,9 @@ class bitget extends _abstract_bitget_js__WEBPACK_IMPORTED_MODULE_0__/* ["defaul
37236
37246
  'account/sub-email': 20,
37237
37247
  'account/sub-spot-assets': 2,
37238
37248
  'account/sub-future-assets': 2,
37249
+ 'account/subaccount-transfer': 1,
37250
+ 'account/subaccount-deposit': 1,
37251
+ 'account/subaccount-withdrawal': 1,
37239
37252
  'account/sub-api-list': 2, // 10 times/1s (UID) => 20/10 = 2
37240
37253
  },
37241
37254
  'post': {
@@ -150444,6 +150457,7 @@ class kucoinfutures extends _abstract_kucoinfutures_js__WEBPACK_IMPORTED_MODULE_
150444
150457
  'fetchTrades': true,
150445
150458
  'fetchTransactionFee': false,
150446
150459
  'fetchWithdrawals': true,
150460
+ 'setLeverage': false,
150447
150461
  'setMarginMode': false,
150448
150462
  'transfer': true,
150449
150463
  'withdraw': undefined,
@@ -210517,29 +210531,29 @@ class coinbasepro extends _coinbasepro_js__WEBPACK_IMPORTED_MODULE_0__/* ["defau
210517
210531
  const marketId = this.safeString(ticker, 'product_id');
210518
210532
  const symbol = this.safeSymbol(marketId, market, '-');
210519
210533
  const timestamp = this.parse8601(this.safeString(ticker, 'time'));
210520
- const last = this.safeNumber(ticker, 'price');
210521
- return {
210534
+ const last = this.safeString(ticker, 'price');
210535
+ return this.safeTicker({
210522
210536
  'symbol': symbol,
210523
210537
  'timestamp': timestamp,
210524
210538
  'datetime': this.iso8601(timestamp),
210525
- 'high': this.safeNumber(ticker, 'high_24h'),
210526
- 'low': this.safeNumber(ticker, 'low_24h'),
210527
- 'bid': this.safeNumber(ticker, 'best_bid'),
210528
- 'bidVolume': this.safeNumber(ticker, 'best_bid_size'),
210529
- 'ask': this.safeNumber(ticker, 'best_ask'),
210530
- 'askVolume': this.safeNumber(ticker, 'best_ask_size'),
210539
+ 'high': this.safeString(ticker, 'high_24h'),
210540
+ 'low': this.safeString(ticker, 'low_24h'),
210541
+ 'bid': this.safeString(ticker, 'best_bid'),
210542
+ 'bidVolume': this.safeString(ticker, 'best_bid_size'),
210543
+ 'ask': this.safeString(ticker, 'best_ask'),
210544
+ 'askVolume': this.safeString(ticker, 'best_ask_size'),
210531
210545
  'vwap': undefined,
210532
- 'open': this.safeNumber(ticker, 'open_24h'),
210546
+ 'open': this.safeString(ticker, 'open_24h'),
210533
210547
  'close': last,
210534
210548
  'last': last,
210535
210549
  'previousClose': undefined,
210536
210550
  'change': undefined,
210537
210551
  'percentage': undefined,
210538
210552
  'average': undefined,
210539
- 'baseVolume': this.safeNumber(ticker, 'volume_24h'),
210553
+ 'baseVolume': this.safeString(ticker, 'volume_24h'),
210540
210554
  'quoteVolume': undefined,
210541
210555
  'info': ticker,
210542
- };
210556
+ });
210543
210557
  }
210544
210558
  handleDelta(bookside, delta) {
210545
210559
  const price = this.safeNumber(delta, 0);
@@ -272348,7 +272362,7 @@ SOFTWARE.
272348
272362
 
272349
272363
  //-----------------------------------------------------------------------------
272350
272364
  // this is updated by vss.js when building
272351
- const version = '4.0.70';
272365
+ const version = '4.0.71';
272352
272366
  _src_base_Exchange_js__WEBPACK_IMPORTED_MODULE_0__/* .Exchange.ccxtVersion */ .e.ccxtVersion = version;
272353
272367
  //-----------------------------------------------------------------------------
272354
272368