ccxt 4.2.51 → 4.2.53

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 (57) hide show
  1. package/CHANGELOG.md +76 -16
  2. package/README.md +5 -6
  3. package/dist/ccxt.browser.js +994 -1412
  4. package/dist/ccxt.browser.min.js +3 -3
  5. package/dist/cjs/ccxt.js +1 -4
  6. package/dist/cjs/src/base/Exchange.js +65 -26
  7. package/dist/cjs/src/binance.js +92 -3
  8. package/dist/cjs/src/bingx.js +32 -1
  9. package/dist/cjs/src/bitget.js +1 -0
  10. package/dist/cjs/src/bitvavo.js +1 -1
  11. package/dist/cjs/src/coinbase.js +186 -12
  12. package/dist/cjs/src/htx.js +10 -4
  13. package/dist/cjs/src/pro/binance.js +156 -1
  14. package/dist/cjs/src/pro/bitfinex2.js +3 -1
  15. package/dist/cjs/src/pro/bitvavo.js +1 -1
  16. package/dist/cjs/src/pro/blockchaincom.js +7 -25
  17. package/dist/cjs/src/pro/deribit.js +2 -2
  18. package/dist/cjs/src/pro/gate.js +2 -1
  19. package/dist/cjs/src/pro/gemini.js +1 -1
  20. package/dist/cjs/src/pro/okx.js +18 -4
  21. package/dist/cjs/src/woo.js +3 -1
  22. package/js/ccxt.d.ts +2 -5
  23. package/js/ccxt.js +2 -4
  24. package/js/src/abstract/coinbase.d.ts +1 -1
  25. package/js/src/base/Exchange.d.ts +65 -26
  26. package/js/src/base/Exchange.js +65 -26
  27. package/js/src/binance.d.ts +6 -0
  28. package/js/src/binance.js +92 -3
  29. package/js/src/bingx.d.ts +4 -0
  30. package/js/src/bingx.js +32 -1
  31. package/js/src/bitget.js +1 -0
  32. package/js/src/bitvavo.js +1 -1
  33. package/js/src/coinbase.d.ts +2 -0
  34. package/js/src/coinbase.js +186 -12
  35. package/js/src/deribit.js +1 -1
  36. package/js/src/htx.js +10 -4
  37. package/js/src/ndax.js +1 -1
  38. package/js/src/pro/binance.d.ts +3 -0
  39. package/js/src/pro/binance.js +156 -1
  40. package/js/src/pro/bingx.js +1 -1
  41. package/js/src/pro/bitfinex2.js +3 -1
  42. package/js/src/pro/bitvavo.js +1 -1
  43. package/js/src/pro/blockchaincom.d.ts +0 -1
  44. package/js/src/pro/blockchaincom.js +7 -25
  45. package/js/src/pro/deribit.js +2 -2
  46. package/js/src/pro/gate.js +2 -1
  47. package/js/src/pro/gemini.js +1 -1
  48. package/js/src/pro/okx.js +18 -4
  49. package/js/src/woo.js +4 -2
  50. package/package.json +2 -1
  51. package/skip-tests.json +29 -13
  52. package/dist/cjs/src/abstract/bitforex.js +0 -9
  53. package/dist/cjs/src/bitforex.js +0 -884
  54. package/js/src/abstract/bitforex.d.ts +0 -27
  55. package/js/src/abstract/bitforex.js +0 -11
  56. package/js/src/bitforex.d.ts +0 -39
  57. package/js/src/bitforex.js +0 -885
@@ -295,7 +295,6 @@ class woo extends woo$1 {
295
295
  '-1007': errors.BadRequest,
296
296
  '-1008': errors.InvalidOrder,
297
297
  '-1009': errors.BadRequest,
298
- '-1011': errors.ExchangeError,
299
298
  '-1012': errors.BadRequest,
300
299
  '-1101': errors.InvalidOrder,
301
300
  '-1102': errors.InvalidOrder,
@@ -304,6 +303,8 @@ class woo extends woo$1 {
304
303
  '-1105': errors.InvalidOrder, // { "code": -1105, "message": "Price is X% too high or X% too low from the mid price." }
305
304
  },
306
305
  'broad': {
306
+ 'Can not place': errors.ExchangeError,
307
+ 'maintenance': errors.OnMaintenance,
307
308
  'symbol must not be blank': errors.BadRequest,
308
309
  'The token is not supported': errors.BadRequest,
309
310
  'Your order and symbol are not valid or already canceled': errors.BadRequest,
@@ -2380,6 +2381,7 @@ class woo extends woo$1 {
2380
2381
  }
2381
2382
  //
2382
2383
  // 400 Bad Request {"success":false,"code":-1012,"message":"Amount is required for buy market orders when margin disabled."}
2384
+ // {"code":"-1011","message":"The system is under maintenance.","success":false}
2383
2385
  //
2384
2386
  const success = this.safeValue(response, 'success');
2385
2387
  const errorCode = this.safeString(response, 'code');
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 { Market, Trade, Fee, Ticker, OrderBook, Order, Transaction, Tickers, Currency, Balance, DepositAddress, WithdrawalResponse, DepositAddressResponse, OHLCV, Balances, PartialBalances, Dictionary, MinMax, Position, FundingRateHistory, Liquidation, FundingHistory, MarginMode, Greeks } from './src/base/types.js';
6
6
  import { BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, NoChange } from './src/base/errors.js';
7
- declare const version = "4.2.50";
7
+ declare const version = "4.2.52";
8
8
  import ace from './src/ace.js';
9
9
  import alpaca from './src/alpaca.js';
10
10
  import ascendex from './src/ascendex.js';
@@ -23,7 +23,6 @@ import bitcoincom from './src/bitcoincom.js';
23
23
  import bitfinex from './src/bitfinex.js';
24
24
  import bitfinex2 from './src/bitfinex2.js';
25
25
  import bitflyer from './src/bitflyer.js';
26
- import bitforex from './src/bitforex.js';
27
26
  import bitget from './src/bitget.js';
28
27
  import bithumb from './src/bithumb.js';
29
28
  import bitmart from './src/bitmart.js';
@@ -186,7 +185,6 @@ declare const exchanges: {
186
185
  bitfinex: typeof bitfinex;
187
186
  bitfinex2: typeof bitfinex2;
188
187
  bitflyer: typeof bitflyer;
189
- bitforex: typeof bitforex;
190
188
  bitget: typeof bitget;
191
189
  bithumb: typeof bithumb;
192
190
  bitmart: typeof bitmart;
@@ -420,7 +418,6 @@ declare const ccxt: {
420
418
  bitfinex: typeof bitfinex;
421
419
  bitfinex2: typeof bitfinex2;
422
420
  bitflyer: typeof bitflyer;
423
- bitforex: typeof bitforex;
424
421
  bitget: typeof bitget;
425
422
  bithumb: typeof bithumb;
426
423
  bitmart: typeof bitmart;
@@ -504,5 +501,5 @@ declare const ccxt: {
504
501
  zaif: typeof zaif;
505
502
  zonda: typeof zonda;
506
503
  } & typeof functions & typeof errors;
507
- export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, NoChange, Market, Trade, Fee, Ticker, OrderBook, Order, Transaction, Tickers, Currency, Balance, DepositAddress, WithdrawalResponse, DepositAddressResponse, OHLCV, Balances, PartialBalances, Dictionary, MinMax, Position, FundingRateHistory, Liquidation, FundingHistory, MarginMode, Greeks, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbay, bitbns, bitcoincom, bitfinex, bitfinex2, bitflyer, bitforex, bitget, bithumb, bitmart, bitmex, bitopro, bitpanda, bitrue, bitso, bitstamp, bitteam, bitvavo, bl3p, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbasepro, coincheck, coinex, coinlist, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, currencycom, delta, deribit, digifinex, exmo, fmfwio, gate, gateio, gemini, hitbtc, hitbtc3, hollaex, htx, huobi, huobijp, idex, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, kuna, latoken, lbank, luno, lykke, mercado, mexc, ndax, novadax, oceanex, okcoin, okx, onetrading, p2b, paymium, phemex, poloniex, poloniexfutures, probit, timex, tokocrypto, upbit, wavesexchange, wazirx, whitebit, woo, yobit, zaif, zonda, };
504
+ export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, NoChange, Market, Trade, Fee, Ticker, OrderBook, Order, Transaction, Tickers, Currency, Balance, DepositAddress, WithdrawalResponse, DepositAddressResponse, OHLCV, Balances, PartialBalances, Dictionary, MinMax, Position, FundingRateHistory, Liquidation, FundingHistory, MarginMode, Greeks, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbay, bitbns, bitcoincom, bitfinex, bitfinex2, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitpanda, bitrue, bitso, bitstamp, bitteam, bitvavo, bl3p, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbasepro, coincheck, coinex, coinlist, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, currencycom, delta, deribit, digifinex, exmo, fmfwio, gate, gateio, gemini, hitbtc, hitbtc3, hollaex, htx, huobi, huobijp, idex, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, kuna, latoken, lbank, luno, lykke, mercado, mexc, ndax, novadax, oceanex, okcoin, okx, onetrading, p2b, paymium, phemex, poloniex, poloniexfutures, probit, timex, tokocrypto, upbit, wavesexchange, wazirx, whitebit, woo, yobit, zaif, zonda, };
508
505
  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, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, NoChange } from './src/base/errors.js';
39
39
  //-----------------------------------------------------------------------------
40
40
  // this is updated by vss.js when building
41
- const version = '4.2.51';
41
+ const version = '4.2.53';
42
42
  Exchange.ccxtVersion = version;
43
43
  //-----------------------------------------------------------------------------
44
44
  import ace from './src/ace.js';
@@ -59,7 +59,6 @@ import bitcoincom from './src/bitcoincom.js';
59
59
  import bitfinex from './src/bitfinex.js';
60
60
  import bitfinex2 from './src/bitfinex2.js';
61
61
  import bitflyer from './src/bitflyer.js';
62
- import bitforex from './src/bitforex.js';
63
62
  import bitget from './src/bitget.js';
64
63
  import bithumb from './src/bithumb.js';
65
64
  import bitmart from './src/bitmart.js';
@@ -223,7 +222,6 @@ const exchanges = {
223
222
  'bitfinex': bitfinex,
224
223
  'bitfinex2': bitfinex2,
225
224
  'bitflyer': bitflyer,
226
- 'bitforex': bitforex,
227
225
  'bitget': bitget,
228
226
  'bithumb': bithumb,
229
227
  'bitmart': bitmart,
@@ -382,6 +380,6 @@ pro.exchanges = Object.keys(pro);
382
380
  pro['Exchange'] = Exchange; // now the same for rest and ts
383
381
  //-----------------------------------------------------------------------------
384
382
  const ccxt = Object.assign({ version, Exchange, Precise, 'exchanges': Object.keys(exchanges), 'pro': pro }, exchanges, functions, errors);
385
- export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, NoChange, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbay, bitbns, bitcoincom, bitfinex, bitfinex2, bitflyer, bitforex, bitget, bithumb, bitmart, bitmex, bitopro, bitpanda, bitrue, bitso, bitstamp, bitteam, bitvavo, bl3p, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbasepro, coincheck, coinex, coinlist, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, currencycom, delta, deribit, digifinex, exmo, fmfwio, gate, gateio, gemini, hitbtc, hitbtc3, hollaex, htx, huobi, huobijp, idex, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, kuna, latoken, lbank, luno, lykke, mercado, mexc, ndax, novadax, oceanex, okcoin, okx, onetrading, p2b, paymium, phemex, poloniex, poloniexfutures, probit, timex, tokocrypto, upbit, wavesexchange, wazirx, whitebit, woo, yobit, zaif, zonda, };
383
+ export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, NoChange, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbay, bitbns, bitcoincom, bitfinex, bitfinex2, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitpanda, bitrue, bitso, bitstamp, bitteam, bitvavo, bl3p, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbasepro, coincheck, coinex, coinlist, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, currencycom, delta, deribit, digifinex, exmo, fmfwio, gate, gateio, gemini, hitbtc, hitbtc3, hollaex, htx, huobi, huobijp, idex, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, kuna, latoken, lbank, luno, lykke, mercado, mexc, ndax, novadax, oceanex, okcoin, okx, onetrading, p2b, paymium, phemex, poloniex, poloniexfutures, probit, timex, tokocrypto, upbit, wavesexchange, wazirx, whitebit, woo, yobit, zaif, zonda, };
386
384
  export default ccxt;
387
385
  //-----------------------------------------------------------------------------
@@ -46,6 +46,7 @@ interface Exchange {
46
46
  v2PrivatePutUser(params?: {}): Promise<implicitReturnType>;
47
47
  v2PrivateDeleteAccountsId(params?: {}): Promise<implicitReturnType>;
48
48
  v2PrivateDeleteAccountsAccountIdTransactionsTransactionId(params?: {}): Promise<implicitReturnType>;
49
+ v3PublicGetBrokerageTime(params?: {}): Promise<implicitReturnType>;
49
50
  v3PrivateGetBrokerageAccounts(params?: {}): Promise<implicitReturnType>;
50
51
  v3PrivateGetBrokerageAccountsAccountUuid(params?: {}): Promise<implicitReturnType>;
51
52
  v3PrivateGetBrokerageOrdersHistoricalBatch(params?: {}): Promise<implicitReturnType>;
@@ -61,7 +62,6 @@ interface Exchange {
61
62
  v3PrivateGetBrokerageProductBook(params?: {}): Promise<implicitReturnType>;
62
63
  v3PrivateGetBrokerageBestBidAsk(params?: {}): Promise<implicitReturnType>;
63
64
  v3PrivateGetBrokerageConvertTradeTradeId(params?: {}): Promise<implicitReturnType>;
64
- v3PrivateGetBrokerageTime(params?: {}): Promise<implicitReturnType>;
65
65
  v3PrivateGetBrokerageCfmBalanceSummary(params?: {}): Promise<implicitReturnType>;
66
66
  v3PrivateGetBrokerageCfmPositions(params?: {}): Promise<implicitReturnType>;
67
67
  v3PrivateGetBrokerageCfmPositionsProductId(params?: {}): Promise<implicitReturnType>;
@@ -294,51 +294,59 @@ export default class Exchange {
294
294
  future: any;
295
295
  option: any;
296
296
  addMargin: any;
297
+ borrowCrossMargin: any;
298
+ borrowIsolatedMargin: any;
299
+ borrowMargin: any;
297
300
  cancelAllOrders: any;
301
+ cancelAllOrdersWs: any;
298
302
  cancelOrder: boolean;
299
303
  cancelOrders: any;
304
+ cancelOrdersWs: any;
305
+ cancelOrderWs: any;
300
306
  closeAllPositions: any;
301
307
  closePosition: any;
302
308
  createDepositAddress: any;
309
+ createLimitBuyOrder: any;
303
310
  createLimitOrder: boolean;
304
- createMarketOrder: boolean;
305
- createOrder: boolean;
311
+ createLimitSellOrder: any;
312
+ createMarketBuyOrder: any;
306
313
  createMarketBuyOrderWithCost: any;
314
+ createMarketOrder: boolean;
307
315
  createMarketOrderWithCost: any;
316
+ createMarketSellOrder: any;
308
317
  createMarketSellOrderWithCost: any;
318
+ createOrder: boolean;
309
319
  createOrders: any;
310
320
  createOrderWithTakeProfitAndStopLoss: any;
321
+ createOrderWs: any;
311
322
  createPostOnlyOrder: any;
312
323
  createReduceOnlyOrder: any;
313
- createStopLossOrder: any;
314
- createStopOrder: any;
315
324
  createStopLimitOrder: any;
325
+ createStopLossOrder: any;
316
326
  createStopMarketOrder: any;
327
+ createStopOrder: any;
317
328
  createTakeProfitOrder: any;
318
329
  createTrailingAmountOrder: any;
319
330
  createTrailingPercentOrder: any;
320
331
  createTriggerOrder: any;
321
- createOrderWs: any;
322
- editOrderWs: any;
323
- fetchOpenOrdersWs: any;
324
- fetchClosedOrdersWs: any;
325
- fetchOrderWs: any;
326
- fetchOrdersWs: any;
327
- cancelOrderWs: any;
328
- cancelOrdersWs: any;
329
- cancelAllOrdersWs: any;
330
- fetchTradesWs: any;
331
- fetchBalanceWs: any;
332
+ deposit: any;
332
333
  editOrder: string;
334
+ editOrderWs: any;
333
335
  fetchAccounts: any;
334
336
  fetchBalance: boolean;
337
+ fetchBalanceWs: any;
335
338
  fetchBidsAsks: any;
336
339
  fetchBorrowInterest: any;
340
+ fetchBorrowRate: any;
341
+ fetchBorrowRateHistories: any;
337
342
  fetchBorrowRateHistory: any;
338
- fetchCanceledOrders: any;
343
+ fetchBorrowRates: any;
344
+ fetchBorrowRatesPerSymbol: any;
339
345
  fetchCanceledAndClosedOrders: any;
346
+ fetchCanceledOrders: any;
340
347
  fetchClosedOrder: any;
341
348
  fetchClosedOrders: any;
349
+ fetchClosedOrdersWs: any;
342
350
  fetchCrossBorrowRate: any;
343
351
  fetchCrossBorrowRates: any;
344
352
  fetchCurrencies: string;
@@ -348,78 +356,109 @@ export default class Exchange {
348
356
  fetchDepositAddresses: any;
349
357
  fetchDepositAddressesByNetwork: any;
350
358
  fetchDeposits: any;
351
- fetchDepositsWs: any;
352
359
  fetchDepositsWithdrawals: any;
353
- fetchTransactionFee: any;
354
- fetchTransactionFees: any;
360
+ fetchDepositsWs: any;
361
+ fetchDepositWithdrawFee: any;
362
+ fetchDepositWithdrawFees: any;
355
363
  fetchFundingHistory: any;
356
364
  fetchFundingRate: any;
357
365
  fetchFundingRateHistory: any;
358
366
  fetchFundingRates: any;
367
+ fetchGreeks: any;
359
368
  fetchIndexOHLCV: any;
360
369
  fetchIsolatedBorrowRate: any;
361
370
  fetchIsolatedBorrowRates: any;
371
+ fetchIsolatedPositions: any;
362
372
  fetchL2OrderBook: boolean;
373
+ fetchL3OrderBook: any;
363
374
  fetchLastPrices: any;
364
375
  fetchLedger: any;
365
376
  fetchLedgerEntry: any;
377
+ fetchLeverage: any;
366
378
  fetchLeverageTiers: any;
379
+ fetchLiquidations: any;
380
+ fetchMarginMode: any;
367
381
  fetchMarketLeverageTiers: any;
368
382
  fetchMarkets: boolean;
369
383
  fetchMarketsWs: any;
370
384
  fetchMarkOHLCV: any;
385
+ fetchMyLiquidations: any;
386
+ fetchMySettlementHistory: any;
371
387
  fetchMyTrades: any;
388
+ fetchMyTradesWs: any;
372
389
  fetchOHLCV: any;
373
390
  fetchOHLCVWs: any;
374
391
  fetchOpenInterest: any;
375
392
  fetchOpenInterestHistory: any;
376
393
  fetchOpenOrder: any;
377
394
  fetchOpenOrders: any;
395
+ fetchOpenOrdersWs: any;
378
396
  fetchOrder: any;
379
397
  fetchOrderBook: boolean;
380
398
  fetchOrderBooks: any;
399
+ fetchOrderBookWs: any;
381
400
  fetchOrders: any;
401
+ fetchOrdersByStatus: any;
402
+ fetchOrdersWs: any;
382
403
  fetchOrderTrades: any;
404
+ fetchOrderWs: any;
383
405
  fetchPermissions: any;
384
406
  fetchPosition: any;
407
+ fetchPositionMode: any;
385
408
  fetchPositions: any;
386
409
  fetchPositionsForSymbol: any;
387
410
  fetchPositionsRisk: any;
388
411
  fetchPremiumIndexOHLCV: any;
412
+ fetchSettlementHistory: any;
389
413
  fetchStatus: any;
390
414
  fetchTicker: boolean;
391
415
  fetchTickers: any;
416
+ fetchTickerWs: any;
392
417
  fetchTime: any;
393
418
  fetchTrades: boolean;
419
+ fetchTradesWs: any;
394
420
  fetchTradingFee: any;
395
421
  fetchTradingFees: any;
396
422
  fetchTradingFeesWs: any;
397
423
  fetchTradingLimits: any;
424
+ fetchTransactionFee: any;
425
+ fetchTransactionFees: any;
398
426
  fetchTransactions: any;
427
+ fetchTransfer: any;
399
428
  fetchTransfers: any;
429
+ fetchUnderlyingAssets: any;
430
+ fetchVolatilityHistory: any;
400
431
  fetchWithdrawAddresses: any;
401
432
  fetchWithdrawal: any;
402
433
  fetchWithdrawals: any;
403
434
  fetchWithdrawalsWs: any;
435
+ fetchWithdrawalWhitelist: any;
404
436
  reduceMargin: any;
437
+ repayCrossMargin: any;
438
+ repayIsolatedMargin: any;
405
439
  setLeverage: any;
406
440
  setMargin: any;
407
441
  setMarginMode: any;
408
442
  setPositionMode: any;
409
443
  signIn: any;
410
444
  transfer: any;
411
- withdraw: any;
445
+ watchBalance: any;
446
+ watchMyTrades: any;
447
+ watchOHLCV: any;
448
+ watchOHLCVForSymbols: any;
412
449
  watchOrderBook: any;
450
+ watchOrderBookForSymbols: any;
413
451
  watchOrders: any;
414
- watchMyTrades: any;
415
- watchTickers: any;
452
+ watchOrdersForSymbols: any;
453
+ watchPosition: any;
454
+ watchPositions: any;
455
+ watchStatus: any;
416
456
  watchTicker: any;
457
+ watchTickers: any;
417
458
  watchTrades: any;
418
459
  watchTradesForSymbols: any;
419
- watchOrderBookForSymbols: any;
420
- watchOHLCVForSymbols: any;
421
- watchBalance: any;
422
- watchOHLCV: any;
460
+ withdraw: any;
461
+ ws: any;
423
462
  };
424
463
  urls: {
425
464
  logo: any;
@@ -349,51 +349,59 @@ export default class Exchange {
349
349
  'future': undefined,
350
350
  'option': undefined,
351
351
  'addMargin': undefined,
352
+ 'borrowCrossMargin': undefined,
353
+ 'borrowIsolatedMargin': undefined,
354
+ 'borrowMargin': undefined,
352
355
  'cancelAllOrders': undefined,
356
+ 'cancelAllOrdersWs': undefined,
353
357
  'cancelOrder': true,
354
358
  'cancelOrders': undefined,
359
+ 'cancelOrdersWs': undefined,
360
+ 'cancelOrderWs': undefined,
355
361
  'closeAllPositions': undefined,
356
362
  'closePosition': undefined,
357
363
  'createDepositAddress': undefined,
364
+ 'createLimitBuyOrder': undefined,
358
365
  'createLimitOrder': true,
359
- 'createMarketOrder': true,
360
- 'createOrder': true,
366
+ 'createLimitSellOrder': undefined,
367
+ 'createMarketBuyOrder': undefined,
361
368
  'createMarketBuyOrderWithCost': undefined,
369
+ 'createMarketOrder': true,
362
370
  'createMarketOrderWithCost': undefined,
371
+ 'createMarketSellOrder': undefined,
363
372
  'createMarketSellOrderWithCost': undefined,
373
+ 'createOrder': true,
364
374
  'createOrders': undefined,
365
375
  'createOrderWithTakeProfitAndStopLoss': undefined,
376
+ 'createOrderWs': undefined,
366
377
  'createPostOnlyOrder': undefined,
367
378
  'createReduceOnlyOrder': undefined,
368
- 'createStopLossOrder': undefined,
369
- 'createStopOrder': undefined,
370
379
  'createStopLimitOrder': undefined,
380
+ 'createStopLossOrder': undefined,
371
381
  'createStopMarketOrder': undefined,
382
+ 'createStopOrder': undefined,
372
383
  'createTakeProfitOrder': undefined,
373
384
  'createTrailingAmountOrder': undefined,
374
385
  'createTrailingPercentOrder': undefined,
375
386
  'createTriggerOrder': undefined,
376
- 'createOrderWs': undefined,
377
- 'editOrderWs': undefined,
378
- 'fetchOpenOrdersWs': undefined,
379
- 'fetchClosedOrdersWs': undefined,
380
- 'fetchOrderWs': undefined,
381
- 'fetchOrdersWs': undefined,
382
- 'cancelOrderWs': undefined,
383
- 'cancelOrdersWs': undefined,
384
- 'cancelAllOrdersWs': undefined,
385
- 'fetchTradesWs': undefined,
386
- 'fetchBalanceWs': undefined,
387
+ 'deposit': undefined,
387
388
  'editOrder': 'emulated',
389
+ 'editOrderWs': undefined,
388
390
  'fetchAccounts': undefined,
389
391
  'fetchBalance': true,
392
+ 'fetchBalanceWs': undefined,
390
393
  'fetchBidsAsks': undefined,
391
394
  'fetchBorrowInterest': undefined,
395
+ 'fetchBorrowRate': undefined,
396
+ 'fetchBorrowRateHistories': undefined,
392
397
  'fetchBorrowRateHistory': undefined,
393
- 'fetchCanceledOrders': undefined,
398
+ 'fetchBorrowRates': undefined,
399
+ 'fetchBorrowRatesPerSymbol': undefined,
394
400
  'fetchCanceledAndClosedOrders': undefined,
401
+ 'fetchCanceledOrders': undefined,
395
402
  'fetchClosedOrder': undefined,
396
403
  'fetchClosedOrders': undefined,
404
+ 'fetchClosedOrdersWs': undefined,
397
405
  'fetchCrossBorrowRate': undefined,
398
406
  'fetchCrossBorrowRates': undefined,
399
407
  'fetchCurrencies': 'emulated',
@@ -403,78 +411,109 @@ export default class Exchange {
403
411
  'fetchDepositAddresses': undefined,
404
412
  'fetchDepositAddressesByNetwork': undefined,
405
413
  'fetchDeposits': undefined,
406
- 'fetchDepositsWs': undefined,
407
414
  'fetchDepositsWithdrawals': undefined,
408
- 'fetchTransactionFee': undefined,
409
- 'fetchTransactionFees': undefined,
415
+ 'fetchDepositsWs': undefined,
416
+ 'fetchDepositWithdrawFee': undefined,
417
+ 'fetchDepositWithdrawFees': undefined,
410
418
  'fetchFundingHistory': undefined,
411
419
  'fetchFundingRate': undefined,
412
420
  'fetchFundingRateHistory': undefined,
413
421
  'fetchFundingRates': undefined,
422
+ 'fetchGreeks': undefined,
414
423
  'fetchIndexOHLCV': undefined,
415
424
  'fetchIsolatedBorrowRate': undefined,
416
425
  'fetchIsolatedBorrowRates': undefined,
426
+ 'fetchIsolatedPositions': undefined,
417
427
  'fetchL2OrderBook': true,
428
+ 'fetchL3OrderBook': undefined,
418
429
  'fetchLastPrices': undefined,
419
430
  'fetchLedger': undefined,
420
431
  'fetchLedgerEntry': undefined,
432
+ 'fetchLeverage': undefined,
421
433
  'fetchLeverageTiers': undefined,
434
+ 'fetchLiquidations': undefined,
435
+ 'fetchMarginMode': undefined,
422
436
  'fetchMarketLeverageTiers': undefined,
423
437
  'fetchMarkets': true,
424
438
  'fetchMarketsWs': undefined,
425
439
  'fetchMarkOHLCV': undefined,
440
+ 'fetchMyLiquidations': undefined,
441
+ 'fetchMySettlementHistory': undefined,
426
442
  'fetchMyTrades': undefined,
443
+ 'fetchMyTradesWs': undefined,
427
444
  'fetchOHLCV': undefined,
428
445
  'fetchOHLCVWs': undefined,
429
446
  'fetchOpenInterest': undefined,
430
447
  'fetchOpenInterestHistory': undefined,
431
448
  'fetchOpenOrder': undefined,
432
449
  'fetchOpenOrders': undefined,
450
+ 'fetchOpenOrdersWs': undefined,
433
451
  'fetchOrder': undefined,
434
452
  'fetchOrderBook': true,
435
453
  'fetchOrderBooks': undefined,
454
+ 'fetchOrderBookWs': undefined,
436
455
  'fetchOrders': undefined,
456
+ 'fetchOrdersByStatus': undefined,
457
+ 'fetchOrdersWs': undefined,
437
458
  'fetchOrderTrades': undefined,
459
+ 'fetchOrderWs': undefined,
438
460
  'fetchPermissions': undefined,
439
461
  'fetchPosition': undefined,
462
+ 'fetchPositionMode': undefined,
440
463
  'fetchPositions': undefined,
441
464
  'fetchPositionsForSymbol': undefined,
442
465
  'fetchPositionsRisk': undefined,
443
466
  'fetchPremiumIndexOHLCV': undefined,
467
+ 'fetchSettlementHistory': undefined,
444
468
  'fetchStatus': undefined,
445
469
  'fetchTicker': true,
446
470
  'fetchTickers': undefined,
471
+ 'fetchTickerWs': undefined,
447
472
  'fetchTime': undefined,
448
473
  'fetchTrades': true,
474
+ 'fetchTradesWs': undefined,
449
475
  'fetchTradingFee': undefined,
450
476
  'fetchTradingFees': undefined,
451
477
  'fetchTradingFeesWs': undefined,
452
478
  'fetchTradingLimits': undefined,
479
+ 'fetchTransactionFee': undefined,
480
+ 'fetchTransactionFees': undefined,
453
481
  'fetchTransactions': undefined,
482
+ 'fetchTransfer': undefined,
454
483
  'fetchTransfers': undefined,
484
+ 'fetchUnderlyingAssets': undefined,
485
+ 'fetchVolatilityHistory': undefined,
455
486
  'fetchWithdrawAddresses': undefined,
456
487
  'fetchWithdrawal': undefined,
457
488
  'fetchWithdrawals': undefined,
458
489
  'fetchWithdrawalsWs': undefined,
490
+ 'fetchWithdrawalWhitelist': undefined,
459
491
  'reduceMargin': undefined,
492
+ 'repayCrossMargin': undefined,
493
+ 'repayIsolatedMargin': undefined,
460
494
  'setLeverage': undefined,
461
495
  'setMargin': undefined,
462
496
  'setMarginMode': undefined,
463
497
  'setPositionMode': undefined,
464
498
  'signIn': undefined,
465
499
  'transfer': undefined,
466
- 'withdraw': undefined,
500
+ 'watchBalance': undefined,
501
+ 'watchMyTrades': undefined,
502
+ 'watchOHLCV': undefined,
503
+ 'watchOHLCVForSymbols': undefined,
467
504
  'watchOrderBook': undefined,
505
+ 'watchOrderBookForSymbols': undefined,
468
506
  'watchOrders': undefined,
469
- 'watchMyTrades': undefined,
470
- 'watchTickers': undefined,
507
+ 'watchOrdersForSymbols': undefined,
508
+ 'watchPosition': undefined,
509
+ 'watchPositions': undefined,
510
+ 'watchStatus': undefined,
471
511
  'watchTicker': undefined,
512
+ 'watchTickers': undefined,
472
513
  'watchTrades': undefined,
473
514
  'watchTradesForSymbols': undefined,
474
- 'watchOrderBookForSymbols': undefined,
475
- 'watchOHLCVForSymbols': undefined,
476
- 'watchBalance': undefined,
477
- 'watchOHLCV': undefined,
515
+ 'withdraw': undefined,
516
+ 'ws': undefined,
478
517
  },
479
518
  'urls': {
480
519
  'logo': undefined,
@@ -66,6 +66,7 @@ export default class binance extends Exchange {
66
66
  fetchOpenOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
67
67
  fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
68
68
  fetchCanceledOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
69
+ fetchCanceledAndClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
69
70
  cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
70
71
  cancelAllOrders(symbol?: Str, params?: {}): Promise<any>;
71
72
  cancelOrders(ids: string[], symbol?: Str, params?: {}): Promise<Order[]>;
@@ -425,4 +426,9 @@ export default class binance extends Exchange {
425
426
  underlyingPrice: any;
426
427
  info: any;
427
428
  };
429
+ fetchTradingLimits(symbols?: Strings, params?: {}): Promise<{}>;
430
+ fetchPositionMode(symbol?: Str, params?: {}): Promise<{
431
+ info: any;
432
+ hedged: boolean;
433
+ }>;
428
434
  }