ccxt 4.4.82 → 4.4.86

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 (145) hide show
  1. package/README.md +6 -9
  2. package/dist/ccxt.browser.min.js +7 -7
  3. package/dist/cjs/ccxt.js +6 -17
  4. package/dist/cjs/src/abstract/bittrade.js +9 -0
  5. package/dist/cjs/src/apex.js +2 -1
  6. package/dist/cjs/src/ascendex.js +189 -155
  7. package/dist/cjs/src/base/Exchange.js +15 -2
  8. package/dist/cjs/src/bequant.js +1 -1
  9. package/dist/cjs/src/bitget.js +6 -7
  10. package/dist/cjs/src/bitmart.js +1 -1
  11. package/dist/cjs/src/bitrue.js +14 -35
  12. package/dist/cjs/src/bitso.js +33 -0
  13. package/dist/cjs/src/bitstamp.js +33 -0
  14. package/dist/cjs/src/bittrade.js +2049 -0
  15. package/dist/cjs/src/blofin.js +154 -13
  16. package/dist/cjs/src/btcbox.js +25 -5
  17. package/dist/cjs/src/bybit.js +16 -40
  18. package/dist/cjs/src/cex.js +2 -4
  19. package/dist/cjs/src/coinbase.js +58 -46
  20. package/dist/cjs/src/coinbaseexchange.js +142 -32
  21. package/dist/cjs/src/coincatch.js +14 -67
  22. package/dist/cjs/src/coinex.js +29 -32
  23. package/dist/cjs/src/coinlist.js +16 -15
  24. package/dist/cjs/src/coinmetro.js +22 -11
  25. package/dist/cjs/src/coinone.js +8 -10
  26. package/dist/cjs/src/coinsph.js +126 -1
  27. package/dist/cjs/src/cryptocom.js +111 -1
  28. package/dist/cjs/src/cryptomus.js +43 -89
  29. package/dist/cjs/src/delta.js +76 -36
  30. package/dist/cjs/src/deribit.js +4 -5
  31. package/dist/cjs/src/derive.js +46 -10
  32. package/dist/cjs/src/ellipx.js +175 -79
  33. package/dist/cjs/src/gate.js +1 -1
  34. package/dist/cjs/src/gemini.js +3 -5
  35. package/dist/cjs/src/hitbtc.js +56 -69
  36. package/dist/cjs/src/hollaex.js +107 -49
  37. package/dist/cjs/src/htx.js +20 -44
  38. package/dist/cjs/src/hyperliquid.js +6 -6
  39. package/dist/cjs/src/kraken.js +29 -24
  40. package/dist/cjs/src/kucoinfutures.js +6 -0
  41. package/dist/cjs/src/lbank.js +1 -1
  42. package/dist/cjs/src/mexc.js +2 -2
  43. package/dist/cjs/src/ndax.js +25 -24
  44. package/dist/cjs/src/okcoin.js +12 -31
  45. package/dist/cjs/src/okx.js +9 -0
  46. package/dist/cjs/src/onetrading.js +9 -6
  47. package/dist/cjs/src/oxfun.js +42 -114
  48. package/dist/cjs/src/paradex.js +124 -4
  49. package/dist/cjs/src/pro/binance.js +32 -33
  50. package/dist/cjs/src/pro/bithumb.js +5 -3
  51. package/dist/cjs/src/pro/bittrade.js +605 -0
  52. package/dist/cjs/src/pro/kraken.js +289 -79
  53. package/dist/cjs/src/pro/luno.js +6 -5
  54. package/dist/cjs/src/pro/mexc.js +304 -7
  55. package/dist/cjs/src/pro/poloniex.js +6 -2
  56. package/examples/js/cli.js +127 -13
  57. package/js/ccxt.d.ts +8 -20
  58. package/js/ccxt.js +6 -14
  59. package/js/src/abstract/blofin.d.ts +8 -0
  60. package/js/src/abstract/btcbox.d.ts +1 -0
  61. package/js/src/abstract/myokx.d.ts +2 -0
  62. package/js/src/abstract/okx.d.ts +2 -0
  63. package/js/src/apex.js +2 -1
  64. package/js/src/ascendex.d.ts +2 -0
  65. package/js/src/ascendex.js +189 -155
  66. package/js/src/base/Exchange.d.ts +15 -1
  67. package/js/src/base/Exchange.js +15 -2
  68. package/js/src/base/types.d.ts +3 -0
  69. package/js/src/bequant.js +1 -1
  70. package/js/src/bitget.js +6 -7
  71. package/js/src/bitmart.js +1 -1
  72. package/js/src/bitrue.js +14 -35
  73. package/js/src/bitso.js +33 -0
  74. package/js/src/bitstamp.js +33 -0
  75. package/js/src/{huobijp.d.ts → bittrade.d.ts} +29 -29
  76. package/js/src/{huobijp.js → bittrade.js} +35 -35
  77. package/js/src/blofin.d.ts +42 -2
  78. package/js/src/blofin.js +154 -13
  79. package/js/src/btcbox.js +25 -5
  80. package/js/src/bybit.js +16 -40
  81. package/js/src/cex.js +2 -4
  82. package/js/src/coinbase.js +58 -46
  83. package/js/src/coinbaseexchange.js +142 -32
  84. package/js/src/coincatch.js +14 -67
  85. package/js/src/coinex.js +28 -29
  86. package/js/src/coinlist.js +16 -15
  87. package/js/src/coinmetro.js +22 -11
  88. package/js/src/coinone.js +8 -10
  89. package/js/src/coinsph.d.ts +10 -1
  90. package/js/src/coinsph.js +126 -1
  91. package/js/src/cryptocom.d.ts +10 -1
  92. package/js/src/cryptocom.js +111 -1
  93. package/js/src/cryptomus.js +43 -89
  94. package/js/src/delta.js +76 -36
  95. package/js/src/deribit.js +4 -5
  96. package/js/src/derive.js +46 -10
  97. package/js/src/ellipx.d.ts +2 -3
  98. package/js/src/ellipx.js +175 -80
  99. package/js/src/gate.js +1 -1
  100. package/js/src/gemini.js +3 -5
  101. package/js/src/hitbtc.js +56 -69
  102. package/js/src/hollaex.js +107 -49
  103. package/js/src/htx.js +20 -44
  104. package/js/src/hyperliquid.js +6 -6
  105. package/js/src/kraken.js +29 -24
  106. package/js/src/kucoinfutures.d.ts +1 -0
  107. package/js/src/kucoinfutures.js +6 -0
  108. package/js/src/lbank.js +1 -1
  109. package/js/src/mexc.js +2 -2
  110. package/js/src/ndax.js +25 -24
  111. package/js/src/okcoin.js +12 -31
  112. package/js/src/okx.js +9 -0
  113. package/js/src/onetrading.js +9 -6
  114. package/js/src/oxfun.js +42 -114
  115. package/js/src/paradex.d.ts +12 -1
  116. package/js/src/paradex.js +124 -4
  117. package/js/src/pro/binance.d.ts +26 -26
  118. package/js/src/pro/binance.js +32 -33
  119. package/js/src/pro/bithumb.js +5 -3
  120. package/js/src/pro/{huobijp.d.ts → bittrade.d.ts} +6 -6
  121. package/js/src/pro/{huobijp.js → bittrade.js} +7 -7
  122. package/js/src/pro/kraken.d.ts +7 -6
  123. package/js/src/pro/kraken.js +290 -80
  124. package/js/src/pro/luno.js +6 -5
  125. package/js/src/pro/mexc.d.ts +58 -0
  126. package/js/src/pro/mexc.js +304 -7
  127. package/js/src/pro/poloniex.d.ts +1 -1
  128. package/js/src/pro/poloniex.js +6 -2
  129. package/package.json +1 -1
  130. package/js/src/abstract/bl3p.d.ts +0 -22
  131. package/js/src/abstract/huobijp.js +0 -11
  132. package/js/src/abstract/idex.d.ts +0 -29
  133. package/js/src/abstract/idex.js +0 -11
  134. package/js/src/abstract/kuna.d.ts +0 -185
  135. package/js/src/abstract/kuna.js +0 -11
  136. package/js/src/bl3p.d.ts +0 -116
  137. package/js/src/bl3p.js +0 -552
  138. package/js/src/idex.d.ts +0 -312
  139. package/js/src/idex.js +0 -1961
  140. package/js/src/kuna.d.ts +0 -335
  141. package/js/src/kuna.js +0 -2006
  142. package/js/src/pro/idex.d.ts +0 -81
  143. package/js/src/pro/idex.js +0 -720
  144. /package/js/src/abstract/{huobijp.d.ts → bittrade.d.ts} +0 -0
  145. /package/js/src/abstract/{bl3p.js → bittrade.js} +0 -0
package/js/src/bitrue.js CHANGED
@@ -767,70 +767,49 @@ export default class bitrue extends Exchange {
767
767
  const id = this.safeString(currency, 'coin');
768
768
  const name = this.safeString(currency, 'coinFulName');
769
769
  const code = this.safeCurrencyCode(id);
770
- let deposit = undefined;
771
- let withdraw = undefined;
772
- let minWithdrawString = undefined;
773
- let maxWithdrawString = undefined;
774
- let minWithdrawFeeString = undefined;
775
770
  const networkDetails = this.safeList(currency, 'chainDetail', []);
776
771
  const networks = {};
777
772
  for (let j = 0; j < networkDetails.length; j++) {
778
773
  const entry = networkDetails[j];
779
774
  const networkId = this.safeString(entry, 'chain');
780
775
  const network = this.networkIdToCode(networkId, code);
781
- const enableDeposit = this.safeBool(entry, 'enableDeposit');
782
- deposit = (enableDeposit) ? enableDeposit : deposit;
783
- const enableWithdraw = this.safeBool(entry, 'enableWithdraw');
784
- withdraw = (enableWithdraw) ? enableWithdraw : withdraw;
785
- const networkWithdrawFeeString = this.safeString(entry, 'withdrawFee');
786
- if (networkWithdrawFeeString !== undefined) {
787
- minWithdrawFeeString = (minWithdrawFeeString === undefined) ? networkWithdrawFeeString : Precise.stringMin(networkWithdrawFeeString, minWithdrawFeeString);
788
- }
789
- const networkMinWithdrawString = this.safeString(entry, 'minWithdraw');
790
- if (networkMinWithdrawString !== undefined) {
791
- minWithdrawString = (minWithdrawString === undefined) ? networkMinWithdrawString : Precise.stringMin(networkMinWithdrawString, minWithdrawString);
792
- }
793
- const networkMaxWithdrawString = this.safeString(entry, 'maxWithdraw');
794
- if (networkMaxWithdrawString !== undefined) {
795
- maxWithdrawString = (maxWithdrawString === undefined) ? networkMaxWithdrawString : Precise.stringMax(networkMaxWithdrawString, maxWithdrawString);
796
- }
797
776
  networks[network] = {
798
777
  'info': entry,
799
778
  'id': networkId,
800
779
  'network': network,
801
- 'deposit': enableDeposit,
802
- 'withdraw': enableWithdraw,
803
- 'active': enableDeposit && enableWithdraw,
804
- 'fee': this.parseNumber(networkWithdrawFeeString),
780
+ 'deposit': this.safeBool(entry, 'enableDeposit'),
781
+ 'withdraw': this.safeBool(entry, 'enableWithdraw'),
782
+ 'active': undefined,
783
+ 'fee': this.safeNumber(entry, 'withdrawFee'),
805
784
  'precision': undefined,
806
785
  'limits': {
807
786
  'withdraw': {
808
- 'min': this.parseNumber(networkMinWithdrawString),
809
- 'max': this.parseNumber(networkMaxWithdrawString),
787
+ 'min': this.safeNumber(entry, 'minWithdraw'),
788
+ 'max': this.safeNumber(entry, 'maxWithdraw'),
810
789
  },
811
790
  },
812
791
  };
813
792
  }
814
- result[code] = {
793
+ result[code] = this.safeCurrencyStructure({
815
794
  'id': id,
816
795
  'name': name,
817
796
  'code': code,
818
797
  'precision': undefined,
819
798
  'info': currency,
820
- 'active': deposit && withdraw,
821
- 'deposit': deposit,
822
- 'withdraw': withdraw,
799
+ 'active': undefined,
800
+ 'deposit': undefined,
801
+ 'withdraw': undefined,
823
802
  'networks': networks,
824
- 'fee': this.parseNumber(minWithdrawFeeString),
803
+ 'fee': undefined,
825
804
  'fees': undefined,
826
805
  'type': 'crypto',
827
806
  'limits': {
828
807
  'withdraw': {
829
- 'min': this.parseNumber(minWithdrawString),
830
- 'max': this.parseNumber(maxWithdrawString),
808
+ 'min': undefined,
809
+ 'max': undefined,
831
810
  },
832
811
  },
833
- };
812
+ });
834
813
  }
835
814
  return result;
836
815
  }
package/js/src/bitso.js CHANGED
@@ -31,6 +31,9 @@ export default class bitso extends Exchange {
31
31
  'future': false,
32
32
  'option': false,
33
33
  'addMargin': false,
34
+ 'borrowCrossMargin': false,
35
+ 'borrowIsolatedMargin': false,
36
+ 'borrowMargin': false,
34
37
  'cancelAllOrders': true,
35
38
  'cancelOrder': true,
36
39
  'cancelOrders': true,
@@ -38,11 +41,17 @@ export default class bitso extends Exchange {
38
41
  'closePosition': false,
39
42
  'createDepositAddress': false,
40
43
  'createOrder': true,
44
+ 'createOrderWithTakeProfitAndStopLoss': false,
45
+ 'createOrderWithTakeProfitAndStopLossWs': false,
41
46
  'createReduceOnlyOrder': false,
42
47
  'fetchAccounts': false,
43
48
  'fetchBalance': true,
49
+ 'fetchBorrowInterest': false,
50
+ 'fetchBorrowRate': false,
44
51
  'fetchBorrowRateHistories': false,
45
52
  'fetchBorrowRateHistory': false,
53
+ 'fetchBorrowRates': false,
54
+ 'fetchBorrowRatesPerSymbol': false,
46
55
  'fetchCrossBorrowRate': false,
47
56
  'fetchCrossBorrowRates': false,
48
57
  'fetchDeposit': true,
@@ -54,21 +63,40 @@ export default class bitso extends Exchange {
54
63
  'fetchDepositWithdrawFee': 'emulated',
55
64
  'fetchDepositWithdrawFees': true,
56
65
  'fetchFundingHistory': false,
66
+ 'fetchFundingInterval': false,
67
+ 'fetchFundingIntervals': false,
57
68
  'fetchFundingRate': false,
58
69
  'fetchFundingRateHistory': false,
59
70
  'fetchFundingRates': false,
71
+ 'fetchGreeks': false,
60
72
  'fetchIndexOHLCV': false,
61
73
  'fetchIsolatedBorrowRate': false,
62
74
  'fetchIsolatedBorrowRates': false,
75
+ 'fetchIsolatedPositions': false,
63
76
  'fetchLedger': true,
64
77
  'fetchLeverage': false,
78
+ 'fetchLeverages': false,
79
+ 'fetchLeverageTiers': false,
80
+ 'fetchLiquidations': false,
81
+ 'fetchLongShortRatio': false,
82
+ 'fetchLongShortRatioHistory': false,
83
+ 'fetchMarginAdjustmentHistory': false,
65
84
  'fetchMarginMode': false,
85
+ 'fetchMarginModes': false,
86
+ 'fetchMarketLeverageTiers': false,
66
87
  'fetchMarkets': true,
67
88
  'fetchMarkOHLCV': false,
89
+ 'fetchMarkPrices': false,
90
+ 'fetchMyLiquidations': false,
91
+ 'fetchMySettlementHistory': false,
68
92
  'fetchMyTrades': true,
69
93
  'fetchOHLCV': true,
94
+ 'fetchOpenInterest': false,
70
95
  'fetchOpenInterestHistory': false,
96
+ 'fetchOpenInterests': false,
71
97
  'fetchOpenOrders': true,
98
+ 'fetchOption': false,
99
+ 'fetchOptionChain': false,
72
100
  'fetchOrder': true,
73
101
  'fetchOrderBook': true,
74
102
  'fetchOrderTrades': true,
@@ -80,6 +108,7 @@ export default class bitso extends Exchange {
80
108
  'fetchPositionsHistory': false,
81
109
  'fetchPositionsRisk': false,
82
110
  'fetchPremiumIndexOHLCV': false,
111
+ 'fetchSettlementHistory': false,
83
112
  'fetchTicker': true,
84
113
  'fetchTickers': false,
85
114
  'fetchTime': false,
@@ -91,8 +120,12 @@ export default class bitso extends Exchange {
91
120
  'fetchTransactions': false,
92
121
  'fetchTransfer': false,
93
122
  'fetchTransfers': false,
123
+ 'fetchVolatilityHistory': false,
94
124
  'reduceMargin': false,
125
+ 'repayCrossMargin': false,
126
+ 'repayIsolatedMargin': false,
95
127
  'setLeverage': false,
128
+ 'setMargin': false,
96
129
  'setMarginMode': false,
97
130
  'setPositionMode': false,
98
131
  'transfer': false,
@@ -34,18 +34,27 @@ export default class bitstamp extends Exchange {
34
34
  'future': false,
35
35
  'option': false,
36
36
  'addMargin': false,
37
+ 'borrowCrossMargin': false,
38
+ 'borrowIsolatedMargin': false,
39
+ 'borrowMargin': false,
37
40
  'cancelAllOrders': true,
38
41
  'cancelOrder': true,
39
42
  'closeAllPositions': false,
40
43
  'closePosition': false,
41
44
  'createOrder': true,
45
+ 'createOrderWithTakeProfitAndStopLoss': false,
46
+ 'createOrderWithTakeProfitAndStopLossWs': false,
42
47
  'createReduceOnlyOrder': false,
43
48
  'createStopLimitOrder': false,
44
49
  'createStopMarketOrder': false,
45
50
  'createStopOrder': false,
46
51
  'fetchBalance': true,
52
+ 'fetchBorrowInterest': false,
53
+ 'fetchBorrowRate': false,
47
54
  'fetchBorrowRateHistories': false,
48
55
  'fetchBorrowRateHistory': false,
56
+ 'fetchBorrowRates': false,
57
+ 'fetchBorrowRatesPerSymbol': false,
49
58
  'fetchCrossBorrowRate': false,
50
59
  'fetchCrossBorrowRates': false,
51
60
  'fetchCurrencies': true,
@@ -56,21 +65,40 @@ export default class bitstamp extends Exchange {
56
65
  'fetchDepositWithdrawFee': 'emulated',
57
66
  'fetchDepositWithdrawFees': true,
58
67
  'fetchFundingHistory': false,
68
+ 'fetchFundingInterval': false,
69
+ 'fetchFundingIntervals': false,
59
70
  'fetchFundingRate': false,
60
71
  'fetchFundingRateHistory': false,
61
72
  'fetchFundingRates': false,
73
+ 'fetchGreeks': false,
62
74
  'fetchIndexOHLCV': false,
63
75
  'fetchIsolatedBorrowRate': false,
64
76
  'fetchIsolatedBorrowRates': false,
77
+ 'fetchIsolatedPositions': false,
65
78
  'fetchLedger': true,
66
79
  'fetchLeverage': false,
80
+ 'fetchLeverages': false,
81
+ 'fetchLeverageTiers': false,
82
+ 'fetchLiquidations': false,
83
+ 'fetchLongShortRatio': false,
84
+ 'fetchLongShortRatioHistory': false,
85
+ 'fetchMarginAdjustmentHistory': false,
67
86
  'fetchMarginMode': false,
87
+ 'fetchMarginModes': false,
88
+ 'fetchMarketLeverageTiers': false,
68
89
  'fetchMarkets': true,
69
90
  'fetchMarkOHLCV': false,
91
+ 'fetchMarkPrices': false,
92
+ 'fetchMyLiquidations': false,
93
+ 'fetchMySettlementHistory': false,
70
94
  'fetchMyTrades': true,
71
95
  'fetchOHLCV': true,
96
+ 'fetchOpenInterest': false,
72
97
  'fetchOpenInterestHistory': false,
98
+ 'fetchOpenInterests': false,
73
99
  'fetchOpenOrders': true,
100
+ 'fetchOption': false,
101
+ 'fetchOptionChain': false,
74
102
  'fetchOrder': true,
75
103
  'fetchOrderBook': true,
76
104
  'fetchPosition': false,
@@ -81,6 +109,7 @@ export default class bitstamp extends Exchange {
81
109
  'fetchPositionsHistory': false,
82
110
  'fetchPositionsRisk': false,
83
111
  'fetchPremiumIndexOHLCV': false,
112
+ 'fetchSettlementHistory': false,
84
113
  'fetchTicker': true,
85
114
  'fetchTickers': true,
86
115
  'fetchTrades': true,
@@ -88,9 +117,13 @@ export default class bitstamp extends Exchange {
88
117
  'fetchTradingFees': true,
89
118
  'fetchTransactionFees': true,
90
119
  'fetchTransactions': 'emulated',
120
+ 'fetchVolatilityHistory': false,
91
121
  'fetchWithdrawals': true,
92
122
  'reduceMargin': false,
123
+ 'repayCrossMargin': false,
124
+ 'repayIsolatedMargin': false,
93
125
  'setLeverage': false,
126
+ 'setMargin': false,
94
127
  'setMarginMode': false,
95
128
  'setPositionMode': false,
96
129
  'transfer': true,
@@ -1,14 +1,14 @@
1
- import Exchange from './abstract/huobijp.js';
1
+ import Exchange from './abstract/bittrade.js';
2
2
  import type { Account, Balances, Currencies, Currency, Dict, Int, Market, Num, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction, int } from './base/types.js';
3
3
  /**
4
- * @class huobijp
4
+ * @class bittrade
5
5
  * @augments Exchange
6
6
  */
7
- export default class huobijp extends Exchange {
7
+ export default class bittrade extends Exchange {
8
8
  describe(): any;
9
9
  /**
10
10
  * @method
11
- * @name huobijp#fetchTime
11
+ * @name bittrade#fetchTime
12
12
  * @description fetches the current integer timestamp in milliseconds from the exchange server
13
13
  * @param {object} [params] extra parameters specific to the exchange API endpoint
14
14
  * @returns {int} the current integer timestamp in milliseconds from the exchange server
@@ -36,7 +36,7 @@ export default class huobijp extends Exchange {
36
36
  costToPrecision(symbol: any, cost: any): string;
37
37
  /**
38
38
  * @method
39
- * @name huobijp#fetchMarkets
39
+ * @name bittrade#fetchMarkets
40
40
  * @description retrieves data on all markets for huobijp
41
41
  * @param {object} [params] extra parameters specific to the exchange API endpoint
42
42
  * @returns {object[]} an array of objects representing market data
@@ -45,7 +45,7 @@ export default class huobijp extends Exchange {
45
45
  parseTicker(ticker: Dict, market?: Market): Ticker;
46
46
  /**
47
47
  * @method
48
- * @name huobijp#fetchOrderBook
48
+ * @name bittrade#fetchOrderBook
49
49
  * @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
50
50
  * @param {string} symbol unified symbol of the market to fetch the order book for
51
51
  * @param {int} [limit] the maximum amount of order book entries to return
@@ -55,7 +55,7 @@ export default class huobijp extends Exchange {
55
55
  fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
56
56
  /**
57
57
  * @method
58
- * @name huobijp#fetchTicker
58
+ * @name bittrade#fetchTicker
59
59
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
60
60
  * @param {string} symbol unified symbol of the market to fetch the ticker for
61
61
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -64,7 +64,7 @@ export default class huobijp extends Exchange {
64
64
  fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
65
65
  /**
66
66
  * @method
67
- * @name huobijp#fetchTickers
67
+ * @name bittrade#fetchTickers
68
68
  * @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
69
69
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
70
70
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -74,7 +74,7 @@ export default class huobijp extends Exchange {
74
74
  parseTrade(trade: Dict, market?: Market): Trade;
75
75
  /**
76
76
  * @method
77
- * @name huobijp#fetchOrderTrades
77
+ * @name bittrade#fetchOrderTrades
78
78
  * @description fetch all the trades made from a single order
79
79
  * @param {string} id order id
80
80
  * @param {string} symbol unified market symbol
@@ -86,7 +86,7 @@ export default class huobijp extends Exchange {
86
86
  fetchOrderTrades(id: string, symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
87
87
  /**
88
88
  * @method
89
- * @name huobijp#fetchMyTrades
89
+ * @name bittrade#fetchMyTrades
90
90
  * @description fetch all trades made by the user
91
91
  * @param {string} symbol unified market symbol
92
92
  * @param {int} [since] the earliest time in ms to fetch trades for
@@ -97,7 +97,7 @@ export default class huobijp extends Exchange {
97
97
  fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
98
98
  /**
99
99
  * @method
100
- * @name huobijp#fetchTrades
100
+ * @name bittrade#fetchTrades
101
101
  * @description get the list of most recent trades for a particular symbol
102
102
  * @param {string} symbol unified symbol of the market to fetch trades for
103
103
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
@@ -109,7 +109,7 @@ export default class huobijp extends Exchange {
109
109
  parseOHLCV(ohlcv: any, market?: Market): OHLCV;
110
110
  /**
111
111
  * @method
112
- * @name huobijp#fetchOHLCV
112
+ * @name bittrade#fetchOHLCV
113
113
  * @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
114
114
  * @param {string} symbol unified symbol of the market to fetch OHLCV data for
115
115
  * @param {string} timeframe the length of time each candle represents
@@ -121,7 +121,7 @@ export default class huobijp extends Exchange {
121
121
  fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
122
122
  /**
123
123
  * @method
124
- * @name huobijp#fetchAccounts
124
+ * @name bittrade#fetchAccounts
125
125
  * @description fetch all the accounts associated with a profile
126
126
  * @param {object} [params] extra parameters specific to the exchange API endpoint
127
127
  * @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure} indexed by the account type
@@ -129,7 +129,7 @@ export default class huobijp extends Exchange {
129
129
  fetchAccounts(params?: {}): Promise<Account[]>;
130
130
  /**
131
131
  * @method
132
- * @name huobijp#fetchCurrencies
132
+ * @name bittrade#fetchCurrencies
133
133
  * @description fetches all available currencies on an exchange
134
134
  * @param {object} [params] extra parameters specific to the exchange API endpoint
135
135
  * @returns {object} an associative dictionary of currencies
@@ -138,7 +138,7 @@ export default class huobijp extends Exchange {
138
138
  parseBalance(response: any): Balances;
139
139
  /**
140
140
  * @method
141
- * @name huobijp#fetchBalance
141
+ * @name bittrade#fetchBalance
142
142
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
143
143
  * @param {object} [params] extra parameters specific to the exchange API endpoint
144
144
  * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
@@ -147,7 +147,7 @@ export default class huobijp extends Exchange {
147
147
  fetchOrdersByStates(states: any, symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
148
148
  /**
149
149
  * @method
150
- * @name huobijp#fetchOrder
150
+ * @name bittrade#fetchOrder
151
151
  * @description fetches information on an order made by the user
152
152
  * @param {string} id order id
153
153
  * @param {string} symbol unified symbol of the market the order was made in
@@ -157,7 +157,7 @@ export default class huobijp extends Exchange {
157
157
  fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
158
158
  /**
159
159
  * @method
160
- * @name huobijp#fetchOrders
160
+ * @name bittrade#fetchOrders
161
161
  * @description fetches information on multiple orders made by the user
162
162
  * @param {string} symbol unified market symbol of the market orders were made in
163
163
  * @param {int} [since] the earliest time in ms to fetch orders for
@@ -168,7 +168,7 @@ export default class huobijp extends Exchange {
168
168
  fetchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
169
169
  /**
170
170
  * @method
171
- * @name huobijp#fetchOpenOrders
171
+ * @name bittrade#fetchOpenOrders
172
172
  * @description fetch all unfilled currently open orders
173
173
  * @param {string} symbol unified market symbol
174
174
  * @param {int} [since] the earliest time in ms to fetch open orders for
@@ -180,7 +180,7 @@ export default class huobijp extends Exchange {
180
180
  fetchOpenOrdersV1(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
181
181
  /**
182
182
  * @method
183
- * @name huobijp#fetchClosedOrders
183
+ * @name bittrade#fetchClosedOrders
184
184
  * @description fetches information on multiple closed orders made by the user
185
185
  * @param {string} symbol unified market symbol of the market orders were made in
186
186
  * @param {int} [since] the earliest time in ms to fetch orders for
@@ -194,7 +194,7 @@ export default class huobijp extends Exchange {
194
194
  parseOrder(order: Dict, market?: Market): Order;
195
195
  /**
196
196
  * @method
197
- * @name huobijp#createMarketBuyOrderWithCost
197
+ * @name bittrade#createMarketBuyOrderWithCost
198
198
  * @description create a market buy order by providing the symbol and cost
199
199
  * @param {string} symbol unified symbol of the market to create an order in
200
200
  * @param {float} cost how much you want to trade in units of the quote currency
@@ -204,7 +204,7 @@ export default class huobijp extends Exchange {
204
204
  createMarketBuyOrderWithCost(symbol: string, cost: number, params?: {}): Promise<Order>;
205
205
  /**
206
206
  * @method
207
- * @name huobijp#createOrder
207
+ * @name bittrade#createOrder
208
208
  * @description create a trade order
209
209
  * @param {string} symbol unified symbol of the market to create an order in
210
210
  * @param {string} type 'market' or 'limit'
@@ -217,20 +217,20 @@ export default class huobijp extends Exchange {
217
217
  createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
218
218
  /**
219
219
  * @method
220
- * @name huobijp#cancelOrder
220
+ * @name bittrade#cancelOrder
221
221
  * @description cancels an open order
222
222
  * @param {string} id order id
223
- * @param {string} symbol not used by huobijp cancelOrder ()
223
+ * @param {string} symbol not used by bittrade cancelOrder ()
224
224
  * @param {object} [params] extra parameters specific to the exchange API endpoint
225
225
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
226
226
  */
227
227
  cancelOrder(id: string, symbol?: Str, params?: {}): Promise<any>;
228
228
  /**
229
229
  * @method
230
- * @name huobijp#cancelOrders
230
+ * @name bittrade#cancelOrders
231
231
  * @description cancel multiple orders
232
232
  * @param {string[]} ids order ids
233
- * @param {string} symbol not used by huobijp cancelOrders ()
233
+ * @param {string} symbol not used by bittrade cancelOrders ()
234
234
  * @param {object} [params] extra parameters specific to the exchange API endpoint
235
235
  * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
236
236
  */
@@ -238,7 +238,7 @@ export default class huobijp extends Exchange {
238
238
  parseCancelOrders(orders: any): any[];
239
239
  /**
240
240
  * @method
241
- * @name huobijp#cancelAllOrders
241
+ * @name bittrade#cancelAllOrders
242
242
  * @description cancel all open orders
243
243
  * @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
244
244
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -254,7 +254,7 @@ export default class huobijp extends Exchange {
254
254
  };
255
255
  /**
256
256
  * @method
257
- * @name huobijp#fetchDeposits
257
+ * @name bittrade#fetchDeposits
258
258
  * @description fetch all deposits made to an account
259
259
  * @param {string} code unified currency code
260
260
  * @param {int} [since] the earliest time in ms to fetch deposits for
@@ -265,7 +265,7 @@ export default class huobijp extends Exchange {
265
265
  fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
266
266
  /**
267
267
  * @method
268
- * @name huobijp#fetchWithdrawals
268
+ * @name bittrade#fetchWithdrawals
269
269
  * @description fetch all withdrawals made from an account
270
270
  * @param {string} code unified currency code
271
271
  * @param {int} [since] the earliest time in ms to fetch withdrawals for
@@ -278,7 +278,7 @@ export default class huobijp extends Exchange {
278
278
  parseTransactionStatus(status: Str): string;
279
279
  /**
280
280
  * @method
281
- * @name huobijp#withdraw
281
+ * @name bittrade#withdraw
282
282
  * @description make a withdrawal
283
283
  * @param {string} code unified currency code
284
284
  * @param {float} amount the amount to withdraw