ccxt 4.5.26 → 4.5.28

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 (60) hide show
  1. package/README.md +6 -5
  2. package/dist/ccxt.browser.min.js +3 -3
  3. package/dist/cjs/ccxt.js +4 -1
  4. package/dist/cjs/src/abstract/zebpay.js +11 -0
  5. package/dist/cjs/src/base/Exchange.js +2 -2
  6. package/dist/cjs/src/binance.js +18 -7
  7. package/dist/cjs/src/bingx.js +5 -5
  8. package/dist/cjs/src/bitget.js +18 -17
  9. package/dist/cjs/src/bitmex.js +5 -1
  10. package/dist/cjs/src/blofin.js +5 -5
  11. package/dist/cjs/src/bybit.js +58 -29
  12. package/dist/cjs/src/coincatch.js +9 -9
  13. package/dist/cjs/src/coinex.js +93 -0
  14. package/dist/cjs/src/coinmate.js +20 -0
  15. package/dist/cjs/src/coinsph.js +23 -0
  16. package/dist/cjs/src/cryptocom.js +7 -0
  17. package/dist/cjs/src/gate.js +2 -0
  18. package/dist/cjs/src/hyperliquid.js +12 -15
  19. package/dist/cjs/src/pro/binance.js +1 -1
  20. package/dist/cjs/src/pro/bybit.js +1 -1
  21. package/dist/cjs/src/whitebit.js +4 -2
  22. package/dist/cjs/src/zebpay.js +1908 -0
  23. package/js/ccxt.d.ts +5 -2
  24. package/js/ccxt.js +4 -2
  25. package/js/src/abstract/binance.d.ts +3 -1
  26. package/js/src/abstract/binancecoinm.d.ts +3 -1
  27. package/js/src/abstract/binanceus.d.ts +3 -1
  28. package/js/src/abstract/binanceusdm.d.ts +3 -1
  29. package/js/src/abstract/coinex.d.ts +16 -0
  30. package/js/src/abstract/coinmate.d.ts +3 -0
  31. package/js/src/abstract/coinsph.d.ts +21 -0
  32. package/js/src/abstract/cryptocom.d.ts +7 -0
  33. package/js/src/abstract/gate.d.ts +2 -0
  34. package/js/src/abstract/gateio.d.ts +2 -0
  35. package/js/src/abstract/zebpay.d.ts +49 -0
  36. package/js/src/abstract/zebpay.js +11 -0
  37. package/js/src/base/Exchange.js +2 -2
  38. package/js/src/binance.d.ts +1 -0
  39. package/js/src/binance.js +18 -7
  40. package/js/src/bingx.js +5 -5
  41. package/js/src/bitget.js +19 -18
  42. package/js/src/bitmex.js +5 -1
  43. package/js/src/blofin.js +5 -5
  44. package/js/src/bybit.d.ts +3 -0
  45. package/js/src/bybit.js +58 -29
  46. package/js/src/coincatch.js +9 -9
  47. package/js/src/coinex.d.ts +11 -0
  48. package/js/src/coinex.js +93 -0
  49. package/js/src/coinmate.d.ts +9 -0
  50. package/js/src/coinmate.js +20 -0
  51. package/js/src/coinsph.js +23 -0
  52. package/js/src/cryptocom.js +7 -0
  53. package/js/src/gate.js +2 -0
  54. package/js/src/hyperliquid.js +12 -15
  55. package/js/src/pro/binance.js +1 -1
  56. package/js/src/pro/bybit.js +1 -1
  57. package/js/src/whitebit.js +4 -2
  58. package/js/src/zebpay.d.ts +361 -0
  59. package/js/src/zebpay.js +1907 -0
  60. 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 } 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.25";
7
+ declare const version = "4.5.27";
8
8
  import alpaca from './src/alpaca.js';
9
9
  import apex from './src/apex.js';
10
10
  import arkham from './src/arkham.js';
@@ -113,6 +113,7 @@ import woofipro from './src/woofipro.js';
113
113
  import xt from './src/xt.js';
114
114
  import yobit from './src/yobit.js';
115
115
  import zaif from './src/zaif.js';
116
+ import zebpay from './src/zebpay.js';
116
117
  import zonda from './src/zonda.js';
117
118
  import alpacaPro from './src/pro/alpaca.js';
118
119
  import apexPro from './src/pro/apex.js';
@@ -299,6 +300,7 @@ declare const exchanges: {
299
300
  xt: typeof xt;
300
301
  yobit: typeof yobit;
301
302
  zaif: typeof zaif;
303
+ zebpay: typeof zebpay;
302
304
  zonda: typeof zonda;
303
305
  };
304
306
  declare const pro: {
@@ -571,7 +573,8 @@ declare const ccxt: {
571
573
  xt: typeof xt;
572
574
  yobit: typeof yobit;
573
575
  zaif: typeof zaif;
576
+ zebpay: typeof zebpay;
574
577
  zonda: typeof zonda;
575
578
  } & typeof functions & typeof errors;
576
- 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, zonda, };
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, };
577
580
  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.25';
41
+ const version = '4.5.27';
42
42
  Exchange.ccxtVersion = version;
43
43
  //-----------------------------------------------------------------------------
44
44
  import alpaca from './src/alpaca.js';
@@ -149,6 +149,7 @@ import woofipro from './src/woofipro.js';
149
149
  import xt from './src/xt.js';
150
150
  import yobit from './src/yobit.js';
151
151
  import zaif from './src/zaif.js';
152
+ import zebpay from './src/zebpay.js';
152
153
  import zonda from './src/zonda.js';
153
154
  // pro exchanges
154
155
  import alpacaPro from './src/pro/alpaca.js';
@@ -336,6 +337,7 @@ const exchanges = {
336
337
  'xt': xt,
337
338
  'yobit': yobit,
338
339
  'zaif': zaif,
340
+ 'zebpay': zebpay,
339
341
  'zonda': zonda,
340
342
  };
341
343
  const pro = {
@@ -428,6 +430,6 @@ pro.exchanges = Object.keys(pro);
428
430
  pro['Exchange'] = Exchange; // now the same for rest and ts
429
431
  //-----------------------------------------------------------------------------
430
432
  const ccxt = Object.assign({ version, Exchange, Precise, 'exchanges': Object.keys(exchanges), 'pro': pro }, exchanges, functions, errors);
431
- 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, zonda, };
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, };
432
434
  export default ccxt;
433
435
  //-----------------------------------------------------------------------------
@@ -505,6 +505,8 @@ interface Exchange {
505
505
  fapiPublicGetLvtKlines(params?: {}): Promise<implicitReturnType>;
506
506
  fapiPublicGetConvertExchangeInfo(params?: {}): Promise<implicitReturnType>;
507
507
  fapiPublicGetInsuranceBalance(params?: {}): Promise<implicitReturnType>;
508
+ fapiPublicGetSymbolAdlRisk(params?: {}): Promise<implicitReturnType>;
509
+ fapiPublicGetTradingSchedule(params?: {}): Promise<implicitReturnType>;
508
510
  fapiDataGetDeliveryPrice(params?: {}): Promise<implicitReturnType>;
509
511
  fapiDataGetOpenInterestHist(params?: {}): Promise<implicitReturnType>;
510
512
  fapiDataGetTopLongShortAccountRatio(params?: {}): Promise<implicitReturnType>;
@@ -528,7 +530,6 @@ interface Exchange {
528
530
  fapiPrivateGetCommissionRate(params?: {}): Promise<implicitReturnType>;
529
531
  fapiPrivateGetRateLimitOrder(params?: {}): Promise<implicitReturnType>;
530
532
  fapiPrivateGetApiTradingStatus(params?: {}): Promise<implicitReturnType>;
531
- fapiPrivateGetSymbolAdlRisk(params?: {}): Promise<implicitReturnType>;
532
533
  fapiPrivateGetMultiAssetsMargin(params?: {}): Promise<implicitReturnType>;
533
534
  fapiPrivateGetApiReferralIfNewUser(params?: {}): Promise<implicitReturnType>;
534
535
  fapiPrivateGetApiReferralCustomization(params?: {}): Promise<implicitReturnType>;
@@ -554,6 +555,7 @@ interface Exchange {
554
555
  fapiPrivateGetAlgoOrder(params?: {}): Promise<implicitReturnType>;
555
556
  fapiPrivateGetOpenAlgoOrders(params?: {}): Promise<implicitReturnType>;
556
557
  fapiPrivateGetAllAlgoOrders(params?: {}): Promise<implicitReturnType>;
558
+ fapiPrivateGetStockContract(params?: {}): Promise<implicitReturnType>;
557
559
  fapiPrivatePostBatchOrders(params?: {}): Promise<implicitReturnType>;
558
560
  fapiPrivatePostPositionSideDual(params?: {}): Promise<implicitReturnType>;
559
561
  fapiPrivatePostPositionMargin(params?: {}): Promise<implicitReturnType>;
@@ -505,6 +505,8 @@ interface binance {
505
505
  fapiPublicGetLvtKlines(params?: {}): Promise<implicitReturnType>;
506
506
  fapiPublicGetConvertExchangeInfo(params?: {}): Promise<implicitReturnType>;
507
507
  fapiPublicGetInsuranceBalance(params?: {}): Promise<implicitReturnType>;
508
+ fapiPublicGetSymbolAdlRisk(params?: {}): Promise<implicitReturnType>;
509
+ fapiPublicGetTradingSchedule(params?: {}): Promise<implicitReturnType>;
508
510
  fapiDataGetDeliveryPrice(params?: {}): Promise<implicitReturnType>;
509
511
  fapiDataGetOpenInterestHist(params?: {}): Promise<implicitReturnType>;
510
512
  fapiDataGetTopLongShortAccountRatio(params?: {}): Promise<implicitReturnType>;
@@ -528,7 +530,6 @@ interface binance {
528
530
  fapiPrivateGetCommissionRate(params?: {}): Promise<implicitReturnType>;
529
531
  fapiPrivateGetRateLimitOrder(params?: {}): Promise<implicitReturnType>;
530
532
  fapiPrivateGetApiTradingStatus(params?: {}): Promise<implicitReturnType>;
531
- fapiPrivateGetSymbolAdlRisk(params?: {}): Promise<implicitReturnType>;
532
533
  fapiPrivateGetMultiAssetsMargin(params?: {}): Promise<implicitReturnType>;
533
534
  fapiPrivateGetApiReferralIfNewUser(params?: {}): Promise<implicitReturnType>;
534
535
  fapiPrivateGetApiReferralCustomization(params?: {}): Promise<implicitReturnType>;
@@ -554,6 +555,7 @@ interface binance {
554
555
  fapiPrivateGetAlgoOrder(params?: {}): Promise<implicitReturnType>;
555
556
  fapiPrivateGetOpenAlgoOrders(params?: {}): Promise<implicitReturnType>;
556
557
  fapiPrivateGetAllAlgoOrders(params?: {}): Promise<implicitReturnType>;
558
+ fapiPrivateGetStockContract(params?: {}): Promise<implicitReturnType>;
557
559
  fapiPrivatePostBatchOrders(params?: {}): Promise<implicitReturnType>;
558
560
  fapiPrivatePostPositionSideDual(params?: {}): Promise<implicitReturnType>;
559
561
  fapiPrivatePostPositionMargin(params?: {}): Promise<implicitReturnType>;
@@ -557,6 +557,8 @@ interface binance {
557
557
  fapiPublicGetLvtKlines(params?: {}): Promise<implicitReturnType>;
558
558
  fapiPublicGetConvertExchangeInfo(params?: {}): Promise<implicitReturnType>;
559
559
  fapiPublicGetInsuranceBalance(params?: {}): Promise<implicitReturnType>;
560
+ fapiPublicGetSymbolAdlRisk(params?: {}): Promise<implicitReturnType>;
561
+ fapiPublicGetTradingSchedule(params?: {}): Promise<implicitReturnType>;
560
562
  fapiDataGetDeliveryPrice(params?: {}): Promise<implicitReturnType>;
561
563
  fapiDataGetOpenInterestHist(params?: {}): Promise<implicitReturnType>;
562
564
  fapiDataGetTopLongShortAccountRatio(params?: {}): Promise<implicitReturnType>;
@@ -580,7 +582,6 @@ interface binance {
580
582
  fapiPrivateGetCommissionRate(params?: {}): Promise<implicitReturnType>;
581
583
  fapiPrivateGetRateLimitOrder(params?: {}): Promise<implicitReturnType>;
582
584
  fapiPrivateGetApiTradingStatus(params?: {}): Promise<implicitReturnType>;
583
- fapiPrivateGetSymbolAdlRisk(params?: {}): Promise<implicitReturnType>;
584
585
  fapiPrivateGetMultiAssetsMargin(params?: {}): Promise<implicitReturnType>;
585
586
  fapiPrivateGetApiReferralIfNewUser(params?: {}): Promise<implicitReturnType>;
586
587
  fapiPrivateGetApiReferralCustomization(params?: {}): Promise<implicitReturnType>;
@@ -606,6 +607,7 @@ interface binance {
606
607
  fapiPrivateGetAlgoOrder(params?: {}): Promise<implicitReturnType>;
607
608
  fapiPrivateGetOpenAlgoOrders(params?: {}): Promise<implicitReturnType>;
608
609
  fapiPrivateGetAllAlgoOrders(params?: {}): Promise<implicitReturnType>;
610
+ fapiPrivateGetStockContract(params?: {}): Promise<implicitReturnType>;
609
611
  fapiPrivatePostBatchOrders(params?: {}): Promise<implicitReturnType>;
610
612
  fapiPrivatePostPositionSideDual(params?: {}): Promise<implicitReturnType>;
611
613
  fapiPrivatePostPositionMargin(params?: {}): Promise<implicitReturnType>;
@@ -505,6 +505,8 @@ interface binance {
505
505
  fapiPublicGetLvtKlines(params?: {}): Promise<implicitReturnType>;
506
506
  fapiPublicGetConvertExchangeInfo(params?: {}): Promise<implicitReturnType>;
507
507
  fapiPublicGetInsuranceBalance(params?: {}): Promise<implicitReturnType>;
508
+ fapiPublicGetSymbolAdlRisk(params?: {}): Promise<implicitReturnType>;
509
+ fapiPublicGetTradingSchedule(params?: {}): Promise<implicitReturnType>;
508
510
  fapiDataGetDeliveryPrice(params?: {}): Promise<implicitReturnType>;
509
511
  fapiDataGetOpenInterestHist(params?: {}): Promise<implicitReturnType>;
510
512
  fapiDataGetTopLongShortAccountRatio(params?: {}): Promise<implicitReturnType>;
@@ -528,7 +530,6 @@ interface binance {
528
530
  fapiPrivateGetCommissionRate(params?: {}): Promise<implicitReturnType>;
529
531
  fapiPrivateGetRateLimitOrder(params?: {}): Promise<implicitReturnType>;
530
532
  fapiPrivateGetApiTradingStatus(params?: {}): Promise<implicitReturnType>;
531
- fapiPrivateGetSymbolAdlRisk(params?: {}): Promise<implicitReturnType>;
532
533
  fapiPrivateGetMultiAssetsMargin(params?: {}): Promise<implicitReturnType>;
533
534
  fapiPrivateGetApiReferralIfNewUser(params?: {}): Promise<implicitReturnType>;
534
535
  fapiPrivateGetApiReferralCustomization(params?: {}): Promise<implicitReturnType>;
@@ -554,6 +555,7 @@ interface binance {
554
555
  fapiPrivateGetAlgoOrder(params?: {}): Promise<implicitReturnType>;
555
556
  fapiPrivateGetOpenAlgoOrders(params?: {}): Promise<implicitReturnType>;
556
557
  fapiPrivateGetAllAlgoOrders(params?: {}): Promise<implicitReturnType>;
558
+ fapiPrivateGetStockContract(params?: {}): Promise<implicitReturnType>;
557
559
  fapiPrivatePostBatchOrders(params?: {}): Promise<implicitReturnType>;
558
560
  fapiPrivatePostPositionSideDual(params?: {}): Promise<implicitReturnType>;
559
561
  fapiPrivatePostPositionMargin(params?: {}): Promise<implicitReturnType>;
@@ -141,6 +141,7 @@ interface Exchange {
141
141
  v2PublicGetFuturesIndex(params?: {}): Promise<implicitReturnType>;
142
142
  v2PublicGetFuturesFundingRate(params?: {}): Promise<implicitReturnType>;
143
143
  v2PublicGetFuturesFundingRateHistory(params?: {}): Promise<implicitReturnType>;
144
+ v2PublicGetFuturesPremiumIndexHistory(params?: {}): Promise<implicitReturnType>;
144
145
  v2PublicGetFuturesPositionLevel(params?: {}): Promise<implicitReturnType>;
145
146
  v2PublicGetFuturesLiquidationHistory(params?: {}): Promise<implicitReturnType>;
146
147
  v2PublicGetFuturesBasisHistory(params?: {}): Promise<implicitReturnType>;
@@ -151,20 +152,26 @@ interface Exchange {
151
152
  v2PrivateGetAccountSubsInfo(params?: {}): Promise<implicitReturnType>;
152
153
  v2PrivateGetAccountSubsApi(params?: {}): Promise<implicitReturnType>;
153
154
  v2PrivateGetAccountSubsTransferHistory(params?: {}): Promise<implicitReturnType>;
155
+ v2PrivateGetAccountSubsBalance(params?: {}): Promise<implicitReturnType>;
154
156
  v2PrivateGetAccountSubsSpotBalance(params?: {}): Promise<implicitReturnType>;
155
157
  v2PrivateGetAccountTradeFeeRate(params?: {}): Promise<implicitReturnType>;
158
+ v2PrivateGetAccountFuturesMarketSettings(params?: {}): Promise<implicitReturnType>;
159
+ v2PrivateGetAccountInfo(params?: {}): Promise<implicitReturnType>;
156
160
  v2PrivateGetAssetsSpotBalance(params?: {}): Promise<implicitReturnType>;
157
161
  v2PrivateGetAssetsFuturesBalance(params?: {}): Promise<implicitReturnType>;
158
162
  v2PrivateGetAssetsMarginBalance(params?: {}): Promise<implicitReturnType>;
159
163
  v2PrivateGetAssetsFinancialBalance(params?: {}): Promise<implicitReturnType>;
160
164
  v2PrivateGetAssetsAmmLiquidity(params?: {}): Promise<implicitReturnType>;
161
165
  v2PrivateGetAssetsCreditInfo(params?: {}): Promise<implicitReturnType>;
166
+ v2PrivateGetAssetsSpotTranscationHistory(params?: {}): Promise<implicitReturnType>;
162
167
  v2PrivateGetAssetsMarginBorrowHistory(params?: {}): Promise<implicitReturnType>;
163
168
  v2PrivateGetAssetsMarginInterestLimit(params?: {}): Promise<implicitReturnType>;
164
169
  v2PrivateGetAssetsDepositAddress(params?: {}): Promise<implicitReturnType>;
165
170
  v2PrivateGetAssetsDepositHistory(params?: {}): Promise<implicitReturnType>;
166
171
  v2PrivateGetAssetsWithdraw(params?: {}): Promise<implicitReturnType>;
167
172
  v2PrivateGetAssetsTransferHistory(params?: {}): Promise<implicitReturnType>;
173
+ v2PrivateGetAssetsAmmLiquidityPool(params?: {}): Promise<implicitReturnType>;
174
+ v2PrivateGetAssetsAmmIncomeHistory(params?: {}): Promise<implicitReturnType>;
168
175
  v2PrivateGetSpotOrderStatus(params?: {}): Promise<implicitReturnType>;
169
176
  v2PrivateGetSpotBatchOrderStatus(params?: {}): Promise<implicitReturnType>;
170
177
  v2PrivateGetSpotPendingOrder(params?: {}): Promise<implicitReturnType>;
@@ -187,6 +194,12 @@ interface Exchange {
187
194
  v2PrivateGetFuturesPositionFundingHistory(params?: {}): Promise<implicitReturnType>;
188
195
  v2PrivateGetFuturesPositionAdlHistory(params?: {}): Promise<implicitReturnType>;
189
196
  v2PrivateGetFuturesPositionSettleHistory(params?: {}): Promise<implicitReturnType>;
197
+ v2PrivateGetReferReferee(params?: {}): Promise<implicitReturnType>;
198
+ v2PrivateGetReferRefereeRebateRecord(params?: {}): Promise<implicitReturnType>;
199
+ v2PrivateGetReferRefereeRebateDetail(params?: {}): Promise<implicitReturnType>;
200
+ v2PrivateGetReferAgentReferee(params?: {}): Promise<implicitReturnType>;
201
+ v2PrivateGetReferAgentRebateRecord(params?: {}): Promise<implicitReturnType>;
202
+ v2PrivateGetReferAgentRebateDetail(params?: {}): Promise<implicitReturnType>;
190
203
  v2PrivatePostAccountSubs(params?: {}): Promise<implicitReturnType>;
191
204
  v2PrivatePostAccountSubsFrozen(params?: {}): Promise<implicitReturnType>;
192
205
  v2PrivatePostAccountSubsUnfrozen(params?: {}): Promise<implicitReturnType>;
@@ -195,6 +208,7 @@ interface Exchange {
195
208
  v2PrivatePostAccountSubsDeleteApi(params?: {}): Promise<implicitReturnType>;
196
209
  v2PrivatePostAccountSubsTransfer(params?: {}): Promise<implicitReturnType>;
197
210
  v2PrivatePostAccountSettings(params?: {}): Promise<implicitReturnType>;
211
+ v2PrivatePostAccountFuturesMarketSettings(params?: {}): Promise<implicitReturnType>;
198
212
  v2PrivatePostAssetsMarginBorrow(params?: {}): Promise<implicitReturnType>;
199
213
  v2PrivatePostAssetsMarginRepay(params?: {}): Promise<implicitReturnType>;
200
214
  v2PrivatePostAssetsRenewalDepositAddress(params?: {}): Promise<implicitReturnType>;
@@ -209,6 +223,7 @@ interface Exchange {
209
223
  v2PrivatePostSpotBatchStopOrder(params?: {}): Promise<implicitReturnType>;
210
224
  v2PrivatePostSpotModifyOrder(params?: {}): Promise<implicitReturnType>;
211
225
  v2PrivatePostSpotModifyStopOrder(params?: {}): Promise<implicitReturnType>;
226
+ v2PrivatePostSpotBatchModifyOrder(params?: {}): Promise<implicitReturnType>;
212
227
  v2PrivatePostSpotCancelAllOrder(params?: {}): Promise<implicitReturnType>;
213
228
  v2PrivatePostSpotCancelOrder(params?: {}): Promise<implicitReturnType>;
214
229
  v2PrivatePostSpotCancelStopOrder(params?: {}): Promise<implicitReturnType>;
@@ -222,6 +237,7 @@ interface Exchange {
222
237
  v2PrivatePostFuturesBatchStopOrder(params?: {}): Promise<implicitReturnType>;
223
238
  v2PrivatePostFuturesModifyOrder(params?: {}): Promise<implicitReturnType>;
224
239
  v2PrivatePostFuturesModifyStopOrder(params?: {}): Promise<implicitReturnType>;
240
+ v2PrivatePostFuturesBatchModifyOrder(params?: {}): Promise<implicitReturnType>;
225
241
  v2PrivatePostFuturesCancelAllOrder(params?: {}): Promise<implicitReturnType>;
226
242
  v2PrivatePostFuturesCancelOrder(params?: {}): Promise<implicitReturnType>;
227
243
  v2PrivatePostFuturesCancelStopOrder(params?: {}): Promise<implicitReturnType>;
@@ -7,6 +7,8 @@ interface Exchange {
7
7
  publicGetProducts(params?: {}): Promise<implicitReturnType>;
8
8
  publicGetTransactions(params?: {}): Promise<implicitReturnType>;
9
9
  publicGetTradingPairs(params?: {}): Promise<implicitReturnType>;
10
+ publicGetSystemTime(params?: {}): Promise<implicitReturnType>;
11
+ privatePostCurrencies(params?: {}): Promise<implicitReturnType>;
10
12
  privatePostBalances(params?: {}): Promise<implicitReturnType>;
11
13
  privatePostBitcoinCashWithdrawal(params?: {}): Promise<implicitReturnType>;
12
14
  privatePostBitcoinCashDepositAddresses(params?: {}): Promise<implicitReturnType>;
@@ -59,6 +61,7 @@ interface Exchange {
59
61
  privatePostSolWithdrawal(params?: {}): Promise<implicitReturnType>;
60
62
  privatePostSolDepositAddresses(params?: {}): Promise<implicitReturnType>;
61
63
  privatePostUnconfirmedSolDeposits(params?: {}): Promise<implicitReturnType>;
64
+ privatePostBankWireWithdrawal(params?: {}): Promise<implicitReturnType>;
62
65
  }
63
66
  declare abstract class Exchange extends _Exchange {
64
67
  }
@@ -3,6 +3,7 @@ import { Exchange as _Exchange } from '../base/Exchange.js';
3
3
  interface Exchange {
4
4
  publicGetOpenapiV1Ping(params?: {}): Promise<implicitReturnType>;
5
5
  publicGetOpenapiV1Time(params?: {}): Promise<implicitReturnType>;
6
+ publicGetOpenapiV1UserIp(params?: {}): Promise<implicitReturnType>;
6
7
  publicGetOpenapiQuoteV1Ticker24hr(params?: {}): Promise<implicitReturnType>;
7
8
  publicGetOpenapiQuoteV1TickerPrice(params?: {}): Promise<implicitReturnType>;
8
9
  publicGetOpenapiQuoteV1TickerBookTicker(params?: {}): Promise<implicitReturnType>;
@@ -12,11 +13,14 @@ interface Exchange {
12
13
  publicGetOpenapiQuoteV1Trades(params?: {}): Promise<implicitReturnType>;
13
14
  publicGetOpenapiV1Pairs(params?: {}): Promise<implicitReturnType>;
14
15
  publicGetOpenapiQuoteV1AvgPrice(params?: {}): Promise<implicitReturnType>;
16
+ privateGetOpenapiV1CheckSysStatus(params?: {}): Promise<implicitReturnType>;
15
17
  privateGetOpenapiWalletV1ConfigGetall(params?: {}): Promise<implicitReturnType>;
16
18
  privateGetOpenapiWalletV1DepositAddress(params?: {}): Promise<implicitReturnType>;
17
19
  privateGetOpenapiWalletV1DepositHistory(params?: {}): Promise<implicitReturnType>;
18
20
  privateGetOpenapiWalletV1WithdrawHistory(params?: {}): Promise<implicitReturnType>;
21
+ privateGetOpenapiWalletV1WithdrawAddressWhitelist(params?: {}): Promise<implicitReturnType>;
19
22
  privateGetOpenapiV1Account(params?: {}): Promise<implicitReturnType>;
23
+ privateGetOpenapiV1ApiKeys(params?: {}): Promise<implicitReturnType>;
20
24
  privateGetOpenapiV1OpenOrders(params?: {}): Promise<implicitReturnType>;
21
25
  privateGetOpenapiV1AssetTradeFee(params?: {}): Promise<implicitReturnType>;
22
26
  privateGetOpenapiV1Order(params?: {}): Promise<implicitReturnType>;
@@ -28,6 +32,15 @@ interface Exchange {
28
32
  privateGetMerchantApiV1GetInvoices(params?: {}): Promise<implicitReturnType>;
29
33
  privateGetOpenapiAccountV3CryptoAccounts(params?: {}): Promise<implicitReturnType>;
30
34
  privateGetOpenapiTransferV3TransfersId(params?: {}): Promise<implicitReturnType>;
35
+ privateGetOpenapiV1SubAccountList(params?: {}): Promise<implicitReturnType>;
36
+ privateGetOpenapiV1SubAccountAsset(params?: {}): Promise<implicitReturnType>;
37
+ privateGetOpenapiV1SubAccountTransferUniversalTransferHistory(params?: {}): Promise<implicitReturnType>;
38
+ privateGetOpenapiV1SubAccountTransferSubHistory(params?: {}): Promise<implicitReturnType>;
39
+ privateGetOpenapiV1SubAccountApikeyIpRestriction(params?: {}): Promise<implicitReturnType>;
40
+ privateGetOpenapiV1SubAccountWalletDepositAddress(params?: {}): Promise<implicitReturnType>;
41
+ privateGetOpenapiV1SubAccountWalletDepositHistory(params?: {}): Promise<implicitReturnType>;
42
+ privateGetOpenapiV1FundCollectGetFundRecord(params?: {}): Promise<implicitReturnType>;
43
+ privateGetOpenapiV1AssetTransactionHistory(params?: {}): Promise<implicitReturnType>;
31
44
  privatePostOpenapiWalletV1WithdrawApply(params?: {}): Promise<implicitReturnType>;
32
45
  privatePostOpenapiV1OrderTest(params?: {}): Promise<implicitReturnType>;
33
46
  privatePostOpenapiV1Order(params?: {}): Promise<implicitReturnType>;
@@ -42,12 +55,20 @@ interface Exchange {
42
55
  privatePostOpenapiConvertV1GetSupportedTradingPairs(params?: {}): Promise<implicitReturnType>;
43
56
  privatePostOpenapiConvertV1GetQuote(params?: {}): Promise<implicitReturnType>;
44
57
  privatePostOpenapiConvertV1AccpetQuote(params?: {}): Promise<implicitReturnType>;
58
+ privatePostOpenapiConvertV1QueryOrderHistory(params?: {}): Promise<implicitReturnType>;
45
59
  privatePostOpenapiFiatV1SupportChannel(params?: {}): Promise<implicitReturnType>;
46
60
  privatePostOpenapiFiatV1CashOut(params?: {}): Promise<implicitReturnType>;
47
61
  privatePostOpenapiFiatV1History(params?: {}): Promise<implicitReturnType>;
48
62
  privatePostOpenapiMigrationV4Sellorder(params?: {}): Promise<implicitReturnType>;
49
63
  privatePostOpenapiMigrationV4ValidateField(params?: {}): Promise<implicitReturnType>;
50
64
  privatePostOpenapiTransferV3Transfers(params?: {}): Promise<implicitReturnType>;
65
+ privatePostOpenapiV1SubAccountCreate(params?: {}): Promise<implicitReturnType>;
66
+ privatePostOpenapiV1SubAccountTransferUniversalTransfer(params?: {}): Promise<implicitReturnType>;
67
+ privatePostOpenapiV1SubAccountTransferSubToMaster(params?: {}): Promise<implicitReturnType>;
68
+ privatePostOpenapiV1SubAccountApikeyAddIpRestriction(params?: {}): Promise<implicitReturnType>;
69
+ privatePostOpenapiV1SubAccountApikeyDeleteIpRestriction(params?: {}): Promise<implicitReturnType>;
70
+ privatePostOpenapiV1FundCollectCollectFromSubAccount(params?: {}): Promise<implicitReturnType>;
71
+ privatePutOpenapiV1UserDataStream(params?: {}): Promise<implicitReturnType>;
51
72
  privateDeleteOpenapiV1Order(params?: {}): Promise<implicitReturnType>;
52
73
  privateDeleteOpenapiV1OpenOrders(params?: {}): Promise<implicitReturnType>;
53
74
  privateDeleteOpenapiV1UserDataStream(params?: {}): Promise<implicitReturnType>;
@@ -42,6 +42,13 @@ interface Exchange {
42
42
  v1PrivatePostPrivateGetDepositHistory(params?: {}): Promise<implicitReturnType>;
43
43
  v1PrivatePostPrivateGetFeeRate(params?: {}): Promise<implicitReturnType>;
44
44
  v1PrivatePostPrivateGetInstrumentFeeRate(params?: {}): Promise<implicitReturnType>;
45
+ v1PrivatePostPrivateFiatFiatDepositInfo(params?: {}): Promise<implicitReturnType>;
46
+ v1PrivatePostPrivateFiatFiatDepositHistory(params?: {}): Promise<implicitReturnType>;
47
+ v1PrivatePostPrivateFiatFiatWithdrawHistory(params?: {}): Promise<implicitReturnType>;
48
+ v1PrivatePostPrivateFiatFiatCreateWithdraw(params?: {}): Promise<implicitReturnType>;
49
+ v1PrivatePostPrivateFiatFiatTransactionQuota(params?: {}): Promise<implicitReturnType>;
50
+ v1PrivatePostPrivateFiatFiatTransactionLimit(params?: {}): Promise<implicitReturnType>;
51
+ v1PrivatePostPrivateFiatFiatGetBankAccounts(params?: {}): Promise<implicitReturnType>;
45
52
  v1PrivatePostPrivateStakingStake(params?: {}): Promise<implicitReturnType>;
46
53
  v1PrivatePostPrivateStakingUnstake(params?: {}): Promise<implicitReturnType>;
47
54
  v1PrivatePostPrivateStakingGetStakingPosition(params?: {}): Promise<implicitReturnType>;
@@ -85,6 +85,7 @@ interface Exchange {
85
85
  privateWalletGetSmallBalance(params?: {}): Promise<implicitReturnType>;
86
86
  privateWalletGetSmallBalanceHistory(params?: {}): Promise<implicitReturnType>;
87
87
  privateWalletGetPush(params?: {}): Promise<implicitReturnType>;
88
+ privateWalletGetGetLowCapExchangeList(params?: {}): Promise<implicitReturnType>;
88
89
  privateWalletPostTransfers(params?: {}): Promise<implicitReturnType>;
89
90
  privateWalletPostSubAccountTransfers(params?: {}): Promise<implicitReturnType>;
90
91
  privateWalletPostSubAccountToSubAccount(params?: {}): Promise<implicitReturnType>;
@@ -219,6 +220,7 @@ interface Exchange {
219
220
  privateFuturesPostSettleBboOrders(params?: {}): Promise<implicitReturnType>;
220
221
  privateFuturesPostSettlePriceOrders(params?: {}): Promise<implicitReturnType>;
221
222
  privateFuturesPutSettleOrdersOrderId(params?: {}): Promise<implicitReturnType>;
223
+ privateFuturesPutSettlePriceOrdersOrderId(params?: {}): Promise<implicitReturnType>;
222
224
  privateFuturesDeleteSettleOrders(params?: {}): Promise<implicitReturnType>;
223
225
  privateFuturesDeleteSettleOrdersOrderId(params?: {}): Promise<implicitReturnType>;
224
226
  privateFuturesDeleteSettlePriceOrders(params?: {}): Promise<implicitReturnType>;
@@ -85,6 +85,7 @@ interface gate {
85
85
  privateWalletGetSmallBalance(params?: {}): Promise<implicitReturnType>;
86
86
  privateWalletGetSmallBalanceHistory(params?: {}): Promise<implicitReturnType>;
87
87
  privateWalletGetPush(params?: {}): Promise<implicitReturnType>;
88
+ privateWalletGetGetLowCapExchangeList(params?: {}): Promise<implicitReturnType>;
88
89
  privateWalletPostTransfers(params?: {}): Promise<implicitReturnType>;
89
90
  privateWalletPostSubAccountTransfers(params?: {}): Promise<implicitReturnType>;
90
91
  privateWalletPostSubAccountToSubAccount(params?: {}): Promise<implicitReturnType>;
@@ -219,6 +220,7 @@ interface gate {
219
220
  privateFuturesPostSettleBboOrders(params?: {}): Promise<implicitReturnType>;
220
221
  privateFuturesPostSettlePriceOrders(params?: {}): Promise<implicitReturnType>;
221
222
  privateFuturesPutSettleOrdersOrderId(params?: {}): Promise<implicitReturnType>;
223
+ privateFuturesPutSettlePriceOrdersOrderId(params?: {}): Promise<implicitReturnType>;
222
224
  privateFuturesDeleteSettleOrders(params?: {}): Promise<implicitReturnType>;
223
225
  privateFuturesDeleteSettleOrdersOrderId(params?: {}): Promise<implicitReturnType>;
224
226
  privateFuturesDeleteSettlePriceOrders(params?: {}): Promise<implicitReturnType>;
@@ -0,0 +1,49 @@
1
+ import { implicitReturnType } from '../base/types.js';
2
+ import { Exchange as _Exchange } from '../base/Exchange.js';
3
+ interface Exchange {
4
+ publicSpotGetV2SystemTime(params?: {}): Promise<implicitReturnType>;
5
+ publicSpotGetV2SystemStatus(params?: {}): Promise<implicitReturnType>;
6
+ publicSpotGetV2MarketOrderbook(params?: {}): Promise<implicitReturnType>;
7
+ publicSpotGetV2MarketTrades(params?: {}): Promise<implicitReturnType>;
8
+ publicSpotGetV2MarketTicker(params?: {}): Promise<implicitReturnType>;
9
+ publicSpotGetV2MarketAllTickers(params?: {}): Promise<implicitReturnType>;
10
+ publicSpotGetV2ExExchangeInfo(params?: {}): Promise<implicitReturnType>;
11
+ publicSpotGetV2ExCurrencies(params?: {}): Promise<implicitReturnType>;
12
+ publicSpotGetV2MarketKlines(params?: {}): Promise<implicitReturnType>;
13
+ publicSpotGetV2ExTradefees(params?: {}): Promise<implicitReturnType>;
14
+ publicSwapGetV1SystemTime(params?: {}): Promise<implicitReturnType>;
15
+ publicSwapGetV1SystemStatus(params?: {}): Promise<implicitReturnType>;
16
+ publicSwapGetV1ExchangeTradefee(params?: {}): Promise<implicitReturnType>;
17
+ publicSwapGetV1ExchangeTradefees(params?: {}): Promise<implicitReturnType>;
18
+ publicSwapGetV1MarketOrderBook(params?: {}): Promise<implicitReturnType>;
19
+ publicSwapGetV1MarketTicker24Hr(params?: {}): Promise<implicitReturnType>;
20
+ publicSwapGetV1MarketMarkets(params?: {}): Promise<implicitReturnType>;
21
+ publicSwapGetV1MarketAggTrade(params?: {}): Promise<implicitReturnType>;
22
+ publicSwapPostV1MarketKlines(params?: {}): Promise<implicitReturnType>;
23
+ privateSpotPostV2ExOrders(params?: {}): Promise<implicitReturnType>;
24
+ privateSpotGetV2ExOrders(params?: {}): Promise<implicitReturnType>;
25
+ privateSpotGetV2AccountBalance(params?: {}): Promise<implicitReturnType>;
26
+ privateSpotGetV2ExTradefee(params?: {}): Promise<implicitReturnType>;
27
+ privateSpotGetV2ExOrder(params?: {}): Promise<implicitReturnType>;
28
+ privateSpotGetV2ExOrderFills(params?: {}): Promise<implicitReturnType>;
29
+ privateSpotDeleteV2ExOrder(params?: {}): Promise<implicitReturnType>;
30
+ privateSpotDeleteV2ExOrders(params?: {}): Promise<implicitReturnType>;
31
+ privateSpotDeleteV2ExOrdersCancelAll(params?: {}): Promise<implicitReturnType>;
32
+ privateSwapGetV1WalletBalance(params?: {}): Promise<implicitReturnType>;
33
+ privateSwapGetV1TradeOrder(params?: {}): Promise<implicitReturnType>;
34
+ privateSwapGetV1TradeOrderOpenOrders(params?: {}): Promise<implicitReturnType>;
35
+ privateSwapGetV1TradeUserLeverages(params?: {}): Promise<implicitReturnType>;
36
+ privateSwapGetV1TradeUserLeverage(params?: {}): Promise<implicitReturnType>;
37
+ privateSwapGetV1TradePositions(params?: {}): Promise<implicitReturnType>;
38
+ privateSwapGetV1TradeHistory(params?: {}): Promise<implicitReturnType>;
39
+ privateSwapPostV1TradeOrder(params?: {}): Promise<implicitReturnType>;
40
+ privateSwapPostV1TradeOrderAddTPSL(params?: {}): Promise<implicitReturnType>;
41
+ privateSwapPostV1TradeAddMargin(params?: {}): Promise<implicitReturnType>;
42
+ privateSwapPostV1TradeReduceMargin(params?: {}): Promise<implicitReturnType>;
43
+ privateSwapPostV1TradePositionClose(params?: {}): Promise<implicitReturnType>;
44
+ privateSwapPostV1TradeUpdateUserLeverage(params?: {}): Promise<implicitReturnType>;
45
+ privateSwapDeleteV1TradeOrder(params?: {}): Promise<implicitReturnType>;
46
+ }
47
+ declare abstract class Exchange extends _Exchange {
48
+ }
49
+ 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;
@@ -4983,8 +4983,8 @@ export default class Exchange {
4983
4983
  throw new NotSupported(this.id + ' fetchLedgerEntry() is not supported yet');
4984
4984
  }
4985
4985
  parseBidAsk(bidask, priceKey = 0, amountKey = 1, countOrIdKey = 2) {
4986
- const price = this.safeNumber(bidask, priceKey);
4987
- const amount = this.safeNumber(bidask, amountKey);
4986
+ const price = this.safeFloat(bidask, priceKey);
4987
+ const amount = this.safeFloat(bidask, amountKey);
4988
4988
  const countOrId = this.safeInteger(bidask, countOrIdKey);
4989
4989
  const bidAsk = [price, amount];
4990
4990
  if (countOrId !== undefined) {
@@ -328,6 +328,7 @@ export default class binance extends Exchange {
328
328
  */
329
329
  editOrders(orders: OrderRequest[], params?: {}): Promise<Order[]>;
330
330
  parseOrderStatus(status: Str): string;
331
+ parseOrderType(type: Str): string;
331
332
  parseOrder(order: Dict, market?: Market): Order;
332
333
  /**
333
334
  * @method
package/js/src/binance.js CHANGED
@@ -850,6 +850,8 @@ export default class binance extends Exchange {
850
850
  'lvtKlines': 1,
851
851
  'convert/exchangeInfo': 4,
852
852
  'insuranceBalance': 1,
853
+ 'symbolAdlRisk': 1,
854
+ 'tradingSchedule': 5,
853
855
  },
854
856
  },
855
857
  'fapiData': {
@@ -881,7 +883,6 @@ export default class binance extends Exchange {
881
883
  'commissionRate': 20,
882
884
  'rateLimit/order': 1,
883
885
  'apiTradingStatus': 1,
884
- 'symbolAdlRisk': 1,
885
886
  'multiAssetsMargin': 30,
886
887
  // broker endpoints
887
888
  'apiReferral/ifNewUser': 1,
@@ -909,6 +910,7 @@ export default class binance extends Exchange {
909
910
  'algoOrder': 1,
910
911
  'openAlgoOrders': { 'cost': 1, 'noSymbol': 40 },
911
912
  'allAlgoOrders': 5,
913
+ 'stock/contract': 50,
912
914
  },
913
915
  'post': {
914
916
  'batchOrders': 5,
@@ -2628,7 +2630,8 @@ export default class binance extends Exchange {
2628
2630
  },
2629
2631
  'broad': {
2630
2632
  'has no operation privilege': PermissionDenied,
2631
- 'MAX_POSITION': BadRequest, // {"code":-2010,"msg":"Filter failure: MAX_POSITION"}
2633
+ 'MAX_POSITION': BadRequest,
2634
+ 'PERCENT_PRICE_BY_SIDE': InvalidOrder, // {"code":-1013,"msg":"Filter failure: PERCENT_PRICE_BY_SIDE"}
2632
2635
  },
2633
2636
  },
2634
2637
  });
@@ -5665,6 +5668,17 @@ export default class binance extends Exchange {
5665
5668
  };
5666
5669
  return this.safeString(statuses, status, status);
5667
5670
  }
5671
+ parseOrderType(type) {
5672
+ const types = {
5673
+ 'limit_maker': 'limit',
5674
+ 'stop': 'limit',
5675
+ 'stop_market': 'market',
5676
+ 'take_profit': 'limit',
5677
+ 'take_profit_market': 'market',
5678
+ 'trailing_stop_market': 'market',
5679
+ };
5680
+ return this.safeString(types, type, type);
5681
+ }
5668
5682
  parseOrder(order, market = undefined) {
5669
5683
  //
5670
5684
  // spot
@@ -6221,7 +6235,7 @@ export default class binance extends Exchange {
6221
6235
  // Note this is not the actual cost, since Binance futures uses leverage to calculate margins.
6222
6236
  let cost = this.safeString2(order, 'cummulativeQuoteQty', 'cumQuote');
6223
6237
  cost = this.safeString(order, 'cumBase', cost);
6224
- let type = this.safeStringLower(order, 'type');
6238
+ const type = this.safeStringLower2(order, 'type', 'orderType');
6225
6239
  const side = this.safeStringLower(order, 'side');
6226
6240
  const fills = this.safeList(order, 'fills', []);
6227
6241
  let timeInForce = this.safeString(order, 'timeInForce');
@@ -6230,9 +6244,6 @@ export default class binance extends Exchange {
6230
6244
  timeInForce = 'PO';
6231
6245
  }
6232
6246
  const postOnly = (type === 'limit_maker') || (timeInForce === 'PO');
6233
- if (type === 'limit_maker') {
6234
- type = 'limit';
6235
- }
6236
6247
  const stopPriceString = this.safeString2(order, 'stopPrice', 'triggerPrice');
6237
6248
  const triggerPrice = this.parseNumber(this.omitZero(stopPriceString));
6238
6249
  const feeCost = this.safeNumber(order, 'fee');
@@ -6253,7 +6264,7 @@ export default class binance extends Exchange {
6253
6264
  'lastTradeTimestamp': lastTradeTimestamp,
6254
6265
  'lastUpdateTimestamp': lastUpdateTimestamp,
6255
6266
  'symbol': symbol,
6256
- 'type': type,
6267
+ 'type': this.parseOrderType(type),
6257
6268
  'timeInForce': timeInForce,
6258
6269
  'postOnly': postOnly,
6259
6270
  'reduceOnly': this.safeBool(order, 'reduceOnly'),
package/js/src/bingx.js CHANGED
@@ -3034,8 +3034,8 @@ export default class bingx extends Exchange {
3034
3034
  const isTrailing = isTrailingAmountOrder || isTrailingPercentOrder;
3035
3035
  const stopLoss = this.safeValue(params, 'stopLoss');
3036
3036
  const takeProfit = this.safeValue(params, 'takeProfit');
3037
- const isStopLoss = stopLoss !== undefined;
3038
- const isTakeProfit = takeProfit !== undefined;
3037
+ const hasStopLoss = stopLoss !== undefined;
3038
+ const hasTakeProfit = takeProfit !== undefined;
3039
3039
  if (((type === 'LIMIT') || (type === 'TRIGGER_LIMIT') || (type === 'STOP') || (type === 'TAKE_PROFIT')) && !isTrailing) {
3040
3040
  request['price'] = this.parseToNumeric(this.priceToPrecision(symbol, price));
3041
3041
  }
@@ -3081,9 +3081,9 @@ export default class bingx extends Exchange {
3081
3081
  request['priceRate'] = this.parseToNumeric(requestTrailingPercent);
3082
3082
  }
3083
3083
  }
3084
- if (isStopLoss || isTakeProfit) {
3084
+ if (hasStopLoss || hasTakeProfit) {
3085
3085
  const stringifiedAmount = this.numberToString(amount);
3086
- if (isStopLoss) {
3086
+ if (hasStopLoss) {
3087
3087
  const slTriggerPrice = this.safeString2(stopLoss, 'triggerPrice', 'stopPrice', stopLoss);
3088
3088
  const slWorkingType = this.safeString(stopLoss, 'workingType', 'MARK_PRICE');
3089
3089
  const slType = this.safeString(stopLoss, 'type', 'STOP_MARKET');
@@ -3100,7 +3100,7 @@ export default class bingx extends Exchange {
3100
3100
  slRequest['quantity'] = this.parseToNumeric(this.amountToPrecision(symbol, slQuantity));
3101
3101
  request['stopLoss'] = this.json(slRequest);
3102
3102
  }
3103
- if (isTakeProfit) {
3103
+ if (hasTakeProfit) {
3104
3104
  const tkTriggerPrice = this.safeString2(takeProfit, 'triggerPrice', 'stopPrice', takeProfit);
3105
3105
  const tkWorkingType = this.safeString(takeProfit, 'workingType', 'MARK_PRICE');
3106
3106
  const tpType = this.safeString(takeProfit, 'type', 'TAKE_PROFIT_MARKET');