ccxt 4.2.38 → 4.2.40

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 (127) hide show
  1. package/README.md +3 -3
  2. package/dist/ccxt.browser.js +1340 -407
  3. package/dist/ccxt.browser.min.js +3 -3
  4. package/dist/cjs/ccxt.js +1 -1
  5. package/dist/cjs/src/ascendex.js +28 -24
  6. package/dist/cjs/src/base/Exchange.js +28 -16
  7. package/dist/cjs/src/binance.js +528 -181
  8. package/dist/cjs/src/bingx.js +250 -23
  9. package/dist/cjs/src/bitget.js +14 -3
  10. package/dist/cjs/src/bitso.js +18 -2
  11. package/dist/cjs/src/bitstamp.js +24 -2
  12. package/dist/cjs/src/bl3p.js +6 -0
  13. package/dist/cjs/src/blockchaincom.js +21 -0
  14. package/dist/cjs/src/btcalpha.js +9 -0
  15. package/dist/cjs/src/btcbox.js +9 -0
  16. package/dist/cjs/src/btcmarkets.js +19 -0
  17. package/dist/cjs/src/bybit.js +3 -1
  18. package/dist/cjs/src/coinbase.js +21 -8
  19. package/dist/cjs/src/coinbasepro.js +1 -0
  20. package/dist/cjs/src/coinlist.js +9 -7
  21. package/dist/cjs/src/coinmetro.js +2 -1
  22. package/dist/cjs/src/krakenfutures.js +133 -16
  23. package/dist/cjs/src/luno.js +1 -1
  24. package/dist/cjs/src/mexc.js +43 -43
  25. package/dist/cjs/src/okx.js +11 -17
  26. package/dist/cjs/src/phemex.js +1 -0
  27. package/dist/cjs/src/poloniexfutures.js +11 -5
  28. package/dist/cjs/src/pro/bitmart.js +141 -48
  29. package/dist/cjs/src/pro/bybit.js +5 -5
  30. package/dist/cjs/src/pro/mexc.js +1 -1
  31. package/dist/cjs/src/wavesexchange.js +1 -1
  32. package/dist/cjs/src/woo.js +1 -1
  33. package/js/ccxt.d.ts +1 -1
  34. package/js/ccxt.js +1 -1
  35. package/js/src/abstract/bingx.d.ts +4 -0
  36. package/js/src/abstract/coinbase.d.ts +1 -0
  37. package/js/src/abstract/coinbasepro.d.ts +1 -0
  38. package/js/src/abstract/okx.d.ts +1 -0
  39. package/js/src/ascendex.d.ts +2 -2
  40. package/js/src/ascendex.js +28 -24
  41. package/js/src/base/Exchange.d.ts +12 -8
  42. package/js/src/base/Exchange.js +28 -16
  43. package/js/src/base/types.d.ts +2 -0
  44. package/js/src/bigone.d.ts +2 -2
  45. package/js/src/binance.d.ts +9 -9
  46. package/js/src/binance.js +528 -181
  47. package/js/src/bingx.d.ts +6 -5
  48. package/js/src/bingx.js +250 -23
  49. package/js/src/bitfinex.d.ts +3 -3
  50. package/js/src/bitfinex2.d.ts +2 -2
  51. package/js/src/bitget.d.ts +5 -5
  52. package/js/src/bitget.js +14 -3
  53. package/js/src/bitmart.d.ts +2 -2
  54. package/js/src/bitmex.d.ts +2 -2
  55. package/js/src/bitrue.d.ts +2 -2
  56. package/js/src/bitso.d.ts +1 -1
  57. package/js/src/bitso.js +18 -2
  58. package/js/src/bitstamp.d.ts +1 -1
  59. package/js/src/bitstamp.js +24 -2
  60. package/js/src/bitvavo.d.ts +1 -1
  61. package/js/src/bl3p.js +6 -0
  62. package/js/src/blockchaincom.js +21 -0
  63. package/js/src/blofin.d.ts +2 -2
  64. package/js/src/btcalpha.js +9 -0
  65. package/js/src/btcbox.js +9 -0
  66. package/js/src/btcmarkets.js +19 -0
  67. package/js/src/bybit.d.ts +7 -7
  68. package/js/src/bybit.js +3 -1
  69. package/js/src/cex.d.ts +1 -1
  70. package/js/src/coinbase.d.ts +2 -2
  71. package/js/src/coinbase.js +21 -8
  72. package/js/src/coinbasepro.js +1 -0
  73. package/js/src/coinex.d.ts +4 -4
  74. package/js/src/coinlist.d.ts +2 -2
  75. package/js/src/coinlist.js +9 -7
  76. package/js/src/coinmetro.js +2 -1
  77. package/js/src/coinone.d.ts +1 -1
  78. package/js/src/delta.d.ts +2 -2
  79. package/js/src/deribit.d.ts +3 -3
  80. package/js/src/digifinex.d.ts +3 -3
  81. package/js/src/exmo.d.ts +2 -2
  82. package/js/src/gate.d.ts +6 -6
  83. package/js/src/hitbtc.d.ts +2 -2
  84. package/js/src/hollaex.d.ts +1 -1
  85. package/js/src/htx.d.ts +3 -3
  86. package/js/src/huobijp.d.ts +1 -1
  87. package/js/src/kraken.d.ts +2 -2
  88. package/js/src/krakenfutures.d.ts +4 -2
  89. package/js/src/krakenfutures.js +133 -16
  90. package/js/src/kucoin.d.ts +5 -5
  91. package/js/src/kucoinfutures.d.ts +2 -2
  92. package/js/src/latoken.d.ts +1 -1
  93. package/js/src/lbank.d.ts +2 -2
  94. package/js/src/luno.d.ts +1 -1
  95. package/js/src/luno.js +1 -1
  96. package/js/src/mexc.d.ts +4 -4
  97. package/js/src/mexc.js +43 -43
  98. package/js/src/ndax.d.ts +1 -1
  99. package/js/src/novadax.d.ts +1 -1
  100. package/js/src/okcoin.d.ts +2 -2
  101. package/js/src/okx.d.ts +7 -7
  102. package/js/src/okx.js +11 -17
  103. package/js/src/paymium.d.ts +2 -2
  104. package/js/src/phemex.d.ts +4 -4
  105. package/js/src/phemex.js +1 -0
  106. package/js/src/poloniex.d.ts +2 -2
  107. package/js/src/poloniexfutures.d.ts +2 -2
  108. package/js/src/poloniexfutures.js +11 -5
  109. package/js/src/pro/bitmart.d.ts +4 -0
  110. package/js/src/pro/bitmart.js +141 -48
  111. package/js/src/pro/bitvavo.d.ts +1 -1
  112. package/js/src/pro/bybit.d.ts +1 -1
  113. package/js/src/pro/bybit.js +5 -5
  114. package/js/src/pro/cex.d.ts +2 -2
  115. package/js/src/pro/coinbase.d.ts +2 -2
  116. package/js/src/pro/coinex.d.ts +1 -1
  117. package/js/src/pro/lbank.d.ts +1 -1
  118. package/js/src/pro/mexc.js +1 -1
  119. package/js/src/probit.d.ts +1 -1
  120. package/js/src/timex.d.ts +1 -1
  121. package/js/src/upbit.d.ts +1 -1
  122. package/js/src/wavesexchange.js +1 -1
  123. package/js/src/whitebit.d.ts +2 -2
  124. package/js/src/woo.d.ts +3 -3
  125. package/js/src/woo.js +1 -1
  126. package/js/src/zonda.d.ts +3 -3
  127. package/package.json +2 -2
package/js/src/btcbox.js CHANGED
@@ -149,6 +149,7 @@ export default class btcbox extends Exchange {
149
149
  * @method
150
150
  * @name btcbox#fetchBalance
151
151
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
152
+ * @see https://blog.btcbox.jp/en/archives/8762#toc13
152
153
  * @param {object} [params] extra parameters specific to the exchange API endpoint
153
154
  * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
154
155
  */
@@ -161,6 +162,7 @@ export default class btcbox extends Exchange {
161
162
  * @method
162
163
  * @name btcbox#fetchOrderBook
163
164
  * @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
165
+ * @see https://blog.btcbox.jp/en/archives/8762#toc6
164
166
  * @param {string} symbol unified symbol of the market to fetch the order book for
165
167
  * @param {int} [limit] the maximum amount of order book entries to return
166
168
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -207,6 +209,7 @@ export default class btcbox extends Exchange {
207
209
  * @method
208
210
  * @name btcbox#fetchTicker
209
211
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
212
+ * @see https://blog.btcbox.jp/en/archives/8762#toc5
210
213
  * @param {string} symbol unified symbol of the market to fetch the ticker for
211
214
  * @param {object} [params] extra parameters specific to the exchange API endpoint
212
215
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
@@ -261,6 +264,7 @@ export default class btcbox extends Exchange {
261
264
  * @method
262
265
  * @name btcbox#fetchTrades
263
266
  * @description get the list of most recent trades for a particular symbol
267
+ * @see https://blog.btcbox.jp/en/archives/8762#toc7
264
268
  * @param {string} symbol unified symbol of the market to fetch trades for
265
269
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
266
270
  * @param {int} [limit] the maximum amount of trades to fetch
@@ -293,6 +297,7 @@ export default class btcbox extends Exchange {
293
297
  * @method
294
298
  * @name btcbox#createOrder
295
299
  * @description create a trade order
300
+ * @see https://blog.btcbox.jp/en/archives/8762#toc18
296
301
  * @param {string} symbol unified symbol of the market to create an order in
297
302
  * @param {string} type 'market' or 'limit'
298
303
  * @param {string} side 'buy' or 'sell'
@@ -323,6 +328,7 @@ export default class btcbox extends Exchange {
323
328
  * @method
324
329
  * @name btcbox#cancelOrder
325
330
  * @description cancels an open order
331
+ * @see https://blog.btcbox.jp/en/archives/8762#toc17
326
332
  * @param {string} id order id
327
333
  * @param {string} symbol unified symbol of the market the order was made in
328
334
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -418,6 +424,7 @@ export default class btcbox extends Exchange {
418
424
  * @method
419
425
  * @name btcbox#fetchOrder
420
426
  * @description fetches information on an order made by the user
427
+ * @see https://blog.btcbox.jp/en/archives/8762#toc16
421
428
  * @param {string} symbol unified symbol of the market the order was made in
422
429
  * @param {object} [params] extra parameters specific to the exchange API endpoint
423
430
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
@@ -486,6 +493,7 @@ export default class btcbox extends Exchange {
486
493
  * @method
487
494
  * @name btcbox#fetchOrders
488
495
  * @description fetches information on multiple orders made by the user
496
+ * @see https://blog.btcbox.jp/en/archives/8762#toc15
489
497
  * @param {string} symbol unified market symbol of the market orders were made in
490
498
  * @param {int} [since] the earliest time in ms to fetch orders for
491
499
  * @param {int} [limit] the maximum number of order structures to retrieve
@@ -499,6 +507,7 @@ export default class btcbox extends Exchange {
499
507
  * @method
500
508
  * @name btcbox#fetchOpenOrders
501
509
  * @description fetch all unfilled currently open orders
510
+ * @see https://blog.btcbox.jp/en/archives/8762#toc15
502
511
  * @param {string} symbol unified market symbol
503
512
  * @param {int} [since] the earliest time in ms to fetch open orders for
504
513
  * @param {int} [limit] the maximum number of open orders structures to retrieve
@@ -197,6 +197,7 @@ export default class btcmarkets extends Exchange {
197
197
  * @method
198
198
  * @name btcmarkets#fetchDepositsWithdrawals
199
199
  * @description fetch history of deposits and withdrawals
200
+ * @see https://docs.btcmarkets.net/v3/#tag/Fund-Management-APIs/paths/~1v3~1transfers/get
200
201
  * @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
201
202
  * @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
202
203
  * @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
@@ -210,6 +211,7 @@ export default class btcmarkets extends Exchange {
210
211
  * @method
211
212
  * @name btcmarkets#fetchDeposits
212
213
  * @description fetch all deposits made to an account
214
+ * @see https://docs.btcmarkets.net/v3/#tag/Fund-Management-APIs/paths/~1v3~1deposits/get
213
215
  * @param {string} code unified currency code
214
216
  * @param {int} [since] the earliest time in ms to fetch deposits for
215
217
  * @param {int} [limit] the maximum number of deposits structures to retrieve
@@ -223,6 +225,7 @@ export default class btcmarkets extends Exchange {
223
225
  * @method
224
226
  * @name btcmarkets#fetchWithdrawals
225
227
  * @description fetch all withdrawals made from an account
228
+ * @see https://docs.btcmarkets.net/v3/#tag/Fund-Management-APIs/paths/~1v3~1withdrawals/get
226
229
  * @param {string} code unified currency code
227
230
  * @param {int} [since] the earliest time in ms to fetch withdrawals for
228
231
  * @param {int} [limit] the maximum number of withdrawals structures to retrieve
@@ -356,6 +359,7 @@ export default class btcmarkets extends Exchange {
356
359
  * @method
357
360
  * @name btcmarkets#fetchMarkets
358
361
  * @description retrieves data on all markets for btcmarkets
362
+ * @see https://docs.btcmarkets.net/v3/#tag/Market-Data-APIs/paths/~1v3~1markets/get
359
363
  * @param {object} [params] extra parameters specific to the exchange API endpoint
360
364
  * @returns {object[]} an array of objects representing market data
361
365
  */
@@ -447,6 +451,7 @@ export default class btcmarkets extends Exchange {
447
451
  * @method
448
452
  * @name btcmarkets#fetchTime
449
453
  * @description fetches the current integer timestamp in milliseconds from the exchange server
454
+ * @see https://docs.btcmarkets.net/v3/#tag/Misc-APIs/paths/~1v3~1time/get
450
455
  * @param {object} [params] extra parameters specific to the exchange API endpoint
451
456
  * @returns {int} the current integer timestamp in milliseconds from the exchange server
452
457
  */
@@ -476,6 +481,7 @@ export default class btcmarkets extends Exchange {
476
481
  * @method
477
482
  * @name btcmarkets#fetchBalance
478
483
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
484
+ * @see https://docs.btcmarkets.net/v3/#tag/Account-APIs/paths/~1v3~1accounts~1me~1balances/get
479
485
  * @param {object} [params] extra parameters specific to the exchange API endpoint
480
486
  * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
481
487
  */
@@ -508,6 +514,7 @@ export default class btcmarkets extends Exchange {
508
514
  * @method
509
515
  * @name btcmarkets#fetchOHLCV
510
516
  * @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
517
+ * @see https://docs.btcmarkets.net/v3/#tag/Market-Data-APIs/paths/~1v3~1markets~1{marketId}~1candles/get
511
518
  * @param {string} symbol unified symbol of the market to fetch OHLCV data for
512
519
  * @param {string} timeframe the length of time each candle represents
513
520
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
@@ -547,6 +554,7 @@ export default class btcmarkets extends Exchange {
547
554
  * @method
548
555
  * @name btcmarkets#fetchOrderBook
549
556
  * @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
557
+ * @see https://docs.btcmarkets.net/v3/#tag/Market-Data-APIs/paths/~1v3~1markets~1{marketId}~1orderbook/get
550
558
  * @param {string} symbol unified symbol of the market to fetch the order book for
551
559
  * @param {int} [limit] the maximum amount of order book entries to return
552
560
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -634,6 +642,7 @@ export default class btcmarkets extends Exchange {
634
642
  * @method
635
643
  * @name btcmarkets#fetchTicker
636
644
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
645
+ * @see https://docs.btcmarkets.net/v3/#tag/Market-Data-APIs/paths/~1v3~1markets~1{marketId}~1ticker/get
637
646
  * @param {string} symbol unified symbol of the market to fetch the ticker for
638
647
  * @param {object} [params] extra parameters specific to the exchange API endpoint
639
648
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
@@ -742,6 +751,7 @@ export default class btcmarkets extends Exchange {
742
751
  * @method
743
752
  * @name btcmarkets#fetchTrades
744
753
  * @description get the list of most recent trades for a particular symbol
754
+ * @see https://docs.btcmarkets.net/v3/#tag/Market-Data-APIs/paths/~1v3~1markets~1{marketId}~1trades/get
745
755
  * @param {string} symbol unified symbol of the market to fetch trades for
746
756
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
747
757
  * @param {int} [limit] the maximum amount of trades to fetch
@@ -769,6 +779,7 @@ export default class btcmarkets extends Exchange {
769
779
  * @method
770
780
  * @name btcmarkets#createOrder
771
781
  * @description create a trade order
782
+ * @see https://docs.btcmarkets.net/v3/#tag/Order-Placement-APIs/paths/~1v3~1orders/post
772
783
  * @param {string} symbol unified symbol of the market to create an order in
773
784
  * @param {string} type 'market' or 'limit'
774
785
  * @param {string} side 'buy' or 'sell'
@@ -869,6 +880,7 @@ export default class btcmarkets extends Exchange {
869
880
  * @method
870
881
  * @name btcmarkets#cancelOrders
871
882
  * @description cancel multiple orders
883
+ * @see https://docs.btcmarkets.net/v3/#tag/Batch-Order-APIs/paths/~1v3~1batchorders~1{ids}/delete
872
884
  * @param {string[]} ids order ids
873
885
  * @param {string} symbol not used by btcmarkets cancelOrders ()
874
886
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -888,6 +900,7 @@ export default class btcmarkets extends Exchange {
888
900
  * @method
889
901
  * @name btcmarkets#cancelOrder
890
902
  * @description cancels an open order
903
+ * @see https://docs.btcmarkets.net/v3/#operation/cancelOrder
891
904
  * @param {string} id order id
892
905
  * @param {string} symbol not used by btcmarket cancelOrder ()
893
906
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -1007,6 +1020,7 @@ export default class btcmarkets extends Exchange {
1007
1020
  * @method
1008
1021
  * @name btcmarkets#fetchOrder
1009
1022
  * @description fetches information on an order made by the user
1023
+ * @see https://docs.btcmarkets.net/v3/#operation/getOrderById
1010
1024
  * @param {string} symbol not used by btcmarkets fetchOrder
1011
1025
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1012
1026
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
@@ -1023,6 +1037,7 @@ export default class btcmarkets extends Exchange {
1023
1037
  * @method
1024
1038
  * @name btcmarkets#fetchOrders
1025
1039
  * @description fetches information on multiple orders made by the user
1040
+ * @see https://docs.btcmarkets.net/v3/#operation/listOrders
1026
1041
  * @param {string} symbol unified market symbol of the market orders were made in
1027
1042
  * @param {int} [since] the earliest time in ms to fetch orders for
1028
1043
  * @param {int} [limit] the maximum number of order structures to retrieve
@@ -1052,6 +1067,7 @@ export default class btcmarkets extends Exchange {
1052
1067
  * @method
1053
1068
  * @name btcmarkets#fetchOpenOrders
1054
1069
  * @description fetch all unfilled currently open orders
1070
+ * @see https://docs.btcmarkets.net/v3/#operation/listOrders
1055
1071
  * @param {string} symbol unified market symbol
1056
1072
  * @param {int} [since] the earliest time in ms to fetch open orders for
1057
1073
  * @param {int} [limit] the maximum number of open orders structures to retrieve
@@ -1066,6 +1082,7 @@ export default class btcmarkets extends Exchange {
1066
1082
  * @method
1067
1083
  * @name btcmarkets#fetchClosedOrders
1068
1084
  * @description fetches information on multiple closed orders made by the user
1085
+ * @see https://docs.btcmarkets.net/v3/#operation/listOrders
1069
1086
  * @param {string} symbol unified market symbol of the market orders were made in
1070
1087
  * @param {int} [since] the earliest time in ms to fetch orders for
1071
1088
  * @param {int} [limit] the maximum number of order structures to retrieve
@@ -1080,6 +1097,7 @@ export default class btcmarkets extends Exchange {
1080
1097
  * @method
1081
1098
  * @name btcmarkets#fetchMyTrades
1082
1099
  * @description fetch all trades made by the user
1100
+ * @see https://docs.btcmarkets.net/v3/#operation/getTrades
1083
1101
  * @param {string} symbol unified market symbol
1084
1102
  * @param {int} [since] the earliest time in ms to fetch trades for
1085
1103
  * @param {int} [limit] the maximum number of trades structures to retrieve
@@ -1134,6 +1152,7 @@ export default class btcmarkets extends Exchange {
1134
1152
  * @method
1135
1153
  * @name btcmarkets#withdraw
1136
1154
  * @description make a withdrawal
1155
+ * @see https://docs.btcmarkets.net/v3/#tag/Fund-Management-APIs/paths/~1v3~1withdrawals/post
1137
1156
  * @param {string} code unified currency code
1138
1157
  * @param {float} amount the amount to withdraw
1139
1158
  * @param {string} address the address to withdraw to
package/js/src/bybit.d.ts CHANGED
@@ -13,7 +13,7 @@ export default class bybit extends Exchange {
13
13
  convertExpireDate(date: any): string;
14
14
  convertExpireDateToMarketIdDate(date: any): any;
15
15
  convertMarketIdExpireDate(date: any): string;
16
- createExpiredOptionMarket(symbol: any): MarketInterface;
16
+ createExpiredOptionMarket(symbol: string): MarketInterface;
17
17
  safeMarket(marketId?: any, market?: any, delimiter?: any, marketType?: any): MarketInterface;
18
18
  getBybitType(method: any, market: any, params?: {}): any[];
19
19
  fetchTime(params?: {}): Promise<number>;
@@ -57,14 +57,14 @@ export default class bybit extends Exchange {
57
57
  parseTimeInForce(timeInForce: any): string;
58
58
  parseOrder(order: any, market?: Market): Order;
59
59
  fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
60
- createMarketBuyOrderWithCost(symbol: string, cost: any, params?: {}): Promise<Order>;
61
- createMarketSellOrderWithCost(symbol: string, cost: any, params?: {}): Promise<Order>;
60
+ createMarketBuyOrderWithCost(symbol: string, cost: number, params?: {}): Promise<Order>;
61
+ createMarketSellOrderWithCost(symbol: string, cost: number, params?: {}): Promise<Order>;
62
62
  createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: number, params?: {}): Promise<Order>;
63
63
  createOrderRequest(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: number, params?: {}, isUTA?: boolean): any;
64
64
  createOrders(orders: OrderRequest[], params?: {}): Promise<Order[]>;
65
65
  createUsdcOrder(symbol: any, type: any, side: any, amount: number, price?: number, params?: {}): Promise<Order>;
66
66
  editUsdcOrder(id: any, symbol: any, type: any, side: any, amount?: any, price?: any, params?: {}): Promise<Order>;
67
- editOrder(id: string, symbol: any, type: any, side: any, amount?: any, price?: any, params?: {}): Promise<Order>;
67
+ editOrder(id: string, symbol: string, type: OrderType, side: OrderSide, amount?: number, price?: number, params?: {}): Promise<Order>;
68
68
  cancelUsdcOrder(id: any, symbol?: Str, params?: {}): Promise<Order>;
69
69
  cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
70
70
  cancelAllUsdcOrders(symbol?: Str, params?: {}): Promise<any>;
@@ -121,9 +121,9 @@ export default class bybit extends Exchange {
121
121
  fetchUsdcPositions(symbols?: Strings, params?: {}): Promise<import("./base/types.js").Position[]>;
122
122
  fetchPositions(symbols?: Strings, params?: {}): Promise<import("./base/types.js").Position[]>;
123
123
  parsePosition(position: any, market?: Market): import("./base/types.js").Position;
124
- setMarginMode(marginMode: any, symbol?: Str, params?: {}): Promise<any>;
124
+ setMarginMode(marginMode: string, symbol?: Str, params?: {}): Promise<any>;
125
125
  setLeverage(leverage: Int, symbol?: Str, params?: {}): Promise<any>;
126
- setPositionMode(hedged: any, symbol?: Str, params?: {}): Promise<any>;
126
+ setPositionMode(hedged: boolean, symbol?: Str, params?: {}): Promise<any>;
127
127
  fetchDerivativesOpenInterestHistory(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OpenInterest[]>;
128
128
  fetchOpenInterest(symbol: string, params?: {}): Promise<OpenInterest>;
129
129
  fetchOpenInterestHistory(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OpenInterest[]>;
@@ -156,7 +156,7 @@ export default class bybit extends Exchange {
156
156
  datetime: any;
157
157
  info: any;
158
158
  };
159
- transfer(code: string, amount: number, fromAccount: any, toAccount: any, params?: {}): Promise<TransferEntry>;
159
+ transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?: {}): Promise<TransferEntry>;
160
160
  fetchTransfers(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
161
161
  borrowCrossMargin(code: string, amount: number, params?: {}): Promise<any>;
162
162
  repayCrossMargin(code: string, amount: any, params?: {}): Promise<any>;
package/js/src/bybit.js CHANGED
@@ -2220,6 +2220,7 @@ export default class bybit extends Exchange {
2220
2220
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
2221
2221
  * @param {int} [limit] the maximum amount of candles to fetch
2222
2222
  * @param {object} [params] extra parameters specific to the exchange API endpoint
2223
+ * @param {int} [params.until] the latest time in ms to fetch orders for
2223
2224
  * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
2224
2225
  * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
2225
2226
  */
@@ -2233,7 +2234,7 @@ export default class bybit extends Exchange {
2233
2234
  return await this.fetchPaginatedCallDeterministic('fetchOHLCV', symbol, since, limit, timeframe, params, 1000);
2234
2235
  }
2235
2236
  const market = this.market(symbol);
2236
- const request = {
2237
+ let request = {
2237
2238
  'symbol': market['id'],
2238
2239
  };
2239
2240
  if (limit === undefined) {
@@ -2245,6 +2246,7 @@ export default class bybit extends Exchange {
2245
2246
  if (limit !== undefined) {
2246
2247
  request['limit'] = limit; // max 1000, default 1000
2247
2248
  }
2249
+ [request, params] = this.handleUntilOption('end', request, params);
2248
2250
  request['interval'] = this.safeString(this.timeframes, timeframe, timeframe);
2249
2251
  let response = undefined;
2250
2252
  if (market['spot']) {
package/js/src/cex.d.ts CHANGED
@@ -29,7 +29,7 @@ export default class cex extends Exchange {
29
29
  fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
30
30
  fetchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
31
31
  parseOrderStatus(status: any): string;
32
- editOrder(id: string, symbol: any, type: any, side: any, amount?: any, price?: any, params?: {}): Promise<Order>;
32
+ editOrder(id: string, symbol: string, type: OrderType, side: OrderSide, amount?: number, price?: number, params?: {}): Promise<Order>;
33
33
  fetchDepositAddress(code: string, params?: {}): Promise<{
34
34
  currency: string;
35
35
  address: string;
@@ -71,7 +71,7 @@ export default class coinbase extends Exchange {
71
71
  prepareAccountRequestWithCurrencyCode(code?: Str, limit?: Int, params?: {}): Promise<{
72
72
  account_id: string;
73
73
  }>;
74
- createMarketBuyOrderWithCost(symbol: string, cost: any, params?: {}): Promise<Order>;
74
+ createMarketBuyOrderWithCost(symbol: string, cost: number, params?: {}): Promise<Order>;
75
75
  createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: number, params?: {}): Promise<Order>;
76
76
  parseOrder(order: any, market?: Market): Order;
77
77
  parseOrderStatus(status: any): string;
@@ -79,7 +79,7 @@ export default class coinbase extends Exchange {
79
79
  parseTimeInForce(timeInForce: any): string;
80
80
  cancelOrder(id: string, symbol?: Str, params?: {}): Promise<any>;
81
81
  cancelOrders(ids: any, symbol?: Str, params?: {}): Promise<Order[]>;
82
- editOrder(id: string, symbol: any, type: any, side: any, amount?: any, price?: any, params?: {}): Promise<Order>;
82
+ editOrder(id: string, symbol: string, type: OrderType, side: OrderSide, amount?: number, price?: number, params?: {}): Promise<Order>;
83
83
  fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
84
84
  fetchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
85
85
  fetchOrdersByStatus(status: any, symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
@@ -220,6 +220,7 @@ export default class coinbase extends Exchange {
220
220
  'brokerage/orders/batch_cancel',
221
221
  'brokerage/orders/edit',
222
222
  'brokerage/orders/edit_preview',
223
+ 'brokerage/orders/preview',
223
224
  'brokerage/portfolios',
224
225
  'brokerage/portfolios/move_funds',
225
226
  'brokerage/convert/quote',
@@ -429,11 +430,12 @@ export default class coinbase extends Exchange {
429
430
  // ]
430
431
  // }
431
432
  //
432
- const data = this.safeValue(response, 'data', []);
433
- const pagination = this.safeValue(response, 'pagination', {});
433
+ const data = this.safeList(response, 'data', []);
434
+ const pagination = this.safeDict(response, 'pagination', {});
434
435
  const cursor = this.safeString(pagination, 'next_starting_after');
435
- const accounts = this.safeValue(response, 'data', []);
436
- const lastIndex = accounts.length - 1;
436
+ const accounts = this.safeList(response, 'data', []);
437
+ const length = accounts.length;
438
+ const lastIndex = length - 1;
437
439
  const last = this.safeValue(accounts, lastIndex);
438
440
  if ((cursor !== undefined) && (cursor !== '')) {
439
441
  last['next_starting_after'] = cursor;
@@ -482,8 +484,9 @@ export default class coinbase extends Exchange {
482
484
  // "size": 9
483
485
  // }
484
486
  //
485
- const accounts = this.safeValue(response, 'accounts', []);
486
- const lastIndex = accounts.length - 1;
487
+ const accounts = this.safeList(response, 'accounts', []);
488
+ const length = accounts.length;
489
+ const lastIndex = length - 1;
487
490
  const last = this.safeValue(accounts, lastIndex);
488
491
  const cursor = this.safeString(response, 'cursor');
489
492
  if ((cursor !== undefined) && (cursor !== '')) {
@@ -2215,11 +2218,12 @@ export default class coinbase extends Exchange {
2215
2218
  * @param {string} [params.stop_direction] 'UNKNOWN_STOP_DIRECTION', 'STOP_DIRECTION_STOP_UP', 'STOP_DIRECTION_STOP_DOWN' the direction the stopPrice is triggered from
2216
2219
  * @param {string} [params.end_time] '2023-05-25T17:01:05.092Z' for 'GTD' orders
2217
2220
  * @param {float} [params.cost] *spot market buy only* the quote quantity that can be used as an alternative for the amount
2221
+ * @param {boolean} [params.preview] default to false, wether to use the test/preview endpoint or not
2218
2222
  * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
2219
2223
  */
2220
2224
  await this.loadMarkets();
2221
2225
  const market = this.market(symbol);
2222
- const request = {
2226
+ let request = {
2223
2227
  'client_order_id': this.uuid(),
2224
2228
  'product_id': market['id'],
2225
2229
  'side': side.toUpperCase(),
@@ -2354,7 +2358,16 @@ export default class coinbase extends Exchange {
2354
2358
  }
2355
2359
  }
2356
2360
  params = this.omit(params, ['timeInForce', 'triggerPrice', 'stopLossPrice', 'takeProfitPrice', 'stopPrice', 'stop_price', 'stopDirection', 'stop_direction', 'clientOrderId', 'postOnly', 'post_only', 'end_time']);
2357
- const response = await this.v3PrivatePostBrokerageOrders(this.extend(request, params));
2361
+ const preview = this.safeValue2(params, 'preview', 'test', false);
2362
+ let response = undefined;
2363
+ if (preview) {
2364
+ params = this.omit(params, ['preview', 'test']);
2365
+ request = this.omit(request, 'client_order_id');
2366
+ response = await this.v3PrivatePostBrokerageOrdersPreview(this.extend(request, params));
2367
+ }
2368
+ else {
2369
+ response = await this.v3PrivatePostBrokerageOrders(this.extend(request, params));
2370
+ }
2358
2371
  //
2359
2372
  // successful order
2360
2373
  //
@@ -150,6 +150,7 @@ export default class coinbasepro extends Exchange {
150
150
  'users/self/trailing-volume',
151
151
  'withdrawals/fee-estimate',
152
152
  'conversions/{conversion_id}',
153
+ 'conversions/fees',
153
154
  ],
154
155
  'post': [
155
156
  'conversions',
@@ -43,12 +43,12 @@ export default class coinex extends Exchange {
43
43
  fetchBalance(params?: {}): Promise<Balances>;
44
44
  parseOrderStatus(status: any): string;
45
45
  parseOrder(order: any, market?: Market): Order;
46
- createMarketBuyOrderWithCost(symbol: string, cost: any, params?: {}): Promise<Order>;
46
+ createMarketBuyOrderWithCost(symbol: string, cost: number, params?: {}): Promise<Order>;
47
47
  createOrderRequest(symbol: any, type: any, side: any, amount: number, price?: number, params?: {}): any;
48
48
  createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: number, params?: {}): Promise<Order>;
49
49
  createOrders(orders: OrderRequest[], params?: {}): Promise<Order[]>;
50
50
  cancelOrders(ids: any, symbol?: Str, params?: {}): Promise<any[]>;
51
- editOrder(id: any, symbol: any, type: any, side: any, amount?: any, price?: any, params?: {}): Promise<Order>;
51
+ editOrder(id: string, symbol: string, type: OrderType, side: OrderSide, amount?: number, price?: number, params?: {}): Promise<Order>;
52
52
  cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
53
53
  cancelAllOrders(symbol?: Str, params?: {}): Promise<any>;
54
54
  fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
@@ -82,7 +82,7 @@ export default class coinex extends Exchange {
82
82
  fetchPositions(symbols?: Strings, params?: {}): Promise<import("./base/types.js").Position[]>;
83
83
  fetchPosition(symbol: string, params?: {}): Promise<import("./base/types.js").Position>;
84
84
  parsePosition(position: any, market?: Market): import("./base/types.js").Position;
85
- setMarginMode(marginMode: any, symbol?: Str, params?: {}): Promise<any>;
85
+ setMarginMode(marginMode: string, symbol?: Str, params?: {}): Promise<any>;
86
86
  setLeverage(leverage: Int, symbol?: Str, params?: {}): Promise<any>;
87
87
  fetchLeverageTiers(symbols?: Strings, params?: {}): Promise<{}>;
88
88
  parseLeverageTiers(response: any, symbols?: Strings, marketIdKey?: any): {};
@@ -142,7 +142,7 @@ export default class coinex extends Exchange {
142
142
  parseTransactionStatus(status: any): string;
143
143
  fetchFundingRateHistory(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<FundingRateHistory[]>;
144
144
  parseTransaction(transaction: any, currency?: Currency): Transaction;
145
- transfer(code: string, amount: number, fromAccount: any, toAccount: any, params?: {}): Promise<TransferEntry>;
145
+ transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?: {}): Promise<TransferEntry>;
146
146
  parseTransferStatus(status: any): string;
147
147
  parseTransfer(transfer: any, currency?: Currency): {
148
148
  id: number;
@@ -44,11 +44,11 @@ export default class coinlist extends Exchange {
44
44
  cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
45
45
  cancelOrders(ids: any, symbol?: Str, params?: {}): Promise<any>;
46
46
  createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: number, params?: {}): Promise<Order>;
47
- editOrder(id: string, symbol: any, type: any, side: any, amount?: any, price?: any, params?: {}): Promise<Order>;
47
+ editOrder(id: string, symbol: string, type: OrderType, side: OrderSide, amount?: number, price?: number, params?: {}): Promise<Order>;
48
48
  parseOrder(order: any, market?: Market): Order;
49
49
  parseOrderStatus(status: any): string;
50
50
  parseOrderType(status: any): string;
51
- transfer(code: string, amount: number, fromAccount: any, toAccount: any, params?: {}): Promise<TransferEntry>;
51
+ transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?: {}): Promise<TransferEntry>;
52
52
  fetchTransfers(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
53
53
  parseTransfer(transfer: any, currency?: Currency): {
54
54
  info: any;
@@ -1037,13 +1037,15 @@ export default class coinlist extends Exchange {
1037
1037
  }
1038
1038
  takerFees = this.sortBy(takerFees, 1, true);
1039
1039
  makerFees = this.sortBy(makerFees, 1, true);
1040
- const firstTier = this.safeValue(takerFees, 0, []);
1041
- const exchangeFees = this.safeValue(this, 'fees', {});
1042
- const exchangeFeesTrading = this.safeValue(exchangeFees, 'trading', {});
1043
- const exchangeFeesTradingTiers = this.safeValue(exchangeFeesTrading, 'tiers', {});
1044
- const exchangeFeesTradingTiersTaker = this.safeValue(exchangeFeesTradingTiers, 'taker', []);
1045
- const exchangeFeesTradingTiersMaker = this.safeValue(exchangeFeesTradingTiers, 'maker', []);
1046
- if ((keysLength === exchangeFeesTradingTiersTaker.length) && (firstTier.length > 0)) {
1040
+ const firstTier = this.safeDict(takerFees, 0, []);
1041
+ const exchangeFees = this.safeDict(this, 'fees', {});
1042
+ const exchangeFeesTrading = this.safeDict(exchangeFees, 'trading', {});
1043
+ const exchangeFeesTradingTiers = this.safeDict(exchangeFeesTrading, 'tiers', {});
1044
+ const exchangeFeesTradingTiersTaker = this.safeList(exchangeFeesTradingTiers, 'taker', []);
1045
+ const exchangeFeesTradingTiersMaker = this.safeList(exchangeFeesTradingTiers, 'maker', []);
1046
+ const exchangeFeesTradingTiersTakerLength = exchangeFeesTradingTiersTaker.length;
1047
+ const firstTierLength = firstTier.length;
1048
+ if ((keysLength === exchangeFeesTradingTiersTakerLength) && (firstTierLength > 0)) {
1047
1049
  for (let i = 0; i < keysLength; i++) {
1048
1050
  takerFees[i][0] = exchangeFeesTradingTiersTaker[i][0];
1049
1051
  makerFees[i][0] = exchangeFeesTradingTiersMaker[i][0];
@@ -1169,7 +1169,8 @@ export default class coinmetro extends Exchange {
1169
1169
  }
1170
1170
  let type = undefined;
1171
1171
  let referenceId = undefined;
1172
- if (descriptionArray.length > 1) {
1172
+ const length = descriptionArray.length;
1173
+ if (length > 1) {
1173
1174
  type = this.parseLedgerEntryType(descriptionArray[0]);
1174
1175
  if (descriptionArray[1] !== '-') {
1175
1176
  referenceId = descriptionArray[1];
@@ -23,7 +23,7 @@ export default class coinone extends Exchange {
23
23
  fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
24
24
  fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
25
25
  cancelOrder(id: string, symbol?: Str, params?: {}): Promise<any>;
26
- fetchDepositAddresses(codes?: any, params?: {}): Promise<{}>;
26
+ fetchDepositAddresses(codes?: string[], params?: {}): Promise<{}>;
27
27
  sign(path: any, api?: string, method?: string, params?: {}, headers?: any, body?: any): {
28
28
  url: string;
29
29
  method: string;
package/js/src/delta.d.ts CHANGED
@@ -7,7 +7,7 @@ import type { Balances, Currency, Greeks, Int, Market, MarketInterface, OHLCV, O
7
7
  export default class delta extends Exchange {
8
8
  describe(): any;
9
9
  convertExpireDate(date: any): string;
10
- createExpiredOptionMarket(symbol: any): MarketInterface;
10
+ createExpiredOptionMarket(symbol: string): MarketInterface;
11
11
  safeMarket(marketId?: any, market?: any, delimiter?: any, marketType?: any): MarketInterface;
12
12
  fetchTime(params?: {}): Promise<number>;
13
13
  fetchStatus(params?: {}): Promise<{
@@ -36,7 +36,7 @@ export default class delta extends Exchange {
36
36
  parseOrderStatus(status: any): string;
37
37
  parseOrder(order: any, market?: Market): Order;
38
38
  createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: number, params?: {}): Promise<Order>;
39
- editOrder(id: string, symbol: any, type: any, side: any, amount?: any, price?: any, params?: {}): Promise<Order>;
39
+ editOrder(id: string, symbol: string, type: OrderType, side: OrderSide, amount?: number, price?: number, params?: {}): Promise<Order>;
40
40
  cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
41
41
  cancelAllOrders(symbol?: Str, params?: {}): Promise<any>;
42
42
  fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
@@ -9,7 +9,7 @@ export default class deribit extends Exchange {
9
9
  convertExpireDate(date: any): string;
10
10
  convertMarketIdExpireDate(date: any): string;
11
11
  convertExpireDateToMarketIdDate(date: any): any;
12
- createExpiredOptionMarket(symbol: any): MarketInterface;
12
+ createExpiredOptionMarket(symbol: string): MarketInterface;
13
13
  safeMarket(marketId?: any, market?: any, delimiter?: any, marketType?: any): MarketInterface;
14
14
  fetchTime(params?: {}): Promise<number>;
15
15
  fetchCurrencies(params?: {}): Promise<{}>;
@@ -58,7 +58,7 @@ export default class deribit extends Exchange {
58
58
  parseOrder(order: any, market?: Market): Order;
59
59
  fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
60
60
  createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: number, params?: {}): Promise<Order>;
61
- editOrder(id: string, symbol: any, type: any, side: any, amount?: any, price?: any, params?: {}): Promise<Order>;
61
+ editOrder(id: string, symbol: string, type: OrderType, side: OrderSide, amount?: number, price?: number, params?: {}): Promise<Order>;
62
62
  cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
63
63
  cancelAllOrders(symbol?: Str, params?: {}): Promise<any>;
64
64
  fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
@@ -75,7 +75,7 @@ export default class deribit extends Exchange {
75
75
  fetchVolatilityHistory(code: string, params?: {}): Promise<any[]>;
76
76
  parseVolatilityHistory(volatility: any): any[];
77
77
  fetchTransfers(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
78
- transfer(code: string, amount: number, fromAccount: any, toAccount: any, params?: {}): Promise<TransferEntry>;
78
+ transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?: {}): Promise<TransferEntry>;
79
79
  parseTransfer(transfer: any, currency?: Currency): {
80
80
  info: any;
81
81
  id: string;
@@ -31,7 +31,7 @@ export default class digifinex extends Exchange {
31
31
  createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: number, params?: {}): Promise<Order>;
32
32
  createOrders(orders: OrderRequest[], params?: {}): Promise<Order[]>;
33
33
  createOrderRequest(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: number, params?: {}): any;
34
- createMarketBuyOrderWithCost(symbol: string, cost: any, params?: {}): Promise<Order>;
34
+ createMarketBuyOrderWithCost(symbol: string, cost: number, params?: {}): Promise<Order>;
35
35
  cancelOrder(id: string, symbol?: Str, params?: {}): Promise<any>;
36
36
  cancelOrders(ids: any, symbol?: Str, params?: {}): Promise<any>;
37
37
  parseOrderStatus(status: any): string;
@@ -84,7 +84,7 @@ export default class digifinex extends Exchange {
84
84
  toAccount: any;
85
85
  status: string;
86
86
  };
87
- transfer(code: string, amount: number, fromAccount: any, toAccount: any, params?: {}): Promise<TransferEntry>;
87
+ transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?: {}): Promise<TransferEntry>;
88
88
  withdraw(code: string, amount: number, address: any, tag?: any, params?: {}): Promise<Transaction>;
89
89
  fetchBorrowInterest(code?: Str, symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
90
90
  parseBorrowInterest(info: any, market?: Market): {
@@ -183,7 +183,7 @@ export default class digifinex extends Exchange {
183
183
  id: any;
184
184
  amount: number;
185
185
  };
186
- setMarginMode(marginMode: any, symbol?: Str, params?: {}): Promise<any>;
186
+ setMarginMode(marginMode: string, symbol?: Str, params?: {}): Promise<any>;
187
187
  sign(path: any, api?: any[], method?: string, params?: {}, headers?: any, body?: any): {
188
188
  url: string;
189
189
  method: string;
package/js/src/exmo.d.ts CHANGED
@@ -46,7 +46,7 @@ export default class exmo extends Exchange {
46
46
  fetchPrivateTradingFees(params?: {}): Promise<{}>;
47
47
  fetchPublicTradingFees(params?: {}): Promise<{}>;
48
48
  parseFixedFloatValue(input: any): number;
49
- fetchTransactionFees(codes?: any, params?: {}): Promise<{}>;
49
+ fetchTransactionFees(codes?: string[], params?: {}): Promise<{}>;
50
50
  fetchDepositWithdrawFees(codes?: Strings, params?: {}): Promise<any>;
51
51
  parseDepositWithdrawFee(fee: any, currency?: Currency): any;
52
52
  fetchCurrencies(params?: {}): Promise<{}>;
@@ -72,7 +72,7 @@ export default class exmo extends Exchange {
72
72
  parseSide(orderType: any): string;
73
73
  parseOrder(order: any, market?: Market): Order;
74
74
  fetchCanceledOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any[]>;
75
- editOrder(id: string, symbol: any, type: any, side: any, amount?: any, price?: any, params?: {}): Promise<Order>;
75
+ editOrder(id: string, symbol: string, type: OrderType, side: OrderSide, amount?: number, price?: number, params?: {}): Promise<Order>;
76
76
  fetchDepositAddress(code: string, params?: {}): Promise<{
77
77
  currency: string;
78
78
  address: any;