ccxt 4.1.80 → 4.1.82

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.
Files changed (46) hide show
  1. package/README.md +4 -4
  2. package/dist/ccxt.browser.js +445 -175
  3. package/dist/ccxt.browser.min.js +5 -5
  4. package/dist/cjs/ccxt.js +1 -1
  5. package/dist/cjs/src/bybit.js +4 -2
  6. package/dist/cjs/src/coinex.js +191 -71
  7. package/dist/cjs/src/digifinex.js +42 -8
  8. package/dist/cjs/src/htx.js +12 -10
  9. package/dist/cjs/src/lbank.js +70 -38
  10. package/dist/cjs/src/okx.js +52 -7
  11. package/dist/cjs/src/pro/binance.js +1 -1
  12. package/dist/cjs/src/pro/bingx.js +1 -1
  13. package/dist/cjs/src/pro/bitget.js +1 -1
  14. package/dist/cjs/src/pro/bybit.js +1 -1
  15. package/dist/cjs/src/pro/cex.js +1 -1
  16. package/dist/cjs/src/pro/coinbasepro.js +1 -1
  17. package/dist/cjs/src/pro/cryptocom.js +1 -1
  18. package/dist/cjs/src/pro/gate.js +1 -1
  19. package/dist/cjs/src/pro/kucoin.js +1 -1
  20. package/dist/cjs/src/pro/kucoinfutures.js +1 -1
  21. package/dist/cjs/src/pro/okx.js +1 -1
  22. package/dist/cjs/src/whitebit.js +62 -27
  23. package/js/ccxt.d.ts +1 -1
  24. package/js/ccxt.js +1 -1
  25. package/js/src/abstract/bybit.d.ts +1 -0
  26. package/js/src/bybit.js +4 -2
  27. package/js/src/coinex.js +191 -71
  28. package/js/src/digifinex.d.ts +1 -0
  29. package/js/src/digifinex.js +42 -8
  30. package/js/src/htx.js +12 -10
  31. package/js/src/lbank.d.ts +1 -0
  32. package/js/src/lbank.js +71 -39
  33. package/js/src/okx.js +52 -7
  34. package/js/src/pro/binance.js +1 -1
  35. package/js/src/pro/bingx.js +1 -1
  36. package/js/src/pro/bitget.js +1 -1
  37. package/js/src/pro/bybit.js +1 -1
  38. package/js/src/pro/cex.js +1 -1
  39. package/js/src/pro/coinbasepro.js +1 -1
  40. package/js/src/pro/cryptocom.js +1 -1
  41. package/js/src/pro/gate.js +1 -1
  42. package/js/src/pro/kucoin.js +1 -1
  43. package/js/src/pro/kucoinfutures.js +1 -1
  44. package/js/src/pro/okx.js +1 -1
  45. package/js/src/whitebit.js +62 -27
  46. package/package.json +1 -1
@@ -271,7 +271,7 @@ class whitebit extends whitebit$1 {
271
271
  * @method
272
272
  * @name whitebit#fetchMarkets
273
273
  * @description retrieves data on all markets for whitebit
274
- * @see https://whitebit-exchange.github.io/api-docs/docs/Public/http-v4#market-info
274
+ * @see https://docs.whitebit.com/public/http-v4/#market-info
275
275
  * @param {object} [params] extra parameters specific to the exchange API endpoint
276
276
  * @returns {object[]} an array of objects representing market data
277
277
  */
@@ -395,6 +395,7 @@ class whitebit extends whitebit$1 {
395
395
  * @method
396
396
  * @name whitebit#fetchCurrencies
397
397
  * @description fetches all available currencies on an exchange
398
+ * @see https://docs.whitebit.com/public/http-v4/#asset-status-list
398
399
  * @param {object} [params] extra parameters specific to the exchange API endpoint
399
400
  * @returns {object} an associative dictionary of currencies
400
401
  */
@@ -454,6 +455,7 @@ class whitebit extends whitebit$1 {
454
455
  * @name whitebit#fetchTransactionFees
455
456
  * @deprecated
456
457
  * @description please use fetchDepositWithdrawFees instead
458
+ * @see https://docs.whitebit.com/public/http-v4/#fee
457
459
  * @param {string[]|undefined} codes not used by fetchTransactionFees ()
458
460
  * @param {object} [params] extra parameters specific to the exchange API endpoint
459
461
  * @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
@@ -508,6 +510,7 @@ class whitebit extends whitebit$1 {
508
510
  * @method
509
511
  * @name whitebit#fetchDepositWithdrawFees
510
512
  * @description fetch deposit and withdraw fees
513
+ * @see https://docs.whitebit.com/public/http-v4/#fee
511
514
  * @param {string[]|undefined} codes not used by fetchDepositWithdrawFees ()
512
515
  * @param {object} [params] extra parameters specific to the exchange API endpoint
513
516
  * @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
@@ -657,6 +660,7 @@ class whitebit extends whitebit$1 {
657
660
  * @method
658
661
  * @name whitebit#fetchTradingFees
659
662
  * @description fetch the trading fees for multiple markets
663
+ * @see https://docs.whitebit.com/public/http-v4/#asset-status-list
660
664
  * @param {object} [params] extra parameters specific to the exchange API endpoint
661
665
  * @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
662
666
  */
@@ -704,6 +708,7 @@ class whitebit extends whitebit$1 {
704
708
  * @method
705
709
  * @name whitebit#fetchTicker
706
710
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
711
+ * @see https://docs.whitebit.com/public/http-v4/#market-activity
707
712
  * @param {string} symbol unified symbol of the market to fetch the ticker for
708
713
  * @param {object} [params] extra parameters specific to the exchange API endpoint
709
714
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
@@ -792,6 +797,7 @@ class whitebit extends whitebit$1 {
792
797
  * @method
793
798
  * @name whitebit#fetchTickers
794
799
  * @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
800
+ * @see https://docs.whitebit.com/public/http-v4/#market-activity
795
801
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
796
802
  * @param {object} [params] extra parameters specific to the exchange API endpoint
797
803
  * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
@@ -825,8 +831,8 @@ class whitebit extends whitebit$1 {
825
831
  /**
826
832
  * @method
827
833
  * @name whitebit#fetchOrderBook
828
- * @see https://whitebit-exchange.github.io/api-docs/public/http-v4/#orderbook
829
834
  * @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
835
+ * @see https://docs.whitebit.com/public/http-v4/#orderbook
830
836
  * @param {string} symbol unified symbol of the market to fetch the order book for
831
837
  * @param {int} [limit] the maximum amount of order book entries to return
832
838
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -868,6 +874,7 @@ class whitebit extends whitebit$1 {
868
874
  * @method
869
875
  * @name whitebit#fetchTrades
870
876
  * @description get the list of most recent trades for a particular symbol
877
+ * @see https://docs.whitebit.com/public/http-v4/#recent-trades
871
878
  * @param {string} symbol unified symbol of the market to fetch trades for
872
879
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
873
880
  * @param {int} [limit] the maximum amount of trades to fetch
@@ -899,6 +906,7 @@ class whitebit extends whitebit$1 {
899
906
  * @method
900
907
  * @name whitebit#fetchMyTrades
901
908
  * @description fetch all trades made by the user
909
+ * @see https://docs.whitebit.com/private/http-trade-v4/#query-executed-order-history
902
910
  * @param {string} symbol unified symbol of the market to fetch trades for
903
911
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
904
912
  * @param {int} [limit] the maximum amount of trades to fetch
@@ -1052,6 +1060,7 @@ class whitebit extends whitebit$1 {
1052
1060
  * @method
1053
1061
  * @name whitebit#fetchOHLCV
1054
1062
  * @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
1063
+ * @see https://docs.whitebit.com/public/http-v1/#kline
1055
1064
  * @param {string} symbol unified symbol of the market to fetch OHLCV data for
1056
1065
  * @param {string} timeframe the length of time each candle represents
1057
1066
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
@@ -1118,6 +1127,7 @@ class whitebit extends whitebit$1 {
1118
1127
  * @method
1119
1128
  * @name whitebit#fetchStatus
1120
1129
  * @description the latest known information on the availability of the exchange API
1130
+ * @see https://docs.whitebit.com/public/http-v4/#server-status
1121
1131
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1122
1132
  * @returns {object} a [status structure]{@link https://docs.ccxt.com/#/?id=exchange-status-structure}
1123
1133
  */
@@ -1141,6 +1151,7 @@ class whitebit extends whitebit$1 {
1141
1151
  * @method
1142
1152
  * @name whitebit#fetchTime
1143
1153
  * @description fetches the current integer timestamp in milliseconds from the exchange server
1154
+ * @see https://docs.whitebit.com/public/http-v4/#server-time
1144
1155
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1145
1156
  * @returns {int} the current integer timestamp in milliseconds from the exchange server
1146
1157
  */
@@ -1157,6 +1168,11 @@ class whitebit extends whitebit$1 {
1157
1168
  * @method
1158
1169
  * @name whitebit#createOrder
1159
1170
  * @description create a trade order
1171
+ * @see https://docs.whitebit.com/private/http-trade-v4/#create-limit-order
1172
+ * @see https://docs.whitebit.com/private/http-trade-v4/#create-market-order
1173
+ * @see https://docs.whitebit.com/private/http-trade-v4/#create-buy-stock-market-order
1174
+ * @see https://docs.whitebit.com/private/http-trade-v4/#create-stop-limit-order
1175
+ * @see https://docs.whitebit.com/private/http-trade-v4/#create-stop-market-order
1160
1176
  * @param {string} symbol unified symbol of the market to create an order in
1161
1177
  * @param {string} type 'market' or 'limit'
1162
1178
  * @param {string} side 'buy' or 'sell'
@@ -1193,45 +1209,50 @@ class whitebit extends whitebit$1 {
1193
1209
  if (postOnly) {
1194
1210
  request['postOnly'] = true;
1195
1211
  }
1196
- let method;
1197
1212
  if (marginMode !== undefined && marginMode !== 'cross') {
1198
1213
  throw new errors.NotSupported(this.id + ' createOrder() is only available for cross margin');
1199
1214
  }
1215
+ params = this.omit(query, ['postOnly', 'triggerPrice', 'stopPrice']);
1200
1216
  const useCollateralEndpoint = marginMode !== undefined || marketType === 'swap';
1217
+ let response = undefined;
1201
1218
  if (isStopOrder) {
1202
1219
  request['activation_price'] = this.priceToPrecision(symbol, stopPrice);
1203
1220
  if (isLimitOrder) {
1204
1221
  // stop limit order
1205
- method = 'v4PrivatePostOrderStopLimit';
1206
1222
  request['price'] = this.priceToPrecision(symbol, price);
1223
+ response = await this.v4PrivatePostOrderStopLimit(this.extend(request, params));
1207
1224
  }
1208
1225
  else {
1209
1226
  // stop market order
1210
- method = 'v4PrivatePostOrderStopMarket';
1211
1227
  if (useCollateralEndpoint) {
1212
- method = 'v4PrivatePostOrderCollateralTriggerMarket';
1228
+ response = await this.v4PrivatePostOrderCollateralTriggerMarket(this.extend(request, params));
1229
+ }
1230
+ else {
1231
+ response = await this.v4PrivatePostOrderStopMarket(this.extend(request, params));
1213
1232
  }
1214
1233
  }
1215
1234
  }
1216
1235
  else {
1217
1236
  if (isLimitOrder) {
1218
1237
  // limit order
1219
- method = 'v4PrivatePostOrderNew';
1238
+ request['price'] = this.priceToPrecision(symbol, price);
1220
1239
  if (useCollateralEndpoint) {
1221
- method = 'v4PrivatePostOrderCollateralLimit';
1240
+ response = await this.v4PrivatePostOrderCollateralLimit(this.extend(request, params));
1241
+ }
1242
+ else {
1243
+ response = await this.v4PrivatePostOrderNew(this.extend(request, params));
1222
1244
  }
1223
- request['price'] = this.priceToPrecision(symbol, price);
1224
1245
  }
1225
1246
  else {
1226
1247
  // market order
1227
- method = 'v4PrivatePostOrderStockMarket';
1228
1248
  if (useCollateralEndpoint) {
1229
- method = 'v4PrivatePostOrderCollateralMarket';
1249
+ response = await this.v4PrivatePostOrderCollateralMarket(this.extend(request, params));
1250
+ }
1251
+ else {
1252
+ response = await this.v4PrivatePostOrderStockMarket(this.extend(request, params));
1230
1253
  }
1231
1254
  }
1232
1255
  }
1233
- params = this.omit(query, ['postOnly', 'triggerPrice', 'stopPrice']);
1234
- const response = await this[method](this.extend(request, params));
1235
1256
  return this.parseOrder(response);
1236
1257
  }
1237
1258
  async cancelOrder(id, symbol = undefined, params = {}) {
@@ -1239,6 +1260,7 @@ class whitebit extends whitebit$1 {
1239
1260
  * @method
1240
1261
  * @name whitebit#cancelOrder
1241
1262
  * @description cancels an open order
1263
+ * @see https://docs.whitebit.com/private/http-trade-v4/#cancel-order
1242
1264
  * @param {string} id order id
1243
1265
  * @param {string} symbol unified symbol of the market the order was made in
1244
1266
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -1282,14 +1304,17 @@ class whitebit extends whitebit$1 {
1282
1304
  * @method
1283
1305
  * @name whitebit#fetchBalance
1284
1306
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
1307
+ * @see https://docs.whitebit.com/private/http-main-v4/#main-balance
1308
+ * @see https://docs.whitebit.com/private/http-trade-v4/#trading-balance
1285
1309
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1286
1310
  * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
1287
1311
  */
1288
1312
  await this.loadMarkets();
1289
- const [marketType, query] = this.handleMarketTypeAndParams('fetchBalance', undefined, params);
1290
- let method = undefined;
1313
+ let marketType = undefined;
1314
+ [marketType, params] = this.handleMarketTypeAndParams('fetchBalance', undefined, params);
1315
+ let response = undefined;
1291
1316
  if (marketType === 'swap') {
1292
- method = 'v4PrivatePostCollateralAccountBalance';
1317
+ response = await this.v4PrivatePostCollateralAccountBalance(params);
1293
1318
  }
1294
1319
  else {
1295
1320
  const options = this.safeValue(this.options, 'fetchBalance', {});
@@ -1297,13 +1322,12 @@ class whitebit extends whitebit$1 {
1297
1322
  const account = this.safeString(params, 'account', defaultAccount);
1298
1323
  params = this.omit(params, 'account');
1299
1324
  if (account === 'main') {
1300
- method = 'v4PrivatePostMainAccountBalance';
1325
+ response = await this.v4PrivatePostMainAccountBalance(params);
1301
1326
  }
1302
1327
  else {
1303
- method = 'v4PrivatePostTradeAccountBalance';
1328
+ response = await this.v4PrivatePostTradeAccountBalance(params);
1304
1329
  }
1305
1330
  }
1306
- const response = await this[method](query);
1307
1331
  //
1308
1332
  // main account
1309
1333
  //
@@ -1333,6 +1357,7 @@ class whitebit extends whitebit$1 {
1333
1357
  * @method
1334
1358
  * @name whitebit#fetchOpenOrders
1335
1359
  * @description fetch all unfilled currently open orders
1360
+ * @see https://docs.whitebit.com/private/http-trade-v4/#query-unexecutedactive-orders
1336
1361
  * @param {string} symbol unified market symbol
1337
1362
  * @param {int} [since] the earliest time in ms to fetch open orders for
1338
1363
  * @param {int} [limit] the maximum number of open order structures to retrieve
@@ -1378,6 +1403,7 @@ class whitebit extends whitebit$1 {
1378
1403
  * @method
1379
1404
  * @name whitebit#fetchClosedOrders
1380
1405
  * @description fetches information on multiple closed orders made by the user
1406
+ * @see https://docs.whitebit.com/private/http-trade-v4/#query-executed-orders
1381
1407
  * @param {string} symbol unified market symbol of the market orders were made in
1382
1408
  * @param {int} [since] the earliest time in ms to fetch orders for
1383
1409
  * @param {int} [limit] the maximum number of orde structures to retrieve
@@ -1538,6 +1564,7 @@ class whitebit extends whitebit$1 {
1538
1564
  * @method
1539
1565
  * @name whitebit#fetchOrderTrades
1540
1566
  * @description fetch all the trades made from a single order
1567
+ * @see https://docs.whitebit.com/private/http-trade-v4/#query-executed-order-deals
1541
1568
  * @param {string} id order id
1542
1569
  * @param {string} symbol unified market symbol
1543
1570
  * @param {int} [since] the earliest time in ms to fetch trades for
@@ -1585,6 +1612,8 @@ class whitebit extends whitebit$1 {
1585
1612
  * @method
1586
1613
  * @name whitebit#fetchDepositAddress
1587
1614
  * @description fetch the deposit address for a currency associated with this account
1615
+ * @see https://docs.whitebit.com/private/http-main-v4/#get-fiat-deposit-address
1616
+ * @see https://docs.whitebit.com/private/http-main-v4/#get-cryptocurrency-deposit-address
1588
1617
  * @param {string} code unified currency code
1589
1618
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1590
1619
  * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
@@ -1594,10 +1623,9 @@ class whitebit extends whitebit$1 {
1594
1623
  const request = {
1595
1624
  'ticker': currency['id'],
1596
1625
  };
1597
- let method = 'v4PrivatePostMainAccountAddress';
1626
+ let response = undefined;
1598
1627
  if (this.isFiat(code)) {
1599
- method = 'v4PrivatePostMainAccountFiatDepositUrl';
1600
- const provider = this.safeNumber(params, 'provider');
1628
+ const provider = this.safeString(params, 'provider');
1601
1629
  if (provider === undefined) {
1602
1630
  throw new errors.ArgumentsRequired(this.id + ' fetchDepositAddress() requires a provider when the ticker is fiat');
1603
1631
  }
@@ -1611,8 +1639,11 @@ class whitebit extends whitebit$1 {
1611
1639
  if (uniqueId === undefined) {
1612
1640
  throw new errors.ArgumentsRequired(this.id + ' fetchDepositAddress() requires an uniqueId when the ticker is fiat');
1613
1641
  }
1642
+ response = await this.v4PrivatePostMainAccountFiatDepositUrl(this.extend(request, params));
1643
+ }
1644
+ else {
1645
+ response = await this.v4PrivatePostMainAccountAddress(this.extend(request, params));
1614
1646
  }
1615
- const response = await this[method](this.extend(request, params));
1616
1647
  //
1617
1648
  // fiat
1618
1649
  //
@@ -1657,6 +1688,7 @@ class whitebit extends whitebit$1 {
1657
1688
  * @method
1658
1689
  * @name whitebit#setLeverage
1659
1690
  * @description set the level of leverage for a market
1691
+ * @see https://docs.whitebit.com/private/http-trade-v4/#change-collateral-account-leverage
1660
1692
  * @param {float} leverage the rate of leverage
1661
1693
  * @param {string} symbol unified market symbol
1662
1694
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -1682,7 +1714,7 @@ class whitebit extends whitebit$1 {
1682
1714
  * @method
1683
1715
  * @name whitebit#transfer
1684
1716
  * @description transfer currency internally between wallets on the same account
1685
- * @see https://github.com/whitebit-exchange/api-docs/blob/main/docs/Private/http-main-v4.md#transfer-between-main-and-trade-balances
1717
+ * @see https://docs.whitebit.com/private/http-main-v4/#transfer-between-main-and-trade-balances
1686
1718
  * @param {string} code unified currency code
1687
1719
  * @param {float} amount amount to transfer
1688
1720
  * @param {string} fromAccount account to transfer from - main, spot, collateral
@@ -1729,6 +1761,7 @@ class whitebit extends whitebit$1 {
1729
1761
  * @method
1730
1762
  * @name whitebit#withdraw
1731
1763
  * @description make a withdrawal
1764
+ * @see https://docs.whitebit.com/private/http-main-v4/#create-withdraw-request
1732
1765
  * @param {string} code unified currency code
1733
1766
  * @param {float} amount the amount to withdraw
1734
1767
  * @param {string} address the address to withdraw to
@@ -1855,6 +1888,7 @@ class whitebit extends whitebit$1 {
1855
1888
  * @method
1856
1889
  * @name whitebit#fetchDeposit
1857
1890
  * @description fetch information on a deposit
1891
+ * @see https://docs.whitebit.com/private/http-main-v4/#get-depositwithdraw-history
1858
1892
  * @param {string} id deposit id
1859
1893
  * @param {string} code not used by whitebit fetchDeposit ()
1860
1894
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -1919,6 +1953,7 @@ class whitebit extends whitebit$1 {
1919
1953
  * @method
1920
1954
  * @name whitebit#fetchDeposits
1921
1955
  * @description fetch all deposits made to an account
1956
+ * @see https://docs.whitebit.com/private/http-main-v4/#get-depositwithdraw-history
1922
1957
  * @param {string} code unified currency code
1923
1958
  * @param {int} [since] the earliest time in ms to fetch deposits for
1924
1959
  * @param {int} [limit] the maximum number of deposits structures to retrieve
@@ -1985,7 +2020,7 @@ class whitebit extends whitebit$1 {
1985
2020
  * @method
1986
2021
  * @name whitebit#fetchBorrowInterest
1987
2022
  * @description fetch the interest owed by the user for borrowing currency for margin trading
1988
- * @see https://github.com/whitebit-exchange/api-docs/blob/main/docs/Private/http-trade-v4.md#open-positions
2023
+ * @see https://docs.whitebit.com/private/http-trade-v4/#open-positions
1989
2024
  * @param {string} code unified currency code
1990
2025
  * @param {string} symbol unified market symbol
1991
2026
  * @param {int} [since] the earliest time in ms to fetch borrrow interest for
@@ -2064,7 +2099,7 @@ class whitebit extends whitebit$1 {
2064
2099
  /**
2065
2100
  * @method
2066
2101
  * @name whitebit#fetchFundingRate
2067
- * @see https://whitebit-exchange.github.io/api-docs/public/http-v4/#available-futures-markets-list
2102
+ * @see https://docs.whitebit.com/public/http-v4/#available-futures-markets-list
2068
2103
  * @description fetch the current funding rate
2069
2104
  * @param {string} symbol unified market symbol
2070
2105
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -2079,7 +2114,7 @@ class whitebit extends whitebit$1 {
2079
2114
  /**
2080
2115
  * @method
2081
2116
  * @name whitebit#fetchFundingRates
2082
- * @see https://whitebit-exchange.github.io/api-docs/public/http-v4/#available-futures-markets-list
2117
+ * @see https://docs.whitebit.com/public/http-v4/#available-futures-markets-list
2083
2118
  * @description fetch the funding rate for multiple markets
2084
2119
  * @param {string[]|undefined} symbols list of unified market symbols
2085
2120
  * @param {object} [params] extra parameters specific to the exchange API endpoint
package/js/ccxt.d.ts CHANGED
@@ -4,7 +4,7 @@ import * as functions from './src/base/functions.js';
4
4
  import * as errors from './src/base/errors.js';
5
5
  import { Market, Trade, Fee, Ticker, OrderBook, Order, Transaction, Tickers, Currency, Balance, DepositAddress, WithdrawalResponse, DepositAddressResponse, OHLCV, Balances, PartialBalances, Dictionary, MinMax, Position, FundingRateHistory, Liquidation, FundingHistory, MarginMode, Greeks } from './src/base/types.js';
6
6
  import { BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, NoChange } from './src/base/errors.js';
7
- declare const version = "4.1.79";
7
+ declare const version = "4.1.81";
8
8
  import ace from './src/ace.js';
9
9
  import alpaca from './src/alpaca.js';
10
10
  import ascendex from './src/ascendex.js';
package/js/ccxt.js CHANGED
@@ -38,7 +38,7 @@ import * as errors from './src/base/errors.js';
38
38
  import { BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, NoChange } from './src/base/errors.js';
39
39
  //-----------------------------------------------------------------------------
40
40
  // this is updated by vss.js when building
41
- const version = '4.1.80';
41
+ const version = '4.1.82';
42
42
  Exchange.ccxtVersion = version;
43
43
  //-----------------------------------------------------------------------------
44
44
  import ace from './src/ace.js';
@@ -257,6 +257,7 @@ interface Exchange {
257
257
  privatePostV5PositionAddMargin(params?: {}): Promise<implicitReturnType>;
258
258
  privatePostV5PositionConfirmPendingMmr(params?: {}): Promise<implicitReturnType>;
259
259
  privatePostV5AccountUpgradeToUta(params?: {}): Promise<implicitReturnType>;
260
+ privatePostV5AccountQuickRepayment(params?: {}): Promise<implicitReturnType>;
260
261
  privatePostV5AccountSetMarginMode(params?: {}): Promise<implicitReturnType>;
261
262
  privatePostV5AccountSetHedgingMode(params?: {}): Promise<implicitReturnType>;
262
263
  privatePostV5AccountMmpModify(params?: {}): Promise<implicitReturnType>;
package/js/src/bybit.js CHANGED
@@ -449,6 +449,7 @@ export default class bybit extends Exchange {
449
449
  'v5/position/confirm-pending-mmr': 5,
450
450
  // account
451
451
  'v5/account/upgrade-to-uta': 5,
452
+ 'v5/account/quick-repayment': 5,
452
453
  'v5/account/set-margin-mode': 5,
453
454
  'v5/account/set-hedging-mode': 5,
454
455
  'v5/account/mmp-modify': 5,
@@ -2096,8 +2097,9 @@ export default class bybit extends Exchange {
2096
2097
  */
2097
2098
  await this.loadMarkets();
2098
2099
  let market = undefined;
2099
- const parsedSymbols = [];
2100
+ let parsedSymbols = undefined;
2100
2101
  if (symbols !== undefined) {
2102
+ parsedSymbols = [];
2101
2103
  const marketTypeInfo = this.handleMarketTypeAndParams('fetchTickers', undefined, params);
2102
2104
  const defaultType = marketTypeInfo[0]; // don't omit here
2103
2105
  // we can't use marketSymbols here due to the conflicing ids between markets
@@ -3036,7 +3038,7 @@ export default class bybit extends Exchange {
3036
3038
  * @see https://bybit-exchange.github.io/docs/v5/account/wallet-balance
3037
3039
  * @param {object} [params] extra parameters specific to the exchange API endpoint
3038
3040
  * @param {string} [params.type] wallet type, ['spot', 'swap', 'fund']
3039
- * @returns {object} a [balance structure]{@link https://docs.ccxt.com/en/latest/manual.html?#balance-structure}
3041
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
3040
3042
  */
3041
3043
  await this.loadMarkets();
3042
3044
  const request = {};