ccxt 4.5.48 → 4.5.49

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 (43) hide show
  1. package/README.md +6 -5
  2. package/dist/ccxt.browser.min.js +10 -10
  3. package/dist/cjs/ccxt.js +6 -1
  4. package/dist/cjs/src/abstract/weex.js +11 -0
  5. package/dist/cjs/src/btcbox.js +1 -1
  6. package/dist/cjs/src/bullish.js +2 -1
  7. package/dist/cjs/src/kraken.js +1 -0
  8. package/dist/cjs/src/krakenfutures.js +10 -1
  9. package/dist/cjs/src/kucoin.js +5 -1
  10. package/dist/cjs/src/lighter.js +6 -3
  11. package/dist/cjs/src/mexc.js +7 -12
  12. package/dist/cjs/src/paradex.js +5 -2
  13. package/dist/cjs/src/pro/binance.js +1 -1
  14. package/dist/cjs/src/pro/cex.js +1 -1
  15. package/dist/cjs/src/pro/coinbase.js +1 -1
  16. package/dist/cjs/src/pro/lighter.js +338 -18
  17. package/dist/cjs/src/pro/weex.js +1906 -0
  18. package/dist/cjs/src/weex.js +3823 -0
  19. package/js/ccxt.d.ts +8 -2
  20. package/js/ccxt.js +6 -2
  21. package/js/src/abstract/weex.d.ts +83 -0
  22. package/js/src/abstract/weex.js +11 -0
  23. package/js/src/btcbox.js +1 -1
  24. package/js/src/bullish.js +2 -1
  25. package/js/src/kraken.js +1 -0
  26. package/js/src/krakenfutures.js +10 -1
  27. package/js/src/kucoin.d.ts +4 -0
  28. package/js/src/kucoin.js +5 -1
  29. package/js/src/lighter.d.ts +1 -0
  30. package/js/src/lighter.js +6 -3
  31. package/js/src/mexc.d.ts +2 -0
  32. package/js/src/mexc.js +7 -12
  33. package/js/src/paradex.js +5 -2
  34. package/js/src/pro/binance.js +1 -1
  35. package/js/src/pro/cex.js +1 -1
  36. package/js/src/pro/coinbase.js +1 -1
  37. package/js/src/pro/lighter.d.ts +37 -2
  38. package/js/src/pro/lighter.js +338 -18
  39. package/js/src/pro/weex.d.ts +330 -0
  40. package/js/src/pro/weex.js +1905 -0
  41. package/js/src/weex.d.ts +675 -0
  42. package/js/src/weex.js +3822 -0
  43. package/package.json +1 -1
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.47";
7
+ declare const version = "4.5.48";
8
8
  import aftermath from './src/aftermath.js';
9
9
  import alpaca from './src/alpaca.js';
10
10
  import apex from './src/apex.js';
@@ -107,6 +107,7 @@ import tokocrypto from './src/tokocrypto.js';
107
107
  import toobit from './src/toobit.js';
108
108
  import upbit from './src/upbit.js';
109
109
  import wavesexchange from './src/wavesexchange.js';
110
+ import weex from './src/weex.js';
110
111
  import whitebit from './src/whitebit.js';
111
112
  import woo from './src/woo.js';
112
113
  import woofipro from './src/woofipro.js';
@@ -190,6 +191,7 @@ import phemexPro from './src/pro/phemex.js';
190
191
  import poloniexPro from './src/pro/poloniex.js';
191
192
  import toobitPro from './src/pro/toobit.js';
192
193
  import upbitPro from './src/pro/upbit.js';
194
+ import weexPro from './src/pro/weex.js';
193
195
  import whitebitPro from './src/pro/whitebit.js';
194
196
  import wooPro from './src/pro/woo.js';
195
197
  import woofiproPro from './src/pro/woofipro.js';
@@ -297,6 +299,7 @@ declare const exchanges: {
297
299
  toobit: typeof toobit;
298
300
  upbit: typeof upbit;
299
301
  wavesexchange: typeof wavesexchange;
302
+ weex: typeof weex;
300
303
  whitebit: typeof whitebit;
301
304
  woo: typeof woo;
302
305
  woofipro: typeof woofipro;
@@ -382,6 +385,7 @@ declare const pro: {
382
385
  poloniex: typeof poloniexPro;
383
386
  toobit: typeof toobitPro;
384
387
  upbit: typeof upbitPro;
388
+ weex: typeof weexPro;
385
389
  whitebit: typeof whitebitPro;
386
390
  woo: typeof wooPro;
387
391
  woofipro: typeof woofiproPro;
@@ -468,6 +472,7 @@ declare const ccxt: {
468
472
  poloniex: typeof poloniexPro;
469
473
  toobit: typeof toobitPro;
470
474
  upbit: typeof upbitPro;
475
+ weex: typeof weexPro;
471
476
  whitebit: typeof whitebitPro;
472
477
  woo: typeof wooPro;
473
478
  woofipro: typeof woofiproPro;
@@ -576,6 +581,7 @@ declare const ccxt: {
576
581
  toobit: typeof toobit;
577
582
  upbit: typeof upbit;
578
583
  wavesexchange: typeof wavesexchange;
584
+ weex: typeof weex;
579
585
  whitebit: typeof whitebit;
580
586
  woo: typeof woo;
581
587
  woofipro: typeof woofipro;
@@ -585,5 +591,5 @@ declare const ccxt: {
585
591
  zebpay: typeof zebpay;
586
592
  zonda: typeof zonda;
587
593
  } & typeof functions & typeof errors;
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, aftermath, 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, coincheck, coinex, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, cryptomus, deepcoin, delta, deribit, derive, digifinex, dydx, exmo, fmfwio, foxbit, gate, gateio, gemini, grvt, 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, pacifica, paradex, paymium, phemex, poloniex, tokocrypto, toobit, upbit, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zebpay, zonda, };
594
+ 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, aftermath, 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, coincheck, coinex, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, cryptomus, deepcoin, delta, deribit, derive, digifinex, dydx, exmo, fmfwio, foxbit, gate, gateio, gemini, grvt, 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, pacifica, paradex, paymium, phemex, poloniex, tokocrypto, toobit, upbit, wavesexchange, weex, whitebit, woo, woofipro, xt, yobit, zaif, zebpay, zonda, };
589
595
  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.47';
41
+ const version = '4.5.48';
42
42
  Exchange.ccxtVersion = version;
43
43
  //-----------------------------------------------------------------------------
44
44
  import aftermath from './src/aftermath.js';
@@ -143,6 +143,7 @@ import tokocrypto from './src/tokocrypto.js';
143
143
  import toobit from './src/toobit.js';
144
144
  import upbit from './src/upbit.js';
145
145
  import wavesexchange from './src/wavesexchange.js';
146
+ import weex from './src/weex.js';
146
147
  import whitebit from './src/whitebit.js';
147
148
  import woo from './src/woo.js';
148
149
  import woofipro from './src/woofipro.js';
@@ -227,6 +228,7 @@ import phemexPro from './src/pro/phemex.js';
227
228
  import poloniexPro from './src/pro/poloniex.js';
228
229
  import toobitPro from './src/pro/toobit.js';
229
230
  import upbitPro from './src/pro/upbit.js';
231
+ import weexPro from './src/pro/weex.js';
230
232
  import whitebitPro from './src/pro/whitebit.js';
231
233
  import wooPro from './src/pro/woo.js';
232
234
  import woofiproPro from './src/pro/woofipro.js';
@@ -334,6 +336,7 @@ const exchanges = {
334
336
  'toobit': toobit,
335
337
  'upbit': upbit,
336
338
  'wavesexchange': wavesexchange,
339
+ 'weex': weex,
337
340
  'whitebit': whitebit,
338
341
  'woo': woo,
339
342
  'woofipro': woofipro,
@@ -419,6 +422,7 @@ const pro = {
419
422
  'poloniex': poloniexPro,
420
423
  'toobit': toobitPro,
421
424
  'upbit': upbitPro,
425
+ 'weex': weexPro,
422
426
  'whitebit': whitebitPro,
423
427
  'woo': wooPro,
424
428
  'woofipro': woofiproPro,
@@ -436,6 +440,6 @@ pro.exchanges = Object.keys(pro);
436
440
  pro['Exchange'] = Exchange; // now the same for rest and ts
437
441
  //-----------------------------------------------------------------------------
438
442
  const ccxt = Object.assign({ version, Exchange, Precise, 'exchanges': Object.keys(exchanges), 'pro': pro }, exchanges, functions, errors);
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, aftermath, 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, coincheck, coinex, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, cryptomus, deepcoin, delta, deribit, derive, digifinex, dydx, exmo, fmfwio, foxbit, gate, gateio, gemini, grvt, 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, pacifica, paradex, paymium, phemex, poloniex, tokocrypto, toobit, upbit, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zebpay, zonda, };
443
+ 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, aftermath, 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, coincheck, coinex, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, cryptomus, deepcoin, delta, deribit, derive, digifinex, dydx, exmo, fmfwio, foxbit, gate, gateio, gemini, grvt, 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, pacifica, paradex, paymium, phemex, poloniex, tokocrypto, toobit, upbit, wavesexchange, weex, whitebit, woo, woofipro, xt, yobit, zaif, zebpay, zonda, };
440
444
  export default ccxt;
441
445
  //-----------------------------------------------------------------------------
@@ -0,0 +1,83 @@
1
+ import { implicitReturnType } from '../base/types.js';
2
+ import { Exchange as _Exchange } from '../base/Exchange.js';
3
+ interface Exchange {
4
+ publicGetApiV3Time(params?: {}): Promise<implicitReturnType>;
5
+ publicGetApiV3Coins(params?: {}): Promise<implicitReturnType>;
6
+ publicGetApiV3ExchangeInfo(params?: {}): Promise<implicitReturnType>;
7
+ publicGetApiV3Ping(params?: {}): Promise<implicitReturnType>;
8
+ publicGetApiV3ApiTradingSymbols(params?: {}): Promise<implicitReturnType>;
9
+ publicGetApiV3MarketTickerPrice(params?: {}): Promise<implicitReturnType>;
10
+ publicGetApiV3MarketTicker24hr(params?: {}): Promise<implicitReturnType>;
11
+ publicGetApiV3MarketTrades(params?: {}): Promise<implicitReturnType>;
12
+ publicGetApiV3MarketKlines(params?: {}): Promise<implicitReturnType>;
13
+ publicGetApiV3MarketDepth(params?: {}): Promise<implicitReturnType>;
14
+ publicGetApiV3MarketTickerBookTicker(params?: {}): Promise<implicitReturnType>;
15
+ privateGetApiV3Account(params?: {}): Promise<implicitReturnType>;
16
+ privateGetApiV3AccountTransferRecords(params?: {}): Promise<implicitReturnType>;
17
+ privateGetApiV3Order(params?: {}): Promise<implicitReturnType>;
18
+ privateGetApiV3OpenOrders(params?: {}): Promise<implicitReturnType>;
19
+ privateGetApiV3AllOrders(params?: {}): Promise<implicitReturnType>;
20
+ privateGetApiV3MyTrades(params?: {}): Promise<implicitReturnType>;
21
+ privateGetApiV3RebateAffiliateGetAffiliateUIDs(params?: {}): Promise<implicitReturnType>;
22
+ privateGetApiV3RebateAffiliateGetChannelUserTradeAndAsset(params?: {}): Promise<implicitReturnType>;
23
+ privateGetApiV3RebateAffiliateGetAffiliateCommission(params?: {}): Promise<implicitReturnType>;
24
+ privateGetApiV3RebateAffiliateGetInternalWithdrawalStatus(params?: {}): Promise<implicitReturnType>;
25
+ privateGetApiV3RebateAffiliateQuerySubChannelTransactions(params?: {}): Promise<implicitReturnType>;
26
+ privateGetApiV3AgencyVerifyReferrals(params?: {}): Promise<implicitReturnType>;
27
+ privateGetApiV3AgencyGetAssert(params?: {}): Promise<implicitReturnType>;
28
+ privateGetApiV3AgencyGetDealData(params?: {}): Promise<implicitReturnType>;
29
+ privatePostApiV3AccountBills(params?: {}): Promise<implicitReturnType>;
30
+ privatePostApiV3AccountFundingBills(params?: {}): Promise<implicitReturnType>;
31
+ privatePostApiV3Order(params?: {}): Promise<implicitReturnType>;
32
+ privatePostApiV3OrderBatch(params?: {}): Promise<implicitReturnType>;
33
+ privatePostApiV3RebateAffiliateInternalWithdrawal(params?: {}): Promise<implicitReturnType>;
34
+ privateDeleteApiV3Order(params?: {}): Promise<implicitReturnType>;
35
+ privateDeleteApiV3OpenOrders(params?: {}): Promise<implicitReturnType>;
36
+ privateDeleteApiV3OrderBatch(params?: {}): Promise<implicitReturnType>;
37
+ contractGetCapiV3MarketTime(params?: {}): Promise<implicitReturnType>;
38
+ contractGetCapiV3MarketExchangeInfo(params?: {}): Promise<implicitReturnType>;
39
+ contractGetCapiV3MarketDepth(params?: {}): Promise<implicitReturnType>;
40
+ contractGetCapiV3MarketTicker24hr(params?: {}): Promise<implicitReturnType>;
41
+ contractGetCapiV3MarketTickerBookTicker(params?: {}): Promise<implicitReturnType>;
42
+ contractGetCapiV3MarketTrades(params?: {}): Promise<implicitReturnType>;
43
+ contractGetCapiV3MarketKlines(params?: {}): Promise<implicitReturnType>;
44
+ contractGetCapiV3MarketIndexPriceKlines(params?: {}): Promise<implicitReturnType>;
45
+ contractGetCapiV3MarketMarkPriceKlines(params?: {}): Promise<implicitReturnType>;
46
+ contractGetCapiV3MarketHistoryKlines(params?: {}): Promise<implicitReturnType>;
47
+ contractGetCapiV3MarketSymbolPrice(params?: {}): Promise<implicitReturnType>;
48
+ contractGetCapiV3MarketOpenInterest(params?: {}): Promise<implicitReturnType>;
49
+ contractGetCapiV3MarketPremiumIndex(params?: {}): Promise<implicitReturnType>;
50
+ contractGetCapiV3MarketFundingRate(params?: {}): Promise<implicitReturnType>;
51
+ contractGetCapiV3MarketApiTradingSymbols(params?: {}): Promise<implicitReturnType>;
52
+ contractPrivateGetCapiV3AccountBalance(params?: {}): Promise<implicitReturnType>;
53
+ contractPrivateGetCapiV3AccountCommissionRate(params?: {}): Promise<implicitReturnType>;
54
+ contractPrivateGetCapiV3AccountAccountConfig(params?: {}): Promise<implicitReturnType>;
55
+ contractPrivateGetCapiV3AccountSymbolConfig(params?: {}): Promise<implicitReturnType>;
56
+ contractPrivateGetCapiV3AccountPositionAllPosition(params?: {}): Promise<implicitReturnType>;
57
+ contractPrivateGetCapiV3AccountPositionSinglePosition(params?: {}): Promise<implicitReturnType>;
58
+ contractPrivateGetCapiV3Order(params?: {}): Promise<implicitReturnType>;
59
+ contractPrivateGetCapiV3OpenOrders(params?: {}): Promise<implicitReturnType>;
60
+ contractPrivateGetCapiV3OrderHistory(params?: {}): Promise<implicitReturnType>;
61
+ contractPrivateGetCapiV3UserTrades(params?: {}): Promise<implicitReturnType>;
62
+ contractPrivateGetCapiV3OpenAlgoOrders(params?: {}): Promise<implicitReturnType>;
63
+ contractPrivateGetCapiV3AllAlgoOrders(params?: {}): Promise<implicitReturnType>;
64
+ contractPrivatePostCapiV3AccountIncome(params?: {}): Promise<implicitReturnType>;
65
+ contractPrivatePostCapiV3AccountMarginType(params?: {}): Promise<implicitReturnType>;
66
+ contractPrivatePostCapiV3AccountLeverage(params?: {}): Promise<implicitReturnType>;
67
+ contractPrivatePostCapiV3AccountPositionMargin(params?: {}): Promise<implicitReturnType>;
68
+ contractPrivatePostCapiV3AccountModifyAutoAppendMargin(params?: {}): Promise<implicitReturnType>;
69
+ contractPrivatePostCapiV3Order(params?: {}): Promise<implicitReturnType>;
70
+ contractPrivatePostCapiV3BatchOrders(params?: {}): Promise<implicitReturnType>;
71
+ contractPrivatePostCapiV3ClosePositions(params?: {}): Promise<implicitReturnType>;
72
+ contractPrivatePostCapiV3AlgoOrder(params?: {}): Promise<implicitReturnType>;
73
+ contractPrivatePostCapiV3PlaceTpSlOrder(params?: {}): Promise<implicitReturnType>;
74
+ contractPrivatePostCapiV3ModifyTpSlOrder(params?: {}): Promise<implicitReturnType>;
75
+ contractPrivateDeleteCapiV3Order(params?: {}): Promise<implicitReturnType>;
76
+ contractPrivateDeleteCapiV3BatchOrders(params?: {}): Promise<implicitReturnType>;
77
+ contractPrivateDeleteCapiV3AllOpenOrders(params?: {}): Promise<implicitReturnType>;
78
+ contractPrivateDeleteCapiV3AlgoOrder(params?: {}): Promise<implicitReturnType>;
79
+ contractPrivateDeleteCapiV3AlgoOpenOrders(params?: {}): Promise<implicitReturnType>;
80
+ }
81
+ declare abstract class Exchange extends _Exchange {
82
+ }
83
+ 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;
package/js/src/btcbox.js CHANGED
@@ -625,7 +625,7 @@ export default class btcbox extends Exchange {
625
625
  //
626
626
  // {
627
627
  // "id":11,
628
- // "datetime":"2014-10-21 10:47:20",
628
+ // "datetime":"2014-10-21 10:47:21",
629
629
  // "type":"sell",
630
630
  // "price":42000,
631
631
  // "amount_original":1.2,
package/js/src/bullish.js CHANGED
@@ -821,7 +821,8 @@ export default class bullish extends Exchange {
821
821
  expiryDatetime = this.safeString(market, 'expiryDatetime');
822
822
  const idParts = id.split('-');
823
823
  const datePart = this.safeString(idParts, 2);
824
- symbol += '-' + datePart;
824
+ const dateYmd = datePart.slice(2);
825
+ symbol += '-' + dateYmd;
825
826
  if (type === 'future') {
826
827
  future = true;
827
828
  }
package/js/src/kraken.js CHANGED
@@ -562,6 +562,7 @@ export default class kraken extends Exchange {
562
562
  'EFunding:No funding method': BadRequest,
563
563
  'EFunding:Unknown asset': BadSymbol,
564
564
  'EService:Market in post_only mode': OnMaintenance,
565
+ 'EService:Market in cancel_only mode': OnMaintenance,
565
566
  'EGeneral:Too many requests': DDoSProtection,
566
567
  'ETrade:User Locked': AccountSuspended, // {"error":["ETrade:User Locked"]}
567
568
  },
@@ -1570,7 +1570,7 @@ export default class krakenfutures extends Exchange {
1570
1570
  request['count'] = limit;
1571
1571
  }
1572
1572
  if (since !== undefined) {
1573
- request['from'] = since;
1573
+ request['since'] = since;
1574
1574
  }
1575
1575
  const isTrigger = this.safeBool2(params, 'trigger', 'stop', false);
1576
1576
  let response = undefined;
@@ -1587,6 +1587,7 @@ export default class krakenfutures extends Exchange {
1587
1587
  const order = allOrders[i];
1588
1588
  const event = this.safeDict(order, 'event', {});
1589
1589
  const orderPlaced = this.safeDict2(event, 'OrderPlaced', 'OrderTriggerActivated');
1590
+ const orderUpdated = this.safeDict(event, 'OrderUpdated');
1590
1591
  if (orderPlaced !== undefined) {
1591
1592
  const innerOrder = this.safeDict(orderPlaced, 'order', {});
1592
1593
  const filled = this.safeString(innerOrder, 'filled');
@@ -1595,6 +1596,14 @@ export default class krakenfutures extends Exchange {
1595
1596
  closedOrders.push(innerOrder);
1596
1597
  }
1597
1598
  }
1599
+ else if (orderUpdated !== undefined) {
1600
+ const reason = this.safeString(orderUpdated, 'reason');
1601
+ if (reason === 'full_fill') {
1602
+ const newOrder = this.safeDict(orderUpdated, 'newOrder', {});
1603
+ newOrder['status'] = 'closed';
1604
+ closedOrders.push(newOrder);
1605
+ }
1606
+ }
1598
1607
  }
1599
1608
  return this.parseOrders(closedOrders, market, since, limit);
1600
1609
  }
@@ -1448,6 +1448,8 @@ export default class kucoin extends Exchange {
1448
1448
  * @param {string} symbol unified market symbol of the market the position is held in
1449
1449
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1450
1450
  * @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
1451
+ * @param {integer} [params.pageSize] *uta only* page size for the uta endpoint (default 50, max 200)
1452
+ * @param {integer} [params.pageNumber] *uta only* page number for the uta endpoint (default 1)
1451
1453
  * @returns {object} a [position structure]{@link https://docs.ccxt.com/?id=position-structure}
1452
1454
  */
1453
1455
  fetchPosition(symbol: string, params?: {}): Promise<Position>;
@@ -1460,6 +1462,8 @@ export default class kucoin extends Exchange {
1460
1462
  * @param {string[]|undefined} symbols list of unified market symbols
1461
1463
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1462
1464
  * @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
1465
+ * @param {integer} [params.pageSize] *uta only* page size for the uta endpoint (default 50, max 200)
1466
+ * @param {integer} [params.pageNumber] *uta only* page number for the uta endpoint (default 1)
1463
1467
  * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/?id=position-structure}
1464
1468
  */
1465
1469
  fetchPositions(symbols?: Strings, params?: {}): Promise<Position[]>;
package/js/src/kucoin.js CHANGED
@@ -9968,6 +9968,8 @@ export default class kucoin extends Exchange {
9968
9968
  * @param {string} symbol unified market symbol of the market the position is held in
9969
9969
  * @param {object} [params] extra parameters specific to the exchange API endpoint
9970
9970
  * @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
9971
+ * @param {integer} [params.pageSize] *uta only* page size for the uta endpoint (default 50, max 200)
9972
+ * @param {integer} [params.pageNumber] *uta only* page number for the uta endpoint (default 1)
9971
9973
  * @returns {object} a [position structure]{@link https://docs.ccxt.com/?id=position-structure}
9972
9974
  */
9973
9975
  async fetchPosition(symbol, params = {}) {
@@ -10068,6 +10070,8 @@ export default class kucoin extends Exchange {
10068
10070
  * @param {string[]|undefined} symbols list of unified market symbols
10069
10071
  * @param {object} [params] extra parameters specific to the exchange API endpoint
10070
10072
  * @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
10073
+ * @param {integer} [params.pageSize] *uta only* page size for the uta endpoint (default 50, max 200)
10074
+ * @param {integer} [params.pageNumber] *uta only* page number for the uta endpoint (default 1)
10071
10075
  * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/?id=position-structure}
10072
10076
  */
10073
10077
  async fetchPositions(symbols = undefined, params = {}) {
@@ -10076,7 +10080,7 @@ export default class kucoin extends Exchange {
10076
10080
  [uta, params] = this.handleOptionAndParams(params, 'fetchPositions', 'uta', uta);
10077
10081
  let response = undefined;
10078
10082
  if (uta) {
10079
- response = await this.utaPrivateGetAccountModePositionOpenList(this.extend(params, { 'accountMode': 'unified' }));
10083
+ response = await this.utaPrivateGetAccountModePositionOpenList(this.extend({ 'accountMode': 'unified', 'limit': 200 }, params));
10080
10084
  }
10081
10085
  else {
10082
10086
  response = await this.futuresPrivateGetPositions(params);
@@ -167,6 +167,7 @@ export default class lighter extends Exchange {
167
167
  * @param {object} [params] extra parameters specific to the exchange API endpoint
168
168
  * @param {string} [params.by] fetch balance by 'index' or 'l1_address', defaults to 'index'
169
169
  * @param {string} [params.value] fetch balance value, account index or l1 address
170
+ * @param {string} [params.type] 'spot', 'swap', default is 'swap'
170
171
  * @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
171
172
  */
172
173
  fetchBalance(params?: {}): Promise<Balances>;
package/js/src/lighter.js CHANGED
@@ -1554,6 +1554,7 @@ export default class lighter extends Exchange {
1554
1554
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1555
1555
  * @param {string} [params.by] fetch balance by 'index' or 'l1_address', defaults to 'index'
1556
1556
  * @param {string} [params.value] fetch balance value, account index or l1 address
1557
+ * @param {string} [params.type] 'spot', 'swap', default is 'swap'
1557
1558
  * @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
1558
1559
  */
1559
1560
  async fetchBalance(params = {}) {
@@ -1628,9 +1629,11 @@ export default class lighter extends Exchange {
1628
1629
  }
1629
1630
  }
1630
1631
  else {
1631
- const perpUSDC = this.safeString(account, 'collateral');
1632
- const perpBalance = this.safeDict(result, 'USDC(PERP)', this.account());
1633
- perpBalance['total'] = Precise.stringAdd(perpBalance['total'], perpUSDC);
1632
+ const perpBalance = this.safeDict(result, 'USDC', this.account());
1633
+ const perpUSDCTotal = this.safeString(account, 'collateral');
1634
+ const perpUSDCFree = this.safeString(account, 'available_balance');
1635
+ perpBalance['total'] = Precise.stringAdd(perpBalance['total'], perpUSDCTotal);
1636
+ perpBalance['free'] = Precise.stringAdd(perpBalance['free'], perpUSDCFree);
1634
1637
  result['USDC'] = perpBalance;
1635
1638
  }
1636
1639
  }
package/js/src/mexc.d.ts CHANGED
@@ -177,6 +177,7 @@ export default class mexc extends Exchange {
177
177
  * @name mexc#createOrder
178
178
  * @description create a trade order
179
179
  * @see https://mexcdevelop.github.io/apidocs/spot_v3_en/#new-order
180
+ * @see https://www.mexc.com/api-docs/futures/account-and-trading-endpoints#place-order
180
181
  * @see https://mexcdevelop.github.io/apidocs/contract_v1_en/#order-under-maintenance
181
182
  * @see https://mexcdevelop.github.io/apidocs/contract_v1_en/#trigger-order-under-maintenance
182
183
  * @param {string} symbol unified symbol of the market to create an order in
@@ -223,6 +224,7 @@ export default class mexc extends Exchange {
223
224
  * @method
224
225
  * @name mexc#createSwapOrder
225
226
  * @description create a trade order
227
+ * @see https://www.mexc.com/api-docs/futures/account-and-trading-endpoints#place-order
226
228
  * @see https://mexcdevelop.github.io/apidocs/spot_v3_en/#new-order
227
229
  * @see https://mexcdevelop.github.io/apidocs/contract_v1_en/#order-under-maintenance
228
230
  * @see https://mexcdevelop.github.io/apidocs/contract_v1_en/#trigger-order-under-maintenance
package/js/src/mexc.js CHANGED
@@ -480,11 +480,6 @@ export default class mexc extends Exchange {
480
480
  'options': {
481
481
  'adjustForTimeDifference': false,
482
482
  'timeDifference': 0,
483
- 'unavailableContracts': {
484
- 'BTC/USDT:USDT': true,
485
- 'LTC/USDT:USDT': true,
486
- 'ETH/USDT:USDT': true,
487
- },
488
483
  'fetchMarkets': {
489
484
  'types': {
490
485
  'spot': true,
@@ -2306,6 +2301,7 @@ export default class mexc extends Exchange {
2306
2301
  * @name mexc#createOrder
2307
2302
  * @description create a trade order
2308
2303
  * @see https://mexcdevelop.github.io/apidocs/spot_v3_en/#new-order
2304
+ * @see https://www.mexc.com/api-docs/futures/account-and-trading-endpoints#place-order
2309
2305
  * @see https://mexcdevelop.github.io/apidocs/contract_v1_en/#order-under-maintenance
2310
2306
  * @see https://mexcdevelop.github.io/apidocs/contract_v1_en/#trigger-order-under-maintenance
2311
2307
  * @param {string} symbol unified symbol of the market to create an order in
@@ -2463,6 +2459,7 @@ export default class mexc extends Exchange {
2463
2459
  * @method
2464
2460
  * @name mexc#createSwapOrder
2465
2461
  * @description create a trade order
2462
+ * @see https://www.mexc.com/api-docs/futures/account-and-trading-endpoints#place-order
2466
2463
  * @see https://mexcdevelop.github.io/apidocs/spot_v3_en/#new-order
2467
2464
  * @see https://mexcdevelop.github.io/apidocs/contract_v1_en/#order-under-maintenance
2468
2465
  * @see https://mexcdevelop.github.io/apidocs/contract_v1_en/#trigger-order-under-maintenance
@@ -2488,11 +2485,6 @@ export default class mexc extends Exchange {
2488
2485
  async createSwapOrder(market, type, side, amount, price = undefined, marginMode = undefined, params = {}) {
2489
2486
  await this.loadMarkets();
2490
2487
  const symbol = market['symbol'];
2491
- const unavailableContracts = this.safeValue(this.options, 'unavailableContracts', {});
2492
- const isContractUnavaiable = this.safeBool(unavailableContracts, symbol, false);
2493
- if (isContractUnavaiable) {
2494
- throw new NotSupported(this.id + ' createSwapOrder() does not support yet this symbol:' + symbol);
2495
- }
2496
2488
  let openType = undefined;
2497
2489
  if (marginMode !== undefined) {
2498
2490
  if (marginMode === 'cross') {
@@ -2563,14 +2555,17 @@ export default class mexc extends Exchange {
2563
2555
  if (hedged) {
2564
2556
  if (reduceOnly) {
2565
2557
  params = this.omit(params, 'reduceOnly'); // hedged mode does not accept this parameter
2566
- side = (side === 'buy') ? 'sell' : 'buy';
2558
+ sideInteger = (side === 'buy') ? 4 : 2; // close short, close long
2559
+ }
2560
+ else {
2561
+ sideInteger = (side === 'buy') ? 1 : 3;
2567
2562
  }
2568
- sideInteger = (side === 'buy') ? 1 : 3;
2569
2563
  request['positionMode'] = 1;
2570
2564
  }
2571
2565
  else {
2572
2566
  if (reduceOnly) {
2573
2567
  sideInteger = (side === 'buy') ? 2 : 4;
2568
+ params = this.omit(params, 'reduceOnly');
2574
2569
  }
2575
2570
  else {
2576
2571
  sideInteger = (side === 'buy') ? 1 : 3;
package/js/src/paradex.js CHANGED
@@ -545,7 +545,9 @@ export default class paradex extends Exchange {
545
545
  // }
546
546
  //
547
547
  const assetKind = this.safeString(market, 'asset_kind');
548
- const isOption = (assetKind === 'PERP_OPTION');
548
+ const isOptionPerpetual = (assetKind === 'PERP_OPTION');
549
+ const isOptionDelivery = (assetKind === 'OPTION');
550
+ const isOption = isOptionPerpetual || isOptionDelivery;
549
551
  const type = (isOption) ? 'option' : 'swap';
550
552
  const isSwap = (type === 'swap');
551
553
  const marketId = this.safeString(market, 'symbol');
@@ -563,7 +565,8 @@ export default class paradex extends Exchange {
563
565
  let makerFee = this.parseNumber('-0.00005');
564
566
  if (isOption) {
565
567
  const optionTypeSuffix = (optionType === 'CALL') ? 'C' : 'P';
566
- symbol = symbol + '-' + strikePrice + '-' + optionTypeSuffix;
568
+ const deliveryValue = (expiry === 0) ? '' : this.yymmdd(expiry) + '-';
569
+ symbol = symbol + '-' + deliveryValue + strikePrice + '-' + optionTypeSuffix;
567
570
  makerFee = this.parseNumber('0.0003');
568
571
  }
569
572
  else {
@@ -250,7 +250,7 @@ export default class binance extends binanceRest {
250
250
  return baseUrl;
251
251
  }
252
252
  getFutureWsCategory(channel) {
253
- if (channel === 'depth' || channel === 'rpiDepth' || channel === 'bookTicker' || channel === 'trade' || channel === 'aggTrade') {
253
+ if (channel === 'depth' || channel === 'rpiDepth' || channel === 'bookTicker' || channel === 'trade') {
254
254
  return 'public';
255
255
  }
256
256
  return 'market';
package/js/src/pro/cex.js CHANGED
@@ -884,7 +884,7 @@ export default class cex extends cexRest {
884
884
  // {
885
885
  // "e": "open-orders",
886
886
  // "data": [{
887
- // "id": "59098421630",
887
+ // "id": "59098421631",
888
888
  // "time": "1664062285425",
889
889
  // "type": "buy",
890
890
  // "price": "18920",
@@ -692,7 +692,7 @@ export default class coinbase extends coinbaseRest {
692
692
  const currentEvent = events[i];
693
693
  const currentTrades = this.safeList(currentEvent, 'trades');
694
694
  for (let j = 0; j < currentTrades.length; j++) {
695
- const item = currentTrades[i];
695
+ const item = currentTrades[j];
696
696
  tradesArray.append(this.parseTrade(item));
697
697
  }
698
698
  }
@@ -1,4 +1,4 @@
1
- import type { Dict, Int, Liquidation, OrderBook, Str, Strings, Ticker, Tickers, Trade } from '../base/types.js';
1
+ import type { Balances, Dict, Int, Liquidation, Order, OrderBook, Str, Strings, Ticker, Tickers, Trade } from '../base/types.js';
2
2
  import Client from '../base/ws/Client.js';
3
3
  import lighterRest from '../lighter.js';
4
4
  export default class lighter extends lighterRest {
@@ -6,7 +6,8 @@ export default class lighter extends lighterRest {
6
6
  getMessageHash(unifiedChannel: string, symbol?: Str, extra?: Str): string;
7
7
  subscribePublic(messageHash: any, params?: {}): Promise<any>;
8
8
  subscribePublicMultiple(messageHashes: any, params?: {}): Promise<any>;
9
- unsubscribePublic(messageHash: any, params?: {}): Promise<any>;
9
+ unsubscribe(messageHash: any, params?: {}): Promise<any>;
10
+ subscribePrivate(messageHash: any, params?: {}): Promise<any>;
10
11
  handleDelta(bookside: any, delta: any): void;
11
12
  handleDeltas(bookside: any, deltas: any): void;
12
13
  handleOrderBookMessage(client: Client, message: any, orderbook: any): any;
@@ -138,6 +139,7 @@ export default class lighter extends lighterRest {
138
139
  * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
139
140
  */
140
141
  unWatchTrades(symbol: string, params?: {}): Promise<any>;
142
+ parseWsOrderTrade(trade: any, market?: any): Trade;
141
143
  handleMyTrades(client: Client, message: any): boolean;
142
144
  /**
143
145
  * @method
@@ -175,6 +177,39 @@ export default class lighter extends lighterRest {
175
177
  * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
176
178
  */
177
179
  watchLiquidations(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Liquidation[]>;
180
+ /**
181
+ * @method
182
+ * @name lighter#watchBalance
183
+ * @description watch balance and get the amount of funds available for trading or funds locked in orders
184
+ * @see https://apidocs.lighter.xyz/docs/websocket-reference#account-all-assets
185
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
186
+ * @param {string} [params.type] 'spot' or 'swap', default is 'swap'
187
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
188
+ */
189
+ watchBalance(params?: {}): Promise<Balances>;
190
+ handleBalance(client: Client, message: any): boolean;
191
+ /**
192
+ * @name lighter#watchOrders
193
+ * @description watches information on multiple orders made by the user
194
+ * @see https://apidocs.lighter.xyz/docs/websocket-reference#account-all-orders
195
+ * @param {string} symbol unified market symbol of the market orders were made in
196
+ * @param {int} [since] the earliest time in ms to fetch orders for
197
+ * @param {int} [limit] the maximum number of order structures to retrieve
198
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
199
+ * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
200
+ */
201
+ watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
202
+ /**
203
+ * @method
204
+ * @name lighter#unWatchOrders
205
+ * @description unWatches information on multiple orders made by the user
206
+ * @see https://apidocs.lighter.xyz/docs/websocket-reference#account-all-orders
207
+ * @param {string} symbol unified market symbol of the market orders were made in
208
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
209
+ * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
210
+ */
211
+ unWatchOrders(symbol?: Str, params?: {}): Promise<any>;
212
+ handleOrders(client: Client, message: any): boolean;
178
213
  handleErrorMessage(client: any, message: any): boolean;
179
214
  handleMessage(client: Client, message: any): void;
180
215
  handleSubscriptionStatus(client: Client, message: any): any;