ccxt 4.3.6 → 4.3.8

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 (196) hide show
  1. package/README.md +3 -3
  2. package/dist/cjs/ccxt.js +1 -1
  3. package/dist/cjs/src/ace.js +5 -0
  4. package/dist/cjs/src/alpaca.js +6 -0
  5. package/dist/cjs/src/base/Exchange.js +47 -3
  6. package/dist/cjs/src/binance.js +3 -1
  7. package/dist/cjs/src/bingx.js +3 -1
  8. package/dist/cjs/src/bitbank.js +3 -0
  9. package/dist/cjs/src/bitget.js +75 -2
  10. package/dist/cjs/src/bithumb.js +4 -0
  11. package/dist/cjs/src/bitmex.js +2 -0
  12. package/dist/cjs/src/bitopro.js +5 -0
  13. package/dist/cjs/src/bitso.js +3 -0
  14. package/dist/cjs/src/bitstamp.js +3 -0
  15. package/dist/cjs/src/bitteam.js +4 -0
  16. package/dist/cjs/src/bitvavo.js +3 -0
  17. package/dist/cjs/src/bl3p.js +3 -0
  18. package/dist/cjs/src/btcalpha.js +3 -0
  19. package/dist/cjs/src/btcbox.js +3 -0
  20. package/dist/cjs/src/btcmarkets.js +3 -0
  21. package/dist/cjs/src/btcturk.js +3 -0
  22. package/dist/cjs/src/bybit.js +123 -12
  23. package/dist/cjs/src/cex.js +6 -0
  24. package/dist/cjs/src/coinbase.js +95 -17
  25. package/dist/cjs/src/coinbaseinternational.js +2 -0
  26. package/dist/cjs/src/coinbasepro.js +6 -0
  27. package/dist/cjs/src/coincheck.js +3 -0
  28. package/dist/cjs/src/coinex.js +257 -190
  29. package/dist/cjs/src/coinlist.js +4 -0
  30. package/dist/cjs/src/coinmate.js +3 -0
  31. package/dist/cjs/src/coinone.js +3 -0
  32. package/dist/cjs/src/coinsph.js +4 -0
  33. package/dist/cjs/src/coinspot.js +3 -0
  34. package/dist/cjs/src/cryptocom.js +2 -0
  35. package/dist/cjs/src/exmo.js +5 -0
  36. package/dist/cjs/src/gate.js +124 -22
  37. package/dist/cjs/src/hitbtc.js +4 -3
  38. package/dist/cjs/src/htx.js +2 -0
  39. package/dist/cjs/src/idex.js +3 -0
  40. package/dist/cjs/src/independentreserve.js +3 -0
  41. package/dist/cjs/src/indodax.js +3 -0
  42. package/dist/cjs/src/kucoin.js +2 -0
  43. package/dist/cjs/src/kucoinfutures.js +2 -0
  44. package/dist/cjs/src/latoken.js +6 -0
  45. package/dist/cjs/src/luno.js +3 -0
  46. package/dist/cjs/src/lykke.js +5 -0
  47. package/dist/cjs/src/mercado.js +3 -0
  48. package/dist/cjs/src/mexc.js +111 -0
  49. package/dist/cjs/src/ndax.js +4 -0
  50. package/dist/cjs/src/novadax.js +4 -0
  51. package/dist/cjs/src/okx.js +84 -1
  52. package/dist/cjs/src/onetrading.js +3 -0
  53. package/dist/cjs/src/p2b.js +3 -0
  54. package/dist/cjs/src/pro/bybit.js +1 -1
  55. package/dist/cjs/src/pro/coinbase.js +30 -29
  56. package/dist/cjs/src/probit.js +3 -0
  57. package/dist/cjs/src/timex.js +3 -0
  58. package/dist/cjs/src/tradeogre.js +3 -0
  59. package/dist/cjs/src/wavesexchange.js +3 -0
  60. package/dist/cjs/src/wazirx.js +3 -0
  61. package/dist/cjs/src/woo.js +3 -1
  62. package/dist/cjs/src/yobit.js +3 -0
  63. package/js/ccxt.d.ts +1 -1
  64. package/js/ccxt.js +1 -1
  65. package/js/src/abstract/coinbase.d.ts +5 -0
  66. package/js/src/ace.js +5 -0
  67. package/js/src/alpaca.js +6 -0
  68. package/js/src/ascendex.d.ts +2 -2
  69. package/js/src/base/Exchange.d.ts +23 -19
  70. package/js/src/base/Exchange.js +47 -3
  71. package/js/src/base/functions/generic.d.ts +20 -19
  72. package/js/src/bigone.d.ts +1 -1
  73. package/js/src/binance.d.ts +3 -3
  74. package/js/src/binance.js +3 -1
  75. package/js/src/bingx.d.ts +3 -3
  76. package/js/src/bingx.js +3 -1
  77. package/js/src/bitbank.d.ts +1 -1
  78. package/js/src/bitbank.js +3 -0
  79. package/js/src/bitfinex.d.ts +1 -1
  80. package/js/src/bitfinex2.d.ts +1 -1
  81. package/js/src/bitflyer.d.ts +1 -1
  82. package/js/src/bitget.d.ts +4 -3
  83. package/js/src/bitget.js +75 -2
  84. package/js/src/bithumb.d.ts +1 -1
  85. package/js/src/bithumb.js +4 -0
  86. package/js/src/bitmart.d.ts +1 -1
  87. package/js/src/bitmex.d.ts +1 -1
  88. package/js/src/bitmex.js +2 -0
  89. package/js/src/bitopro.d.ts +1 -1
  90. package/js/src/bitopro.js +5 -0
  91. package/js/src/bitrue.d.ts +1 -1
  92. package/js/src/bitso.d.ts +1 -1
  93. package/js/src/bitso.js +3 -0
  94. package/js/src/bitstamp.d.ts +1 -1
  95. package/js/src/bitstamp.js +3 -0
  96. package/js/src/bitteam.js +4 -0
  97. package/js/src/bitvavo.d.ts +1 -1
  98. package/js/src/bitvavo.js +3 -0
  99. package/js/src/bl3p.js +3 -0
  100. package/js/src/blockchaincom.d.ts +1 -1
  101. package/js/src/btcalpha.js +3 -0
  102. package/js/src/btcbox.js +3 -0
  103. package/js/src/btcmarkets.d.ts +1 -1
  104. package/js/src/btcmarkets.js +3 -0
  105. package/js/src/btcturk.js +3 -0
  106. package/js/src/bybit.d.ts +8 -7
  107. package/js/src/bybit.js +123 -12
  108. package/js/src/cex.js +6 -0
  109. package/js/src/coinbase.d.ts +2 -2
  110. package/js/src/coinbase.js +95 -17
  111. package/js/src/coinbaseinternational.d.ts +2 -2
  112. package/js/src/coinbaseinternational.js +2 -0
  113. package/js/src/coinbasepro.d.ts +1 -1
  114. package/js/src/coinbasepro.js +6 -0
  115. package/js/src/coincheck.js +3 -0
  116. package/js/src/coinex.d.ts +8 -7
  117. package/js/src/coinex.js +257 -190
  118. package/js/src/coinlist.d.ts +1 -1
  119. package/js/src/coinlist.js +4 -0
  120. package/js/src/coinmate.d.ts +1 -1
  121. package/js/src/coinmate.js +3 -0
  122. package/js/src/coinone.js +3 -0
  123. package/js/src/coinsph.d.ts +1 -1
  124. package/js/src/coinsph.js +4 -0
  125. package/js/src/coinspot.js +3 -0
  126. package/js/src/cryptocom.d.ts +1 -1
  127. package/js/src/cryptocom.js +2 -0
  128. package/js/src/delta.d.ts +2 -2
  129. package/js/src/deribit.d.ts +1 -1
  130. package/js/src/digifinex.d.ts +3 -3
  131. package/js/src/exmo.d.ts +3 -3
  132. package/js/src/exmo.js +5 -0
  133. package/js/src/gate.d.ts +8 -7
  134. package/js/src/gate.js +124 -22
  135. package/js/src/gemini.d.ts +2 -2
  136. package/js/src/hitbtc.d.ts +3 -3
  137. package/js/src/hitbtc.js +4 -3
  138. package/js/src/hollaex.d.ts +2 -2
  139. package/js/src/htx.d.ts +3 -3
  140. package/js/src/htx.js +2 -0
  141. package/js/src/huobijp.d.ts +1 -1
  142. package/js/src/hyperliquid.d.ts +2 -2
  143. package/js/src/idex.d.ts +2 -2
  144. package/js/src/idex.js +3 -0
  145. package/js/src/independentreserve.js +3 -0
  146. package/js/src/indodax.d.ts +1 -1
  147. package/js/src/indodax.js +3 -0
  148. package/js/src/kraken.d.ts +1 -1
  149. package/js/src/kucoin.d.ts +2 -2
  150. package/js/src/kucoin.js +2 -0
  151. package/js/src/kucoinfutures.d.ts +1 -1
  152. package/js/src/kucoinfutures.js +2 -0
  153. package/js/src/kuna.d.ts +1 -1
  154. package/js/src/latoken.js +6 -0
  155. package/js/src/lbank.d.ts +1 -1
  156. package/js/src/luno.js +3 -0
  157. package/js/src/lykke.d.ts +1 -1
  158. package/js/src/lykke.js +5 -0
  159. package/js/src/mercado.d.ts +1 -1
  160. package/js/src/mercado.js +3 -0
  161. package/js/src/mexc.d.ts +5 -4
  162. package/js/src/mexc.js +111 -0
  163. package/js/src/ndax.d.ts +1 -1
  164. package/js/src/ndax.js +4 -0
  165. package/js/src/novadax.d.ts +1 -1
  166. package/js/src/novadax.js +4 -0
  167. package/js/src/okcoin.d.ts +2 -2
  168. package/js/src/okx.d.ts +10 -9
  169. package/js/src/okx.js +84 -1
  170. package/js/src/onetrading.d.ts +1 -1
  171. package/js/src/onetrading.js +3 -0
  172. package/js/src/p2b.js +3 -0
  173. package/js/src/paymium.d.ts +1 -1
  174. package/js/src/phemex.d.ts +1 -1
  175. package/js/src/poloniex.d.ts +1 -1
  176. package/js/src/pro/bybit.js +1 -1
  177. package/js/src/pro/coinbase.d.ts +2 -2
  178. package/js/src/pro/coinbase.js +30 -29
  179. package/js/src/pro/luno.d.ts +2 -2
  180. package/js/src/probit.d.ts +2 -2
  181. package/js/src/probit.js +3 -0
  182. package/js/src/timex.js +3 -0
  183. package/js/src/tokocrypto.d.ts +1 -1
  184. package/js/src/tradeogre.js +3 -0
  185. package/js/src/upbit.d.ts +2 -2
  186. package/js/src/wavesexchange.d.ts +1 -1
  187. package/js/src/wavesexchange.js +3 -0
  188. package/js/src/wazirx.js +3 -0
  189. package/js/src/whitebit.d.ts +2 -2
  190. package/js/src/woo.d.ts +1 -1
  191. package/js/src/woo.js +3 -1
  192. package/js/src/yobit.d.ts +1 -1
  193. package/js/src/yobit.js +3 -0
  194. package/js/src/zaif.d.ts +1 -1
  195. package/js/src/zonda.d.ts +2 -2
  196. package/package.json +1 -1
@@ -128,6 +128,6 @@ export default class phemex extends Exchange {
128
128
  };
129
129
  parseTransferStatus(status: any): string;
130
130
  fetchFundingRateHistory(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<FundingRateHistory[]>;
131
- withdraw(code: string, amount: number, address: any, tag?: any, params?: {}): Promise<Transaction>;
131
+ withdraw(code: string, amount: number, address: string, tag?: any, params?: {}): Promise<Transaction>;
132
132
  handleErrors(httpCode: any, reason: any, url: any, method: any, headers: any, body: any, response: any, requestHeaders: any, requestBody: any): any;
133
133
  }
@@ -62,7 +62,7 @@ export default class poloniex extends Exchange {
62
62
  toAccount: any;
63
63
  status: any;
64
64
  };
65
- withdraw(code: string, amount: number, address: any, tag?: any, params?: {}): Promise<Transaction>;
65
+ withdraw(code: string, amount: number, address: string, tag?: any, params?: {}): Promise<Transaction>;
66
66
  fetchTransactionsHelper(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
67
67
  fetchDepositsWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
68
68
  fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
@@ -120,7 +120,7 @@ export default class bybit extends bybitRest {
120
120
  },
121
121
  'streaming': {
122
122
  'ping': this.ping,
123
- 'keepAlive': 20000,
123
+ 'keepAlive': 19000,
124
124
  },
125
125
  });
126
126
  }
@@ -2,7 +2,7 @@ import coinbaseRest from '../coinbase.js';
2
2
  import { Strings, Tickers, Ticker, Int, Trade, OrderBook, Order, Str } from '../base/types.js';
3
3
  export default class coinbase extends coinbaseRest {
4
4
  describe(): any;
5
- subscribe(name: any, symbol?: any, params?: {}): Promise<any>;
5
+ subscribe(name: string, isPrivate: boolean, symbol?: any, params?: {}): Promise<any>;
6
6
  watchTicker(symbol: string, params?: {}): Promise<Ticker>;
7
7
  watchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
8
8
  handleTickers(client: any, message: any): any;
@@ -14,7 +14,7 @@ export default class coinbase extends coinbaseRest {
14
14
  handleOrder(client: any, message: any): any;
15
15
  parseWsOrder(order: any, market?: any): Order;
16
16
  handleOrderBookHelper(orderbook: any, updates: any): void;
17
- handleOrderBook(client: any, message: any): any;
17
+ handleOrderBook(client: any, message: any): void;
18
18
  handleSubscriptionStatus(client: any, message: any): any;
19
19
  handleMessage(client: any, message: any): void;
20
20
  }
@@ -49,7 +49,7 @@ export default class coinbase extends coinbaseRest {
49
49
  },
50
50
  });
51
51
  }
52
- async subscribe(name, symbol = undefined, params = {}) {
52
+ async subscribe(name, isPrivate, symbol = undefined, params = {}) {
53
53
  /**
54
54
  * @ignore
55
55
  * @method
@@ -61,7 +61,6 @@ export default class coinbase extends coinbaseRest {
61
61
  * @returns {object} subscription to a websocket channel
62
62
  */
63
63
  await this.loadMarkets();
64
- this.checkRequiredCredentials();
65
64
  let market = undefined;
66
65
  let messageHash = name;
67
66
  let productIds = [];
@@ -78,8 +77,6 @@ export default class coinbase extends coinbaseRest {
78
77
  }
79
78
  const url = this.urls['api']['ws'];
80
79
  const timestamp = this.numberToString(this.seconds());
81
- const isCloudAPiKey = (this.apiKey.indexOf('organizations/') >= 0) || (this.secret.startsWith('-----BEGIN'));
82
- const auth = timestamp + name + productIds.join(',');
83
80
  const subscribe = {
84
81
  'type': 'subscribe',
85
82
  'product_ids': productIds,
@@ -88,25 +85,30 @@ export default class coinbase extends coinbaseRest {
88
85
  // 'timestamp': timestamp,
89
86
  // 'signature': this.hmac (this.encode (auth), this.encode (this.secret), sha256),
90
87
  };
91
- if (!isCloudAPiKey) {
92
- subscribe['api_key'] = this.apiKey;
93
- subscribe['timestamp'] = timestamp;
94
- subscribe['signature'] = this.hmac(this.encode(auth), this.encode(this.secret), sha256);
95
- }
96
- else {
97
- if (this.apiKey.startsWith('-----BEGIN')) {
98
- throw new ArgumentsRequired(this.id + ' apiKey should contain the name (eg: organizations/3b910e93....) and not the public key');
88
+ if (isPrivate) {
89
+ this.checkRequiredCredentials();
90
+ const isCloudAPiKey = (this.apiKey.indexOf('organizations/') >= 0) || (this.secret.startsWith('-----BEGIN'));
91
+ const auth = timestamp + name + productIds.join(',');
92
+ if (!isCloudAPiKey) {
93
+ subscribe['api_key'] = this.apiKey;
94
+ subscribe['timestamp'] = timestamp;
95
+ subscribe['signature'] = this.hmac(this.encode(auth), this.encode(this.secret), sha256);
99
96
  }
100
- const currentToken = this.safeString(this.options, 'wsToken');
101
- const tokenTimestamp = this.safeInteger(this.options, 'wsTokenTimestamp', 0);
102
- const seconds = this.seconds();
103
- if (currentToken === undefined || tokenTimestamp + 120 < seconds) {
104
- // we should generate new token
105
- const token = this.createAuthToken(seconds);
106
- this.options['wsToken'] = token;
107
- this.options['wsTokenTimestamp'] = seconds;
97
+ else {
98
+ if (this.apiKey.startsWith('-----BEGIN')) {
99
+ throw new ArgumentsRequired(this.id + ' apiKey should contain the name (eg: organizations/3b910e93....) and not the public key');
100
+ }
101
+ const currentToken = this.safeString(this.options, 'wsToken');
102
+ const tokenTimestamp = this.safeInteger(this.options, 'wsTokenTimestamp', 0);
103
+ const seconds = this.seconds();
104
+ if (currentToken === undefined || tokenTimestamp + 120 < seconds) {
105
+ // we should generate new token
106
+ const token = this.createAuthToken(seconds);
107
+ this.options['wsToken'] = token;
108
+ this.options['wsTokenTimestamp'] = seconds;
109
+ }
110
+ subscribe['jwt'] = this.safeString(this.options, 'wsToken');
108
111
  }
109
- subscribe['jwt'] = this.safeString(this.options, 'wsToken');
110
112
  }
111
113
  return await this.watch(url, messageHash, subscribe, messageHash);
112
114
  }
@@ -121,7 +123,7 @@ export default class coinbase extends coinbaseRest {
121
123
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
122
124
  */
123
125
  const name = 'ticker';
124
- return await this.subscribe(name, symbol, params);
126
+ return await this.subscribe(name, false, symbol, params);
125
127
  }
126
128
  async watchTickers(symbols = undefined, params = {}) {
127
129
  /**
@@ -137,7 +139,7 @@ export default class coinbase extends coinbaseRest {
137
139
  symbols = this.symbols;
138
140
  }
139
141
  const name = 'ticker_batch';
140
- const tickers = await this.subscribe(name, symbols, params);
142
+ const tickers = await this.subscribe(name, false, symbols, params);
141
143
  if (this.newUpdates) {
142
144
  return tickers;
143
145
  }
@@ -301,7 +303,7 @@ export default class coinbase extends coinbaseRest {
301
303
  await this.loadMarkets();
302
304
  symbol = this.symbol(symbol);
303
305
  const name = 'market_trades';
304
- const trades = await this.subscribe(name, symbol, params);
306
+ const trades = await this.subscribe(name, false, symbol, params);
305
307
  if (this.newUpdates) {
306
308
  limit = trades.getLimit(symbol, limit);
307
309
  }
@@ -321,7 +323,7 @@ export default class coinbase extends coinbaseRest {
321
323
  */
322
324
  await this.loadMarkets();
323
325
  const name = 'user';
324
- const orders = await this.subscribe(name, symbol, params);
326
+ const orders = await this.subscribe(name, true, symbol, params);
325
327
  if (this.newUpdates) {
326
328
  limit = orders.getLimit(symbol, limit);
327
329
  }
@@ -342,7 +344,7 @@ export default class coinbase extends coinbaseRest {
342
344
  const name = 'level2';
343
345
  const market = this.market(symbol);
344
346
  symbol = market['symbol'];
345
- const orderbook = await this.subscribe(name, symbol, params);
347
+ const orderbook = await this.subscribe(name, false, symbol, params);
346
348
  return orderbook.limit();
347
349
  }
348
350
  handleTrade(client, message) {
@@ -560,8 +562,8 @@ export default class coinbase extends coinbaseRest {
560
562
  this.orderbooks[symbol] = this.orderBook({}, limit);
561
563
  const orderbook = this.orderbooks[symbol];
562
564
  this.handleOrderBookHelper(orderbook, updates);
563
- orderbook['timestamp'] = undefined;
564
- orderbook['datetime'] = undefined;
565
+ orderbook['timestamp'] = this.parse8601(datetime);
566
+ orderbook['datetime'] = datetime;
565
567
  orderbook['symbol'] = symbol;
566
568
  client.resolve(orderbook, messageHash);
567
569
  if (messageHash.endsWith('USD')) {
@@ -580,7 +582,6 @@ export default class coinbase extends coinbaseRest {
580
582
  }
581
583
  }
582
584
  }
583
- return message;
584
585
  }
585
586
  handleSubscriptionStatus(client, message) {
586
587
  //
@@ -10,8 +10,8 @@ export default class luno extends lunoRest {
10
10
  handleOrderBook(client: Client, message: any, subscription: any): void;
11
11
  customParseOrderBook(orderbook: any, symbol: any, timestamp?: any, bidsKey?: string, asksKey?: IndexType, priceKey?: IndexType, amountKey?: IndexType, countOrIdKey?: IndexType): {
12
12
  symbol: any;
13
- bids: any;
14
- asks: any;
13
+ bids: any[];
14
+ asks: any[];
15
15
  timestamp: any;
16
16
  datetime: string;
17
17
  nonce: any;
@@ -44,8 +44,8 @@ export default class probit extends Exchange {
44
44
  network: string;
45
45
  info: any;
46
46
  }>;
47
- fetchDepositAddresses(codes?: string[], params?: {}): Promise<{}>;
48
- withdraw(code: string, amount: number, address: any, tag?: any, params?: {}): Promise<Transaction>;
47
+ fetchDepositAddresses(codes?: string[], params?: {}): Promise<import("./base/types.js").Dictionary<any>>;
48
+ withdraw(code: string, amount: number, address: string, tag?: any, params?: {}): Promise<Transaction>;
49
49
  fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
50
50
  fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
51
51
  fetchDepositsWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
package/js/src/probit.js CHANGED
@@ -70,8 +70,11 @@ export default class probit extends Exchange {
70
70
  'fetchOrder': true,
71
71
  'fetchOrderBook': true,
72
72
  'fetchPosition': false,
73
+ 'fetchPositionHistory': false,
73
74
  'fetchPositionMode': false,
74
75
  'fetchPositions': false,
76
+ 'fetchPositionsForSymbol': false,
77
+ 'fetchPositionsHistory': false,
75
78
  'fetchPositionsRisk': false,
76
79
  'fetchPremiumIndexOHLCV': false,
77
80
  'fetchTicker': true,
package/js/src/timex.js CHANGED
@@ -67,8 +67,11 @@ export default class timex extends Exchange {
67
67
  'fetchOrder': true,
68
68
  'fetchOrderBook': true,
69
69
  'fetchPosition': false,
70
+ 'fetchPositionHistory': false,
70
71
  'fetchPositionMode': false,
71
72
  'fetchPositions': false,
73
+ 'fetchPositionsForSymbol': false,
74
+ 'fetchPositionsHistory': false,
72
75
  'fetchPositionsRisk': false,
73
76
  'fetchPremiumIndexOHLCV': false,
74
77
  'fetchTicker': true,
@@ -42,7 +42,7 @@ export default class tokocrypto extends Exchange {
42
42
  fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
43
43
  parseTransactionStatusByType(status: any, type?: any): string;
44
44
  parseTransaction(transaction: any, currency?: Currency): Transaction;
45
- withdraw(code: string, amount: number, address: any, tag?: any, params?: {}): Promise<Transaction>;
45
+ withdraw(code: string, amount: number, address: string, tag?: any, params?: {}): Promise<Transaction>;
46
46
  sign(path: any, api?: string, method?: string, params?: {}, headers?: any, body?: any): {
47
47
  url: any;
48
48
  method: string;
@@ -82,8 +82,11 @@ export default class tradeogre extends Exchange {
82
82
  'fetchOrderTrades': false,
83
83
  'fetchPermissions': false,
84
84
  'fetchPosition': false,
85
+ 'fetchPositionHistory': false,
86
+ 'fetchPositionMode': false,
85
87
  'fetchPositions': false,
86
88
  'fetchPositionsForSymbol': false,
89
+ 'fetchPositionsHistory': false,
87
90
  'fetchPositionsRisk': false,
88
91
  'fetchPremiumIndexOHLCV': false,
89
92
  'fetchTicker': true,
package/js/src/upbit.d.ts CHANGED
@@ -67,7 +67,7 @@ export default class upbit extends Exchange {
67
67
  fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
68
68
  fetchCanceledOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
69
69
  fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
70
- fetchDepositAddresses(codes?: string[], params?: {}): Promise<{}>;
70
+ fetchDepositAddresses(codes?: string[], params?: {}): Promise<Dictionary<any>>;
71
71
  parseDepositAddress(depositAddress: any, currency?: Currency): {
72
72
  currency: string;
73
73
  address: string;
@@ -89,7 +89,7 @@ export default class upbit extends Exchange {
89
89
  network: string;
90
90
  info: any;
91
91
  }>;
92
- withdraw(code: string, amount: number, address: any, tag?: any, params?: {}): Promise<Transaction>;
92
+ withdraw(code: string, amount: number, address: string, tag?: any, params?: {}): Promise<Transaction>;
93
93
  nonce(): number;
94
94
  sign(path: any, api?: string, method?: string, params?: {}, headers?: any, body?: any): {
95
95
  url: any;
@@ -88,6 +88,6 @@ export default class wavesexchange extends Exchange {
88
88
  parseDepositWithdrawFees(response: any, codes?: Strings, currencyIdKey?: any): any;
89
89
  fetchDepositWithdrawFees(codes?: Strings, params?: {}): Promise<any>;
90
90
  handleErrors(code: any, reason: any, url: any, method: any, headers: any, body: any, response: any, requestHeaders: any, requestBody: any): any;
91
- withdraw(code: string, amount: number, address: any, tag?: any, params?: {}): Promise<Transaction>;
91
+ withdraw(code: string, amount: number, address: string, tag?: any, params?: {}): Promise<Transaction>;
92
92
  parseTransaction(transaction: any, currency?: Currency): Transaction;
93
93
  }
@@ -69,8 +69,11 @@ export default class wavesexchange extends Exchange {
69
69
  'fetchOrderBook': true,
70
70
  'fetchOrders': true,
71
71
  'fetchPosition': false,
72
+ 'fetchPositionHistory': false,
72
73
  'fetchPositionMode': false,
73
74
  'fetchPositions': false,
75
+ 'fetchPositionsForSymbol': false,
76
+ 'fetchPositionsHistory': false,
74
77
  'fetchPositionsRisk': false,
75
78
  'fetchPremiumIndexOHLCV': false,
76
79
  'fetchTicker': true,
package/js/src/wazirx.js CHANGED
@@ -74,8 +74,11 @@ export default class wazirx extends Exchange {
74
74
  'fetchOrderBook': true,
75
75
  'fetchOrders': true,
76
76
  'fetchPosition': false,
77
+ 'fetchPositionHistory': false,
77
78
  'fetchPositionMode': false,
78
79
  'fetchPositions': false,
80
+ 'fetchPositionsForSymbol': false,
81
+ 'fetchPositionsHistory': false,
79
82
  'fetchPositionsRisk': false,
80
83
  'fetchPremiumIndexOHLCV': false,
81
84
  'fetchStatus': true,
@@ -66,7 +66,7 @@ export default class whitebit extends Exchange {
66
66
  toAccount: any;
67
67
  status: any;
68
68
  };
69
- withdraw(code: string, amount: number, address: any, tag?: any, params?: {}): Promise<any>;
69
+ withdraw(code: string, amount: number, address: string, tag?: any, params?: {}): Promise<any>;
70
70
  parseTransaction(transaction: any, currency?: Currency): Transaction;
71
71
  parseTransactionStatus(status: any): string;
72
72
  fetchDeposit(id: string, code?: Str, params?: {}): Promise<Transaction>;
@@ -103,7 +103,7 @@ export default class whitebit extends Exchange {
103
103
  previousFundingTimestamp: any;
104
104
  previousFundingDatetime: any;
105
105
  };
106
- isFiat(currency: any): any;
106
+ isFiat(currency: any): boolean;
107
107
  nonce(): number;
108
108
  sign(path: any, api?: string, method?: string, params?: {}, headers?: any, body?: any): {
109
109
  url: string;
package/js/src/woo.d.ts CHANGED
@@ -98,7 +98,7 @@ export default class woo extends Exchange {
98
98
  info: any;
99
99
  };
100
100
  parseTransferStatus(status: any): string;
101
- withdraw(code: string, amount: number, address: any, tag?: any, params?: {}): Promise<Transaction>;
101
+ withdraw(code: string, amount: number, address: string, tag?: any, params?: {}): Promise<Transaction>;
102
102
  repayMargin(code: string, amount: any, symbol?: Str, params?: {}): Promise<any>;
103
103
  parseMarginLoan(info: any, currency?: Currency): {
104
104
  id: any;
package/js/src/woo.js CHANGED
@@ -91,8 +91,10 @@ export default class woo extends Exchange {
91
91
  'fetchOrders': true,
92
92
  'fetchOrderTrades': true,
93
93
  'fetchPosition': true,
94
+ 'fetchPositionHistory': false,
94
95
  'fetchPositionMode': false,
95
96
  'fetchPositions': true,
97
+ 'fetchPositionsHistory': false,
96
98
  'fetchPremiumIndexOHLCV': false,
97
99
  'fetchStatus': true,
98
100
  'fetchTicker': false,
@@ -3183,7 +3185,7 @@ export default class woo extends Exchange {
3183
3185
  //
3184
3186
  const data = this.safeDict(response, 'data', {});
3185
3187
  const rows = this.safeList(data, 'tradeVos', []);
3186
- return this.parseConversions(rows, 'sellAsset', 'buyAsset', since, limit);
3188
+ return this.parseConversions(rows, code, 'sellAsset', 'buyAsset', since, limit);
3187
3189
  }
3188
3190
  parseConversion(conversion, fromCurrency = undefined, toCurrency = undefined) {
3189
3191
  //
package/js/src/yobit.d.ts CHANGED
@@ -55,7 +55,7 @@ export default class yobit extends Exchange {
55
55
  rate: any;
56
56
  };
57
57
  }>;
58
- withdraw(code: string, amount: number, address: any, tag?: any, params?: {}): Promise<Transaction>;
58
+ withdraw(code: string, amount: number, address: string, tag?: any, params?: {}): Promise<Transaction>;
59
59
  sign(path: any, api?: string, method?: string, params?: {}, headers?: any, body?: any): {
60
60
  url: any;
61
61
  method: string;
package/js/src/yobit.js CHANGED
@@ -68,8 +68,11 @@ export default class yobit extends Exchange {
68
68
  'fetchOrderBook': true,
69
69
  'fetchOrderBooks': true,
70
70
  'fetchPosition': false,
71
+ 'fetchPositionHistory': false,
71
72
  'fetchPositionMode': false,
72
73
  'fetchPositions': false,
74
+ 'fetchPositionsForSymbol': false,
75
+ 'fetchPositionsHistory': false,
73
76
  'fetchPositionsRisk': false,
74
77
  'fetchPremiumIndexOHLCV': false,
75
78
  'fetchTicker': true,
package/js/src/zaif.d.ts CHANGED
@@ -20,7 +20,7 @@ export default class zaif extends Exchange {
20
20
  parseOrder(order: any, market?: Market): Order;
21
21
  fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
22
22
  fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
23
- withdraw(code: string, amount: number, address: any, tag?: any, params?: {}): Promise<Transaction>;
23
+ withdraw(code: string, amount: number, address: string, tag?: any, params?: {}): Promise<Transaction>;
24
24
  parseTransaction(transaction: any, currency?: Currency): Transaction;
25
25
  customNonce(): string;
26
26
  sign(path: any, api?: string, method?: string, params?: {}, headers?: any, body?: any): {
package/js/src/zonda.d.ts CHANGED
@@ -57,7 +57,7 @@ export default class zonda extends Exchange {
57
57
  network: any;
58
58
  info: any;
59
59
  }>;
60
- fetchDepositAddresses(codes?: string[], params?: {}): Promise<{}>;
60
+ fetchDepositAddresses(codes?: string[], params?: {}): Promise<import("./base/types.js").Dictionary<any>>;
61
61
  transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?: {}): Promise<TransferEntry>;
62
62
  parseTransfer(transfer: any, currency?: Currency): {
63
63
  info: any;
@@ -71,7 +71,7 @@ export default class zonda extends Exchange {
71
71
  status: string;
72
72
  };
73
73
  parseTransferStatus(status: any): string;
74
- withdraw(code: string, amount: number, address: any, tag?: any, params?: {}): Promise<Transaction>;
74
+ withdraw(code: string, amount: number, address: string, tag?: any, params?: {}): Promise<Transaction>;
75
75
  parseTransaction(transaction: any, currency?: Currency): Transaction;
76
76
  sign(path: any, api?: string, method?: string, params?: {}, headers?: any, body?: any): {
77
77
  url: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccxt",
3
- "version": "4.3.6",
3
+ "version": "4.3.8",
4
4
  "description": "A JavaScript / TypeScript / Python / C# / PHP cryptocurrency trading library with support for 100+ exchanges",
5
5
  "unpkg": "dist/ccxt.browser.js",
6
6
  "type": "module",