ccxt 4.5.29 → 4.5.30

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 (63) hide show
  1. package/README.md +6 -5
  2. package/dist/ccxt.browser.min.js +7 -7
  3. package/dist/cjs/ccxt.js +6 -1
  4. package/dist/cjs/src/abstract/bydfi.js +11 -0
  5. package/dist/cjs/src/bingx.js +1 -1
  6. package/dist/cjs/src/bullish.js +1 -1
  7. package/dist/cjs/src/bybit.js +2 -0
  8. package/dist/cjs/src/bydfi.js +2907 -0
  9. package/dist/cjs/src/coinbase.js +34 -1
  10. package/dist/cjs/src/dydx.js +3 -3
  11. package/dist/cjs/src/gate.js +3 -2
  12. package/dist/cjs/src/hyperliquid.js +10 -3
  13. package/dist/cjs/src/kucoin.js +112 -4
  14. package/dist/cjs/src/pro/apex.js +5 -3
  15. package/dist/cjs/src/pro/binance.js +10 -6
  16. package/dist/cjs/src/pro/bingx.js +5 -3
  17. package/dist/cjs/src/pro/bitmart.js +5 -3
  18. package/dist/cjs/src/pro/bybit.js +5 -3
  19. package/dist/cjs/src/pro/bydfi.js +1077 -0
  20. package/dist/cjs/src/pro/cryptocom.js +5 -3
  21. package/dist/cjs/src/pro/gate.js +5 -3
  22. package/dist/cjs/src/pro/hashkey.js +5 -3
  23. package/dist/cjs/src/pro/kucoinfutures.js +5 -3
  24. package/dist/cjs/src/pro/modetrade.js +5 -3
  25. package/dist/cjs/src/pro/toobit.js +11 -7
  26. package/dist/cjs/src/pro/woo.js +5 -3
  27. package/dist/cjs/src/pro/woofipro.js +5 -3
  28. package/dist/cjs/src/pro/xt.js +5 -3
  29. package/dist/cjs/src/toobit.js +2 -1
  30. package/js/ccxt.d.ts +8 -2
  31. package/js/ccxt.js +6 -2
  32. package/js/src/abstract/bydfi.d.ts +52 -0
  33. package/js/src/abstract/bydfi.js +11 -0
  34. package/js/src/bingx.js +1 -1
  35. package/js/src/bullish.js +1 -1
  36. package/js/src/bybit.js +2 -0
  37. package/js/src/bydfi.d.ts +472 -0
  38. package/js/src/bydfi.js +2905 -0
  39. package/js/src/coinbase.d.ts +11 -0
  40. package/js/src/coinbase.js +34 -1
  41. package/js/src/dydx.js +3 -3
  42. package/js/src/gate.js +3 -2
  43. package/js/src/hyperliquid.js +10 -3
  44. package/js/src/kucoin.d.ts +14 -0
  45. package/js/src/kucoin.js +112 -4
  46. package/js/src/pro/apex.js +5 -3
  47. package/js/src/pro/binance.js +10 -6
  48. package/js/src/pro/bingx.js +5 -3
  49. package/js/src/pro/bitmart.js +5 -3
  50. package/js/src/pro/bybit.js +5 -3
  51. package/js/src/pro/bydfi.d.ts +206 -0
  52. package/js/src/pro/bydfi.js +1076 -0
  53. package/js/src/pro/cryptocom.js +5 -3
  54. package/js/src/pro/gate.js +5 -3
  55. package/js/src/pro/hashkey.js +5 -3
  56. package/js/src/pro/kucoinfutures.js +5 -3
  57. package/js/src/pro/modetrade.js +5 -3
  58. package/js/src/pro/toobit.js +11 -7
  59. package/js/src/pro/woo.js +5 -3
  60. package/js/src/pro/woofipro.js +5 -3
  61. package/js/src/pro/xt.js +5 -3
  62. package/js/src/toobit.js +2 -1
  63. package/package.json +1 -1
@@ -905,9 +905,11 @@ class cryptocom extends cryptocom$1["default"] {
905
905
  }
906
906
  }
907
907
  // don't remove the future from the .futures cache
908
- const future = client.futures[messageHash];
909
- future.resolve(cache);
910
- client.resolve(cache, 'positions');
908
+ if (messageHash in client.futures) {
909
+ const future = client.futures[messageHash];
910
+ future.resolve(cache);
911
+ client.resolve(cache, 'positions');
912
+ }
911
913
  }
912
914
  handlePositions(client, message) {
913
915
  //
@@ -1204,9 +1204,11 @@ class gate extends gate$1["default"] {
1204
1204
  }
1205
1205
  }
1206
1206
  // don't remove the future from the .futures cache
1207
- const future = client.futures[messageHash];
1208
- future.resolve(cache);
1209
- client.resolve(cache, type + ':position');
1207
+ if (messageHash in client.futures) {
1208
+ const future = client.futures[messageHash];
1209
+ future.resolve(cache);
1210
+ client.resolve(cache, type + ':position');
1211
+ }
1210
1212
  }
1211
1213
  handlePositions(client, message) {
1212
1214
  //
@@ -730,9 +730,11 @@ class hashkey extends hashkey$1["default"] {
730
730
  const response = await this.fetchBalance({ 'type': type });
731
731
  this.balance[type] = this.extend(response, this.safeValue(this.balance, type, {}));
732
732
  // don't remove the future from the .futures cache
733
- const future = client.futures[messageHash];
734
- future.resolve();
735
- client.resolve(this.balance[type], 'balance:' + type);
733
+ if (messageHash in client.futures) {
734
+ const future = client.futures[messageHash];
735
+ future.resolve();
736
+ client.resolve(this.balance[type], 'balance:' + type);
737
+ }
736
738
  }
737
739
  handleBalance(client, message) {
738
740
  //
@@ -409,9 +409,11 @@ class kucoinfutures extends kucoinfutures$1["default"] {
409
409
  const cache = this.positions;
410
410
  cache.append(position);
411
411
  // don't remove the future from the .futures cache
412
- const future = client.futures[messageHash];
413
- future.resolve(cache);
414
- client.resolve(position, 'position:' + symbol);
412
+ if (messageHash in client.futures) {
413
+ const future = client.futures[messageHash];
414
+ future.resolve(cache);
415
+ client.resolve(position, 'position:' + symbol);
416
+ }
415
417
  }
416
418
  handlePosition(client, message) {
417
419
  //
@@ -1023,9 +1023,11 @@ class modetrade extends modetrade$1["default"] {
1023
1023
  }
1024
1024
  }
1025
1025
  // don't remove the future from the .futures cache
1026
- const future = client.futures[messageHash];
1027
- future.resolve(cache);
1028
- client.resolve(cache, 'positions');
1026
+ if (messageHash in client.futures) {
1027
+ const future = client.futures[messageHash];
1028
+ future.resolve(cache);
1029
+ client.resolve(cache, 'positions');
1030
+ }
1029
1031
  }
1030
1032
  handlePositions(client, message) {
1031
1033
  //
@@ -727,10 +727,12 @@ class toobit extends toobit$1["default"] {
727
727
  const type = (marketType === 'spot') ? 'spot' : 'contract';
728
728
  this.balance[type] = this.extend(response, this.safeDict(this.balance, type, {}));
729
729
  // don't remove the future from the .futures cache
730
- const future = client.futures[messageHash];
731
- future.resolve();
732
- client.resolve(this.balance[type], type + ':fetchBalanceSnapshot');
733
- client.resolve(this.balance[type], type + ':balance'); // we should also resolve right away after snapshot, so user doesn't double-fetch balance
730
+ if (messageHash in client.futures) {
731
+ const future = client.futures[messageHash];
732
+ future.resolve();
733
+ client.resolve(this.balance[type], type + ':fetchBalanceSnapshot');
734
+ client.resolve(this.balance[type], type + ':balance'); // we should also resolve right away after snapshot, so user doesn't double-fetch balance
735
+ }
734
736
  }
735
737
  /**
736
738
  * @method
@@ -990,9 +992,11 @@ class toobit extends toobit$1["default"] {
990
992
  cache.append(position);
991
993
  }
992
994
  // don't remove the future from the .futures cache
993
- const future = client.futures[messageHash];
994
- future.resolve(cache);
995
- client.resolve(cache, type + ':positions');
995
+ if (messageHash in client.futures) {
996
+ const future = client.futures[messageHash];
997
+ future.resolve(cache);
998
+ client.resolve(cache, type + ':positions');
999
+ }
996
1000
  }
997
1001
  handlePositions(client, message) {
998
1002
  //
@@ -1268,9 +1268,11 @@ class woo extends woo$1["default"] {
1268
1268
  }
1269
1269
  }
1270
1270
  // don't remove the future from the .futures cache
1271
- const future = client.futures[messageHash];
1272
- future.resolve(cache);
1273
- client.resolve(cache, 'positions');
1271
+ if (messageHash in client.futures) {
1272
+ const future = client.futures[messageHash];
1273
+ future.resolve(cache);
1274
+ client.resolve(cache, 'positions');
1275
+ }
1274
1276
  }
1275
1277
  handlePositions(client, message) {
1276
1278
  //
@@ -1023,9 +1023,11 @@ class woofipro extends woofipro$1["default"] {
1023
1023
  }
1024
1024
  }
1025
1025
  // don't remove the future from the .futures cache
1026
- const future = client.futures[messageHash];
1027
- future.resolve(cache);
1028
- client.resolve(cache, 'positions');
1026
+ if (messageHash in client.futures) {
1027
+ const future = client.futures[messageHash];
1028
+ future.resolve(cache);
1029
+ client.resolve(cache, 'positions');
1030
+ }
1029
1031
  }
1030
1032
  handlePositions(client, message) {
1031
1033
  //
@@ -614,9 +614,11 @@ class xt extends xt$1["default"] {
614
614
  }
615
615
  }
616
616
  // don't remove the future from the .futures cache
617
- const future = client.futures[messageHash];
618
- future.resolve(cache);
619
- client.resolve(cache, 'position::contract');
617
+ if (messageHash in client.futures) {
618
+ const future = client.futures[messageHash];
619
+ future.resolve(cache);
620
+ client.resolve(cache, 'position::contract');
621
+ }
620
622
  }
621
623
  handlePosition(client, message) {
622
624
  //
@@ -2731,7 +2731,8 @@ class toobit extends toobit$1["default"] {
2731
2731
  'coin': currency['id'],
2732
2732
  'address': address,
2733
2733
  'quantity': this.currencyToPrecision(currency['code'], amount),
2734
- 'network': networkCode,
2734
+ 'chainType': networkCode,
2735
+ 'clientOrderId': this.milliseconds(),
2735
2736
  };
2736
2737
  if (tag !== undefined) {
2737
2738
  request['addressExt'] = tag;
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 } 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.28";
7
+ declare const version = "4.5.29";
8
8
  import alpaca from './src/alpaca.js';
9
9
  import apex from './src/apex.js';
10
10
  import arkham from './src/arkham.js';
@@ -41,6 +41,7 @@ import btcmarkets from './src/btcmarkets.js';
41
41
  import btcturk from './src/btcturk.js';
42
42
  import bullish from './src/bullish.js';
43
43
  import bybit from './src/bybit.js';
44
+ import bydfi from './src/bydfi.js';
44
45
  import cex from './src/cex.js';
45
46
  import coinbase from './src/coinbase.js';
46
47
  import coinbaseadvanced from './src/coinbaseadvanced.js';
@@ -140,6 +141,7 @@ import blockchaincomPro from './src/pro/blockchaincom.js';
140
141
  import blofinPro from './src/pro/blofin.js';
141
142
  import bullishPro from './src/pro/bullish.js';
142
143
  import bybitPro from './src/pro/bybit.js';
144
+ import bydfiPro from './src/pro/bydfi.js';
143
145
  import cexPro from './src/pro/cex.js';
144
146
  import coinbasePro from './src/pro/coinbase.js';
145
147
  import coinbaseadvancedPro from './src/pro/coinbaseadvanced.js';
@@ -228,6 +230,7 @@ declare const exchanges: {
228
230
  btcturk: typeof btcturk;
229
231
  bullish: typeof bullish;
230
232
  bybit: typeof bybit;
233
+ bydfi: typeof bydfi;
231
234
  cex: typeof cex;
232
235
  coinbase: typeof coinbase;
233
236
  coinbaseadvanced: typeof coinbaseadvanced;
@@ -329,6 +332,7 @@ declare const pro: {
329
332
  blofin: typeof blofinPro;
330
333
  bullish: typeof bullishPro;
331
334
  bybit: typeof bybitPro;
335
+ bydfi: typeof bydfiPro;
332
336
  cex: typeof cexPro;
333
337
  coinbase: typeof coinbasePro;
334
338
  coinbaseadvanced: typeof coinbaseadvancedPro;
@@ -412,6 +416,7 @@ declare const ccxt: {
412
416
  blofin: typeof blofinPro;
413
417
  bullish: typeof bullishPro;
414
418
  bybit: typeof bybitPro;
419
+ bydfi: typeof bydfiPro;
415
420
  cex: typeof cexPro;
416
421
  coinbase: typeof coinbasePro;
417
422
  coinbaseadvanced: typeof coinbaseadvancedPro;
@@ -501,6 +506,7 @@ declare const ccxt: {
501
506
  btcturk: typeof btcturk;
502
507
  bullish: typeof bullish;
503
508
  bybit: typeof bybit;
509
+ bydfi: typeof bydfi;
504
510
  cex: typeof cex;
505
511
  coinbase: typeof coinbase;
506
512
  coinbaseadvanced: typeof coinbaseadvanced;
@@ -576,5 +582,5 @@ declare const ccxt: {
576
582
  zebpay: typeof zebpay;
577
583
  zonda: typeof zonda;
578
584
  } & typeof functions & typeof errors;
579
- 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, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers, alpaca, apex, arkham, ascendex, 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, btcalpha, btcbox, btcmarkets, btcturk, bullish, bybit, 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, oceanex, okx, okxus, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, probit, timex, tokocrypto, toobit, upbit, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zebpay, zonda, };
585
+ 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, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers, alpaca, apex, arkham, ascendex, 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, btcalpha, 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, oceanex, okx, okxus, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, probit, timex, tokocrypto, toobit, upbit, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zebpay, zonda, };
580
586
  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.28';
41
+ const version = '4.5.29';
42
42
  Exchange.ccxtVersion = version;
43
43
  //-----------------------------------------------------------------------------
44
44
  import alpaca from './src/alpaca.js';
@@ -77,6 +77,7 @@ import btcmarkets from './src/btcmarkets.js';
77
77
  import btcturk from './src/btcturk.js';
78
78
  import bullish from './src/bullish.js';
79
79
  import bybit from './src/bybit.js';
80
+ import bydfi from './src/bydfi.js';
80
81
  import cex from './src/cex.js';
81
82
  import coinbase from './src/coinbase.js';
82
83
  import coinbaseadvanced from './src/coinbaseadvanced.js';
@@ -177,6 +178,7 @@ import blockchaincomPro from './src/pro/blockchaincom.js';
177
178
  import blofinPro from './src/pro/blofin.js';
178
179
  import bullishPro from './src/pro/bullish.js';
179
180
  import bybitPro from './src/pro/bybit.js';
181
+ import bydfiPro from './src/pro/bydfi.js';
180
182
  import cexPro from './src/pro/cex.js';
181
183
  import coinbasePro from './src/pro/coinbase.js';
182
184
  import coinbaseadvancedPro from './src/pro/coinbaseadvanced.js';
@@ -265,6 +267,7 @@ const exchanges = {
265
267
  'btcturk': btcturk,
266
268
  'bullish': bullish,
267
269
  'bybit': bybit,
270
+ 'bydfi': bydfi,
268
271
  'cex': cex,
269
272
  'coinbase': coinbase,
270
273
  'coinbaseadvanced': coinbaseadvanced,
@@ -366,6 +369,7 @@ const pro = {
366
369
  'blofin': blofinPro,
367
370
  'bullish': bullishPro,
368
371
  'bybit': bybitPro,
372
+ 'bydfi': bydfiPro,
369
373
  'cex': cexPro,
370
374
  'coinbase': coinbasePro,
371
375
  'coinbaseadvanced': coinbaseadvancedPro,
@@ -430,6 +434,6 @@ pro.exchanges = Object.keys(pro);
430
434
  pro['Exchange'] = Exchange; // now the same for rest and ts
431
435
  //-----------------------------------------------------------------------------
432
436
  const ccxt = Object.assign({ version, Exchange, Precise, 'exchanges': Object.keys(exchanges), 'pro': pro }, exchanges, functions, errors);
433
- 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, alpaca, apex, arkham, ascendex, 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, btcalpha, btcbox, btcmarkets, btcturk, bullish, bybit, 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, oceanex, okx, okxus, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, probit, timex, tokocrypto, toobit, upbit, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zebpay, zonda, };
437
+ 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, alpaca, apex, arkham, ascendex, 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, btcalpha, 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, oceanex, okx, okxus, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, probit, timex, tokocrypto, toobit, upbit, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zebpay, zonda, };
434
438
  export default ccxt;
435
439
  //-----------------------------------------------------------------------------
@@ -0,0 +1,52 @@
1
+ import { implicitReturnType } from '../base/types.js';
2
+ import { Exchange as _Exchange } from '../base/Exchange.js';
3
+ interface Exchange {
4
+ publicGetV1PublicApiLimits(params?: {}): Promise<implicitReturnType>;
5
+ publicGetV1SwapMarketExchangeInfo(params?: {}): Promise<implicitReturnType>;
6
+ publicGetV1SwapMarketDepth(params?: {}): Promise<implicitReturnType>;
7
+ publicGetV1SwapMarketTrades(params?: {}): Promise<implicitReturnType>;
8
+ publicGetV1SwapMarketKlines(params?: {}): Promise<implicitReturnType>;
9
+ publicGetV1SwapMarketTicker24hr(params?: {}): Promise<implicitReturnType>;
10
+ publicGetV1SwapMarketTickerPrice(params?: {}): Promise<implicitReturnType>;
11
+ publicGetV1SwapMarketMarkPrice(params?: {}): Promise<implicitReturnType>;
12
+ publicGetV1SwapMarketFundingRate(params?: {}): Promise<implicitReturnType>;
13
+ publicGetV1SwapMarketFundingRateHistory(params?: {}): Promise<implicitReturnType>;
14
+ publicGetV1SwapMarketRiskLimit(params?: {}): Promise<implicitReturnType>;
15
+ privateGetV1AccountAssets(params?: {}): Promise<implicitReturnType>;
16
+ privateGetV1AccountTransferRecords(params?: {}): Promise<implicitReturnType>;
17
+ privateGetV1SpotDepositRecords(params?: {}): Promise<implicitReturnType>;
18
+ privateGetV1SpotWithdrawRecords(params?: {}): Promise<implicitReturnType>;
19
+ privateGetV1SwapTradeOpenOrder(params?: {}): Promise<implicitReturnType>;
20
+ privateGetV1SwapTradePlanOrder(params?: {}): Promise<implicitReturnType>;
21
+ privateGetV1SwapTradeLeverage(params?: {}): Promise<implicitReturnType>;
22
+ privateGetV1SwapTradeHistoryOrder(params?: {}): Promise<implicitReturnType>;
23
+ privateGetV1SwapTradeHistoryTrade(params?: {}): Promise<implicitReturnType>;
24
+ privateGetV1SwapTradePositionHistory(params?: {}): Promise<implicitReturnType>;
25
+ privateGetV1SwapTradePositions(params?: {}): Promise<implicitReturnType>;
26
+ privateGetV1SwapAccountBalance(params?: {}): Promise<implicitReturnType>;
27
+ privateGetV1SwapUserDataAssetsMargin(params?: {}): Promise<implicitReturnType>;
28
+ privateGetV1SwapUserDataPositionSideDual(params?: {}): Promise<implicitReturnType>;
29
+ privateGetV1AgentTeams(params?: {}): Promise<implicitReturnType>;
30
+ privateGetV1AgentAgentLinks(params?: {}): Promise<implicitReturnType>;
31
+ privateGetV1AgentRegularOverview(params?: {}): Promise<implicitReturnType>;
32
+ privateGetV1AgentAgentSubOverview(params?: {}): Promise<implicitReturnType>;
33
+ privateGetV1AgentPartenerUserDeposit(params?: {}): Promise<implicitReturnType>;
34
+ privateGetV1AgentPartenerUsersData(params?: {}): Promise<implicitReturnType>;
35
+ privateGetV1AgentAffiliateUids(params?: {}): Promise<implicitReturnType>;
36
+ privateGetV1AgentAffiliateCommission(params?: {}): Promise<implicitReturnType>;
37
+ privateGetV1AgentInternalWithdrawalStatus(params?: {}): Promise<implicitReturnType>;
38
+ privatePostV1AccountTransfer(params?: {}): Promise<implicitReturnType>;
39
+ privatePostV1SwapTradePlaceOrder(params?: {}): Promise<implicitReturnType>;
40
+ privatePostV1SwapTradeBatchPlaceOrder(params?: {}): Promise<implicitReturnType>;
41
+ privatePostV1SwapTradeEditOrder(params?: {}): Promise<implicitReturnType>;
42
+ privatePostV1SwapTradeBatchEditOrder(params?: {}): Promise<implicitReturnType>;
43
+ privatePostV1SwapTradeCancelAllOrder(params?: {}): Promise<implicitReturnType>;
44
+ privatePostV1SwapTradeLeverage(params?: {}): Promise<implicitReturnType>;
45
+ privatePostV1SwapTradeBatchLeverageMargin(params?: {}): Promise<implicitReturnType>;
46
+ privatePostV1SwapUserDataMarginType(params?: {}): Promise<implicitReturnType>;
47
+ privatePostV1SwapUserDataPositionSideDual(params?: {}): Promise<implicitReturnType>;
48
+ privatePostV1AgentInternalWithdrawal(params?: {}): Promise<implicitReturnType>;
49
+ }
50
+ declare abstract class Exchange extends _Exchange {
51
+ }
52
+ 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/bingx.js CHANGED
@@ -5443,7 +5443,7 @@ export default class bingx extends Exchange {
5443
5443
  '3': 'rejected',
5444
5444
  '4': 'pending',
5445
5445
  '5': 'rejected',
5446
- '6': 'pending',
5446
+ '6': 'ok',
5447
5447
  };
5448
5448
  return this.safeString(statuses, status, status);
5449
5449
  }
package/js/src/bullish.js CHANGED
@@ -1491,7 +1491,7 @@ export default class bullish extends Exchange {
1491
1491
  // [
1492
1492
  // {
1493
1493
  // "clientOrderId": "187",
1494
- // "orderId": "297735387747975680",
1494
+ // "orderId": "297735387747975681",
1495
1495
  // "symbol": "BTCUSDC",
1496
1496
  // "price": "1.00000000",
1497
1497
  // "averageFillPrice": "1.00000000",
package/js/src/bybit.js CHANGED
@@ -902,6 +902,8 @@ export default class bybit extends Exchange {
902
902
  '170229': InvalidOrder,
903
903
  '170234': ExchangeError,
904
904
  '170241': ManualInteractionNeeded,
905
+ '170371': InvalidOrder,
906
+ '170372': InvalidOrder,
905
907
  '175000': InvalidOrder,
906
908
  '175001': InvalidOrder,
907
909
  '175002': InvalidOrder,