ccxt 4.1.46 → 4.1.47

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 (104) hide show
  1. package/README.md +3 -3
  2. package/dist/ccxt.browser.js +118 -23
  3. package/dist/ccxt.browser.min.js +2 -2
  4. package/dist/cjs/ccxt.js +1 -1
  5. package/dist/cjs/src/base/Exchange.js +3 -0
  6. package/dist/cjs/src/binance.js +4 -0
  7. package/dist/cjs/src/bitmart.js +2 -2
  8. package/dist/cjs/src/hitbtc.js +79 -1
  9. package/dist/cjs/src/krakenfutures.js +13 -3
  10. package/dist/cjs/src/pro/binance.js +2 -2
  11. package/dist/cjs/src/pro/bitget.js +2 -2
  12. package/dist/cjs/src/pro/bybit.js +2 -2
  13. package/dist/cjs/src/pro/cryptocom.js +2 -2
  14. package/dist/cjs/src/pro/gate.js +2 -2
  15. package/dist/cjs/src/pro/huobi.js +2 -2
  16. package/dist/cjs/src/pro/krakenfutures.js +2 -2
  17. package/dist/cjs/src/pro/okx.js +2 -2
  18. package/js/ccxt.d.ts +3 -3
  19. package/js/ccxt.js +1 -1
  20. package/js/src/abstract/binance.d.ts +4 -0
  21. package/js/src/abstract/binancecoinm.d.ts +4 -0
  22. package/js/src/abstract/binanceus.d.ts +4 -0
  23. package/js/src/abstract/binanceusdm.d.ts +4 -0
  24. package/js/src/ascendex.d.ts +3 -3
  25. package/js/src/base/Exchange.d.ts +2 -1
  26. package/js/src/base/Exchange.js +3 -0
  27. package/js/src/base/types.d.ts +5 -0
  28. package/js/src/bigone.d.ts +2 -2
  29. package/js/src/binance.d.ts +2 -2
  30. package/js/src/binance.js +4 -0
  31. package/js/src/bingx.d.ts +2 -2
  32. package/js/src/bitbns.d.ts +2 -2
  33. package/js/src/bitfinex.d.ts +3 -3
  34. package/js/src/bitfinex2.d.ts +3 -3
  35. package/js/src/bitflyer.d.ts +2 -2
  36. package/js/src/bitget.d.ts +2 -2
  37. package/js/src/bitmart.d.ts +2 -2
  38. package/js/src/bitmart.js +2 -2
  39. package/js/src/bitmex.d.ts +1 -1
  40. package/js/src/bitopro.d.ts +2 -2
  41. package/js/src/bitpanda.d.ts +2 -2
  42. package/js/src/bitrue.d.ts +2 -2
  43. package/js/src/bitso.d.ts +1 -1
  44. package/js/src/bitstamp.d.ts +2 -2
  45. package/js/src/bittrex.d.ts +4 -4
  46. package/js/src/bitvavo.d.ts +2 -2
  47. package/js/src/blockchaincom.d.ts +4 -4
  48. package/js/src/btcalpha.d.ts +2 -2
  49. package/js/src/btcmarkets.d.ts +3 -3
  50. package/js/src/bybit.d.ts +2 -2
  51. package/js/src/coinbase.d.ts +5 -5
  52. package/js/src/coinbasepro.d.ts +3 -3
  53. package/js/src/coincheck.d.ts +2 -2
  54. package/js/src/coinex.d.ts +8 -8
  55. package/js/src/coinfalcon.d.ts +2 -2
  56. package/js/src/coinlist.d.ts +1 -1
  57. package/js/src/coinmate.d.ts +1 -1
  58. package/js/src/coinsph.d.ts +2 -2
  59. package/js/src/cryptocom.d.ts +2 -2
  60. package/js/src/currencycom.d.ts +6 -6
  61. package/js/src/deribit.d.ts +2 -2
  62. package/js/src/digifinex.d.ts +2 -2
  63. package/js/src/exmo.d.ts +3 -3
  64. package/js/src/gate.d.ts +2 -2
  65. package/js/src/gemini.d.ts +1 -1
  66. package/js/src/hitbtc.d.ts +5 -4
  67. package/js/src/hitbtc.js +79 -1
  68. package/js/src/hollaex.d.ts +2 -2
  69. package/js/src/huobi.d.ts +2 -2
  70. package/js/src/huobijp.d.ts +2 -2
  71. package/js/src/idex.d.ts +2 -2
  72. package/js/src/indodax.d.ts +1 -1
  73. package/js/src/kraken.d.ts +2 -2
  74. package/js/src/krakenfutures.js +14 -4
  75. package/js/src/kucoin.d.ts +2 -2
  76. package/js/src/kucoinfutures.d.ts +3 -3
  77. package/js/src/kuna.d.ts +2 -2
  78. package/js/src/latoken.d.ts +2 -2
  79. package/js/src/lbank2.d.ts +2 -2
  80. package/js/src/lykke.d.ts +1 -1
  81. package/js/src/mexc.d.ts +2 -2
  82. package/js/src/ndax.d.ts +2 -2
  83. package/js/src/novadax.d.ts +3 -3
  84. package/js/src/okcoin.d.ts +8 -8
  85. package/js/src/okx.d.ts +7 -7
  86. package/js/src/phemex.d.ts +6 -6
  87. package/js/src/poloniex.d.ts +3 -3
  88. package/js/src/pro/binance.js +2 -2
  89. package/js/src/pro/bitget.js +2 -2
  90. package/js/src/pro/bybit.js +2 -2
  91. package/js/src/pro/cryptocom.js +2 -2
  92. package/js/src/pro/gate.js +2 -2
  93. package/js/src/pro/huobi.js +2 -2
  94. package/js/src/pro/krakenfutures.js +2 -2
  95. package/js/src/pro/okx.js +2 -2
  96. package/js/src/probit.d.ts +2 -2
  97. package/js/src/timex.d.ts +2 -2
  98. package/js/src/tokocrypto.d.ts +5 -5
  99. package/js/src/upbit.d.ts +2 -2
  100. package/js/src/wavesexchange.d.ts +2 -2
  101. package/js/src/whitebit.d.ts +1 -1
  102. package/js/src/woo.d.ts +3 -3
  103. package/package.json +1 -1
  104. package/skip-tests.json +5 -0
package/dist/cjs/ccxt.js CHANGED
@@ -181,7 +181,7 @@ var woo$1 = require('./src/pro/woo.js');
181
181
 
182
182
  //-----------------------------------------------------------------------------
183
183
  // this is updated by vss.js when building
184
- const version = '4.1.46';
184
+ const version = '4.1.47';
185
185
  Exchange["default"].ccxtVersion = version;
186
186
  const exchanges = {
187
187
  'ace': ace,
@@ -1349,6 +1349,9 @@ class Exchange {
1349
1349
  async fetchOrderBook(symbol, limit = undefined, params = {}) {
1350
1350
  throw new errors.NotSupported(this.id + ' fetchOrderBook() is not supported yet');
1351
1351
  }
1352
+ async fetchMarginMode(symbol = undefined, params = {}) {
1353
+ throw new errors.NotSupported(this.id + ' fetchMarginMode() is not supported yet');
1354
+ }
1352
1355
  async fetchRestOrderBookSafe(symbol, limit = undefined, params = {}) {
1353
1356
  const fetchSnapshotMaxRetries = this.handleOption('watchOrderBook', 'maxRetries', 3);
1354
1357
  for (let i = 0; i < fetchSnapshotMaxRetries; i++) {
@@ -960,7 +960,9 @@ class binance extends binance$1 {
960
960
  },
961
961
  'post': {
962
962
  'um/order': 1,
963
+ 'um/conditional/order': 1,
963
964
  'cm/order': 1,
965
+ 'cm/conditional/order': 1,
964
966
  'margin/order': 0.0133,
965
967
  'marginLoan': 0.1333,
966
968
  'repayLoan': 0.1333,
@@ -981,8 +983,10 @@ class binance extends binance$1 {
981
983
  },
982
984
  'delete': {
983
985
  'um/order': 1,
986
+ 'um/conditional/order': 1,
984
987
  'um/allOpenOrders': 1,
985
988
  'cm/order': 1,
989
+ 'cm/conditional/order': 1,
986
990
  'cm/allOpenOrders': 1,
987
991
  'margin/order': 1,
988
992
  'margin/allOpenOrders': 5,
@@ -1509,7 +1509,7 @@ class bitmart extends bitmart$1 {
1509
1509
  * @method
1510
1510
  * @name bitmart#fetchOHLCV
1511
1511
  * @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
1512
- * @see https://developer-pro.bitmart.com/en/spot/#get-latest-k-line-v3
1512
+ * @see https://developer-pro.bitmart.com/en/spot/#get-history-k-line-v3
1513
1513
  * @see https://developer-pro.bitmart.com/en/futures/#get-k-line
1514
1514
  * @param {string} symbol unified symbol of the market to fetch OHLCV data for
1515
1515
  * @param {string} timeframe the length of time each candle represents
@@ -1572,7 +1572,7 @@ class bitmart extends bitmart$1 {
1572
1572
  response = await this.publicGetContractPublicKline(this.extend(request, params));
1573
1573
  }
1574
1574
  else {
1575
- response = await this.publicGetSpotQuotationV3LiteKlines(this.extend(request, params));
1575
+ response = await this.publicGetSpotQuotationV3Klines(this.extend(request, params));
1576
1576
  }
1577
1577
  //
1578
1578
  // spot
@@ -60,7 +60,7 @@ class hitbtc extends hitbtc$1 {
60
60
  'fetchLeverage': true,
61
61
  'fetchLeverageTiers': undefined,
62
62
  'fetchLiquidations': false,
63
- 'fetchMarginMode': false,
63
+ 'fetchMarginMode': true,
64
64
  'fetchMarketLeverageTiers': false,
65
65
  'fetchMarkets': true,
66
66
  'fetchMarkOHLCV': true,
@@ -2346,6 +2346,84 @@ class hitbtc extends hitbtc$1 {
2346
2346
  'stopLossPrice': undefined,
2347
2347
  }, market);
2348
2348
  }
2349
+ async fetchMarginMode(symbol = undefined, params = {}) {
2350
+ /**
2351
+ * @method
2352
+ * @name hitbtc#fetchMarginMode
2353
+ * @description fetches margin mode of the user
2354
+ * @see https://api.hitbtc.com/#get-margin-position-parameters
2355
+ * @see https://api.hitbtc.com/#get-futures-position-parameters
2356
+ * @param {string} symbol unified symbol of the market the order was made in
2357
+ * @param {object} [params] extra parameters specific to the hitbtc api endpoint
2358
+ * @returns {object} Struct of MarginMode
2359
+ */
2360
+ await this.loadMarkets();
2361
+ let market = undefined;
2362
+ if (symbol !== undefined) {
2363
+ market = this.market(symbol);
2364
+ }
2365
+ let marketType = undefined;
2366
+ [marketType, params] = this.handleMarketTypeAndParams('fetchMarginMode', market, params);
2367
+ let response = undefined;
2368
+ if (marketType === 'margin') {
2369
+ response = await this.privateGetMarginConfig(params);
2370
+ }
2371
+ else if (marketType === 'swap') {
2372
+ response = await this.privateGetFuturesConfig(params);
2373
+ }
2374
+ else {
2375
+ throw new errors.BadSymbol(this.id + ' fetchMarginMode() supports swap contracts and margin only');
2376
+ }
2377
+ //
2378
+ // margin
2379
+ // {
2380
+ // "config": [{
2381
+ // "symbol": "BTCUSD",
2382
+ // "margin_call_leverage_mul": "1.50",
2383
+ // "liquidation_leverage_mul": "2.00",
2384
+ // "max_initial_leverage": "10.00",
2385
+ // "margin_mode": "Isolated",
2386
+ // "force_close_fee": "0.05",
2387
+ // "enabled": true,
2388
+ // "active": true,
2389
+ // "limit_base": "50000.00",
2390
+ // "limit_power": "2.2",
2391
+ // "unlimited_threshold": "10.0"
2392
+ // }]
2393
+ // }
2394
+ //
2395
+ // swap
2396
+ // {
2397
+ // "config": [{
2398
+ // "symbol": "BTCUSD_PERP",
2399
+ // "margin_call_leverage_mul": "1.20",
2400
+ // "liquidation_leverage_mul": "2.00",
2401
+ // "max_initial_leverage": "100.00",
2402
+ // "margin_mode": "Isolated",
2403
+ // "force_close_fee": "0.001",
2404
+ // "enabled": true,
2405
+ // "active": false,
2406
+ // "limit_base": "5000000.000000000000",
2407
+ // "limit_power": "1.25",
2408
+ // "unlimited_threshold": "2.00"
2409
+ // }]
2410
+ // }
2411
+ //
2412
+ const config = this.safeValue(response, 'config', []);
2413
+ const marginModes = [];
2414
+ for (let i = 0; i < config.length; i++) {
2415
+ const data = this.safeValue(config, i);
2416
+ const marketId = this.safeString(data, 'symbol');
2417
+ const marketInner = this.safeMarket(marketId);
2418
+ marginModes.push({
2419
+ 'info': data,
2420
+ 'symbol': this.safeString(marketInner, 'symbol'),
2421
+ 'marginMode': this.safeStringLower(data, 'margin_mode'),
2422
+ });
2423
+ }
2424
+ const filteredMargin = this.filterBySymbol(marginModes, symbol);
2425
+ return this.safeValue(filteredMargin, 0);
2426
+ }
2349
2427
  async transfer(code, amount, fromAccount, toAccount, params = {}) {
2350
2428
  /**
2351
2429
  * @method
@@ -156,7 +156,7 @@ class krakenfutures extends krakenfutures$1 {
156
156
  'exceptions': {
157
157
  'exact': {
158
158
  'apiLimitExceeded': errors.RateLimitExceeded,
159
- 'marketUnavailable': errors.ExchangeNotAvailable,
159
+ 'marketUnavailable': errors.ContractUnavailable,
160
160
  'requiredArgumentMissing': errors.BadRequest,
161
161
  'unavailable': errors.ExchangeNotAvailable,
162
162
  'authenticationError': errors.AuthenticationError,
@@ -165,7 +165,14 @@ class krakenfutures extends krakenfutures$1 {
165
165
  'invalidAmount': errors.BadRequest,
166
166
  'insufficientFunds': errors.InsufficientFunds,
167
167
  'Bad Request': errors.BadRequest,
168
- 'Unavailable': errors.InsufficientFunds, // Insufficient funds in Futures account [withdraw]
168
+ 'Unavailable': errors.InsufficientFunds,
169
+ 'invalidUnit': errors.BadRequest,
170
+ 'Json Parse Error': errors.ExchangeError,
171
+ 'nonceBelowThreshold': errors.InvalidNonce,
172
+ 'nonceDuplicate': errors.InvalidNonce,
173
+ 'notFound': errors.BadRequest,
174
+ 'Server Error': errors.ExchangeError,
175
+ 'unknownError': errors.ExchangeError,
169
176
  },
170
177
  'broad': {
171
178
  'invalidArgument': errors.BadRequest,
@@ -2305,7 +2312,10 @@ class krakenfutures extends krakenfutures$1 {
2305
2312
  if (code === 429) {
2306
2313
  throw new errors.DDoSProtection(this.id + ' ' + body);
2307
2314
  }
2308
- const message = this.safeString(response, 'error');
2315
+ const errors$1 = this.safeValue(response, 'errors');
2316
+ const firstError = this.safeValue(errors$1, 0);
2317
+ const firtErrorMessage = this.safeString(firstError, 'message');
2318
+ const message = this.safeString(response, 'error', firtErrorMessage);
2309
2319
  if (message === undefined) {
2310
2320
  return undefined;
2311
2321
  }
@@ -2346,9 +2346,9 @@ class binance extends binance$1 {
2346
2346
  * @method
2347
2347
  * @name binance#watchPositions
2348
2348
  * @description watch all open positions
2349
- * @param {[string]|undefined} symbols list of unified market symbols
2349
+ * @param {string[]|undefined} symbols list of unified market symbols
2350
2350
  * @param {object} params extra parameters specific to the binance api endpoint
2351
- * @returns {[object]} a list of [position structure]{@link https://docs.ccxt.com/en/latest/manual.html#position-structure}
2351
+ * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/en/latest/manual.html#position-structure}
2352
2352
  */
2353
2353
  await this.loadMarkets();
2354
2354
  await this.authenticate(params);
@@ -757,10 +757,10 @@ class bitget extends bitget$1 {
757
757
  * @name bitget#watchPositions
758
758
  * @description watch all open positions
759
759
  * @see https://bitgetlimited.github.io/apidoc/en/mix/#positions-channel
760
- * @param {[string]|undefined} symbols list of unified market symbols
760
+ * @param {string[]|undefined} symbols list of unified market symbols
761
761
  * @param {object} params extra parameters specific to the bitget api endpoint
762
762
  * @param {string} params.instType Instrument Type umcbl:USDT Perpetual Contract Private Channel; dmcbl:Coin Margin Perpetual Contract Private Channel; cmcbl: USDC margin Perpetual Contract Private Channel
763
- * @returns {[object]} a list of [position structure]{@link https://docs.ccxt.com/en/latest/manual.html#position-structure}
763
+ * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/en/latest/manual.html#position-structure}
764
764
  */
765
765
  await this.loadMarkets();
766
766
  let market = undefined;
@@ -976,9 +976,9 @@ class bybit extends bybit$1 {
976
976
  * @name bybit#watchPositions
977
977
  * @see https://bybit-exchange.github.io/docs/v5/websocket/private/position
978
978
  * @description watch all open positions
979
- * @param {[string]|undefined} symbols list of unified market symbols
979
+ * @param {string[]|undefined} symbols list of unified market symbols
980
980
  * @param {object} params extra parameters specific to the bybit api endpoint
981
- * @returns {[object]} a list of [position structure]{@link https://docs.ccxt.com/en/latest/manual.html#position-structure}
981
+ * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/en/latest/manual.html#position-structure}
982
982
  */
983
983
  await this.loadMarkets();
984
984
  const method = 'watchPositions';
@@ -459,9 +459,9 @@ class cryptocom extends cryptocom$1 {
459
459
  * @name cryptocom#watchPositions
460
460
  * @description watch all open positions
461
461
  * @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#user-position_balance
462
- * @param {[string]|undefined} symbols list of unified market symbols
462
+ * @param {string[]|undefined} symbols list of unified market symbols
463
463
  * @param {object} params extra parameters specific to the cryptocom api endpoint
464
- * @returns {[object]} a list of [position structure]{@link https://docs.ccxt.com/en/latest/manual.html#position-structure}
464
+ * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/en/latest/manual.html#position-structure}
465
465
  */
466
466
  await this.loadMarkets();
467
467
  await this.authenticate();
@@ -763,9 +763,9 @@ class gate extends gate$1 {
763
763
  * @see https://www.gate.io/docs/developers/delivery/ws/en/#positions-subscription
764
764
  * @see https://www.gate.io/docs/developers/options/ws/en/#positions-channel
765
765
  * @description watch all open positions
766
- * @param {[string]|undefined} symbols list of unified market symbols
766
+ * @param {string[]|undefined} symbols list of unified market symbols
767
767
  * @param {object} params extra parameters specific to the gate api endpoint
768
- * @returns {[object]} a list of [position structure]{@link https://docs.ccxt.com/en/latest/manual.html#position-structure}
768
+ * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/en/latest/manual.html#position-structure}
769
769
  */
770
770
  await this.loadMarkets();
771
771
  let market = undefined;
@@ -1196,9 +1196,9 @@ class huobi extends huobi$1 {
1196
1196
  * @see https://www.huobi.com/en-in/opend/newApiPages/?id=28c34a7d-77ae-11ed-9966-0242ac110003
1197
1197
  * @see https://www.huobi.com/en-in/opend/newApiPages/?id=5d5156b5-77b6-11ed-9966-0242ac110003
1198
1198
  * @description watch all open positions. Note: huobi has one channel for each marginMode and type
1199
- * @param {[string]|undefined} symbols list of unified market symbols
1199
+ * @param {string[]|undefined} symbols list of unified market symbols
1200
1200
  * @param {object} params extra parameters specific to the huobi api endpoint
1201
- * @returns {[object]} a list of [position structure]{@link https://docs.ccxt.com/en/latest/manual.html#position-structure}
1201
+ * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/en/latest/manual.html#position-structure}
1202
1202
  */
1203
1203
  await this.loadMarkets();
1204
1204
  let market = undefined;
@@ -211,9 +211,9 @@ class krakenfutures extends krakenfutures$1 {
211
211
  * @name krakenfutures#watchPositions
212
212
  * @see https://docs.futures.kraken.com/#websocket-api-private-feeds-open-positions
213
213
  * @description watch all open positions
214
- * @param {[string]|undefined} symbols list of unified market symbols
214
+ * @param {string[]|undefined} symbols list of unified market symbols
215
215
  * @param {object} params extra parameters specific to the krakenfutures api endpoint
216
- * @returns {[object]} a list of [position structure]{@link https://docs.ccxt.com/en/latest/manual.html#position-structure}
216
+ * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/en/latest/manual.html#position-structure}
217
217
  */
218
218
  await this.loadMarkets();
219
219
  let messageHash = '';
@@ -857,9 +857,9 @@ class okx extends okx$1 {
857
857
  * @name okx#watchPositions
858
858
  * @see https://www.okx.com/docs-v5/en/#trading-account-websocket-positions-channel
859
859
  * @description watch all open positions
860
- * @param {[string]|undefined} symbols list of unified market symbols
860
+ * @param {string[]|undefined} symbols list of unified market symbols
861
861
  * @param {object} params extra parameters specific to the okx api endpoint
862
- * @returns {[object]} a list of [position structure]{@link https://docs.ccxt.com/en/latest/manual.html#position-structure}
862
+ * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/en/latest/manual.html#position-structure}
863
863
  */
864
864
  if (this.isEmpty(symbols)) {
865
865
  throw new errors.ArgumentsRequired(this.id + ' watchPositions requires a list of symbols');
package/js/ccxt.d.ts CHANGED
@@ -2,9 +2,9 @@ import { Exchange } from './src/base/Exchange.js';
2
2
  import { Precise } from './src/base/Precise.js';
3
3
  import * as functions from './src/base/functions.js';
4
4
  import * as errors from './src/base/errors.js';
5
- import { Market, Trade, Fee, Ticker, OrderBook, Order, Transaction, Tickers, Currency, Balance, DepositAddress, WithdrawalResponse, DepositAddressResponse, OHLCV, Balances, PartialBalances, Dictionary, MinMax, Position, FundingRateHistory, Liquidation, FundingHistory } from './src/base/types.js';
5
+ import { Market, Trade, Fee, Ticker, OrderBook, Order, Transaction, Tickers, Currency, Balance, DepositAddress, WithdrawalResponse, DepositAddressResponse, OHLCV, Balances, PartialBalances, Dictionary, MinMax, Position, FundingRateHistory, Liquidation, FundingHistory, MarginMode } 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.1.45";
7
+ declare const version = "4.1.46";
8
8
  import ace from './src/ace.js';
9
9
  import alpaca from './src/alpaca.js';
10
10
  import ascendex from './src/ascendex.js';
@@ -516,5 +516,5 @@ declare const ccxt: {
516
516
  zaif: typeof zaif;
517
517
  zonda: typeof zonda;
518
518
  } & typeof functions & typeof errors;
519
- 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, 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, bitstamp1, bittrex, bitvavo, bl3p, blockchaincom, btcalpha, btcbox, btcmarkets, btctradeua, btcturk, bybit, cex, coinbase, coinbaseprime, coinbasepro, coincheck, coinex, coinfalcon, coinlist, coinmate, coinone, coinsph, coinspot, cryptocom, currencycom, delta, deribit, digifinex, exmo, fmfwio, gate, gateio, gemini, hitbtc, hitbtc3, hollaex, huobi, huobijp, huobipro, idex, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, kuna, latoken, lbank, lbank2, luno, lykke, mercado, mexc, mexc3, ndax, novadax, oceanex, okcoin, okex, okex5, okx, paymium, phemex, poloniex, poloniexfutures, probit, tidex, timex, tokocrypto, upbit, wavesexchange, wazirx, whitebit, woo, yobit, zaif, zonda, };
519
+ 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, 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, bitstamp1, bittrex, bitvavo, bl3p, blockchaincom, btcalpha, btcbox, btcmarkets, btctradeua, btcturk, bybit, cex, coinbase, coinbaseprime, coinbasepro, coincheck, coinex, coinfalcon, coinlist, coinmate, coinone, coinsph, coinspot, cryptocom, currencycom, delta, deribit, digifinex, exmo, fmfwio, gate, gateio, gemini, hitbtc, hitbtc3, hollaex, huobi, huobijp, huobipro, idex, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, kuna, latoken, lbank, lbank2, luno, lykke, mercado, mexc, mexc3, ndax, novadax, oceanex, okcoin, okex, okex5, okx, paymium, phemex, poloniex, poloniexfutures, probit, tidex, timex, tokocrypto, upbit, wavesexchange, wazirx, whitebit, woo, yobit, zaif, zonda, };
520
520
  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.1.46';
41
+ const version = '4.1.47';
42
42
  Exchange.ccxtVersion = version;
43
43
  //-----------------------------------------------------------------------------
44
44
  import ace from './src/ace.js';
@@ -628,7 +628,9 @@ interface Exchange {
628
628
  papiGetUmAdlQuantile(params?: {}): Promise<implicitReturnType>;
629
629
  papiGetCmAdlQuantile(params?: {}): Promise<implicitReturnType>;
630
630
  papiPostUmOrder(params?: {}): Promise<implicitReturnType>;
631
+ papiPostUmConditionalOrder(params?: {}): Promise<implicitReturnType>;
631
632
  papiPostCmOrder(params?: {}): Promise<implicitReturnType>;
633
+ papiPostCmConditionalOrder(params?: {}): Promise<implicitReturnType>;
632
634
  papiPostMarginOrder(params?: {}): Promise<implicitReturnType>;
633
635
  papiPostMarginLoan(params?: {}): Promise<implicitReturnType>;
634
636
  papiPostRepayLoan(params?: {}): Promise<implicitReturnType>;
@@ -645,8 +647,10 @@ interface Exchange {
645
647
  papiPostAssetCollection(params?: {}): Promise<implicitReturnType>;
646
648
  papiPutListenKey(params?: {}): Promise<implicitReturnType>;
647
649
  papiDeleteUmOrder(params?: {}): Promise<implicitReturnType>;
650
+ papiDeleteUmConditionalOrder(params?: {}): Promise<implicitReturnType>;
648
651
  papiDeleteUmAllOpenOrders(params?: {}): Promise<implicitReturnType>;
649
652
  papiDeleteCmOrder(params?: {}): Promise<implicitReturnType>;
653
+ papiDeleteCmConditionalOrder(params?: {}): Promise<implicitReturnType>;
650
654
  papiDeleteCmAllOpenOrders(params?: {}): Promise<implicitReturnType>;
651
655
  papiDeleteMarginOrder(params?: {}): Promise<implicitReturnType>;
652
656
  papiDeleteMarginAllOpenOrders(params?: {}): Promise<implicitReturnType>;
@@ -628,7 +628,9 @@ interface binance {
628
628
  papiGetUmAdlQuantile(params?: {}): Promise<implicitReturnType>;
629
629
  papiGetCmAdlQuantile(params?: {}): Promise<implicitReturnType>;
630
630
  papiPostUmOrder(params?: {}): Promise<implicitReturnType>;
631
+ papiPostUmConditionalOrder(params?: {}): Promise<implicitReturnType>;
631
632
  papiPostCmOrder(params?: {}): Promise<implicitReturnType>;
633
+ papiPostCmConditionalOrder(params?: {}): Promise<implicitReturnType>;
632
634
  papiPostMarginOrder(params?: {}): Promise<implicitReturnType>;
633
635
  papiPostMarginLoan(params?: {}): Promise<implicitReturnType>;
634
636
  papiPostRepayLoan(params?: {}): Promise<implicitReturnType>;
@@ -645,8 +647,10 @@ interface binance {
645
647
  papiPostAssetCollection(params?: {}): Promise<implicitReturnType>;
646
648
  papiPutListenKey(params?: {}): Promise<implicitReturnType>;
647
649
  papiDeleteUmOrder(params?: {}): Promise<implicitReturnType>;
650
+ papiDeleteUmConditionalOrder(params?: {}): Promise<implicitReturnType>;
648
651
  papiDeleteUmAllOpenOrders(params?: {}): Promise<implicitReturnType>;
649
652
  papiDeleteCmOrder(params?: {}): Promise<implicitReturnType>;
653
+ papiDeleteCmConditionalOrder(params?: {}): Promise<implicitReturnType>;
650
654
  papiDeleteCmAllOpenOrders(params?: {}): Promise<implicitReturnType>;
651
655
  papiDeleteMarginOrder(params?: {}): Promise<implicitReturnType>;
652
656
  papiDeleteMarginAllOpenOrders(params?: {}): Promise<implicitReturnType>;
@@ -628,7 +628,9 @@ interface binance {
628
628
  papiGetUmAdlQuantile(params?: {}): Promise<implicitReturnType>;
629
629
  papiGetCmAdlQuantile(params?: {}): Promise<implicitReturnType>;
630
630
  papiPostUmOrder(params?: {}): Promise<implicitReturnType>;
631
+ papiPostUmConditionalOrder(params?: {}): Promise<implicitReturnType>;
631
632
  papiPostCmOrder(params?: {}): Promise<implicitReturnType>;
633
+ papiPostCmConditionalOrder(params?: {}): Promise<implicitReturnType>;
632
634
  papiPostMarginOrder(params?: {}): Promise<implicitReturnType>;
633
635
  papiPostMarginLoan(params?: {}): Promise<implicitReturnType>;
634
636
  papiPostRepayLoan(params?: {}): Promise<implicitReturnType>;
@@ -645,8 +647,10 @@ interface binance {
645
647
  papiPostAssetCollection(params?: {}): Promise<implicitReturnType>;
646
648
  papiPutListenKey(params?: {}): Promise<implicitReturnType>;
647
649
  papiDeleteUmOrder(params?: {}): Promise<implicitReturnType>;
650
+ papiDeleteUmConditionalOrder(params?: {}): Promise<implicitReturnType>;
648
651
  papiDeleteUmAllOpenOrders(params?: {}): Promise<implicitReturnType>;
649
652
  papiDeleteCmOrder(params?: {}): Promise<implicitReturnType>;
653
+ papiDeleteCmConditionalOrder(params?: {}): Promise<implicitReturnType>;
650
654
  papiDeleteCmAllOpenOrders(params?: {}): Promise<implicitReturnType>;
651
655
  papiDeleteMarginOrder(params?: {}): Promise<implicitReturnType>;
652
656
  papiDeleteMarginAllOpenOrders(params?: {}): Promise<implicitReturnType>;
@@ -628,7 +628,9 @@ interface binance {
628
628
  papiGetUmAdlQuantile(params?: {}): Promise<implicitReturnType>;
629
629
  papiGetCmAdlQuantile(params?: {}): Promise<implicitReturnType>;
630
630
  papiPostUmOrder(params?: {}): Promise<implicitReturnType>;
631
+ papiPostUmConditionalOrder(params?: {}): Promise<implicitReturnType>;
631
632
  papiPostCmOrder(params?: {}): Promise<implicitReturnType>;
633
+ papiPostCmConditionalOrder(params?: {}): Promise<implicitReturnType>;
632
634
  papiPostMarginOrder(params?: {}): Promise<implicitReturnType>;
633
635
  papiPostMarginLoan(params?: {}): Promise<implicitReturnType>;
634
636
  papiPostRepayLoan(params?: {}): Promise<implicitReturnType>;
@@ -645,8 +647,10 @@ interface binance {
645
647
  papiPostAssetCollection(params?: {}): Promise<implicitReturnType>;
646
648
  papiPutListenKey(params?: {}): Promise<implicitReturnType>;
647
649
  papiDeleteUmOrder(params?: {}): Promise<implicitReturnType>;
650
+ papiDeleteUmConditionalOrder(params?: {}): Promise<implicitReturnType>;
648
651
  papiDeleteUmAllOpenOrders(params?: {}): Promise<implicitReturnType>;
649
652
  papiDeleteCmOrder(params?: {}): Promise<implicitReturnType>;
653
+ papiDeleteCmConditionalOrder(params?: {}): Promise<implicitReturnType>;
650
654
  papiDeleteCmAllOpenOrders(params?: {}): Promise<implicitReturnType>;
651
655
  papiDeleteMarginOrder(params?: {}): Promise<implicitReturnType>;
652
656
  papiDeleteMarginAllOpenOrders(params?: {}): Promise<implicitReturnType>;
@@ -48,9 +48,9 @@ export default class ascendex extends Exchange {
48
48
  };
49
49
  safeNetwork(networkId: any): string;
50
50
  fetchDepositAddress(code: string, params?: {}): Promise<any>;
51
- fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
52
- fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
53
- fetchDepositsWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
51
+ fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
52
+ fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
53
+ fetchDepositsWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
54
54
  parseTransactionStatus(status: any): string;
55
55
  parseTransaction(transaction: any, currency?: any): Transaction;
56
56
  fetchPositions(symbols?: string[], params?: {}): Promise<import("./base/types.js").Position[]>;
@@ -4,7 +4,7 @@ ExchangeError, AuthenticationError, DDoSProtection, RequestTimeout, ExchangeNotA
4
4
  import WsClient from './ws/WsClient.js';
5
5
  import { Future } from './ws/Future.js';
6
6
  import { OrderBook as WsOrderBook, IndexedOrderBook, CountedOrderBook } from './ws/OrderBook.js';
7
- import { Market, Trade, Ticker, OHLCV, OHLCVC, Order, OrderBook, Balance, Balances, Dictionary, DepositAddressResponse, Currency, MinMax, IndexType, Int, OrderType, OrderSide, Position, FundingRateHistory, OpenInterest, Liquidation, OrderRequest, FundingHistory } from './types.js';
7
+ import { Market, Trade, Ticker, OHLCV, OHLCVC, Order, OrderBook, Balance, Balances, Dictionary, DepositAddressResponse, Currency, MinMax, IndexType, Int, OrderType, OrderSide, Position, FundingRateHistory, OpenInterest, Liquidation, OrderRequest, FundingHistory, MarginMode } from './types.js';
8
8
  export { Market, Trade, Fee, Ticker, OHLCV, OHLCVC, Order, OrderBook, Balance, Balances, Dictionary, Transaction, DepositAddressResponse, Currency, MinMax, IndexType, Int, OrderType, OrderSide, Position, FundingRateHistory, Liquidation, FundingHistory } from './types.js';
9
9
  /**
10
10
  * @class Exchange
@@ -548,6 +548,7 @@ export default class Exchange {
548
548
  watchOrderBookForSymbols(symbols: string[], limit?: Int, params?: {}): Promise<OrderBook>;
549
549
  fetchDepositAddresses(codes?: string[], params?: {}): Promise<any>;
550
550
  fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
551
+ fetchMarginMode(symbol?: string, params?: {}): Promise<MarginMode>;
551
552
  fetchRestOrderBookSafe(symbol: any, limit?: any, params?: {}): Promise<OrderBook>;
552
553
  watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
553
554
  fetchTime(params?: {}): Promise<number>;
@@ -1345,6 +1345,9 @@ export default class Exchange {
1345
1345
  async fetchOrderBook(symbol, limit = undefined, params = {}) {
1346
1346
  throw new NotSupported(this.id + ' fetchOrderBook() is not supported yet');
1347
1347
  }
1348
+ async fetchMarginMode(symbol = undefined, params = {}) {
1349
+ throw new NotSupported(this.id + ' fetchMarginMode() is not supported yet');
1350
+ }
1348
1351
  async fetchRestOrderBookSafe(symbol, limit = undefined, params = {}) {
1349
1352
  const fetchSnapshotMaxRetries = this.handleOption('watchOrderBook', 'maxRetries', 3);
1350
1353
  for (let i = 0; i < fetchSnapshotMaxRetries; i++) {
@@ -255,6 +255,11 @@ export interface FundingHistory {
255
255
  id: string;
256
256
  amount: number;
257
257
  }
258
+ export interface MarginMode {
259
+ infp: any;
260
+ symbol: string;
261
+ marginMode: 'isolated' | 'cross' | string;
262
+ }
258
263
  /** [ timestamp, open, high, low, close, volume ] */
259
264
  export declare type OHLCV = [number, number, number, number, number, number];
260
265
  /** [ timestamp, open, high, low, close, volume, count ] */
@@ -47,8 +47,8 @@ export default class bigone extends Exchange {
47
47
  }>;
48
48
  parseTransactionStatus(status: any): string;
49
49
  parseTransaction(transaction: any, currency?: any): Transaction;
50
- fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
51
- fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
50
+ fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
51
+ fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
52
52
  transfer(code: string, amount: any, fromAccount: any, toAccount: any, params?: {}): Promise<{
53
53
  info: any;
54
54
  id: any;
@@ -182,8 +182,8 @@ export default class binance extends Exchange {
182
182
  };
183
183
  info: any;
184
184
  };
185
- fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
186
- fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
185
+ fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
186
+ fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
187
187
  parseTransactionStatusByType(status: any, type?: any): string;
188
188
  parseTransaction(transaction: any, currency?: any): Transaction;
189
189
  parseTransferStatus(status: any): string;
package/js/src/binance.js CHANGED
@@ -963,7 +963,9 @@ export default class binance extends Exchange {
963
963
  },
964
964
  'post': {
965
965
  'um/order': 1,
966
+ 'um/conditional/order': 1,
966
967
  'cm/order': 1,
968
+ 'cm/conditional/order': 1,
967
969
  'margin/order': 0.0133,
968
970
  'marginLoan': 0.1333,
969
971
  'repayLoan': 0.1333,
@@ -984,8 +986,10 @@ export default class binance extends Exchange {
984
986
  },
985
987
  'delete': {
986
988
  'um/order': 1,
989
+ 'um/conditional/order': 1,
987
990
  'um/allOpenOrders': 1,
988
991
  'cm/order': 1,
992
+ 'cm/conditional/order': 1,
989
993
  'cm/allOpenOrders': 1,
990
994
  'margin/order': 1,
991
995
  'margin/allOpenOrders': 5,
package/js/src/bingx.d.ts CHANGED
@@ -156,8 +156,8 @@ export default class bingx extends Exchange {
156
156
  network: string;
157
157
  info: any;
158
158
  };
159
- fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
160
- fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
159
+ fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
160
+ fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
161
161
  parseTransaction(transaction: any, currency?: any): Transaction;
162
162
  parseTransactionStatus(status: any): string;
163
163
  setMarginMode(marginMode: string, symbol?: string, params?: {}): Promise<any>;
@@ -28,8 +28,8 @@ export default class bitbns extends Exchange {
28
28
  parseTrade(trade: any, market?: any): Trade;
29
29
  fetchMyTrades(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
30
30
  fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
31
- fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
32
- fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
31
+ fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
32
+ fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
33
33
  parseTransactionStatusByType(status: any, type?: any): string;
34
34
  parseTransaction(transaction: any, currency?: any): Transaction;
35
35
  fetchDepositAddress(code: string, params?: {}): Promise<{
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/bitfinex.js';
2
- import { Int, OHLCV, Order, OrderBook, OrderSide, OrderType, Ticker, Trade, Transaction } from './base/types.js';
2
+ import { Balances, Int, OHLCV, Order, OrderBook, OrderSide, OrderType, Ticker, Trade, Transaction } from './base/types.js';
3
3
  /**
4
4
  * @class bitfinex
5
5
  * @extends Exchange
@@ -24,7 +24,7 @@ export default class bitfinex extends Exchange {
24
24
  fetchMarkets(params?: {}): Promise<any[]>;
25
25
  amountToPrecision(symbol: any, amount: any): any;
26
26
  priceToPrecision(symbol: any, price: any): any;
27
- fetchBalance(params?: {}): Promise<import("./base/types.js").Balances>;
27
+ fetchBalance(params?: {}): Promise<Balances>;
28
28
  transfer(code: string, amount: any, fromAccount: any, toAccount: any, params?: {}): Promise<any>;
29
29
  parseTransfer(transfer: any, currency?: any): {
30
30
  info: any;
@@ -71,7 +71,7 @@ export default class bitfinex extends Exchange {
71
71
  network: any;
72
72
  info: any;
73
73
  }>;
74
- fetchDepositsWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
74
+ fetchDepositsWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
75
75
  parseTransaction(transaction: any, currency?: any): Transaction;
76
76
  parseTransactionStatus(status: any): string;
77
77
  withdraw(code: string, amount: any, address: any, tag?: any, params?: {}): Promise<Transaction>;
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/bitfinex2.js';
2
- import { Int, OrderSide, OrderType, Trade, OHLCV, Order, FundingRateHistory, OrderBook, Transaction, Ticker } from './base/types.js';
2
+ import { Int, OrderSide, OrderType, Trade, OHLCV, Order, FundingRateHistory, OrderBook, Transaction, Ticker, Balances } from './base/types.js';
3
3
  /**
4
4
  * @class bitfinex2
5
5
  * @extends Exchange
@@ -21,7 +21,7 @@ export default class bitfinex2 extends Exchange {
21
21
  fetchMarkets(params?: {}): Promise<any[]>;
22
22
  fetchCurrencies(params?: {}): Promise<{}>;
23
23
  safeNetwork(networkId: any): string;
24
- fetchBalance(params?: {}): Promise<import("./base/types.js").Balances>;
24
+ fetchBalance(params?: {}): Promise<Balances>;
25
25
  transfer(code: string, amount: any, fromAccount: any, toAccount: any, params?: {}): Promise<{
26
26
  id: any;
27
27
  timestamp: number;
@@ -84,7 +84,7 @@ export default class bitfinex2 extends Exchange {
84
84
  parseTransactionStatus(status: any): string;
85
85
  parseTransaction(transaction: any, currency?: any): Transaction;
86
86
  fetchTradingFees(params?: {}): Promise<{}>;
87
- fetchDepositsWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
87
+ fetchDepositsWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
88
88
  withdraw(code: string, amount: any, address: any, tag?: any, params?: {}): Promise<any>;
89
89
  fetchPositions(symbols?: string[], params?: {}): Promise<import("./base/types.js").Position[]>;
90
90
  parsePosition(position: any, market?: any): import("./base/types.js").Position;
@@ -33,8 +33,8 @@ export default class bitflyer extends Exchange {
33
33
  fetchMyTrades(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
34
34
  fetchPositions(symbols?: string[], params?: {}): Promise<any>;
35
35
  withdraw(code: string, amount: any, address: any, tag?: any, params?: {}): Promise<Transaction>;
36
- fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
37
- fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
36
+ fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
37
+ fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
38
38
  parseDepositStatus(status: any): string;
39
39
  parseWithdrawalStatus(status: any): string;
40
40
  parseTransaction(transaction: any, currency?: any): Transaction;