ccxt 4.2.38 → 4.2.39

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 (106) hide show
  1. package/README.md +3 -3
  2. package/dist/ccxt.browser.js +425 -105
  3. package/dist/ccxt.browser.min.js +3 -3
  4. package/dist/cjs/ccxt.js +1 -1
  5. package/dist/cjs/src/base/Exchange.js +14 -2
  6. package/dist/cjs/src/binance.js +156 -35
  7. package/dist/cjs/src/bitget.js +1 -1
  8. package/dist/cjs/src/bitso.js +18 -2
  9. package/dist/cjs/src/bitstamp.js +24 -2
  10. package/dist/cjs/src/bl3p.js +6 -0
  11. package/dist/cjs/src/blockchaincom.js +21 -0
  12. package/dist/cjs/src/btcalpha.js +9 -0
  13. package/dist/cjs/src/btcbox.js +9 -0
  14. package/dist/cjs/src/btcmarkets.js +19 -0
  15. package/dist/cjs/src/coinbase.js +13 -2
  16. package/dist/cjs/src/krakenfutures.js +7 -14
  17. package/dist/cjs/src/luno.js +1 -1
  18. package/dist/cjs/src/okx.js +2 -2
  19. package/dist/cjs/src/poloniexfutures.js +11 -5
  20. package/dist/cjs/src/pro/bitmart.js +110 -35
  21. package/dist/cjs/src/pro/mexc.js +1 -1
  22. package/dist/cjs/src/wavesexchange.js +1 -1
  23. package/dist/cjs/src/woo.js +1 -1
  24. package/js/ccxt.d.ts +1 -1
  25. package/js/ccxt.js +1 -1
  26. package/js/src/abstract/coinbase.d.ts +1 -0
  27. package/js/src/abstract/okx.d.ts +1 -0
  28. package/js/src/ascendex.d.ts +2 -2
  29. package/js/src/base/Exchange.d.ts +4 -0
  30. package/js/src/base/Exchange.js +14 -2
  31. package/js/src/base/types.d.ts +2 -0
  32. package/js/src/bigone.d.ts +2 -2
  33. package/js/src/binance.d.ts +8 -8
  34. package/js/src/binance.js +156 -35
  35. package/js/src/bingx.d.ts +5 -5
  36. package/js/src/bitfinex.d.ts +3 -3
  37. package/js/src/bitfinex2.d.ts +2 -2
  38. package/js/src/bitget.d.ts +5 -5
  39. package/js/src/bitget.js +1 -1
  40. package/js/src/bitmart.d.ts +2 -2
  41. package/js/src/bitmex.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/bitso.js +18 -2
  45. package/js/src/bitstamp.d.ts +1 -1
  46. package/js/src/bitstamp.js +24 -2
  47. package/js/src/bitvavo.d.ts +1 -1
  48. package/js/src/bl3p.js +6 -0
  49. package/js/src/blockchaincom.js +21 -0
  50. package/js/src/blofin.d.ts +2 -2
  51. package/js/src/btcalpha.js +9 -0
  52. package/js/src/btcbox.js +9 -0
  53. package/js/src/btcmarkets.js +19 -0
  54. package/js/src/bybit.d.ts +7 -7
  55. package/js/src/cex.d.ts +1 -1
  56. package/js/src/coinbase.d.ts +2 -2
  57. package/js/src/coinbase.js +13 -2
  58. package/js/src/coinex.d.ts +4 -4
  59. package/js/src/coinlist.d.ts +2 -2
  60. package/js/src/coinone.d.ts +1 -1
  61. package/js/src/delta.d.ts +2 -2
  62. package/js/src/deribit.d.ts +3 -3
  63. package/js/src/digifinex.d.ts +3 -3
  64. package/js/src/exmo.d.ts +2 -2
  65. package/js/src/gate.d.ts +6 -6
  66. package/js/src/hitbtc.d.ts +2 -2
  67. package/js/src/hollaex.d.ts +1 -1
  68. package/js/src/htx.d.ts +3 -3
  69. package/js/src/huobijp.d.ts +1 -1
  70. package/js/src/kraken.d.ts +2 -2
  71. package/js/src/krakenfutures.d.ts +2 -2
  72. package/js/src/krakenfutures.js +7 -14
  73. package/js/src/kucoin.d.ts +5 -5
  74. package/js/src/kucoinfutures.d.ts +2 -2
  75. package/js/src/latoken.d.ts +1 -1
  76. package/js/src/lbank.d.ts +2 -2
  77. package/js/src/luno.d.ts +1 -1
  78. package/js/src/luno.js +1 -1
  79. package/js/src/mexc.d.ts +4 -4
  80. package/js/src/ndax.d.ts +1 -1
  81. package/js/src/novadax.d.ts +1 -1
  82. package/js/src/okcoin.d.ts +2 -2
  83. package/js/src/okx.d.ts +7 -7
  84. package/js/src/okx.js +2 -2
  85. package/js/src/paymium.d.ts +2 -2
  86. package/js/src/phemex.d.ts +4 -4
  87. package/js/src/poloniex.d.ts +2 -2
  88. package/js/src/poloniexfutures.d.ts +2 -2
  89. package/js/src/poloniexfutures.js +11 -5
  90. package/js/src/pro/bitmart.d.ts +2 -0
  91. package/js/src/pro/bitmart.js +110 -35
  92. package/js/src/pro/bitvavo.d.ts +1 -1
  93. package/js/src/pro/cex.d.ts +2 -2
  94. package/js/src/pro/coinbase.d.ts +2 -2
  95. package/js/src/pro/coinex.d.ts +1 -1
  96. package/js/src/pro/lbank.d.ts +1 -1
  97. package/js/src/pro/mexc.js +1 -1
  98. package/js/src/probit.d.ts +1 -1
  99. package/js/src/timex.d.ts +1 -1
  100. package/js/src/upbit.d.ts +1 -1
  101. package/js/src/wavesexchange.js +1 -1
  102. package/js/src/whitebit.d.ts +2 -2
  103. package/js/src/woo.d.ts +3 -3
  104. package/js/src/woo.js +1 -1
  105. package/js/src/zonda.d.ts +3 -3
  106. package/package.json +2 -2
@@ -156,6 +156,7 @@ export default class btcalpha extends Exchange {
156
156
  * @method
157
157
  * @name btcalpha#fetchMarkets
158
158
  * @description retrieves data on all markets for btcalpha
159
+ * @see https://btc-alpha.github.io/api-docs/#list-all-currencies
159
160
  * @param {object} [params] extra parameters specific to the exchange API endpoint
160
161
  * @returns {object[]} an array of objects representing market data
161
162
  */
@@ -426,6 +427,7 @@ export default class btcalpha extends Exchange {
426
427
  * @method
427
428
  * @name btcalpha#fetchTrades
428
429
  * @description get the list of most recent trades for a particular symbol
430
+ * @see https://btc-alpha.github.io/api-docs/#list-all-exchanges
429
431
  * @param {string} symbol unified symbol of the market to fetch trades for
430
432
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
431
433
  * @param {int} [limit] the maximum amount of trades to fetch
@@ -450,6 +452,7 @@ export default class btcalpha extends Exchange {
450
452
  * @method
451
453
  * @name btcalpha#fetchDeposits
452
454
  * @description fetch all deposits made to an account
455
+ * @see https://btc-alpha.github.io/api-docs/#list-own-deposits
453
456
  * @param {string} code unified currency code
454
457
  * @param {int} [since] the earliest time in ms to fetch deposits for
455
458
  * @param {int} [limit] the maximum number of deposits structures to retrieve
@@ -479,6 +482,7 @@ export default class btcalpha extends Exchange {
479
482
  * @method
480
483
  * @name btcalpha#fetchWithdrawals
481
484
  * @description fetch all withdrawals made from an account
485
+ * @see https://btc-alpha.github.io/api-docs/#list-own-made-withdraws
482
486
  * @param {string} code unified currency code
483
487
  * @param {int} [since] the earliest time in ms to fetch withdrawals for
484
488
  * @param {int} [limit] the maximum number of withdrawals structures to retrieve
@@ -586,6 +590,7 @@ export default class btcalpha extends Exchange {
586
590
  * @method
587
591
  * @name btcalpha#fetchOHLCV
588
592
  * @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
593
+ * @see https://btc-alpha.github.io/api-docs/#charts
589
594
  * @param {string} symbol unified symbol of the market to fetch OHLCV data for
590
595
  * @param {string} timeframe the length of time each candle represents
591
596
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
@@ -633,6 +638,7 @@ export default class btcalpha extends Exchange {
633
638
  * @method
634
639
  * @name btcalpha#fetchBalance
635
640
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
641
+ * @see https://btc-alpha.github.io/api-docs/#list-own-wallets
636
642
  * @param {object} [params] extra parameters specific to the exchange API endpoint
637
643
  * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
638
644
  */
@@ -820,6 +826,7 @@ export default class btcalpha extends Exchange {
820
826
  * @method
821
827
  * @name btcalpha#fetchOpenOrders
822
828
  * @description fetch all unfilled currently open orders
829
+ * @see https://btc-alpha.github.io/api-docs/#list-own-orders
823
830
  * @param {string} symbol unified market symbol
824
831
  * @param {int} [since] the earliest time in ms to fetch open orders for
825
832
  * @param {int} [limit] the maximum number of open orders structures to retrieve
@@ -836,6 +843,7 @@ export default class btcalpha extends Exchange {
836
843
  * @method
837
844
  * @name btcalpha#fetchClosedOrders
838
845
  * @description fetches information on multiple closed orders made by the user
846
+ * @see https://btc-alpha.github.io/api-docs/#list-own-orders
839
847
  * @param {string} symbol unified market symbol of the market orders were made in
840
848
  * @param {int} [since] the earliest time in ms to fetch orders for
841
849
  * @param {int} [limit] the maximum number of order structures to retrieve
@@ -852,6 +860,7 @@ export default class btcalpha extends Exchange {
852
860
  * @method
853
861
  * @name btcalpha#fetchMyTrades
854
862
  * @description fetch all trades made by the user
863
+ * @see https://btc-alpha.github.io/api-docs/#list-own-exchanges
855
864
  * @param {string} symbol unified market symbol
856
865
  * @param {int} [since] the earliest time in ms to fetch trades for
857
866
  * @param {int} [limit] the maximum number of trades structures to retrieve
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/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',
@@ -2215,11 +2216,12 @@ export default class coinbase extends Exchange {
2215
2216
  * @param {string} [params.stop_direction] 'UNKNOWN_STOP_DIRECTION', 'STOP_DIRECTION_STOP_UP', 'STOP_DIRECTION_STOP_DOWN' the direction the stopPrice is triggered from
2216
2217
  * @param {string} [params.end_time] '2023-05-25T17:01:05.092Z' for 'GTD' orders
2217
2218
  * @param {float} [params.cost] *spot market buy only* the quote quantity that can be used as an alternative for the amount
2219
+ * @param {boolean} [params.preview] default to false, wether to use the test/preview endpoint or not
2218
2220
  * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
2219
2221
  */
2220
2222
  await this.loadMarkets();
2221
2223
  const market = this.market(symbol);
2222
- const request = {
2224
+ let request = {
2223
2225
  'client_order_id': this.uuid(),
2224
2226
  'product_id': market['id'],
2225
2227
  'side': side.toUpperCase(),
@@ -2354,7 +2356,16 @@ export default class coinbase extends Exchange {
2354
2356
  }
2355
2357
  }
2356
2358
  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));
2359
+ const preview = this.safeValue2(params, 'preview', 'test', false);
2360
+ let response = undefined;
2361
+ if (preview) {
2362
+ params = this.omit(params, ['preview', 'test']);
2363
+ request = this.omit(request, 'client_order_id');
2364
+ response = await this.v3PrivatePostBrokerageOrdersPreview(this.extend(request, params));
2365
+ }
2366
+ else {
2367
+ response = await this.v3PrivatePostBrokerageOrders(this.extend(request, params));
2368
+ }
2358
2369
  //
2359
2370
  // successful order
2360
2371
  //
@@ -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;
@@ -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;
package/js/src/gate.d.ts CHANGED
@@ -8,7 +8,7 @@ export default class gate extends Exchange {
8
8
  describe(): any;
9
9
  setSandboxMode(enable: any): void;
10
10
  convertExpireDate(date: any): string;
11
- createExpiredOptionMarket(symbol: any): MarketInterface;
11
+ createExpiredOptionMarket(symbol: string): MarketInterface;
12
12
  safeMarket(marketId?: any, market?: any, delimiter?: any, marketType?: any): MarketInterface;
13
13
  fetchMarkets(params?: {}): Promise<any>;
14
14
  fetchSpotMarkets(params?: {}): Promise<any[]>;
@@ -134,7 +134,7 @@ export default class gate extends Exchange {
134
134
  maker: number;
135
135
  taker: number;
136
136
  };
137
- fetchTransactionFees(codes?: any, params?: {}): Promise<{}>;
137
+ fetchTransactionFees(codes?: string[], params?: {}): Promise<{}>;
138
138
  fetchDepositWithdrawFees(codes?: Strings, params?: {}): Promise<any>;
139
139
  parseDepositWithdrawFee(fee: any, currency?: Currency): {
140
140
  info: any;
@@ -182,8 +182,8 @@ export default class gate extends Exchange {
182
182
  createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: number, params?: {}): Promise<Order>;
183
183
  createOrders(orders: OrderRequest[], params?: {}): Promise<Order[]>;
184
184
  createOrderRequest(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: number, params?: {}): any;
185
- createMarketBuyOrderWithCost(symbol: string, cost: any, params?: {}): Promise<Order>;
186
- editOrder(id: string, symbol: any, type: any, side: any, amount?: any, price?: any, params?: {}): Promise<Order>;
185
+ createMarketBuyOrderWithCost(symbol: string, cost: number, params?: {}): Promise<Order>;
186
+ editOrder(id: string, symbol: string, type: OrderType, side: OrderSide, amount?: number, price?: number, params?: {}): Promise<Order>;
187
187
  parseOrderStatus(status: any): string;
188
188
  parseOrder(order: any, market?: Market): Order;
189
189
  fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
@@ -192,7 +192,7 @@ export default class gate extends Exchange {
192
192
  fetchOrdersByStatus(status: any, symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
193
193
  cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
194
194
  cancelAllOrders(symbol?: Str, params?: {}): Promise<Order[]>;
195
- transfer(code: string, amount: number, fromAccount: any, toAccount: any, params?: {}): Promise<TransferEntry>;
195
+ transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?: {}): Promise<TransferEntry>;
196
196
  parseTransfer(transfer: any, currency?: Currency): {
197
197
  id: string;
198
198
  timestamp: any;
@@ -333,7 +333,7 @@ export default class gate extends Exchange {
333
333
  info: any;
334
334
  };
335
335
  parseLedgerEntryType(type: any): string;
336
- setPositionMode(hedged: any, symbol?: any, params?: {}): Promise<any>;
336
+ setPositionMode(hedged: boolean, symbol?: string, params?: {}): Promise<any>;
337
337
  fetchUnderlyingAssets(params?: {}): Promise<any[]>;
338
338
  fetchLiquidations(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<import("./base/types.js").Liquidation[]>;
339
339
  fetchMyLiquidations(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<import("./base/types.js").Liquidation[]>;
@@ -64,13 +64,13 @@ export default class hitbtc extends Exchange {
64
64
  fetchOpenOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
65
65
  cancelAllOrders(symbol?: Str, params?: {}): Promise<Order[]>;
66
66
  cancelOrder(id: string, symbol?: Str, 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
  createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: number, params?: {}): Promise<Order>;
69
69
  createOrderRequest(market: object, marketType: string, type: OrderType, side: OrderSide, amount: any, price?: any, marginMode?: Str, params?: {}): {}[];
70
70
  parseOrderStatus(status: any): string;
71
71
  parseOrder(order: any, market?: Market): Order;
72
72
  fetchMarginMode(symbol?: Str, params?: {}): Promise<MarginMode>;
73
- transfer(code: string, amount: number, fromAccount: any, toAccount: any, params?: {}): Promise<TransferEntry>;
73
+ transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?: {}): Promise<TransferEntry>;
74
74
  parseTransfer(transfer: any, currency?: Currency): {
75
75
  id: string;
76
76
  timestamp: any;