ccxt 4.4.49 → 4.4.50

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 (122) hide show
  1. package/README.md +3 -3
  2. package/dist/ccxt.browser.min.js +3 -3
  3. package/dist/cjs/ccxt.js +1 -1
  4. package/dist/cjs/src/alpaca.js +64 -1
  5. package/dist/cjs/src/base/Exchange.js +75 -0
  6. package/dist/cjs/src/binance.js +8 -4
  7. package/dist/cjs/src/bitfinex1.js +22 -22
  8. package/dist/cjs/src/blofin.js +2 -2
  9. package/dist/cjs/src/bybit.js +2 -2
  10. package/dist/cjs/src/coinex.js +4 -4
  11. package/dist/cjs/src/coinmetro.js +1 -1
  12. package/dist/cjs/src/defx.js +1 -1
  13. package/dist/cjs/src/ellipx.js +1 -0
  14. package/dist/cjs/src/gate.js +1 -1
  15. package/dist/cjs/src/hollaex.js +13 -19
  16. package/dist/cjs/src/hyperliquid.js +4 -4
  17. package/dist/cjs/src/krakenfutures.js +1 -1
  18. package/dist/cjs/src/kucoin.js +49 -71
  19. package/dist/cjs/src/kuna.js +1 -1
  20. package/dist/cjs/src/mexc.js +3 -2
  21. package/dist/cjs/src/okcoin.js +13 -5
  22. package/dist/cjs/src/okx.js +1 -1
  23. package/dist/cjs/src/paradex.js +1 -1
  24. package/dist/cjs/src/paymium.js +42 -0
  25. package/dist/cjs/src/pro/bitfinex1.js +4 -4
  26. package/dist/cjs/src/pro/bitvavo.js +1 -1
  27. package/dist/cjs/src/pro/blofin.js +1 -1
  28. package/dist/cjs/src/pro/bybit.js +1 -1
  29. package/dist/cjs/src/pro/coincatch.js +2 -2
  30. package/dist/cjs/src/pro/cryptocom.js +2 -2
  31. package/dist/cjs/src/pro/defx.js +1 -1
  32. package/dist/cjs/src/pro/exmo.js +1 -1
  33. package/dist/cjs/src/pro/gemini.js +1 -1
  34. package/dist/cjs/src/pro/hashkey.js +2 -2
  35. package/dist/cjs/src/pro/hyperliquid.js +2 -2
  36. package/dist/cjs/src/pro/kucoin.js +1 -1
  37. package/dist/cjs/src/pro/okx.js +1 -1
  38. package/dist/cjs/src/pro/oxfun.js +1 -1
  39. package/dist/cjs/src/probit.js +68 -1
  40. package/dist/cjs/src/timex.js +67 -0
  41. package/dist/cjs/src/tokocrypto.js +82 -5
  42. package/dist/cjs/src/tradeogre.js +55 -2
  43. package/dist/cjs/src/whitebit.js +11 -4
  44. package/examples/README.md +6 -0
  45. package/js/ccxt.d.ts +1 -1
  46. package/js/ccxt.js +1 -1
  47. package/js/src/abstract/binance.d.ts +1 -0
  48. package/js/src/abstract/binancecoinm.d.ts +1 -0
  49. package/js/src/abstract/binanceus.d.ts +1 -0
  50. package/js/src/abstract/binanceusdm.d.ts +1 -0
  51. package/js/src/alpaca.d.ts +35 -0
  52. package/js/src/alpaca.js +64 -1
  53. package/js/src/base/Exchange.js +75 -0
  54. package/js/src/binance.d.ts +1 -0
  55. package/js/src/binance.js +8 -4
  56. package/js/src/bitfinex1.d.ts +22 -22
  57. package/js/src/bitfinex1.js +22 -22
  58. package/js/src/blofin.d.ts +1 -1
  59. package/js/src/blofin.js +2 -2
  60. package/js/src/bybit.d.ts +2 -2
  61. package/js/src/bybit.js +2 -2
  62. package/js/src/coinex.js +4 -4
  63. package/js/src/coinmetro.d.ts +1 -1
  64. package/js/src/coinmetro.js +1 -1
  65. package/js/src/defx.d.ts +1 -1
  66. package/js/src/defx.js +1 -1
  67. package/js/src/ellipx.d.ts +1 -0
  68. package/js/src/ellipx.js +1 -0
  69. package/js/src/gate.d.ts +1 -1
  70. package/js/src/gate.js +1 -1
  71. package/js/src/hollaex.d.ts +2 -1
  72. package/js/src/hollaex.js +13 -19
  73. package/js/src/hyperliquid.d.ts +3 -3
  74. package/js/src/hyperliquid.js +4 -4
  75. package/js/src/krakenfutures.d.ts +1 -1
  76. package/js/src/krakenfutures.js +1 -1
  77. package/js/src/kucoin.js +49 -71
  78. package/js/src/kuna.d.ts +1 -1
  79. package/js/src/kuna.js +1 -1
  80. package/js/src/mexc.js +3 -2
  81. package/js/src/okcoin.js +13 -5
  82. package/js/src/okx.d.ts +1 -1
  83. package/js/src/okx.js +1 -1
  84. package/js/src/paradex.d.ts +1 -1
  85. package/js/src/paradex.js +1 -1
  86. package/js/src/paymium.js +42 -0
  87. package/js/src/pro/bitfinex1.d.ts +4 -4
  88. package/js/src/pro/bitfinex1.js +4 -4
  89. package/js/src/pro/bitvavo.d.ts +1 -1
  90. package/js/src/pro/bitvavo.js +1 -1
  91. package/js/src/pro/blofin.d.ts +1 -1
  92. package/js/src/pro/blofin.js +1 -1
  93. package/js/src/pro/bybit.d.ts +1 -1
  94. package/js/src/pro/bybit.js +1 -1
  95. package/js/src/pro/coincatch.d.ts +2 -2
  96. package/js/src/pro/coincatch.js +2 -2
  97. package/js/src/pro/cryptocom.d.ts +2 -2
  98. package/js/src/pro/cryptocom.js +2 -2
  99. package/js/src/pro/defx.d.ts +1 -1
  100. package/js/src/pro/defx.js +1 -1
  101. package/js/src/pro/exmo.d.ts +1 -1
  102. package/js/src/pro/exmo.js +1 -1
  103. package/js/src/pro/gemini.d.ts +1 -1
  104. package/js/src/pro/gemini.js +1 -1
  105. package/js/src/pro/hashkey.d.ts +2 -2
  106. package/js/src/pro/hashkey.js +2 -2
  107. package/js/src/pro/hyperliquid.d.ts +2 -2
  108. package/js/src/pro/hyperliquid.js +2 -2
  109. package/js/src/pro/kucoin.d.ts +1 -1
  110. package/js/src/pro/kucoin.js +1 -1
  111. package/js/src/pro/okx.d.ts +1 -1
  112. package/js/src/pro/okx.js +1 -1
  113. package/js/src/pro/oxfun.d.ts +1 -1
  114. package/js/src/pro/oxfun.js +1 -1
  115. package/js/src/probit.js +68 -1
  116. package/js/src/timex.js +67 -0
  117. package/js/src/tokocrypto.d.ts +2 -3
  118. package/js/src/tokocrypto.js +82 -5
  119. package/js/src/tradeogre.d.ts +4 -2
  120. package/js/src/tradeogre.js +55 -2
  121. package/js/src/whitebit.js +11 -4
  122. package/package.json +1 -1
package/js/src/binance.js CHANGED
@@ -482,6 +482,7 @@ export default class binance extends Exchange {
482
482
  'portfolio/repay-futures-switch': 3,
483
483
  'portfolio/margin-asset-leverage': 5,
484
484
  'portfolio/balance': 2,
485
+ 'portfolio/negative-balance-exchange-record': 2,
485
486
  // staking
486
487
  'staking/productList': 0.1,
487
488
  'staking/position': 0.1,
@@ -5161,12 +5162,14 @@ export default class binance extends Exchange {
5161
5162
  request['endTime'] = until;
5162
5163
  }
5163
5164
  }
5165
+ let method = this.safeString(this.options, 'fetchTradesMethod');
5166
+ method = this.safeString2(params, 'fetchTradesMethod', 'method', method);
5164
5167
  if (limit !== undefined) {
5165
5168
  const isFutureOrSwap = (market['swap'] || market['future']);
5166
- request['limit'] = isFutureOrSwap ? Math.min(limit, 1000) : limit; // default = 500, maximum = 1000
5169
+ const isHistoricalEndpoint = (method !== undefined) && (method.indexOf('GetHistoricalTrades') >= 0);
5170
+ const maxLimitForContractHistorical = isHistoricalEndpoint ? 500 : 1000;
5171
+ request['limit'] = isFutureOrSwap ? Math.min(limit, maxLimitForContractHistorical) : limit; // default = 500, maximum = 1000
5167
5172
  }
5168
- let method = this.safeString(this.options, 'fetchTradesMethod');
5169
- method = this.safeString2(params, 'fetchTradesMethod', 'method', method);
5170
5173
  params = this.omit(params, ['until', 'fetchTradesMethod']);
5171
5174
  let response = undefined;
5172
5175
  if (market['option'] || method === 'eapiPublicGetTrades') {
@@ -7220,6 +7223,7 @@ export default class binance extends Exchange {
7220
7223
  * @param {string} symbol unified market symbol
7221
7224
  * @param {object} [params] extra parameters specific to the exchange API endpoint
7222
7225
  * @param {string} [params.trigger] set to true if you would like to fetch portfolio margin account stop or conditional orders
7226
+ * @param {boolean} [params.portfolioMargin] set to true if you would like to fetch for a portfolio margin account
7223
7227
  * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
7224
7228
  */
7225
7229
  async fetchOpenOrder(id, symbol = undefined, params = {}) {
@@ -10820,7 +10824,7 @@ export default class binance extends Exchange {
10820
10824
  // }
10821
10825
  //
10822
10826
  const marketId = this.safeString(position, 'symbol');
10823
- market = this.safeMarket(marketId, market);
10827
+ market = this.safeMarket(marketId, market, undefined, 'swap');
10824
10828
  const symbol = market['symbol'];
10825
10829
  const side = this.safeStringLower(position, 'side');
10826
10830
  let quantity = this.safeString(position, 'quantity');
@@ -8,7 +8,7 @@ export default class bitfinex1 extends Exchange {
8
8
  describe(): any;
9
9
  /**
10
10
  * @method
11
- * @name bitfinex#fetchTransactionFees
11
+ * @name bitfinex1#fetchTransactionFees
12
12
  * @deprecated
13
13
  * @description please use fetchDepositWithdrawFees instead
14
14
  * @see https://docs.bitfinex.com/v1/reference/rest-auth-fees
@@ -19,7 +19,7 @@ export default class bitfinex1 extends Exchange {
19
19
  fetchTransactionFees(codes?: Strings, params?: {}): Promise<Dict>;
20
20
  /**
21
21
  * @method
22
- * @name bitfinex#fetchDepositWithdrawFees
22
+ * @name bitfinex1#fetchDepositWithdrawFees
23
23
  * @description fetch deposit and withdraw fees
24
24
  * @see https://docs.bitfinex.com/v1/reference/rest-auth-fees
25
25
  * @param {string[]|undefined} codes list of unified currency codes
@@ -41,7 +41,7 @@ export default class bitfinex1 extends Exchange {
41
41
  };
42
42
  /**
43
43
  * @method
44
- * @name bitfinex#fetchTradingFees
44
+ * @name bitfinex1#fetchTradingFees
45
45
  * @description fetch the trading fees for multiple markets
46
46
  * @see https://docs.bitfinex.com/v1/reference/rest-auth-summary
47
47
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -50,7 +50,7 @@ export default class bitfinex1 extends Exchange {
50
50
  fetchTradingFees(params?: {}): Promise<TradingFees>;
51
51
  /**
52
52
  * @method
53
- * @name bitfinex#fetchMarkets
53
+ * @name bitfinex1#fetchMarkets
54
54
  * @description retrieves data on all markets for bitfinex
55
55
  * @see https://docs.bitfinex.com/v1/reference/rest-public-symbols
56
56
  * @see https://docs.bitfinex.com/v1/reference/rest-public-symbol-details
@@ -62,7 +62,7 @@ export default class bitfinex1 extends Exchange {
62
62
  priceToPrecision(symbol: any, price: any): string;
63
63
  /**
64
64
  * @method
65
- * @name bitfinex#fetchBalance
65
+ * @name bitfinex1#fetchBalance
66
66
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
67
67
  * @see https://docs.bitfinex.com/v1/reference/rest-auth-wallet-balances
68
68
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -71,7 +71,7 @@ export default class bitfinex1 extends Exchange {
71
71
  fetchBalance(params?: {}): Promise<Balances>;
72
72
  /**
73
73
  * @method
74
- * @name bitfinex#transfer
74
+ * @name bitfinex1#transfer
75
75
  * @description transfer currency internally between wallets on the same account
76
76
  * @see https://docs.bitfinex.com/v1/reference/rest-auth-transfer-between-wallets
77
77
  * @param {string} code unified currency code
@@ -87,7 +87,7 @@ export default class bitfinex1 extends Exchange {
87
87
  convertDerivativesId(currencyId: any, type: any): any;
88
88
  /**
89
89
  * @method
90
- * @name bitfinex#fetchOrderBook
90
+ * @name bitfinex1#fetchOrderBook
91
91
  * @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
92
92
  * @see https://docs.bitfinex.com/v1/reference/rest-public-orderbook
93
93
  * @param {string} symbol unified symbol of the market to fetch the order book for
@@ -98,7 +98,7 @@ export default class bitfinex1 extends Exchange {
98
98
  fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
99
99
  /**
100
100
  * @method
101
- * @name bitfinex#fetchTickers
101
+ * @name bitfinex1#fetchTickers
102
102
  * @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
103
103
  * @param {string[]} [symbols] unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
104
104
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -107,7 +107,7 @@ export default class bitfinex1 extends Exchange {
107
107
  fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
108
108
  /**
109
109
  * @method
110
- * @name bitfinex#fetchTicker
110
+ * @name bitfinex1#fetchTicker
111
111
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
112
112
  * @see https://docs.bitfinex.com/v1/reference/rest-public-ticker
113
113
  * @param {string} symbol unified symbol of the market to fetch the ticker for
@@ -119,7 +119,7 @@ export default class bitfinex1 extends Exchange {
119
119
  parseTrade(trade: Dict, market?: Market): Trade;
120
120
  /**
121
121
  * @method
122
- * @name bitfinex#fetchTrades
122
+ * @name bitfinex1#fetchTrades
123
123
  * @description get the list of most recent trades for a particular symbol
124
124
  * @see https://docs.bitfinex.com/v1/reference/rest-public-trades
125
125
  * @param {string} symbol unified symbol of the market to fetch trades for
@@ -131,7 +131,7 @@ export default class bitfinex1 extends Exchange {
131
131
  fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
132
132
  /**
133
133
  * @method
134
- * @name bitfinex#fetchMyTrades
134
+ * @name bitfinex1#fetchMyTrades
135
135
  * @description fetch all trades made by the user
136
136
  * @see https://docs.bitfinex.com/v1/reference/rest-auth-past-trades
137
137
  * @param {string} symbol unified market symbol
@@ -143,7 +143,7 @@ export default class bitfinex1 extends Exchange {
143
143
  fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
144
144
  /**
145
145
  * @method
146
- * @name bitfinex#createOrder
146
+ * @name bitfinex1#createOrder
147
147
  * @description create a trade order
148
148
  * @see https://docs.bitfinex.com/v1/reference/rest-auth-new-order
149
149
  * @param {string} symbol unified symbol of the market to create an order in
@@ -158,7 +158,7 @@ export default class bitfinex1 extends Exchange {
158
158
  editOrder(id: string, symbol: string, type: OrderType, side: OrderSide, amount?: Num, price?: Num, params?: {}): Promise<Order>;
159
159
  /**
160
160
  * @method
161
- * @name bitfinex#cancelOrder
161
+ * @name bitfinex1#cancelOrder
162
162
  * @description cancels an open order
163
163
  * @see https://docs.bitfinex.com/v1/reference/rest-auth-cancel-order
164
164
  * @param {string} id order id
@@ -169,7 +169,7 @@ export default class bitfinex1 extends Exchange {
169
169
  cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
170
170
  /**
171
171
  * @method
172
- * @name bitfinex#cancelAllOrders
172
+ * @name bitfinex1#cancelAllOrders
173
173
  * @description cancel all open orders
174
174
  * @see https://docs.bitfinex.com/v1/reference/rest-auth-cancel-all-orders
175
175
  * @param {string} symbol not used by bitfinex cancelAllOrders
@@ -180,7 +180,7 @@ export default class bitfinex1 extends Exchange {
180
180
  parseOrder(order: Dict, market?: Market): Order;
181
181
  /**
182
182
  * @method
183
- * @name bitfinex#fetchOpenOrders
183
+ * @name bitfinex1#fetchOpenOrders
184
184
  * @description fetch all unfilled currently open orders
185
185
  * @see https://docs.bitfinex.com/v1/reference/rest-auth-active-orders
186
186
  * @param {string} symbol unified market symbol
@@ -192,7 +192,7 @@ export default class bitfinex1 extends Exchange {
192
192
  fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
193
193
  /**
194
194
  * @method
195
- * @name bitfinex#fetchClosedOrders
195
+ * @name bitfinex1#fetchClosedOrders
196
196
  * @description fetches information on multiple closed orders made by the user
197
197
  * @see https://docs.bitfinex.com/v1/reference/rest-auth-orders-history
198
198
  * @param {string} symbol unified market symbol of the market orders were made in
@@ -204,7 +204,7 @@ export default class bitfinex1 extends Exchange {
204
204
  fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
205
205
  /**
206
206
  * @method
207
- * @name bitfinex#fetchOrder
207
+ * @name bitfinex1#fetchOrder
208
208
  * @description fetches information on an order made by the user
209
209
  * @see https://docs.bitfinex.com/v1/reference/rest-auth-order-status
210
210
  * @param {string} id the order id
@@ -231,7 +231,7 @@ export default class bitfinex1 extends Exchange {
231
231
  getCurrencyName(code: any): any;
232
232
  /**
233
233
  * @method
234
- * @name bitfinex#createDepositAddress
234
+ * @name bitfinex1#createDepositAddress
235
235
  * @description create a currency deposit address
236
236
  * @see https://docs.bitfinex.com/v1/reference/rest-auth-deposit
237
237
  * @param {string} code unified currency code of the currency for the deposit address
@@ -241,7 +241,7 @@ export default class bitfinex1 extends Exchange {
241
241
  createDepositAddress(code: string, params?: {}): Promise<DepositAddress>;
242
242
  /**
243
243
  * @method
244
- * @name bitfinex#fetchDepositAddress
244
+ * @name bitfinex1#fetchDepositAddress
245
245
  * @description fetch the deposit address for a currency associated with this account
246
246
  * @see https://docs.bitfinex.com/v1/reference/rest-auth-deposit
247
247
  * @param {string} code unified currency code
@@ -251,7 +251,7 @@ export default class bitfinex1 extends Exchange {
251
251
  fetchDepositAddress(code: string, params?: {}): Promise<DepositAddress>;
252
252
  /**
253
253
  * @method
254
- * @name bitfinex#fetchDepositsWithdrawals
254
+ * @name bitfinex1#fetchDepositsWithdrawals
255
255
  * @description fetch history of deposits and withdrawals
256
256
  * @see https://docs.bitfinex.com/v1/reference/rest-auth-deposit-withdrawal-history
257
257
  * @param {string} code unified currency code for the currency of the deposit/withdrawals
@@ -265,7 +265,7 @@ export default class bitfinex1 extends Exchange {
265
265
  parseTransactionStatus(status: Str): string;
266
266
  /**
267
267
  * @method
268
- * @name bitfinex#withdraw
268
+ * @name bitfinex1#withdraw
269
269
  * @description make a withdrawal
270
270
  * @see https://docs.bitfinex.com/v1/reference/rest-auth-withdrawal
271
271
  * @param {string} code unified currency code
@@ -278,7 +278,7 @@ export default class bitfinex1 extends Exchange {
278
278
  withdraw(code: string, amount: number, address: string, tag?: any, params?: {}): Promise<Transaction>;
279
279
  /**
280
280
  * @method
281
- * @name bitfinex#fetchPositions
281
+ * @name bitfinex1#fetchPositions
282
282
  * @description fetch all open positions
283
283
  * @see https://docs.bitfinex.com/v1/reference/rest-auth-active-positions
284
284
  * @param {string[]|undefined} symbols list of unified market symbols
@@ -404,7 +404,7 @@ export default class bitfinex1 extends Exchange {
404
404
  }
405
405
  /**
406
406
  * @method
407
- * @name bitfinex#fetchTransactionFees
407
+ * @name bitfinex1#fetchTransactionFees
408
408
  * @deprecated
409
409
  * @description please use fetchDepositWithdrawFees instead
410
410
  * @see https://docs.bitfinex.com/v1/reference/rest-auth-fees
@@ -441,7 +441,7 @@ export default class bitfinex1 extends Exchange {
441
441
  }
442
442
  /**
443
443
  * @method
444
- * @name bitfinex#fetchDepositWithdrawFees
444
+ * @name bitfinex1#fetchDepositWithdrawFees
445
445
  * @description fetch deposit and withdraw fees
446
446
  * @see https://docs.bitfinex.com/v1/reference/rest-auth-fees
447
447
  * @param {string[]|undefined} codes list of unified currency codes
@@ -481,7 +481,7 @@ export default class bitfinex1 extends Exchange {
481
481
  }
482
482
  /**
483
483
  * @method
484
- * @name bitfinex#fetchTradingFees
484
+ * @name bitfinex1#fetchTradingFees
485
485
  * @description fetch the trading fees for multiple markets
486
486
  * @see https://docs.bitfinex.com/v1/reference/rest-auth-summary
487
487
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -564,7 +564,7 @@ export default class bitfinex1 extends Exchange {
564
564
  }
565
565
  /**
566
566
  * @method
567
- * @name bitfinex#fetchMarkets
567
+ * @name bitfinex1#fetchMarkets
568
568
  * @description retrieves data on all markets for bitfinex
569
569
  * @see https://docs.bitfinex.com/v1/reference/rest-public-symbols
570
570
  * @see https://docs.bitfinex.com/v1/reference/rest-public-symbol-details
@@ -691,7 +691,7 @@ export default class bitfinex1 extends Exchange {
691
691
  }
692
692
  /**
693
693
  * @method
694
- * @name bitfinex#fetchBalance
694
+ * @name bitfinex1#fetchBalance
695
695
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
696
696
  * @see https://docs.bitfinex.com/v1/reference/rest-auth-wallet-balances
697
697
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -749,7 +749,7 @@ export default class bitfinex1 extends Exchange {
749
749
  }
750
750
  /**
751
751
  * @method
752
- * @name bitfinex#transfer
752
+ * @name bitfinex1#transfer
753
753
  * @description transfer currency internally between wallets on the same account
754
754
  * @see https://docs.bitfinex.com/v1/reference/rest-auth-transfer-between-wallets
755
755
  * @param {string} code unified currency code
@@ -835,7 +835,7 @@ export default class bitfinex1 extends Exchange {
835
835
  }
836
836
  /**
837
837
  * @method
838
- * @name bitfinex#fetchOrderBook
838
+ * @name bitfinex1#fetchOrderBook
839
839
  * @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
840
840
  * @see https://docs.bitfinex.com/v1/reference/rest-public-orderbook
841
841
  * @param {string} symbol unified symbol of the market to fetch the order book for
@@ -858,7 +858,7 @@ export default class bitfinex1 extends Exchange {
858
858
  }
859
859
  /**
860
860
  * @method
861
- * @name bitfinex#fetchTickers
861
+ * @name bitfinex1#fetchTickers
862
862
  * @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
863
863
  * @param {string[]} [symbols] unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
864
864
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -878,7 +878,7 @@ export default class bitfinex1 extends Exchange {
878
878
  }
879
879
  /**
880
880
  * @method
881
- * @name bitfinex#fetchTicker
881
+ * @name bitfinex1#fetchTicker
882
882
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
883
883
  * @see https://docs.bitfinex.com/v1/reference/rest-public-ticker
884
884
  * @param {string} symbol unified symbol of the market to fetch the ticker for
@@ -1019,7 +1019,7 @@ export default class bitfinex1 extends Exchange {
1019
1019
  }
1020
1020
  /**
1021
1021
  * @method
1022
- * @name bitfinex#fetchTrades
1022
+ * @name bitfinex1#fetchTrades
1023
1023
  * @description get the list of most recent trades for a particular symbol
1024
1024
  * @see https://docs.bitfinex.com/v1/reference/rest-public-trades
1025
1025
  * @param {string} symbol unified symbol of the market to fetch trades for
@@ -1055,7 +1055,7 @@ export default class bitfinex1 extends Exchange {
1055
1055
  }
1056
1056
  /**
1057
1057
  * @method
1058
- * @name bitfinex#fetchMyTrades
1058
+ * @name bitfinex1#fetchMyTrades
1059
1059
  * @description fetch all trades made by the user
1060
1060
  * @see https://docs.bitfinex.com/v1/reference/rest-auth-past-trades
1061
1061
  * @param {string} symbol unified market symbol
@@ -1084,7 +1084,7 @@ export default class bitfinex1 extends Exchange {
1084
1084
  }
1085
1085
  /**
1086
1086
  * @method
1087
- * @name bitfinex#createOrder
1087
+ * @name bitfinex1#createOrder
1088
1088
  * @description create a trade order
1089
1089
  * @see https://docs.bitfinex.com/v1/reference/rest-auth-new-order
1090
1090
  * @param {string} symbol unified symbol of the market to create an order in
@@ -1152,7 +1152,7 @@ export default class bitfinex1 extends Exchange {
1152
1152
  }
1153
1153
  /**
1154
1154
  * @method
1155
- * @name bitfinex#cancelOrder
1155
+ * @name bitfinex1#cancelOrder
1156
1156
  * @description cancels an open order
1157
1157
  * @see https://docs.bitfinex.com/v1/reference/rest-auth-cancel-order
1158
1158
  * @param {string} id order id
@@ -1195,7 +1195,7 @@ export default class bitfinex1 extends Exchange {
1195
1195
  }
1196
1196
  /**
1197
1197
  * @method
1198
- * @name bitfinex#cancelAllOrders
1198
+ * @name bitfinex1#cancelAllOrders
1199
1199
  * @description cancel all open orders
1200
1200
  * @see https://docs.bitfinex.com/v1/reference/rest-auth-cancel-all-orders
1201
1201
  * @param {string} symbol not used by bitfinex cancelAllOrders
@@ -1287,7 +1287,7 @@ export default class bitfinex1 extends Exchange {
1287
1287
  }
1288
1288
  /**
1289
1289
  * @method
1290
- * @name bitfinex#fetchOpenOrders
1290
+ * @name bitfinex1#fetchOpenOrders
1291
1291
  * @description fetch all unfilled currently open orders
1292
1292
  * @see https://docs.bitfinex.com/v1/reference/rest-auth-active-orders
1293
1293
  * @param {string} symbol unified market symbol
@@ -1312,7 +1312,7 @@ export default class bitfinex1 extends Exchange {
1312
1312
  }
1313
1313
  /**
1314
1314
  * @method
1315
- * @name bitfinex#fetchClosedOrders
1315
+ * @name bitfinex1#fetchClosedOrders
1316
1316
  * @description fetches information on multiple closed orders made by the user
1317
1317
  * @see https://docs.bitfinex.com/v1/reference/rest-auth-orders-history
1318
1318
  * @param {string} symbol unified market symbol of the market orders were made in
@@ -1338,7 +1338,7 @@ export default class bitfinex1 extends Exchange {
1338
1338
  }
1339
1339
  /**
1340
1340
  * @method
1341
- * @name bitfinex#fetchOrder
1341
+ * @name bitfinex1#fetchOrder
1342
1342
  * @description fetches information on an order made by the user
1343
1343
  * @see https://docs.bitfinex.com/v1/reference/rest-auth-order-status
1344
1344
  * @param {string} id the order id
@@ -1434,7 +1434,7 @@ export default class bitfinex1 extends Exchange {
1434
1434
  }
1435
1435
  /**
1436
1436
  * @method
1437
- * @name bitfinex#createDepositAddress
1437
+ * @name bitfinex1#createDepositAddress
1438
1438
  * @description create a currency deposit address
1439
1439
  * @see https://docs.bitfinex.com/v1/reference/rest-auth-deposit
1440
1440
  * @param {string} code unified currency code of the currency for the deposit address
@@ -1450,7 +1450,7 @@ export default class bitfinex1 extends Exchange {
1450
1450
  }
1451
1451
  /**
1452
1452
  * @method
1453
- * @name bitfinex#fetchDepositAddress
1453
+ * @name bitfinex1#fetchDepositAddress
1454
1454
  * @description fetch the deposit address for a currency associated with this account
1455
1455
  * @see https://docs.bitfinex.com/v1/reference/rest-auth-deposit
1456
1456
  * @param {string} code unified currency code
@@ -1484,7 +1484,7 @@ export default class bitfinex1 extends Exchange {
1484
1484
  }
1485
1485
  /**
1486
1486
  * @method
1487
- * @name bitfinex#fetchDepositsWithdrawals
1487
+ * @name bitfinex1#fetchDepositsWithdrawals
1488
1488
  * @description fetch history of deposits and withdrawals
1489
1489
  * @see https://docs.bitfinex.com/v1/reference/rest-auth-deposit-withdrawal-history
1490
1490
  * @param {string} code unified currency code for the currency of the deposit/withdrawals
@@ -1621,7 +1621,7 @@ export default class bitfinex1 extends Exchange {
1621
1621
  }
1622
1622
  /**
1623
1623
  * @method
1624
- * @name bitfinex#withdraw
1624
+ * @name bitfinex1#withdraw
1625
1625
  * @description make a withdrawal
1626
1626
  * @see https://docs.bitfinex.com/v1/reference/rest-auth-withdrawal
1627
1627
  * @param {string} code unified currency code
@@ -1672,7 +1672,7 @@ export default class bitfinex1 extends Exchange {
1672
1672
  }
1673
1673
  /**
1674
1674
  * @method
1675
- * @name bitfinex#fetchPositions
1675
+ * @name bitfinex1#fetchPositions
1676
1676
  * @description fetch all open positions
1677
1677
  * @see https://docs.bitfinex.com/v1/reference/rest-auth-active-positions
1678
1678
  * @param {string[]|undefined} symbols list of unified market symbols
@@ -299,7 +299,7 @@ export default class blofin extends Exchange {
299
299
  fetchPosition(symbol: string, params?: {}): Promise<Position>;
300
300
  /**
301
301
  * @method
302
- * @name blofin#fetchPosition
302
+ * @name blofin#fetchPositions
303
303
  * @description fetch data on a single open contract trade position
304
304
  * @see https://blofin.com/docs#get-positions
305
305
  * @param {string[]} [symbols] list of unified market symbols
package/js/src/blofin.js CHANGED
@@ -289,7 +289,7 @@ export default class blofin extends Exchange {
289
289
  'trailing': false,
290
290
  },
291
291
  'fetchOHLCV': {
292
- 'max': 1440,
292
+ 'limit': 1440,
293
293
  },
294
294
  },
295
295
  'spot': {
@@ -1958,7 +1958,7 @@ export default class blofin extends Exchange {
1958
1958
  }
1959
1959
  /**
1960
1960
  * @method
1961
- * @name blofin#fetchPosition
1961
+ * @name blofin#fetchPositions
1962
1962
  * @description fetch data on a single open contract trade position
1963
1963
  * @see https://blofin.com/docs#get-positions
1964
1964
  * @param {string[]} [symbols] list of unified market symbols
package/js/src/bybit.d.ts CHANGED
@@ -344,7 +344,7 @@ export default class bybit extends Exchange {
344
344
  fetchOrderClassic(id: string, symbol?: Str, params?: {}): Promise<Order>;
345
345
  /**
346
346
  * @method
347
- * @name bybit#fetchOrderClassic
347
+ * @name bybit#fetchOrder
348
348
  * @description *classic accounts only/ spot not supported* fetches information on an order made by the user *classic accounts only*
349
349
  * @see https://bybit-exchange.github.io/docs/v5/order/order-list
350
350
  * @param {string} id the order id
@@ -357,7 +357,7 @@ export default class bybit extends Exchange {
357
357
  fetchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
358
358
  /**
359
359
  * @method
360
- * @name bybit#fetchOrders
360
+ * @name bybit#fetchOrdersClassic
361
361
  * @description fetches information on multiple orders made by the user *classic accounts only*
362
362
  * @see https://bybit-exchange.github.io/docs/v5/order/order-list
363
363
  * @param {string} symbol unified market symbol of the market orders were made in
package/js/src/bybit.js CHANGED
@@ -4769,7 +4769,7 @@ export default class bybit extends Exchange {
4769
4769
  }
4770
4770
  /**
4771
4771
  * @method
4772
- * @name bybit#fetchOrderClassic
4772
+ * @name bybit#fetchOrder
4773
4773
  * @description *classic accounts only/ spot not supported* fetches information on an order made by the user *classic accounts only*
4774
4774
  * @see https://bybit-exchange.github.io/docs/v5/order/order-list
4775
4775
  * @param {string} id the order id
@@ -4890,7 +4890,7 @@ export default class bybit extends Exchange {
4890
4890
  }
4891
4891
  /**
4892
4892
  * @method
4893
- * @name bybit#fetchOrders
4893
+ * @name bybit#fetchOrdersClassic
4894
4894
  * @description fetches information on multiple orders made by the user *classic accounts only*
4895
4895
  * @see https://bybit-exchange.github.io/docs/v5/order/order-list
4896
4896
  * @param {string} symbol unified market symbol of the market orders were made in
package/js/src/coinex.js CHANGED
@@ -470,7 +470,7 @@ export default class coinex extends Exchange {
470
470
  'ERC20': 'ERC20',
471
471
  'BRC20': 'BRC20',
472
472
  'SOL': 'SOL',
473
- 'TON': 'SOL',
473
+ 'TON': 'TON',
474
474
  'BSV': 'BSV',
475
475
  'AVAXC': 'AVA_C',
476
476
  'AVAXX': 'AVA',
@@ -4805,14 +4805,14 @@ export default class coinex extends Exchange {
4805
4805
  this.checkAddress(address);
4806
4806
  await this.loadMarkets();
4807
4807
  const currency = this.currency(code);
4808
- if (tag) {
4809
- address = address + ':' + tag;
4810
- }
4811
4808
  const request = {
4812
4809
  'ccy': currency['id'],
4813
4810
  'to_address': address,
4814
4811
  'amount': this.numberToString(amount), // the actual amount without fees, https://www.coinex.com/fees
4815
4812
  };
4813
+ if (tag !== undefined) {
4814
+ request['memo'] = tag;
4815
+ }
4816
4816
  let networkCode = undefined;
4817
4817
  [networkCode, params] = this.handleNetworkCodeAndParams(params);
4818
4818
  if (networkCode !== undefined) {
@@ -166,7 +166,7 @@ export default class coinmetro extends Exchange {
166
166
  cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
167
167
  /**
168
168
  * @method
169
- * @name coinmetro#cancelOrder
169
+ * @name coinmetro#closePosition
170
170
  * @description closes an open position
171
171
  * @see https://documenter.getpostman.com/view/3653795/SVfWN6KS#47f913fb-8cab-49f4-bc78-d980e6ced316
172
172
  * @param {string} symbol not used by coinmetro closePosition ()
@@ -1432,7 +1432,7 @@ export default class coinmetro extends Exchange {
1432
1432
  }
1433
1433
  /**
1434
1434
  * @method
1435
- * @name coinmetro#cancelOrder
1435
+ * @name coinmetro#closePosition
1436
1436
  * @description closes an open position
1437
1437
  * @see https://documenter.getpostman.com/view/3653795/SVfWN6KS#47f913fb-8cab-49f4-bc78-d980e6ced316
1438
1438
  * @param {string} symbol not used by coinmetro closePosition ()
package/js/src/defx.d.ts CHANGED
@@ -91,7 +91,7 @@ export default class defx extends Exchange {
91
91
  fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
92
92
  /**
93
93
  * @method
94
- * @name defx#fetchTrades
94
+ * @name defx#fetchMyTrades
95
95
  * @description fetch all trades made by the user
96
96
  * @see https://api-docs.defx.com/#06b5b33c-2fc6-48de-896c-fc316f5871a7
97
97
  * @param {string} symbol unified symbol of the market to fetch trades for
package/js/src/defx.js CHANGED
@@ -940,7 +940,7 @@ export default class defx extends Exchange {
940
940
  }
941
941
  /**
942
942
  * @method
943
- * @name defx#fetchTrades
943
+ * @name defx#fetchMyTrades
944
944
  * @description fetch all trades made by the user
945
945
  * @see https://api-docs.defx.com/#06b5b33c-2fc6-48de-896c-fc316f5871a7
946
946
  * @param {string} symbol unified symbol of the market to fetch trades for
@@ -219,6 +219,7 @@ export default class ellipx extends Exchange {
219
219
  fetchTradingFee(symbol?: string, params?: {}): Promise<TradingFeeInterface>;
220
220
  /**
221
221
  * @method
222
+ * @name ellipx#withdraw
222
223
  * @description Make a withdrawal request
223
224
  * @see https://docs.google.com/document/d/1ZXzTQYffKE_EglTaKptxGQERRnunuLHEMmar7VC9syM/edit?tab=t.0#heading=h.zegupoa8g4t9
224
225
  * @param {string} code Currency code
package/js/src/ellipx.js CHANGED
@@ -1712,6 +1712,7 @@ export default class ellipx extends Exchange {
1712
1712
  }
1713
1713
  /**
1714
1714
  * @method
1715
+ * @name ellipx#withdraw
1715
1716
  * @description Make a withdrawal request
1716
1717
  * @see https://docs.google.com/document/d/1ZXzTQYffKE_EglTaKptxGQERRnunuLHEMmar7VC9syM/edit?tab=t.0#heading=h.zegupoa8g4t9
1717
1718
  * @param {string} code Currency code
package/js/src/gate.d.ts CHANGED
@@ -734,7 +734,7 @@ export default class gate extends Exchange {
734
734
  }>;
735
735
  /**
736
736
  * @method
737
- * @name gate#borrowMargin
737
+ * @name gate#borrowIsolatedMargin
738
738
  * @description create a loan to borrow margin
739
739
  * @see https://www.gate.io/docs/developers/apiv4/en/#marginuni
740
740
  * @param {string} symbol unified market symbol, required for isolated margin
package/js/src/gate.js CHANGED
@@ -6456,7 +6456,7 @@ export default class gate extends Exchange {
6456
6456
  }
6457
6457
  /**
6458
6458
  * @method
6459
- * @name gate#borrowMargin
6459
+ * @name gate#borrowIsolatedMargin
6460
6460
  * @description create a loan to borrow margin
6461
6461
  * @see https://www.gate.io/docs/developers/apiv4/en/#marginuni
6462
6462
  * @param {string} symbol unified market symbol, required for isolated margin
@@ -93,13 +93,14 @@ export default class hollaex extends Exchange {
93
93
  /**
94
94
  * @method
95
95
  * @name hollaex#fetchOHLCV
96
- * @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
96
+ * @description hollaex has large gaps between candles, so it's recommended to specify since
97
97
  * @see https://apidocs.hollaex.com/#chart
98
98
  * @param {string} symbol unified symbol of the market to fetch OHLCV data for
99
99
  * @param {string} timeframe the length of time each candle represents
100
100
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
101
101
  * @param {int} [limit] the maximum amount of candles to fetch
102
102
  * @param {object} [params] extra parameters specific to the exchange API endpoint
103
+ * @param {int} [params.until] timestamp in ms of the latest candle to fetch
103
104
  * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
104
105
  */
105
106
  fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;