ccxt 4.4.15 → 4.4.16

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 (207) hide show
  1. package/README.md +3 -3
  2. package/dist/ccxt.browser.min.js +3 -3
  3. package/dist/cjs/ccxt.js +1 -1
  4. package/dist/cjs/src/ascendex.js +2 -2
  5. package/dist/cjs/src/base/Exchange.js +1 -1
  6. package/dist/cjs/src/bigone.js +4 -2
  7. package/dist/cjs/src/binance.js +62 -5
  8. package/dist/cjs/src/bingx.js +3 -2
  9. package/dist/cjs/src/bit2c.js +3 -1
  10. package/dist/cjs/src/bitbank.js +4 -2
  11. package/dist/cjs/src/bitbns.js +4 -2
  12. package/dist/cjs/src/bitfinex.js +2 -0
  13. package/dist/cjs/src/bitfinex2.js +2 -0
  14. package/dist/cjs/src/bitget.js +3 -2
  15. package/dist/cjs/src/bitmart.js +2 -1
  16. package/dist/cjs/src/bitmex.js +2 -2
  17. package/dist/cjs/src/bitso.js +3 -2
  18. package/dist/cjs/src/bitstamp.js +4 -2
  19. package/dist/cjs/src/bitvavo.js +4 -2
  20. package/dist/cjs/src/blockchaincom.js +9 -7
  21. package/dist/cjs/src/blofin.js +23 -0
  22. package/dist/cjs/src/bybit.js +2 -2
  23. package/dist/cjs/src/cex.js +3 -2
  24. package/dist/cjs/src/coinbase.js +1 -1
  25. package/dist/cjs/src/coinex.js +2 -2
  26. package/dist/cjs/src/coinone.js +4 -1
  27. package/dist/cjs/src/coinsph.js +2 -2
  28. package/dist/cjs/src/cryptocom.js +2 -1
  29. package/dist/cjs/src/currencycom.js +2 -2
  30. package/dist/cjs/src/delta.js +4 -2
  31. package/dist/cjs/src/deribit.js +4 -2
  32. package/dist/cjs/src/digifinex.js +3 -1
  33. package/dist/cjs/src/exmo.js +4 -2
  34. package/dist/cjs/src/gate.js +3 -2
  35. package/dist/cjs/src/gemini.js +1 -0
  36. package/dist/cjs/src/hashkey.js +4 -2
  37. package/dist/cjs/src/hitbtc.js +4 -3
  38. package/dist/cjs/src/hollaex.js +3 -2
  39. package/dist/cjs/src/htx.js +12 -2
  40. package/dist/cjs/src/hyperliquid.js +8 -7
  41. package/dist/cjs/src/idex.js +1 -1
  42. package/dist/cjs/src/independentreserve.js +1 -1
  43. package/dist/cjs/src/indodax.js +1 -1
  44. package/dist/cjs/src/kraken.js +4 -2
  45. package/dist/cjs/src/kucoin.js +2 -1
  46. package/dist/cjs/src/kucoinfutures.js +3 -1
  47. package/dist/cjs/src/kuna.js +2 -0
  48. package/dist/cjs/src/lbank.js +11 -9
  49. package/dist/cjs/src/lykke.js +4 -2
  50. package/dist/cjs/src/mexc.js +2 -2
  51. package/dist/cjs/src/ndax.js +30 -2
  52. package/dist/cjs/src/oceanex.js +1 -1
  53. package/dist/cjs/src/okcoin.js +6 -4
  54. package/dist/cjs/src/okx.js +13 -2
  55. package/dist/cjs/src/onetrading.js +3 -2
  56. package/dist/cjs/src/oxfun.js +3 -3
  57. package/dist/cjs/src/paymium.js +2 -1
  58. package/dist/cjs/src/phemex.js +6 -4
  59. package/dist/cjs/src/poloniex.js +4 -2
  60. package/dist/cjs/src/probit.js +3 -2
  61. package/dist/cjs/src/timex.js +1 -1
  62. package/dist/cjs/src/tokocrypto.js +3 -3
  63. package/dist/cjs/src/upbit.js +3 -2
  64. package/dist/cjs/src/wavesexchange.js +7 -7
  65. package/dist/cjs/src/wazirx.js +22 -2
  66. package/dist/cjs/src/whitebit.js +4 -2
  67. package/dist/cjs/src/woo.js +4 -2
  68. package/dist/cjs/src/xt.js +4 -2
  69. package/dist/cjs/src/yobit.js +30 -21
  70. package/dist/cjs/src/zonda.js +27 -2
  71. package/js/ccxt.d.ts +1 -1
  72. package/js/ccxt.js +1 -1
  73. package/js/src/ascendex.d.ts +3 -9
  74. package/js/src/ascendex.js +2 -2
  75. package/js/src/base/Exchange.d.ts +7 -7
  76. package/js/src/base/Exchange.js +1 -1
  77. package/js/src/base/types.d.ts +4 -3
  78. package/js/src/bigone.d.ts +2 -8
  79. package/js/src/bigone.js +4 -2
  80. package/js/src/binance.d.ts +4 -8
  81. package/js/src/binance.js +62 -5
  82. package/js/src/bingx.d.ts +4 -10
  83. package/js/src/bingx.js +3 -2
  84. package/js/src/bit2c.d.ts +3 -15
  85. package/js/src/bit2c.js +3 -1
  86. package/js/src/bitbank.d.ts +2 -8
  87. package/js/src/bitbank.js +4 -2
  88. package/js/src/bitbns.d.ts +2 -8
  89. package/js/src/bitbns.js +4 -2
  90. package/js/src/bitfinex.d.ts +3 -15
  91. package/js/src/bitfinex.js +2 -0
  92. package/js/src/bitfinex2.d.ts +3 -15
  93. package/js/src/bitfinex2.js +2 -0
  94. package/js/src/bitget.d.ts +3 -15
  95. package/js/src/bitget.js +3 -2
  96. package/js/src/bitmart.d.ts +3 -15
  97. package/js/src/bitmart.js +2 -1
  98. package/js/src/bitmex.d.ts +2 -8
  99. package/js/src/bitmex.js +2 -2
  100. package/js/src/bitso.d.ts +2 -8
  101. package/js/src/bitso.js +3 -2
  102. package/js/src/bitstamp.d.ts +2 -8
  103. package/js/src/bitstamp.js +4 -2
  104. package/js/src/bitvavo.d.ts +2 -8
  105. package/js/src/bitvavo.js +4 -2
  106. package/js/src/blockchaincom.d.ts +2 -2
  107. package/js/src/blockchaincom.js +9 -7
  108. package/js/src/blofin.d.ts +1 -0
  109. package/js/src/blofin.js +23 -0
  110. package/js/src/bybit.d.ts +4 -16
  111. package/js/src/bybit.js +2 -2
  112. package/js/src/cex.d.ts +2 -8
  113. package/js/src/cex.js +3 -2
  114. package/js/src/coinbase.d.ts +3 -9
  115. package/js/src/coinbase.js +1 -1
  116. package/js/src/coinex.d.ts +4 -22
  117. package/js/src/coinex.js +2 -2
  118. package/js/src/coinone.d.ts +2 -2
  119. package/js/src/coinone.js +4 -1
  120. package/js/src/coinsph.d.ts +3 -15
  121. package/js/src/coinsph.js +2 -2
  122. package/js/src/cryptocom.d.ts +3 -3
  123. package/js/src/cryptocom.js +2 -1
  124. package/js/src/currencycom.d.ts +3 -15
  125. package/js/src/currencycom.js +2 -2
  126. package/js/src/delta.d.ts +3 -15
  127. package/js/src/delta.js +4 -2
  128. package/js/src/deribit.d.ts +2 -8
  129. package/js/src/deribit.js +4 -2
  130. package/js/src/digifinex.d.ts +3 -9
  131. package/js/src/digifinex.js +3 -1
  132. package/js/src/exmo.d.ts +2 -8
  133. package/js/src/exmo.js +4 -2
  134. package/js/src/gate.d.ts +2 -9
  135. package/js/src/gate.js +3 -2
  136. package/js/src/gemini.d.ts +3 -3
  137. package/js/src/gemini.js +1 -0
  138. package/js/src/hashkey.d.ts +3 -15
  139. package/js/src/hashkey.js +4 -2
  140. package/js/src/hitbtc.d.ts +2 -9
  141. package/js/src/hitbtc.js +4 -3
  142. package/js/src/hollaex.d.ts +3 -9
  143. package/js/src/hollaex.js +3 -2
  144. package/js/src/htx.d.ts +3 -3
  145. package/js/src/htx.js +12 -2
  146. package/js/src/hyperliquid.js +8 -7
  147. package/js/src/idex.d.ts +3 -15
  148. package/js/src/idex.js +1 -1
  149. package/js/src/independentreserve.d.ts +3 -15
  150. package/js/src/independentreserve.js +1 -1
  151. package/js/src/indodax.d.ts +2 -2
  152. package/js/src/indodax.js +1 -1
  153. package/js/src/kraken.d.ts +4 -22
  154. package/js/src/kraken.js +4 -2
  155. package/js/src/kucoin.d.ts +5 -23
  156. package/js/src/kucoin.js +2 -1
  157. package/js/src/kucoinfutures.d.ts +2 -8
  158. package/js/src/kucoinfutures.js +3 -1
  159. package/js/src/kuna.d.ts +4 -22
  160. package/js/src/kuna.js +2 -0
  161. package/js/src/lbank.d.ts +4 -16
  162. package/js/src/lbank.js +11 -9
  163. package/js/src/lykke.d.ts +2 -8
  164. package/js/src/lykke.js +4 -2
  165. package/js/src/mexc.d.ts +5 -17
  166. package/js/src/mexc.js +2 -2
  167. package/js/src/ndax.d.ts +4 -22
  168. package/js/src/ndax.js +30 -2
  169. package/js/src/oceanex.d.ts +3 -9
  170. package/js/src/oceanex.js +1 -1
  171. package/js/src/okcoin.d.ts +4 -10
  172. package/js/src/okcoin.js +6 -4
  173. package/js/src/okx.d.ts +4 -10
  174. package/js/src/okx.js +13 -2
  175. package/js/src/onetrading.d.ts +4 -22
  176. package/js/src/onetrading.js +3 -2
  177. package/js/src/oxfun.d.ts +3 -15
  178. package/js/src/oxfun.js +3 -3
  179. package/js/src/paymium.d.ts +5 -23
  180. package/js/src/paymium.js +2 -1
  181. package/js/src/phemex.d.ts +2 -8
  182. package/js/src/phemex.js +6 -4
  183. package/js/src/poloniex.d.ts +2 -8
  184. package/js/src/poloniex.js +4 -2
  185. package/js/src/probit.d.ts +4 -16
  186. package/js/src/probit.js +3 -2
  187. package/js/src/timex.d.ts +3 -15
  188. package/js/src/timex.js +1 -1
  189. package/js/src/tokocrypto.d.ts +2 -8
  190. package/js/src/tokocrypto.js +3 -3
  191. package/js/src/upbit.d.ts +5 -23
  192. package/js/src/upbit.js +3 -2
  193. package/js/src/wavesexchange.d.ts +2 -9
  194. package/js/src/wavesexchange.js +7 -7
  195. package/js/src/wazirx.d.ts +2 -8
  196. package/js/src/wazirx.js +22 -2
  197. package/js/src/whitebit.d.ts +2 -8
  198. package/js/src/whitebit.js +4 -2
  199. package/js/src/woo.d.ts +2 -8
  200. package/js/src/woo.js +4 -2
  201. package/js/src/xt.d.ts +3 -15
  202. package/js/src/xt.js +4 -2
  203. package/js/src/yobit.d.ts +2 -26
  204. package/js/src/yobit.js +30 -21
  205. package/js/src/zonda.d.ts +4 -16
  206. package/js/src/zonda.js +27 -2
  207. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/wavesexchange.js';
2
- import type { Balances, Currency, Dict, Int, Market, Num, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction, int } from './base/types.js';
2
+ import type { Balances, Currency, Dict, Int, Market, Num, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction, int, DepositAddress } from './base/types.js';
3
3
  /**
4
4
  * @class wavesexchange
5
5
  * @augments Exchange
@@ -32,14 +32,7 @@ export default class wavesexchange extends Exchange {
32
32
  fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
33
33
  filterFutureCandles(ohlcvs: any): any[];
34
34
  parseOHLCV(ohlcv: any, market?: Market): OHLCV;
35
- fetchDepositAddress(code: string, params?: {}): Promise<{
36
- address: string;
37
- code: string;
38
- currency: string;
39
- network: string;
40
- tag: any;
41
- info: any;
42
- }>;
35
+ fetchDepositAddress(code: string, params?: {}): Promise<DepositAddress>;
43
36
  getMatcherPublicKey(): Promise<any>;
44
37
  getAssetBytes(currencyId: any): Uint8Array;
45
38
  getAssetId(currencyId: any): any;
@@ -48,6 +48,8 @@ export default class wavesexchange extends Exchange {
48
48
  'fetchCrossBorrowRate': false,
49
49
  'fetchCrossBorrowRates': false,
50
50
  'fetchDepositAddress': true,
51
+ 'fetchDepositAddresses': undefined,
52
+ 'fetchDepositAddressesByNetwork': undefined,
51
53
  'fetchDepositWithdrawFee': 'emulated',
52
54
  'fetchDepositWithdrawFees': true,
53
55
  'fetchFundingHistory': false,
@@ -1146,12 +1148,11 @@ export default class wavesexchange extends Exchange {
1146
1148
  const responseInner = await this.nodeGetAddressesPublicKeyPublicKey(this.extend(request, request));
1147
1149
  const addressInner = this.safeString(response, 'address');
1148
1150
  return {
1149
- 'address': addressInner,
1150
- 'code': code,
1151
+ 'info': responseInner,
1151
1152
  'currency': code,
1152
1153
  'network': network,
1154
+ 'address': addressInner,
1153
1155
  'tag': undefined,
1154
- 'info': responseInner,
1155
1156
  };
1156
1157
  }
1157
1158
  else {
@@ -1192,12 +1193,11 @@ export default class wavesexchange extends Exchange {
1192
1193
  const addresses = this.safeValue(response, 'deposit_addresses');
1193
1194
  const address = this.safeString(addresses, 0);
1194
1195
  return {
1195
- 'address': address,
1196
- 'code': code,
1196
+ 'info': response,
1197
1197
  'currency': code,
1198
- 'tag': undefined,
1199
1198
  'network': unifiedNetwork,
1200
- 'info': response,
1199
+ 'address': address,
1200
+ 'tag': undefined,
1201
1201
  };
1202
1202
  }
1203
1203
  async getMatcherPublicKey() {
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/wazirx.js';
2
- import type { Balances, Currencies, Currency, Dict, Int, Market, Num, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction, int } from './base/types.js';
2
+ import type { Balances, Currencies, Currency, Dict, Int, Market, Num, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction, int, DepositAddress } from './base/types.js';
3
3
  /**
4
4
  * @class wazirx
5
5
  * @augments Exchange
@@ -34,13 +34,7 @@ export default class wazirx extends Exchange {
34
34
  parseOrder(order: Dict, market?: Market): Order;
35
35
  parseOrderStatus(status: Str): string;
36
36
  fetchCurrencies(params?: {}): Promise<Currencies>;
37
- fetchDepositAddress(code: string, params?: {}): Promise<{
38
- currency: string;
39
- address: string;
40
- tag: any;
41
- network: string;
42
- info: any;
43
- }>;
37
+ fetchDepositAddress(code: string, params?: {}): Promise<DepositAddress>;
44
38
  fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
45
39
  parseTransactionStatus(status: Str): string;
46
40
  parseTransaction(transaction: Dict, currency?: Currency): Transaction;
package/js/src/wazirx.js CHANGED
@@ -42,34 +42,51 @@ export default class wazirx extends Exchange {
42
42
  'fetchBalance': true,
43
43
  'fetchBidsAsks': false,
44
44
  'fetchBorrowInterest': false,
45
+ 'fetchBorrowRate': false,
45
46
  'fetchBorrowRateHistories': false,
46
47
  'fetchBorrowRateHistory': false,
48
+ 'fetchBorrowRates': false,
49
+ 'fetchBorrowRatesPerSymbol': false,
47
50
  'fetchClosedOrders': false,
48
51
  'fetchCrossBorrowRate': false,
49
52
  'fetchCrossBorrowRates': false,
50
53
  'fetchCurrencies': true,
51
54
  'fetchDepositAddress': true,
55
+ 'fetchDepositAddresses': false,
52
56
  'fetchDepositAddressesByNetwork': false,
53
57
  'fetchDeposits': true,
54
58
  'fetchDepositsWithdrawals': false,
55
59
  'fetchFundingHistory': false,
60
+ 'fetchFundingInterval': false,
61
+ 'fetchFundingIntervals': false,
56
62
  'fetchFundingRate': false,
57
63
  'fetchFundingRateHistory': false,
58
64
  'fetchFundingRates': false,
65
+ 'fetchGreeks': false,
59
66
  'fetchIndexOHLCV': false,
60
67
  'fetchIsolatedBorrowRate': false,
61
68
  'fetchIsolatedBorrowRates': false,
62
69
  'fetchIsolatedPositions': false,
63
70
  'fetchLeverage': false,
71
+ 'fetchLeverages': false,
64
72
  'fetchLeverageTiers': false,
73
+ 'fetchLiquidations': false,
74
+ 'fetchMarginAdjustmentHistory': false,
65
75
  'fetchMarginMode': false,
76
+ 'fetchMarginModes': false,
66
77
  'fetchMarketLeverageTiers': false,
67
78
  'fetchMarkets': true,
68
79
  'fetchMarkOHLCV': false,
80
+ 'fetchMarkPrices': false,
81
+ 'fetchMyLiquidations': false,
82
+ 'fetchMySettlementHistory': false,
69
83
  'fetchMyTrades': false,
70
84
  'fetchOHLCV': true,
85
+ 'fetchOpenInterest': false,
71
86
  'fetchOpenInterestHistory': false,
72
87
  'fetchOpenOrders': true,
88
+ 'fetchOption': false,
89
+ 'fetchOptionChain': false,
73
90
  'fetchOrder': false,
74
91
  'fetchOrderBook': true,
75
92
  'fetchOrders': true,
@@ -81,6 +98,7 @@ export default class wazirx extends Exchange {
81
98
  'fetchPositionsHistory': false,
82
99
  'fetchPositionsRisk': false,
83
100
  'fetchPremiumIndexOHLCV': false,
101
+ 'fetchSettlementHistory': false,
84
102
  'fetchStatus': true,
85
103
  'fetchTicker': true,
86
104
  'fetchTickers': true,
@@ -91,6 +109,8 @@ export default class wazirx extends Exchange {
91
109
  'fetchTransactionFees': false,
92
110
  'fetchTransactions': false,
93
111
  'fetchTransfers': false,
112
+ 'fetchUnderlyingAssets': false,
113
+ 'fetchVolatilityHistory': false,
94
114
  'fetchWithdrawals': true,
95
115
  'reduceMargin': false,
96
116
  'repayCrossMargin': false,
@@ -1129,11 +1149,11 @@ export default class wazirx extends Exchange {
1129
1149
  // }
1130
1150
  //
1131
1151
  return {
1152
+ 'info': response,
1132
1153
  'currency': code,
1154
+ 'network': this.networkCodeToId(networkCode, code),
1133
1155
  'address': this.safeString(response, 'address'),
1134
1156
  'tag': undefined,
1135
- 'network': this.networkCodeToId(networkCode, code),
1136
- 'info': response,
1137
1157
  };
1138
1158
  }
1139
1159
  async fetchWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/whitebit.js';
2
- import type { TransferEntry, Balances, Currency, Int, Market, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction, Num, Currencies, TradingFees, Dict, int, FundingRate, FundingRates } from './base/types.js';
2
+ import type { TransferEntry, Balances, Currency, Int, Market, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction, Num, Currencies, TradingFees, Dict, int, FundingRate, FundingRates, DepositAddress } from './base/types.js';
3
3
  /**
4
4
  * @class whitebit
5
5
  * @augments Exchange
@@ -48,13 +48,7 @@ export default class whitebit extends Exchange {
48
48
  parseOrderType(type: Str): string;
49
49
  parseOrder(order: Dict, market?: Market): Order;
50
50
  fetchOrderTrades(id: string, symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
51
- fetchDepositAddress(code: string, params?: {}): Promise<{
52
- currency: string;
53
- address: string;
54
- tag: string;
55
- network: any;
56
- info: any;
57
- }>;
51
+ fetchDepositAddress(code: string, params?: {}): Promise<DepositAddress>;
58
52
  setLeverage(leverage: Int, symbol?: Str, params?: {}): Promise<any>;
59
53
  transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?: {}): Promise<TransferEntry>;
60
54
  parseTransfer(transfer: Dict, currency?: Currency): TransferEntry;
@@ -52,6 +52,8 @@ export default class whitebit extends Exchange {
52
52
  'fetchCurrencies': true,
53
53
  'fetchDeposit': true,
54
54
  'fetchDepositAddress': true,
55
+ 'fetchDepositAddresses': false,
56
+ 'fetchDepositAddressesByNetwork': false,
55
57
  'fetchDeposits': true,
56
58
  'fetchDepositsWithdrawals': true,
57
59
  'fetchDepositWithdrawFee': 'emulated',
@@ -1948,11 +1950,11 @@ export default class whitebit extends Exchange {
1948
1950
  const tag = this.safeString(account, 'memo');
1949
1951
  this.checkAddress(address);
1950
1952
  return {
1953
+ 'info': response,
1951
1954
  'currency': code,
1955
+ 'network': undefined,
1952
1956
  'address': address,
1953
1957
  'tag': tag,
1954
- 'network': undefined,
1955
- 'info': response,
1956
1958
  };
1957
1959
  }
1958
1960
  async setLeverage(leverage, symbol = undefined, params = {}) {
package/js/src/woo.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/woo.js';
2
- import type { TransferEntry, Balances, Conversion, Currency, FundingRateHistory, Int, Market, MarginModification, Num, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Dict, Strings, Trade, Transaction, Leverage, Account, Currencies, TradingFees, int, FundingHistory, LedgerEntry, FundingRate, FundingRates } from './base/types.js';
2
+ import type { TransferEntry, Balances, Conversion, Currency, FundingRateHistory, Int, Market, MarginModification, Num, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Dict, Strings, Trade, Transaction, Leverage, Account, Currencies, TradingFees, int, FundingHistory, LedgerEntry, FundingRate, FundingRates, DepositAddress } from './base/types.js';
3
3
  /**
4
4
  * @class woo
5
5
  * @augments Exchange
@@ -53,13 +53,7 @@ export default class woo extends Exchange {
53
53
  };
54
54
  fetchBalance(params?: {}): Promise<Balances>;
55
55
  parseBalance(response: any): Balances;
56
- fetchDepositAddress(code: string, params?: {}): Promise<{
57
- currency: string;
58
- address: string;
59
- tag: string;
60
- network: string;
61
- info: any;
62
- }>;
56
+ fetchDepositAddress(code: string, params?: {}): Promise<DepositAddress>;
63
57
  getAssetHistoryRows(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
64
58
  fetchLedger(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<LedgerEntry[]>;
65
59
  parseLedgerEntry(item: Dict, currency?: Currency): LedgerEntry;
package/js/src/woo.js CHANGED
@@ -68,6 +68,8 @@ export default class woo extends Exchange {
68
68
  'fetchConvertTradeHistory': true,
69
69
  'fetchCurrencies': true,
70
70
  'fetchDepositAddress': true,
71
+ 'fetchDepositAddresses': false,
72
+ 'fetchDepositAddressesByNetwork': false,
71
73
  'fetchDeposits': true,
72
74
  'fetchDepositsWithdrawals': true,
73
75
  'fetchFundingHistory': true,
@@ -2077,11 +2079,11 @@ export default class woo extends Exchange {
2077
2079
  const address = this.safeString(response, 'address');
2078
2080
  this.checkAddress(address);
2079
2081
  return {
2082
+ 'info': response,
2080
2083
  'currency': code,
2084
+ 'network': networkCode,
2081
2085
  'address': address,
2082
2086
  'tag': tag,
2083
- 'network': networkCode,
2084
- 'info': response,
2085
2087
  };
2086
2088
  }
2087
2089
  async getAssetHistoryRows(code = undefined, since = undefined, limit = undefined, params = {}) {
package/js/src/xt.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/xt.js';
2
- import { Currencies, Currency, Dict, FundingHistory, FundingRateHistory, Int, LeverageTier, MarginModification, Market, Num, OHLCV, Order, OrderSide, OrderType, Str, Tickers, Transaction, TransferEntry, LedgerEntry, FundingRate } from './base/types.js';
2
+ import { Currencies, Currency, Dict, FundingHistory, FundingRateHistory, Int, LeverageTier, MarginModification, Market, Num, OHLCV, Order, OrderSide, OrderType, Str, Tickers, Transaction, TransferEntry, LedgerEntry, FundingRate, DepositAddress } from './base/types.js';
3
3
  /**
4
4
  * @class xt
5
5
  * @augments Exchange
@@ -44,20 +44,8 @@ export default class xt extends Exchange {
44
44
  fetchLedger(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<LedgerEntry[]>;
45
45
  parseLedgerEntry(item: any, currency?: any): LedgerEntry;
46
46
  parseLedgerEntryType(type: any): string;
47
- fetchDepositAddress(code: string, params?: {}): Promise<{
48
- currency: string;
49
- address: string;
50
- tag: string;
51
- network: any;
52
- info: any;
53
- }>;
54
- parseDepositAddress(depositAddress: any, currency?: any): {
55
- currency: string;
56
- address: string;
57
- tag: string;
58
- network: any;
59
- info: any;
60
- };
47
+ fetchDepositAddress(code: string, params?: {}): Promise<DepositAddress>;
48
+ parseDepositAddress(depositAddress: any, currency?: any): DepositAddress;
61
49
  fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
62
50
  fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
63
51
  withdraw(code: string, amount: number, address: string, tag?: any, params?: {}): Promise<Transaction>;
package/js/src/xt.js CHANGED
@@ -61,6 +61,8 @@ export default class xt extends Exchange {
61
61
  'fetchCurrencies': true,
62
62
  'fetchDeposit': false,
63
63
  'fetchDepositAddress': true,
64
+ 'fetchDepositAddresses': false,
65
+ 'fetchDepositAddressesByNetwork': false,
64
66
  'fetchDeposits': true,
65
67
  'fetchDepositWithdrawals': false,
66
68
  'fetchDepositWithdrawFee': false,
@@ -3684,11 +3686,11 @@ export default class xt extends Exchange {
3684
3686
  const address = this.safeString(depositAddress, 'address');
3685
3687
  this.checkAddress(address);
3686
3688
  return {
3689
+ 'info': depositAddress,
3687
3690
  'currency': this.safeCurrencyCode(undefined, currency),
3691
+ 'network': undefined,
3688
3692
  'address': address,
3689
3693
  'tag': this.safeString(depositAddress, 'memo'),
3690
- 'network': undefined,
3691
- 'info': depositAddress,
3692
3694
  };
3693
3695
  }
3694
3696
  async fetchDeposits(code = undefined, since = undefined, limit = undefined, params = {}) {
package/js/src/yobit.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/yobit.js';
2
- import type { Transaction, Balances, Dict, Int, Market, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Num, TradingFees, Dictionary, int } from './base/types.js';
2
+ import type { Transaction, Balances, Dict, Int, Market, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Num, TradingFees, Dictionary, int, DepositAddress } from './base/types.js';
3
3
  /**
4
4
  * @class yobit
5
5
  * @augments Exchange
@@ -31,31 +31,7 @@ export default class yobit extends Exchange {
31
31
  tag: any;
32
32
  info: any;
33
33
  }>;
34
- fetchDepositAddress(code: string, params?: {}): Promise<{
35
- id: any;
36
- currency: string;
37
- address: string;
38
- tag: any;
39
- network: any;
40
- info: any;
41
- txid: any;
42
- type: any;
43
- amount: any;
44
- status: any;
45
- timestamp: any;
46
- datetime: any;
47
- addressFrom: any;
48
- addressTo: any;
49
- tagFrom: any;
50
- tagTo: any;
51
- updated: any;
52
- comment: any;
53
- fee: {
54
- currency: any;
55
- cost: any;
56
- rate: any;
57
- };
58
- }>;
34
+ fetchDepositAddress(code: string, params?: {}): Promise<DepositAddress>;
59
35
  withdraw(code: string, amount: number, address: string, tag?: any, params?: {}): Promise<Transaction>;
60
36
  sign(path: any, api?: string, method?: string, params?: {}, headers?: any, body?: any): {
61
37
  url: any;
package/js/src/yobit.js CHANGED
@@ -43,27 +43,48 @@ export default class yobit extends Exchange {
43
43
  'createStopMarketOrder': false,
44
44
  'createStopOrder': false,
45
45
  'fetchBalance': true,
46
+ 'fetchBorrowInterest': false,
47
+ 'fetchBorrowRate': false,
46
48
  'fetchBorrowRateHistories': false,
47
49
  'fetchBorrowRateHistory': false,
50
+ 'fetchBorrowRates': false,
51
+ 'fetchBorrowRatesPerSymbol': false,
48
52
  'fetchCrossBorrowRate': false,
49
53
  'fetchCrossBorrowRates': false,
50
54
  'fetchDepositAddress': true,
55
+ 'fetchDepositAddresses': false,
56
+ 'fetchDepositAddressesByNetwork': false,
51
57
  'fetchDeposits': false,
52
58
  'fetchFundingHistory': false,
59
+ 'fetchFundingInterval': false,
60
+ 'fetchFundingIntervals': false,
53
61
  'fetchFundingRate': false,
54
62
  'fetchFundingRateHistory': false,
55
63
  'fetchFundingRates': false,
64
+ 'fetchGreeks': false,
56
65
  'fetchIndexOHLCV': false,
57
66
  'fetchIsolatedBorrowRate': false,
58
67
  'fetchIsolatedBorrowRates': false,
68
+ 'fetchIsolatedPositions': false,
59
69
  'fetchLeverage': false,
70
+ 'fetchLeverages': false,
60
71
  'fetchLeverageTiers': false,
72
+ 'fetchLiquidations': false,
73
+ 'fetchMarginAdjustmentHistory': false,
61
74
  'fetchMarginMode': false,
75
+ 'fetchMarginModes': false,
76
+ 'fetchMarketLeverageTiers': false,
62
77
  'fetchMarkets': true,
63
78
  'fetchMarkOHLCV': false,
79
+ 'fetchMarkPrices': false,
80
+ 'fetchMyLiquidations': false,
81
+ 'fetchMySettlementHistory': false,
64
82
  'fetchMyTrades': true,
83
+ 'fetchOpenInterest': false,
65
84
  'fetchOpenInterestHistory': false,
66
85
  'fetchOpenOrders': true,
86
+ 'fetchOption': false,
87
+ 'fetchOptionChain': false,
67
88
  'fetchOrder': true,
68
89
  'fetchOrderBook': true,
69
90
  'fetchOrderBooks': true,
@@ -75,6 +96,7 @@ export default class yobit extends Exchange {
75
96
  'fetchPositionsHistory': false,
76
97
  'fetchPositionsRisk': false,
77
98
  'fetchPremiumIndexOHLCV': false,
99
+ 'fetchSettlementHistory': false,
78
100
  'fetchTicker': true,
79
101
  'fetchTickers': true,
80
102
  'fetchTrades': true,
@@ -83,9 +105,14 @@ export default class yobit extends Exchange {
83
105
  'fetchTransactions': false,
84
106
  'fetchTransfer': false,
85
107
  'fetchTransfers': false,
108
+ 'fetchUnderlyingAssets': false,
109
+ 'fetchVolatilityHistory': false,
86
110
  'fetchWithdrawals': false,
87
111
  'reduceMargin': false,
112
+ 'repayCrossMargin': false,
113
+ 'repayIsolatedMargin': false,
88
114
  'setLeverage': false,
115
+ 'setMargin': false,
89
116
  'setMarginMode': false,
90
117
  'setPositionMode': false,
91
118
  'transfer': false,
@@ -1184,8 +1211,8 @@ export default class yobit extends Exchange {
1184
1211
  /**
1185
1212
  * @method
1186
1213
  * @name yobit#fetchDepositAddress
1187
- * @see https://yobit.net/en/api
1188
1214
  * @description fetch the deposit address for a currency associated with this account
1215
+ * @see https://yobit.net/en/api
1189
1216
  * @param {string} code unified currency code
1190
1217
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1191
1218
  * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
@@ -1210,29 +1237,11 @@ export default class yobit extends Exchange {
1210
1237
  const address = this.safeString(response['return'], 'address');
1211
1238
  this.checkAddress(address);
1212
1239
  return {
1213
- 'id': undefined,
1240
+ 'info': response,
1214
1241
  'currency': code,
1242
+ 'network': undefined,
1215
1243
  'address': address,
1216
1244
  'tag': undefined,
1217
- 'network': undefined,
1218
- 'info': response,
1219
- 'txid': undefined,
1220
- 'type': undefined,
1221
- 'amount': undefined,
1222
- 'status': undefined,
1223
- 'timestamp': undefined,
1224
- 'datetime': undefined,
1225
- 'addressFrom': undefined,
1226
- 'addressTo': undefined,
1227
- 'tagFrom': undefined,
1228
- 'tagTo': undefined,
1229
- 'updated': undefined,
1230
- 'comment': undefined,
1231
- 'fee': {
1232
- 'currency': undefined,
1233
- 'cost': undefined,
1234
- 'rate': undefined,
1235
- },
1236
1245
  };
1237
1246
  }
1238
1247
  async withdraw(code, amount, address, tag = undefined, params = {}) {
package/js/src/zonda.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/zonda.js';
2
- import type { TransferEntry, Balances, Currency, Int, Market, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction, Num, Dict, int, LedgerEntry } from './base/types.js';
2
+ import type { TransferEntry, Balances, Currency, Int, Market, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction, Num, Dict, int, LedgerEntry, DepositAddress } from './base/types.js';
3
3
  /**
4
4
  * @class zonda
5
5
  * @augments Exchange
@@ -27,21 +27,9 @@ export default class zonda extends Exchange {
27
27
  createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
28
28
  cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
29
29
  isFiat(currency: string): boolean;
30
- parseDepositAddress(depositAddress: any, currency?: Currency): {
31
- currency: string;
32
- address: string;
33
- tag: string;
34
- network: any;
35
- info: any;
36
- };
37
- fetchDepositAddress(code: string, params?: {}): Promise<{
38
- currency: string;
39
- address: string;
40
- tag: string;
41
- network: any;
42
- info: any;
43
- }>;
44
- fetchDepositAddresses(codes?: Strings, params?: {}): Promise<import("./base/types.js").Dictionary<any>>;
30
+ parseDepositAddress(depositAddress: any, currency?: Currency): DepositAddress;
31
+ fetchDepositAddress(code: string, params?: {}): Promise<DepositAddress>;
32
+ fetchDepositAddresses(codes?: Strings, params?: {}): Promise<DepositAddress[]>;
45
33
  transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?: {}): Promise<TransferEntry>;
46
34
  parseTransfer(transfer: Dict, currency?: Currency): TransferEntry;
47
35
  parseTransferStatus(status: Str): Str;
package/js/src/zonda.js CHANGED
@@ -39,32 +39,52 @@ export default class zonda extends Exchange {
39
39
  'createOrder': true,
40
40
  'createReduceOnlyOrder': false,
41
41
  'fetchBalance': true,
42
+ 'fetchBorrowInterest': false,
43
+ 'fetchBorrowRate': false,
42
44
  'fetchBorrowRateHistories': false,
43
45
  'fetchBorrowRateHistory': false,
46
+ 'fetchBorrowRates': false,
47
+ 'fetchBorrowRatesPerSymbol': false,
44
48
  'fetchCrossBorrowRate': false,
45
49
  'fetchCrossBorrowRates': false,
46
50
  'fetchDeposit': false,
47
51
  'fetchDepositAddress': true,
48
52
  'fetchDepositAddresses': true,
53
+ 'fetchDepositAddressesByNetwork': false,
49
54
  'fetchDeposits': undefined,
50
55
  'fetchFundingHistory': false,
56
+ 'fetchFundingInterval': false,
57
+ 'fetchFundingIntervals': false,
51
58
  'fetchFundingRate': false,
52
59
  'fetchFundingRateHistory': false,
53
60
  'fetchFundingRates': false,
61
+ 'fetchGreeks': false,
54
62
  'fetchIndexOHLCV': false,
55
63
  'fetchIsolatedBorrowRate': false,
56
64
  'fetchIsolatedBorrowRates': false,
65
+ 'fetchIsolatedPositions': false,
57
66
  'fetchLedger': true,
58
67
  'fetchLeverage': false,
68
+ 'fetchLeverages': false,
59
69
  'fetchLeverageTiers': false,
70
+ 'fetchLiquidations': false,
71
+ 'fetchMarginAdjustmentHistory': false,
60
72
  'fetchMarginMode': false,
73
+ 'fetchMarginModes': false,
74
+ 'fetchMarketLeverageTiers': false,
61
75
  'fetchMarkets': true,
62
76
  'fetchMarkOHLCV': false,
77
+ 'fetchMarkPrices': false,
78
+ 'fetchMyLiquidations': false,
79
+ 'fetchMySettlementHistory': false,
63
80
  'fetchMyTrades': true,
64
81
  'fetchOHLCV': true,
82
+ 'fetchOpenInterest': false,
65
83
  'fetchOpenInterestHistory': false,
66
84
  'fetchOpenOrder': false,
67
85
  'fetchOpenOrders': true,
86
+ 'fetchOption': false,
87
+ 'fetchOptionChain': false,
68
88
  'fetchOrderBook': true,
69
89
  'fetchOrderBooks': false,
70
90
  'fetchPosition': false,
@@ -72,6 +92,7 @@ export default class zonda extends Exchange {
72
92
  'fetchPositions': false,
73
93
  'fetchPositionsRisk': false,
74
94
  'fetchPremiumIndexOHLCV': false,
95
+ 'fetchSettlementHistory': false,
75
96
  'fetchTicker': true,
76
97
  'fetchTickers': true,
77
98
  'fetchTime': false,
@@ -82,9 +103,13 @@ export default class zonda extends Exchange {
82
103
  'fetchTransactionFees': false,
83
104
  'fetchTransactions': undefined,
84
105
  'fetchTransfer': false,
106
+ 'fetchUnderlyingAssets': false,
107
+ 'fetchVolatilityHistory': false,
85
108
  'fetchWithdrawal': false,
86
109
  'fetchWithdrawals': undefined,
87
110
  'reduceMargin': false,
111
+ 'repayCrossMargin': false,
112
+ 'repayIsolatedMargin': false,
88
113
  'setLeverage': false,
89
114
  'setMargin': false,
90
115
  'setMarginMode': false,
@@ -1535,11 +1560,11 @@ export default class zonda extends Exchange {
1535
1560
  const address = this.safeString(depositAddress, 'address');
1536
1561
  this.checkAddress(address);
1537
1562
  return {
1563
+ 'info': depositAddress,
1538
1564
  'currency': this.safeCurrencyCode(currencyId, currency),
1565
+ 'network': undefined,
1539
1566
  'address': address,
1540
1567
  'tag': this.safeString(depositAddress, 'tag'),
1541
- 'network': undefined,
1542
- 'info': depositAddress,
1543
1568
  };
1544
1569
  }
1545
1570
  async fetchDepositAddress(code, params = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccxt",
3
- "version": "4.4.15",
3
+ "version": "4.4.16",
4
4
  "description": "A JavaScript / TypeScript / Python / C# / PHP cryptocurrency trading library with support for 100+ exchanges",
5
5
  "unpkg": "dist/ccxt.browser.min.js",
6
6
  "type": "module",