ccxt 4.5.40 → 4.5.42

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 (106) hide show
  1. package/README.md +6 -5
  2. package/dist/ccxt.browser.min.js +18 -18
  3. package/dist/cjs/ccxt.js +6 -1
  4. package/dist/cjs/src/abstract/lighter.js +11 -0
  5. package/dist/cjs/src/ascendex.js +73 -1
  6. package/dist/cjs/src/base/Exchange.js +149 -17
  7. package/dist/cjs/src/base/functions/generic.js +1 -0
  8. package/dist/cjs/src/base/functions/io.js +160 -0
  9. package/dist/cjs/src/base/functions.js +6 -0
  10. package/dist/cjs/src/base/ws/Client.js +1 -0
  11. package/dist/cjs/src/base/ws/WsClient.js +1 -0
  12. package/dist/cjs/src/binance.js +1 -0
  13. package/dist/cjs/src/bingx.js +13 -3
  14. package/dist/cjs/src/bitmex.js +20 -0
  15. package/dist/cjs/src/blofin.js +2 -2
  16. package/dist/cjs/src/bybit.js +1 -1
  17. package/dist/cjs/src/coinspot.js +7 -2
  18. package/dist/cjs/src/delta.js +1 -1
  19. package/dist/cjs/src/gate.js +11 -4
  20. package/dist/cjs/src/gemini.js +76 -1
  21. package/dist/cjs/src/htx.js +2 -2
  22. package/dist/cjs/src/hyperliquid.js +20 -7
  23. package/dist/cjs/src/independentreserve.js +7 -7
  24. package/dist/cjs/src/kraken.js +1 -1
  25. package/dist/cjs/src/krakenfutures.js +96 -5
  26. package/dist/cjs/src/kucoin.js +3 -3
  27. package/dist/cjs/src/kucoinfutures.js +1 -1
  28. package/dist/cjs/src/lighter.js +2931 -0
  29. package/dist/cjs/src/mexc.js +0 -1
  30. package/dist/cjs/src/phemex.js +1 -1
  31. package/dist/cjs/src/pro/binance.js +2 -2
  32. package/dist/cjs/src/pro/bingx.js +215 -2
  33. package/dist/cjs/src/pro/bitget.js +1 -0
  34. package/dist/cjs/src/pro/defx.js +1 -1
  35. package/dist/cjs/src/pro/kucoinfutures.js +1 -1
  36. package/dist/cjs/src/pro/lighter.js +787 -0
  37. package/dist/cjs/src/pro/mexc.js +1 -1
  38. package/dist/cjs/src/pro/paradex.js +1 -1
  39. package/dist/cjs/src/static_dependencies/ethers/abi-coder.js +1 -0
  40. package/dist/cjs/src/static_dependencies/ethers/address/address.js +1 -0
  41. package/dist/cjs/src/static_dependencies/ethers/coders/abstract-coder.js +1 -0
  42. package/dist/cjs/src/static_dependencies/ethers/coders/address.js +1 -0
  43. package/dist/cjs/src/static_dependencies/ethers/coders/array.js +1 -0
  44. package/dist/cjs/src/static_dependencies/ethers/coders/bytes.js +1 -0
  45. package/dist/cjs/src/static_dependencies/ethers/coders/fixed-bytes.js +1 -0
  46. package/dist/cjs/src/static_dependencies/ethers/coders/number.js +1 -0
  47. package/dist/cjs/src/static_dependencies/ethers/fragments.js +1 -0
  48. package/dist/cjs/src/static_dependencies/ethers/index.js +1 -0
  49. package/dist/cjs/src/static_dependencies/ethers/interface.js +1 -0
  50. package/dist/cjs/src/static_dependencies/ethers/typed.js +1 -0
  51. package/dist/cjs/src/static_dependencies/ethers/utils/index.js +1 -0
  52. package/dist/cjs/src/whitebit.js +118 -16
  53. package/dist/cjs/src/woo.js +1 -1
  54. package/js/ccxt.d.ts +8 -2
  55. package/js/ccxt.js +6 -2
  56. package/js/src/abstract/gemini.d.ts +27 -0
  57. package/js/src/abstract/lighter.d.ts +53 -0
  58. package/js/src/abstract/lighter.js +11 -0
  59. package/js/src/ascendex.d.ts +12 -1
  60. package/js/src/ascendex.js +73 -1
  61. package/js/src/base/Exchange.d.ts +18 -6
  62. package/js/src/base/Exchange.js +154 -21
  63. package/js/src/base/functions/generic.js +1 -0
  64. package/js/src/base/functions/io.d.ts +32 -0
  65. package/js/src/base/functions/io.js +137 -0
  66. package/js/src/base/functions.d.ts +1 -0
  67. package/js/src/base/functions.js +1 -0
  68. package/js/src/binance.d.ts +1 -0
  69. package/js/src/binance.js +1 -0
  70. package/js/src/bingx.js +13 -3
  71. package/js/src/bitmex.js +20 -0
  72. package/js/src/blofin.js +2 -2
  73. package/js/src/bybit.js +1 -1
  74. package/js/src/coinspot.js +7 -2
  75. package/js/src/delta.js +1 -1
  76. package/js/src/gate.d.ts +1 -0
  77. package/js/src/gate.js +11 -4
  78. package/js/src/gemini.d.ts +11 -0
  79. package/js/src/gemini.js +76 -1
  80. package/js/src/htx.js +2 -2
  81. package/js/src/hyperliquid.js +20 -7
  82. package/js/src/independentreserve.js +7 -7
  83. package/js/src/kraken.js +1 -1
  84. package/js/src/krakenfutures.d.ts +1 -1
  85. package/js/src/krakenfutures.js +96 -5
  86. package/js/src/kucoin.d.ts +3 -3
  87. package/js/src/kucoin.js +3 -3
  88. package/js/src/kucoinfutures.js +1 -1
  89. package/js/src/lighter.d.ts +424 -0
  90. package/js/src/lighter.js +2930 -0
  91. package/js/src/mexc.js +0 -1
  92. package/js/src/phemex.js +1 -1
  93. package/js/src/pro/binance.js +2 -2
  94. package/js/src/pro/bingx.d.ts +17 -1
  95. package/js/src/pro/bingx.js +216 -3
  96. package/js/src/pro/bitget.js +1 -0
  97. package/js/src/pro/defx.js +1 -1
  98. package/js/src/pro/kucoinfutures.js +1 -1
  99. package/js/src/pro/lighter.d.ts +161 -0
  100. package/js/src/pro/lighter.js +786 -0
  101. package/js/src/pro/mexc.js +1 -1
  102. package/js/src/pro/paradex.js +1 -1
  103. package/js/src/whitebit.d.ts +2 -1
  104. package/js/src/whitebit.js +118 -16
  105. package/js/src/woo.js +1 -1
  106. package/package.json +1 -1
@@ -1545,7 +1545,7 @@ class mexc extends mexc$1["default"] {
1545
1545
  // "frozenBalance": 0,
1546
1546
  // "positionMargin": 1.36945756
1547
1547
  // },
1548
- // "ts": 1680059188190
1548
+ // "ts": 1680059188191
1549
1549
  // }
1550
1550
  //
1551
1551
  const channel = this.safeString(message, 'channel');
@@ -233,7 +233,7 @@ class paradex extends paradex$1["default"] {
233
233
  }
234
234
  const orderbook = this.orderbooks[symbol];
235
235
  const snapshot = this.parseOrderBook(orderbookData, symbol, timestamp, 'bids', 'asks');
236
- snapshot['nonce'] = this.safeNumber(data, 'seq_no');
236
+ snapshot['nonce'] = this.safeInteger(data, 'seq_no');
237
237
  orderbook.reset(snapshot);
238
238
  const messageHash = this.safeString(params, 'channel');
239
239
  client.resolve(orderbook, messageHash);
@@ -11,6 +11,7 @@ require('./utils/utf8.js');
11
11
  require('../../base/functions/platform.js');
12
12
  require('../../base/functions/encode.js');
13
13
  require('../../base/functions/crypto.js');
14
+ require('../../base/functions/io.js');
14
15
  require('../noble-hashes/sha3.js');
15
16
  require('../noble-hashes/sha256.js');
16
17
  var abstractCoder = require('./coders/abstract-coder.js');
@@ -12,6 +12,7 @@ require('../utils/utf8.js');
12
12
  require('../../../base/functions/platform.js');
13
13
  require('../../../base/functions/encode.js');
14
14
  require('../../../base/functions/crypto.js');
15
+ require('../../../base/functions/io.js');
15
16
  require('../../noble-hashes/sha256.js');
16
17
 
17
18
  // ----------------------------------------------------------------------------
@@ -13,6 +13,7 @@ require('../utils/utf8.js');
13
13
  require('../../../base/functions/platform.js');
14
14
  require('../../../base/functions/encode.js');
15
15
  require('../../../base/functions/crypto.js');
16
+ require('../../../base/functions/io.js');
16
17
  require('../../noble-hashes/sha3.js');
17
18
  require('../../noble-hashes/sha256.js');
18
19
 
@@ -12,6 +12,7 @@ require('../utils/utf8.js');
12
12
  require('../../../base/functions/platform.js');
13
13
  require('../../../base/functions/encode.js');
14
14
  require('../../../base/functions/crypto.js');
15
+ require('../../../base/functions/io.js');
15
16
  require('../../noble-hashes/sha3.js');
16
17
  require('../../noble-hashes/sha256.js');
17
18
  var typed = require('../typed.js');
@@ -12,6 +12,7 @@ require('../utils/utf8.js');
12
12
  require('../../../base/functions/platform.js');
13
13
  require('../../../base/functions/encode.js');
14
14
  require('../../../base/functions/crypto.js');
15
+ require('../../../base/functions/io.js');
15
16
  require('../../noble-hashes/sha3.js');
16
17
  require('../../noble-hashes/sha256.js');
17
18
  var typed = require('../typed.js');
@@ -12,6 +12,7 @@ require('../utils/utf8.js');
12
12
  require('../../../base/functions/platform.js');
13
13
  require('../../../base/functions/encode.js');
14
14
  require('../../../base/functions/crypto.js');
15
+ require('../../../base/functions/io.js');
15
16
  require('../../noble-hashes/sha3.js');
16
17
  require('../../noble-hashes/sha256.js');
17
18
  var abstractCoder = require('./abstract-coder.js');
@@ -13,6 +13,7 @@ require('../utils/utf8.js');
13
13
  require('../../../base/functions/platform.js');
14
14
  require('../../../base/functions/encode.js');
15
15
  require('../../../base/functions/crypto.js');
16
+ require('../../../base/functions/io.js');
16
17
  require('../../noble-hashes/sha3.js');
17
18
  require('../../noble-hashes/sha256.js');
18
19
  var typed = require('../typed.js');
@@ -12,6 +12,7 @@ require('../utils/utf8.js');
12
12
  require('../../../base/functions/platform.js');
13
13
  require('../../../base/functions/encode.js');
14
14
  require('../../../base/functions/crypto.js');
15
+ require('../../../base/functions/io.js');
15
16
  require('../../noble-hashes/sha3.js');
16
17
  require('../../noble-hashes/sha256.js');
17
18
  var typed = require('../typed.js');
@@ -12,6 +12,7 @@ require('./utils/utf8.js');
12
12
  require('../../base/functions/platform.js');
13
13
  require('../../base/functions/encode.js');
14
14
  require('../../base/functions/crypto.js');
15
+ require('../../base/functions/io.js');
15
16
  require('../noble-hashes/sha3.js');
16
17
  require('../noble-hashes/sha256.js');
17
18
 
@@ -12,6 +12,7 @@ require('./utils/utf8.js');
12
12
  require('../../base/functions/platform.js');
13
13
  require('../../base/functions/encode.js');
14
14
  require('../../base/functions/crypto.js');
15
+ require('../../base/functions/io.js');
15
16
  require('../noble-hashes/sha3.js');
16
17
  require('../noble-hashes/sha256.js');
17
18
  var fragments = require('./fragments.js');
@@ -11,6 +11,7 @@ require('./utils/utf8.js');
11
11
  require('../../base/functions/platform.js');
12
12
  require('../../base/functions/encode.js');
13
13
  require('../../base/functions/crypto.js');
14
+ require('../../base/functions/io.js');
14
15
  require('../noble-hashes/sha3.js');
15
16
  require('../noble-hashes/sha256.js');
16
17
  require('./abi-coder.js');
@@ -12,6 +12,7 @@ require('./utils/utf8.js');
12
12
  require('../../base/functions/platform.js');
13
13
  require('../../base/functions/encode.js');
14
14
  require('../../base/functions/crypto.js');
15
+ require('../../base/functions/io.js');
15
16
  require('../noble-hashes/sha3.js');
16
17
  require('../noble-hashes/sha256.js');
17
18
 
@@ -12,6 +12,7 @@ var utf8 = require('./utf8.js');
12
12
  require('../../../base/functions/platform.js');
13
13
  require('../../../base/functions/encode.js');
14
14
  var crypto = require('../../../base/functions/crypto.js');
15
+ require('../../../base/functions/io.js');
15
16
  var sha3 = require('../../noble-hashes/sha3.js');
16
17
  require('../../noble-hashes/sha256.js');
17
18
 
@@ -1312,7 +1312,40 @@ class whitebit extends whitebit$1["default"] {
1312
1312
  // tradesEnabled: true
1313
1313
  // }
1314
1314
  //
1315
- const marketId = this.safeString(ticker, 'tradingPairs');
1315
+ // v4PublicGetFutures
1316
+ // {
1317
+ // "ticker_id": "0G_PERP",
1318
+ // "stock_currency": "0G",
1319
+ // "money_currency": "USDT",
1320
+ // "last_price": "0.6065",
1321
+ // "stock_volume": "2563218",
1322
+ // "money_volume": "1587952.6137",
1323
+ // "bid": "0.6065",
1324
+ // "ask": "0.6077",
1325
+ // "high": "0.6472",
1326
+ // "low": "0.6045",
1327
+ // "product_type": "Perpetual",
1328
+ // "open_interest": "3721488",
1329
+ // "index_price": "0.61",
1330
+ // "index_name": "0G future contract",
1331
+ // "index_currency": "0G",
1332
+ // "funding_rate": "-0.00000778",
1333
+ // "next_funding_rate_timestamp": "1772467200000",
1334
+ // "brackets": {
1335
+ // "1": 0,
1336
+ // "10": 0,
1337
+ // "100": 0,
1338
+ // "2": 0,
1339
+ // "20": 4000,
1340
+ // "3": 0,
1341
+ // "5": 0,
1342
+ // "50": 800
1343
+ // },
1344
+ // "max_leverage": 50,
1345
+ // "funding_interval_minutes": 240
1346
+ // }
1347
+ //
1348
+ const marketId = this.safeString2(ticker, 'tradingPairs', 'ticker_id');
1316
1349
  market = this.safeMarket(marketId, market);
1317
1350
  // last price is provided as "last" or "last_price"
1318
1351
  const last = this.safeStringN(ticker, ['last', 'last_price', 'lastPrice']);
@@ -1336,8 +1369,9 @@ class whitebit extends whitebit$1["default"] {
1336
1369
  'change': undefined,
1337
1370
  'percentage': this.safeString(ticker, 'change'),
1338
1371
  'average': undefined,
1339
- 'baseVolume': this.safeStringN(ticker, ['base_volume', 'volume', 'baseVolume24h']),
1340
- 'quoteVolume': this.safeStringN(ticker, ['quote_volume', 'deal', 'quoteVolume24h']),
1372
+ 'baseVolume': this.safeStringN(ticker, ['base_volume', 'volume', 'baseVolume24h', 'stock_volume']),
1373
+ 'quoteVolume': this.safeStringN(ticker, ['quote_volume', 'deal', 'quoteVolume24h', 'money_volume']),
1374
+ 'indexPrice': this.safeString(ticker, 'index_price'),
1341
1375
  'info': ticker,
1342
1376
  }, market);
1343
1377
  }
@@ -1423,32 +1457,100 @@ class whitebit extends whitebit$1["default"] {
1423
1457
  * @see https://docs.whitebit.com/public/http-v4/#market-activity
1424
1458
  * @param {string[]} [symbols] unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
1425
1459
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1426
- * @param {string} [params.method] either v2PublicGetTicker or v4PublicGetTicker default is v4PublicGetTicker
1460
+ * @param {string} [params.type] 'spot' or 'swap' - default is 'spot'. If type is 'swap', it will call v4PublicGetFutures
1461
+ * @param {string} [params.method] either v2PublicGetTicker or v4PublicGetTicker or v4PublicGetFutures - default is v4PublicGetTicker for spot and mixed markets, and v4PublicGetFutures for swap
1427
1462
  * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
1428
1463
  */
1429
1464
  async fetchTickers(symbols = undefined, params = {}) {
1430
1465
  await this.loadMarkets();
1431
1466
  symbols = this.marketSymbols(symbols);
1432
- let method = 'v4PublicGetTicker';
1467
+ let onlyContractSymbols = true;
1468
+ if (symbols !== undefined) {
1469
+ for (let i = 0; i < symbols.length; i++) {
1470
+ const symbol = symbols[i];
1471
+ const market = this.market(symbol);
1472
+ if (!(market['contract'])) {
1473
+ onlyContractSymbols = false;
1474
+ break;
1475
+ }
1476
+ }
1477
+ }
1478
+ else {
1479
+ onlyContractSymbols = false;
1480
+ }
1481
+ let marketType = undefined;
1482
+ [marketType, params] = this.handleMarketTypeAndParams('fetchTickers', undefined, params);
1483
+ let method = undefined;
1433
1484
  [method, params] = this.handleOptionAndParams(params, 'fetchTickers', 'method', method);
1485
+ if (method === undefined) {
1486
+ // if the user did not specify a method, choose it based on market type and symbols
1487
+ if (onlyContractSymbols || (marketType === 'swap')) {
1488
+ method = 'v4PublicGetFutures';
1489
+ }
1490
+ else {
1491
+ method = 'v4PublicGetTicker';
1492
+ }
1493
+ }
1434
1494
  let response = undefined;
1435
1495
  if (method === 'v4PublicGetTicker') {
1496
+ //
1497
+ // "BCH_RUB": {
1498
+ // "base_id":1831,
1499
+ // "quote_id":0,
1500
+ // "last_price":"32830.21",
1501
+ // "quote_volume":"1494659.8024096",
1502
+ // "base_volume":"46.1083",
1503
+ // "isFrozen":false,
1504
+ // "change":"2.12"
1505
+ // },
1506
+ //
1436
1507
  response = await this.v4PublicGetTicker(params);
1437
1508
  }
1509
+ else if (method === 'v4PublicGetFutures') {
1510
+ //
1511
+ // {
1512
+ // "success": true,
1513
+ // "message": null,
1514
+ // "result": [
1515
+ // {
1516
+ // "ticker_id": "0G_PERP",
1517
+ // "stock_currency": "0G",
1518
+ // "money_currency": "USDT",
1519
+ // "last_price": "0.6065",
1520
+ // "stock_volume": "2563218",
1521
+ // "money_volume": "1587952.6137",
1522
+ // "bid": "0.6065",
1523
+ // "ask": "0.6077",
1524
+ // "high": "0.6472",
1525
+ // "low": "0.6045",
1526
+ // "product_type": "Perpetual",
1527
+ // "open_interest": "3721488",
1528
+ // "index_price": "0.61",
1529
+ // "index_name": "0G future contract",
1530
+ // "index_currency": "0G",
1531
+ // "funding_rate": "-0.00000778",
1532
+ // "next_funding_rate_timestamp": "1772467200000",
1533
+ // "brackets": {
1534
+ // "1": 0,
1535
+ // "10": 0,
1536
+ // "100": 0,
1537
+ // "2": 0,
1538
+ // "20": 4000,
1539
+ // "3": 0,
1540
+ // "5": 0,
1541
+ // "50": 800
1542
+ // },
1543
+ // "max_leverage": 50,
1544
+ // "funding_interval_minutes": 240
1545
+ // }
1546
+ // ]
1547
+ // }
1548
+ //
1549
+ response = await this.v4PublicGetFutures(params);
1550
+ }
1438
1551
  else {
1439
1552
  response = await this.v2PublicGetTicker(params);
1440
1553
  }
1441
- //
1442
- // "BCH_RUB": {
1443
- // "base_id":1831,
1444
- // "quote_id":0,
1445
- // "last_price":"32830.21",
1446
- // "quote_volume":"1494659.8024096",
1447
- // "base_volume":"46.1083",
1448
- // "isFrozen":false,
1449
- // "change":"2.12"
1450
- // },
1451
- //
1452
1554
  const resultList = this.safeList(response, 'result');
1453
1555
  if (resultList !== undefined) {
1454
1556
  return this.parseTickers(resultList, symbols);
@@ -95,10 +95,10 @@ class woo extends woo$1["default"] {
95
95
  'fetchOrderTrades': true,
96
96
  'fetchPosition': true,
97
97
  'fetchPositionADLRank': true,
98
- 'fetchPositionsADLRank': true,
99
98
  'fetchPositionHistory': false,
100
99
  'fetchPositionMode': false,
101
100
  'fetchPositions': true,
101
+ 'fetchPositionsADLRank': true,
102
102
  'fetchPositionsHistory': false,
103
103
  'fetchPremiumIndexOHLCV': false,
104
104
  'fetchStatus': true,
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 type { Int, int, Str, Strings, Num, Bool, IndexType, OrderSide, OrderType, MarketType, SubType, Dict, NullableDict, List, NullableList, Fee, OHLCV, OHLCVC, implicitReturnType, Market, Currency, Dictionary, MinMax, FeeInterface, TradingFeeInterface, MarketInterface, Trade, Order, OrderBook, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, FundingRate, FundingRates, Position, BorrowInterest, LeverageTier, LedgerEntry, DepositWithdrawFeeNetwork, DepositWithdrawFee, TransferEntry, CrossBorrowRate, IsolatedBorrowRate, FundingRateHistory, OpenInterest, Liquidation, OrderRequest, CancellationRequest, FundingHistory, MarketMarginModes, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers, LongShortRatio, OrderBooks, OpenInterests, ConstructorArgs, ADL } from './src/base/types.js';
6
6
  import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError } from './src/base/errors.js';
7
- declare const version = "4.5.39";
7
+ declare const version = "4.5.41";
8
8
  import alp from './src/alp.js';
9
9
  import alpaca from './src/alpaca.js';
10
10
  import apex from './src/apex.js';
@@ -86,6 +86,7 @@ import kucoin from './src/kucoin.js';
86
86
  import kucoinfutures from './src/kucoinfutures.js';
87
87
  import latoken from './src/latoken.js';
88
88
  import lbank from './src/lbank.js';
89
+ import lighter from './src/lighter.js';
89
90
  import luno from './src/luno.js';
90
91
  import mercado from './src/mercado.js';
91
92
  import mexc from './src/mexc.js';
@@ -173,6 +174,7 @@ import krakenfuturesPro from './src/pro/krakenfutures.js';
173
174
  import kucoinPro from './src/pro/kucoin.js';
174
175
  import kucoinfuturesPro from './src/pro/kucoinfutures.js';
175
176
  import lbankPro from './src/pro/lbank.js';
177
+ import lighterPro from './src/pro/lighter.js';
176
178
  import lunoPro from './src/pro/luno.js';
177
179
  import mexcPro from './src/pro/mexc.js';
178
180
  import modetradePro from './src/pro/modetrade.js';
@@ -274,6 +276,7 @@ declare const exchanges: {
274
276
  kucoinfutures: typeof kucoinfutures;
275
277
  latoken: typeof latoken;
276
278
  lbank: typeof lbank;
279
+ lighter: typeof lighter;
277
280
  luno: typeof luno;
278
281
  mercado: typeof mercado;
279
282
  mexc: typeof mexc;
@@ -363,6 +366,7 @@ declare const pro: {
363
366
  kucoin: typeof kucoinPro;
364
367
  kucoinfutures: typeof kucoinfuturesPro;
365
368
  lbank: typeof lbankPro;
369
+ lighter: typeof lighterPro;
366
370
  luno: typeof lunoPro;
367
371
  mexc: typeof mexcPro;
368
372
  modetrade: typeof modetradePro;
@@ -447,6 +451,7 @@ declare const ccxt: {
447
451
  kucoin: typeof kucoinPro;
448
452
  kucoinfutures: typeof kucoinfuturesPro;
449
453
  lbank: typeof lbankPro;
454
+ lighter: typeof lighterPro;
450
455
  luno: typeof lunoPro;
451
456
  mexc: typeof mexcPro;
452
457
  modetrade: typeof modetradePro;
@@ -549,6 +554,7 @@ declare const ccxt: {
549
554
  kucoinfutures: typeof kucoinfutures;
550
555
  latoken: typeof latoken;
551
556
  lbank: typeof lbank;
557
+ lighter: typeof lighter;
552
558
  luno: typeof luno;
553
559
  mercado: typeof mercado;
554
560
  mexc: typeof mexc;
@@ -579,5 +585,5 @@ declare const ccxt: {
579
585
  zebpay: typeof zebpay;
580
586
  zonda: typeof zonda;
581
587
  } & typeof functions & typeof errors;
582
- export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError, Int, int, Str, Strings, Num, Bool, IndexType, OrderSide, OrderType, MarketType, SubType, Dict, NullableDict, List, NullableList, Fee, OHLCV, OHLCVC, implicitReturnType, Market, Currency, ConstructorArgs, Dictionary, MinMax, FeeInterface, TradingFeeInterface, MarketMarginModes, MarketInterface, Trade, Order, OrderBook, OrderBooks, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, FundingRate, FundingRates, Position, BorrowInterest, LeverageTier, LedgerEntry, DepositWithdrawFeeNetwork, DepositWithdrawFee, TransferEntry, CrossBorrowRate, IsolatedBorrowRate, FundingRateHistory, OpenInterest, OpenInterests, Liquidation, OrderRequest, CancellationRequest, FundingHistory, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, LongShortRatio, ADL, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers, alp, alpaca, apex, arkham, ascendex, aster, backpack, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbns, bitfinex, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitrue, bitso, bitstamp, bitteam, bittrade, bitvavo, blockchaincom, blofin, btcbox, btcmarkets, btcturk, bullish, bybit, bydfi, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincatch, coincheck, coinex, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, cryptomus, deepcoin, defx, delta, deribit, derive, digifinex, dydx, exmo, fmfwio, foxbit, gate, gateio, gemini, hashkey, hibachi, hitbtc, hollaex, htx, huobi, hyperliquid, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, latoken, lbank, luno, mercado, mexc, modetrade, myokx, ndax, novadax, okx, okxus, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, timex, tokocrypto, toobit, upbit, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zebpay, zonda, };
588
+ export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError, Int, int, Str, Strings, Num, Bool, IndexType, OrderSide, OrderType, MarketType, SubType, Dict, NullableDict, List, NullableList, Fee, OHLCV, OHLCVC, implicitReturnType, Market, Currency, ConstructorArgs, Dictionary, MinMax, FeeInterface, TradingFeeInterface, MarketMarginModes, MarketInterface, Trade, Order, OrderBook, OrderBooks, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, FundingRate, FundingRates, Position, BorrowInterest, LeverageTier, LedgerEntry, DepositWithdrawFeeNetwork, DepositWithdrawFee, TransferEntry, CrossBorrowRate, IsolatedBorrowRate, FundingRateHistory, OpenInterest, OpenInterests, Liquidation, OrderRequest, CancellationRequest, FundingHistory, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, LongShortRatio, ADL, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers, alp, alpaca, apex, arkham, ascendex, aster, backpack, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbns, bitfinex, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitrue, bitso, bitstamp, bitteam, bittrade, bitvavo, blockchaincom, blofin, btcbox, btcmarkets, btcturk, bullish, bybit, bydfi, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincatch, coincheck, coinex, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, cryptomus, deepcoin, defx, delta, deribit, derive, digifinex, dydx, exmo, fmfwio, foxbit, gate, gateio, gemini, hashkey, hibachi, hitbtc, hollaex, htx, huobi, hyperliquid, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, latoken, lbank, lighter, luno, mercado, mexc, modetrade, myokx, ndax, novadax, okx, okxus, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, timex, tokocrypto, toobit, upbit, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zebpay, zonda, };
583
589
  export default ccxt;
package/js/ccxt.js CHANGED
@@ -38,7 +38,7 @@ import * as errors from './src/base/errors.js';
38
38
  import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError } from './src/base/errors.js';
39
39
  //-----------------------------------------------------------------------------
40
40
  // this is updated by vss.js when building
41
- const version = '4.5.39';
41
+ const version = '4.5.41';
42
42
  Exchange.ccxtVersion = version;
43
43
  //-----------------------------------------------------------------------------
44
44
  import alp from './src/alp.js';
@@ -122,6 +122,7 @@ import kucoin from './src/kucoin.js';
122
122
  import kucoinfutures from './src/kucoinfutures.js';
123
123
  import latoken from './src/latoken.js';
124
124
  import lbank from './src/lbank.js';
125
+ import lighter from './src/lighter.js';
125
126
  import luno from './src/luno.js';
126
127
  import mercado from './src/mercado.js';
127
128
  import mexc from './src/mexc.js';
@@ -210,6 +211,7 @@ import krakenfuturesPro from './src/pro/krakenfutures.js';
210
211
  import kucoinPro from './src/pro/kucoin.js';
211
212
  import kucoinfuturesPro from './src/pro/kucoinfutures.js';
212
213
  import lbankPro from './src/pro/lbank.js';
214
+ import lighterPro from './src/pro/lighter.js';
213
215
  import lunoPro from './src/pro/luno.js';
214
216
  import mexcPro from './src/pro/mexc.js';
215
217
  import modetradePro from './src/pro/modetrade.js';
@@ -311,6 +313,7 @@ const exchanges = {
311
313
  'kucoinfutures': kucoinfutures,
312
314
  'latoken': latoken,
313
315
  'lbank': lbank,
316
+ 'lighter': lighter,
314
317
  'luno': luno,
315
318
  'mercado': mercado,
316
319
  'mexc': mexc,
@@ -400,6 +403,7 @@ const pro = {
400
403
  'kucoin': kucoinPro,
401
404
  'kucoinfutures': kucoinfuturesPro,
402
405
  'lbank': lbankPro,
406
+ 'lighter': lighterPro,
403
407
  'luno': lunoPro,
404
408
  'mexc': mexcPro,
405
409
  'modetrade': modetradePro,
@@ -432,6 +436,6 @@ pro.exchanges = Object.keys(pro);
432
436
  pro['Exchange'] = Exchange; // now the same for rest and ts
433
437
  //-----------------------------------------------------------------------------
434
438
  const ccxt = Object.assign({ version, Exchange, Precise, 'exchanges': Object.keys(exchanges), 'pro': pro }, exchanges, functions, errors);
435
- export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError, alp, alpaca, apex, arkham, ascendex, aster, backpack, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbns, bitfinex, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitrue, bitso, bitstamp, bitteam, bittrade, bitvavo, blockchaincom, blofin, btcbox, btcmarkets, btcturk, bullish, bybit, bydfi, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincatch, coincheck, coinex, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, cryptomus, deepcoin, defx, delta, deribit, derive, digifinex, dydx, exmo, fmfwio, foxbit, gate, gateio, gemini, hashkey, hibachi, hitbtc, hollaex, htx, huobi, hyperliquid, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, latoken, lbank, luno, mercado, mexc, modetrade, myokx, ndax, novadax, okx, okxus, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, timex, tokocrypto, toobit, upbit, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zebpay, zonda, };
439
+ export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError, alp, alpaca, apex, arkham, ascendex, aster, backpack, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbns, bitfinex, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitrue, bitso, bitstamp, bitteam, bittrade, bitvavo, blockchaincom, blofin, btcbox, btcmarkets, btcturk, bullish, bybit, bydfi, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincatch, coincheck, coinex, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, cryptomus, deepcoin, defx, delta, deribit, derive, digifinex, dydx, exmo, fmfwio, foxbit, gate, gateio, gemini, hashkey, hibachi, hitbtc, hollaex, htx, huobi, hyperliquid, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, latoken, lbank, lighter, luno, mercado, mexc, modetrade, myokx, ndax, novadax, okx, okxus, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, timex, tokocrypto, toobit, upbit, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zebpay, zonda, };
436
440
  export default ccxt;
437
441
  //-----------------------------------------------------------------------------
@@ -5,16 +5,24 @@ interface Exchange {
5
5
  webGetRestApi(params?: {}): Promise<implicitReturnType>;
6
6
  publicGetV1Symbols(params?: {}): Promise<implicitReturnType>;
7
7
  publicGetV1SymbolsDetailsSymbol(params?: {}): Promise<implicitReturnType>;
8
+ publicGetV1NetworkToken(params?: {}): Promise<implicitReturnType>;
8
9
  publicGetV1StakingRates(params?: {}): Promise<implicitReturnType>;
9
10
  publicGetV1PubtickerSymbol(params?: {}): Promise<implicitReturnType>;
11
+ publicGetV1Feepromos(params?: {}): Promise<implicitReturnType>;
10
12
  publicGetV2TickerSymbol(params?: {}): Promise<implicitReturnType>;
11
13
  publicGetV2CandlesSymbolTimeframe(params?: {}): Promise<implicitReturnType>;
12
14
  publicGetV1TradesSymbol(params?: {}): Promise<implicitReturnType>;
13
15
  publicGetV1AuctionSymbol(params?: {}): Promise<implicitReturnType>;
14
16
  publicGetV1AuctionSymbolHistory(params?: {}): Promise<implicitReturnType>;
15
17
  publicGetV1Pricefeed(params?: {}): Promise<implicitReturnType>;
18
+ publicGetV1FundingamountSymbol(params?: {}): Promise<implicitReturnType>;
19
+ publicGetV1FundingamountreportRecordsXlsx(params?: {}): Promise<implicitReturnType>;
16
20
  publicGetV1BookSymbol(params?: {}): Promise<implicitReturnType>;
17
21
  publicGetV1EarnRates(params?: {}): Promise<implicitReturnType>;
22
+ publicGetV2DerivativesCandlesSymbolTimeFrame(params?: {}): Promise<implicitReturnType>;
23
+ publicGetV2FxrateSymbolTimestamp(params?: {}): Promise<implicitReturnType>;
24
+ publicGetV1RiskstatsSymbol(params?: {}): Promise<implicitReturnType>;
25
+ privateGetV1PerpetualsFundingpaymentreportRecordsXlsx(params?: {}): Promise<implicitReturnType>;
18
26
  privatePostV1StakingUnstake(params?: {}): Promise<implicitReturnType>;
19
27
  privatePostV1StakingStake(params?: {}): Promise<implicitReturnType>;
20
28
  privatePostV1StakingRewards(params?: {}): Promise<implicitReturnType>;
@@ -56,6 +64,25 @@ interface Exchange {
56
64
  privatePostV1AccountList(params?: {}): Promise<implicitReturnType>;
57
65
  privatePostV1Heartbeat(params?: {}): Promise<implicitReturnType>;
58
66
  privatePostV1Roles(params?: {}): Promise<implicitReturnType>;
67
+ privatePostV1Custodyaccountfees(params?: {}): Promise<implicitReturnType>;
68
+ privatePostV1WithdrawCurrencyCodeLowerCaseFeeEstimate(params?: {}): Promise<implicitReturnType>;
69
+ privatePostV1PaymentsAddbankCad(params?: {}): Promise<implicitReturnType>;
70
+ privatePostV1Transactions(params?: {}): Promise<implicitReturnType>;
71
+ privatePostV1MarginAccount(params?: {}): Promise<implicitReturnType>;
72
+ privatePostV1MarginRates(params?: {}): Promise<implicitReturnType>;
73
+ privatePostV1MarginOrderPreview(params?: {}): Promise<implicitReturnType>;
74
+ privatePostV1ClearingList(params?: {}): Promise<implicitReturnType>;
75
+ privatePostV1ClearingBrokerList(params?: {}): Promise<implicitReturnType>;
76
+ privatePostV1ClearingBrokerNew(params?: {}): Promise<implicitReturnType>;
77
+ privatePostV1ClearingTrades(params?: {}): Promise<implicitReturnType>;
78
+ privatePostV1InstantQuote(params?: {}): Promise<implicitReturnType>;
79
+ privatePostV1InstantExecute(params?: {}): Promise<implicitReturnType>;
80
+ privatePostV1AccountRename(params?: {}): Promise<implicitReturnType>;
81
+ privatePostV1OauthRevokeByToken(params?: {}): Promise<implicitReturnType>;
82
+ privatePostV1Margin(params?: {}): Promise<implicitReturnType>;
83
+ privatePostV1PerpetualsFundingPayment(params?: {}): Promise<implicitReturnType>;
84
+ privatePostV1PerpetualsFundingpaymentreportRecordsJson(params?: {}): Promise<implicitReturnType>;
85
+ privatePostV1Positions(params?: {}): Promise<implicitReturnType>;
59
86
  }
60
87
  declare abstract class Exchange extends _Exchange {
61
88
  }
@@ -0,0 +1,53 @@
1
+ import { implicitReturnType } from '../base/types.js';
2
+ import { Exchange as _Exchange } from '../base/Exchange.js';
3
+ interface Exchange {
4
+ rootGet(params?: {}): Promise<implicitReturnType>;
5
+ rootGetInfo(params?: {}): Promise<implicitReturnType>;
6
+ publicGetAccount(params?: {}): Promise<implicitReturnType>;
7
+ publicGetAccountsByL1Address(params?: {}): Promise<implicitReturnType>;
8
+ publicGetApikeys(params?: {}): Promise<implicitReturnType>;
9
+ publicGetExchangeStats(params?: {}): Promise<implicitReturnType>;
10
+ publicGetAssetDetails(params?: {}): Promise<implicitReturnType>;
11
+ publicGetOrderBookDetails(params?: {}): Promise<implicitReturnType>;
12
+ publicGetOrderBookOrders(params?: {}): Promise<implicitReturnType>;
13
+ publicGetOrderBooks(params?: {}): Promise<implicitReturnType>;
14
+ publicGetRecentTrades(params?: {}): Promise<implicitReturnType>;
15
+ publicGetBlockTxs(params?: {}): Promise<implicitReturnType>;
16
+ publicGetNextNonce(params?: {}): Promise<implicitReturnType>;
17
+ publicGetTx(params?: {}): Promise<implicitReturnType>;
18
+ publicGetTxFromL1TxHash(params?: {}): Promise<implicitReturnType>;
19
+ publicGetTxs(params?: {}): Promise<implicitReturnType>;
20
+ publicGetAnnouncement(params?: {}): Promise<implicitReturnType>;
21
+ publicGetBlock(params?: {}): Promise<implicitReturnType>;
22
+ publicGetBlocks(params?: {}): Promise<implicitReturnType>;
23
+ publicGetCurrentHeight(params?: {}): Promise<implicitReturnType>;
24
+ publicGetCandles(params?: {}): Promise<implicitReturnType>;
25
+ publicGetFundings(params?: {}): Promise<implicitReturnType>;
26
+ publicGetFastbridgeInfo(params?: {}): Promise<implicitReturnType>;
27
+ publicGetFundingRates(params?: {}): Promise<implicitReturnType>;
28
+ publicGetWithdrawalDelay(params?: {}): Promise<implicitReturnType>;
29
+ publicPostSendTx(params?: {}): Promise<implicitReturnType>;
30
+ publicPostSendTxBatch(params?: {}): Promise<implicitReturnType>;
31
+ privateGetAccountLimits(params?: {}): Promise<implicitReturnType>;
32
+ privateGetAccountMetadata(params?: {}): Promise<implicitReturnType>;
33
+ privateGetPnl(params?: {}): Promise<implicitReturnType>;
34
+ privateGetL1Metadata(params?: {}): Promise<implicitReturnType>;
35
+ privateGetLiquidations(params?: {}): Promise<implicitReturnType>;
36
+ privateGetPositionFunding(params?: {}): Promise<implicitReturnType>;
37
+ privateGetPublicPoolsMetadata(params?: {}): Promise<implicitReturnType>;
38
+ privateGetAccountActiveOrders(params?: {}): Promise<implicitReturnType>;
39
+ privateGetAccountInactiveOrders(params?: {}): Promise<implicitReturnType>;
40
+ privateGetExport(params?: {}): Promise<implicitReturnType>;
41
+ privateGetTrades(params?: {}): Promise<implicitReturnType>;
42
+ privateGetAccountTxs(params?: {}): Promise<implicitReturnType>;
43
+ privateGetDepositHistory(params?: {}): Promise<implicitReturnType>;
44
+ privateGetTransferHistory(params?: {}): Promise<implicitReturnType>;
45
+ privateGetWithdrawHistory(params?: {}): Promise<implicitReturnType>;
46
+ privateGetReferralPoints(params?: {}): Promise<implicitReturnType>;
47
+ privateGetTransferFeeInfo(params?: {}): Promise<implicitReturnType>;
48
+ privatePostChangeAccountTier(params?: {}): Promise<implicitReturnType>;
49
+ privatePostNotificationAck(params?: {}): Promise<implicitReturnType>;
50
+ }
51
+ declare abstract class Exchange extends _Exchange {
52
+ }
53
+ export default Exchange;
@@ -0,0 +1,11 @@
1
+ // ----------------------------------------------------------------------------
2
+
3
+ // PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
4
+ // https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
5
+ // EDIT THE CORRESPONDENT .ts FILE INSTEAD
6
+
7
+ // -------------------------------------------------------------------------------
8
+ import { Exchange as _Exchange } from '../base/Exchange.js';
9
+ class Exchange extends _Exchange {
10
+ }
11
+ export default Exchange;
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/ascendex.js';
2
- import type { TransferEntry, FundingHistory, Int, OHLCV, Order, OrderSide, OrderType, OrderRequest, Str, Trade, Balances, Transaction, Ticker, OrderBook, Tickers, Strings, Num, Currency, Market, Leverage, Leverages, Account, MarginModes, MarginMode, MarginModification, Currencies, TradingFees, Dict, LeverageTier, LeverageTiers, int, FundingRate, FundingRates, DepositAddress, Position } from './base/types.js';
2
+ import type { TransferEntry, FundingHistory, Int, OHLCV, Order, OrderSide, OrderType, OrderRequest, Str, Trade, Balances, Transaction, Ticker, OrderBook, Tickers, Strings, Num, Currency, Market, Leverage, Leverages, Account, MarginModes, MarginMode, MarginModification, Currencies, TradingFees, Dict, LeverageTier, LeverageTiers, int, FundingRate, FundingRates, DepositAddress, Position, OpenInterests } from './base/types.js';
3
3
  /**
4
4
  * @class ascendex
5
5
  * @augments Exchange
@@ -413,6 +413,17 @@ export default class ascendex extends Exchange {
413
413
  * @returns {object} a list of [leverage structures]{@link https://docs.ccxt.com/?id=leverage-structure}
414
414
  */
415
415
  fetchLeverages(symbols?: Strings, params?: {}): Promise<Leverages>;
416
+ /**
417
+ * @method
418
+ * @name ascendex#fetchOpenInterests
419
+ * @description Retrieves the open interest for a list of symbols
420
+ * @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#futures-pricing-data
421
+ * @param {string[]} [symbols] a list of unified CCXT market symbols
422
+ * @param {object} [params] exchange specific parameters
423
+ * @returns {object[]} a list of [open interest structures]{@link https://docs.ccxt.com/?id=open-interest-structure}
424
+ */
425
+ fetchOpenInterests(symbols?: Strings, params?: {}): Promise<OpenInterests>;
426
+ parseOpenInterest(interest: any, market?: Market): import("./base/types.js").OpenInterest;
416
427
  parseLeverage(leverage: Dict, market?: Market): Leverage;
417
428
  sign(path: any, api?: string, method?: string, params?: {}, headers?: any, body?: any): {
418
429
  url: string;