ccxt 4.3.68 → 4.3.69

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 (47) hide show
  1. package/README.md +5 -5
  2. package/dist/ccxt.browser.min.js +2 -2
  3. package/dist/cjs/ccxt.js +1 -1
  4. package/dist/cjs/src/base/Exchange.js +359 -353
  5. package/dist/cjs/src/bingx.js +134 -75
  6. package/dist/cjs/src/btcbox.js +2 -1
  7. package/dist/cjs/src/coinbaseinternational.js +79 -1
  8. package/dist/cjs/src/hyperliquid.js +0 -3
  9. package/dist/cjs/src/kucoin.js +12 -5
  10. package/dist/cjs/src/oxfun.js +2 -2
  11. package/dist/cjs/src/poloniex.js +33 -33
  12. package/dist/cjs/src/poloniexfutures.js +26 -26
  13. package/dist/cjs/src/pro/poloniex.js +13 -13
  14. package/dist/cjs/src/pro/poloniexfutures.js +5 -5
  15. package/js/ccxt.d.ts +3 -3
  16. package/js/ccxt.js +1 -1
  17. package/js/src/base/Exchange.d.ts +107 -82
  18. package/js/src/base/Exchange.js +359 -353
  19. package/js/src/base/types.d.ts +0 -2
  20. package/js/src/binance.d.ts +2 -2
  21. package/js/src/bingx.d.ts +2 -2
  22. package/js/src/bingx.js +134 -75
  23. package/js/src/bitget.d.ts +2 -2
  24. package/js/src/bitmart.d.ts +2 -2
  25. package/js/src/bitrue.d.ts +2 -2
  26. package/js/src/btcbox.js +2 -1
  27. package/js/src/bybit.d.ts +2 -2
  28. package/js/src/coinbaseinternational.d.ts +11 -0
  29. package/js/src/coinbaseinternational.js +79 -1
  30. package/js/src/coinex.d.ts +2 -2
  31. package/js/src/coinlist.d.ts +2 -2
  32. package/js/src/deribit.d.ts +2 -2
  33. package/js/src/digifinex.d.ts +2 -2
  34. package/js/src/hyperliquid.js +0 -3
  35. package/js/src/kucoin.js +12 -5
  36. package/js/src/latoken.d.ts +2 -2
  37. package/js/src/mexc.d.ts +2 -2
  38. package/js/src/okx.d.ts +2 -2
  39. package/js/src/oxfun.d.ts +1 -1
  40. package/js/src/oxfun.js +2 -2
  41. package/js/src/phemex.d.ts +2 -2
  42. package/js/src/poloniex.js +33 -33
  43. package/js/src/poloniexfutures.js +26 -26
  44. package/js/src/pro/poloniex.js +13 -13
  45. package/js/src/pro/poloniexfutures.js +5 -5
  46. package/js/src/woo.d.ts +2 -2
  47. package/package.json +1 -1
@@ -81,7 +81,7 @@ export default class poloniex extends poloniexRest {
81
81
  * @ignore
82
82
  * @method
83
83
  * @description authenticates the user to access private web socket channels
84
- * @see https://docs.poloniex.com/#authenticated-channels-market-data-authentication
84
+ * @see https://api-docs.poloniex.com/spot/websocket/authentication
85
85
  * @returns {object} response from exchange
86
86
  */
87
87
  this.checkRequiredCredentials();
@@ -187,7 +187,7 @@ export default class poloniex extends poloniexRest {
187
187
  /**
188
188
  * @method
189
189
  * @name poloniex#createOrderWs
190
- * @see https://docs.poloniex.com/#authenticated-channels-trade-requests-create-order
190
+ * @see https://api-docs.poloniex.com/spot/websocket/trade-request#create-order
191
191
  * @description create a trade order
192
192
  * @param {string} symbol unified symbol of the market to create an order in
193
193
  * @param {string} type 'market' or 'limit'
@@ -257,7 +257,7 @@ export default class poloniex extends poloniexRest {
257
257
  /**
258
258
  * @method
259
259
  * @name poloniex#cancelOrderWs
260
- * @see https://docs.poloniex.com/#authenticated-channels-trade-requests-cancel-multiple-orders
260
+ * @see https://api-docs.poloniex.com/spot/websocket/trade-request#cancel-multiple-orders
261
261
  * @description cancel multiple orders
262
262
  * @param {string} id order id
263
263
  * @param {string} [symbol] unified market symbol
@@ -276,7 +276,7 @@ export default class poloniex extends poloniexRest {
276
276
  /**
277
277
  * @method
278
278
  * @name poloniex#cancelOrdersWs
279
- * @see https://docs.poloniex.com/#authenticated-channels-trade-requests-cancel-multiple-orders
279
+ * @see https://api-docs.poloniex.com/spot/websocket/trade-request#cancel-multiple-orders
280
280
  * @description cancel multiple orders
281
281
  * @param {string[]} ids order ids
282
282
  * @param {string} symbol unified market symbol, default is undefined
@@ -295,7 +295,7 @@ export default class poloniex extends poloniexRest {
295
295
  /**
296
296
  * @method
297
297
  * @name poloniex#cancelAllOrdersWs
298
- * @see https://docs.poloniex.com/#authenticated-channels-trade-requests-cancel-all-orders
298
+ * @see https://api-docs.poloniex.com/spot/websocket/trade-request#cancel-all-orders
299
299
  * @description cancel all open orders of a type. Only applicable to Option in Portfolio Margin mode, and MMP privilege is required.
300
300
  * @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
301
301
  * @param {object} [params] extra parameters specific to the poloniex api endpoint
@@ -332,7 +332,7 @@ export default class poloniex extends poloniexRest {
332
332
  * @method
333
333
  * @name poloniex#watchOHLCV
334
334
  * @description watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
335
- * @see https://docs.poloniex.com/#public-channels-market-data-candlesticks
335
+ * @see https://api-docs.poloniex.com/spot/websocket/market-data#candlesticks
336
336
  * @param {string} symbol unified symbol of the market to fetch OHLCV data for
337
337
  * @param {string} timeframe the length of time each candle represents
338
338
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
@@ -357,7 +357,7 @@ export default class poloniex extends poloniexRest {
357
357
  * @method
358
358
  * @name poloniex#watchTicker
359
359
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
360
- * @see https://docs.poloniex.com/#public-channels-market-data-ticker
360
+ * @see https://api-docs.poloniex.com/spot/websocket/market-data#ticker
361
361
  * @param {string} symbol unified symbol of the market to fetch the ticker for
362
362
  * @param {object} [params] extra parameters specific to the exchange API endpoint
363
363
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
@@ -372,7 +372,7 @@ export default class poloniex extends poloniexRest {
372
372
  * @method
373
373
  * @name poloniex#watchTicker
374
374
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
375
- * @see https://docs.poloniex.com/#public-channels-market-data-ticker
375
+ * @see https://api-docs.poloniex.com/spot/websocket/market-data#ticker
376
376
  * @param {string} symbol unified symbol of the market to fetch the ticker for
377
377
  * @param {object} [params] extra parameters specific to the exchange API endpoint
378
378
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
@@ -391,7 +391,7 @@ export default class poloniex extends poloniexRest {
391
391
  * @method
392
392
  * @name poloniex#watchTrades
393
393
  * @description get the list of most recent trades for a particular symbol
394
- * @see https://docs.poloniex.com/#public-channels-market-data-trades
394
+ * @see https://api-docs.poloniex.com/spot/websocket/market-data#trades
395
395
  * @param {string} symbol unified symbol of the market to fetch trades for
396
396
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
397
397
  * @param {int} [limit] the maximum amount of trades to fetch
@@ -412,7 +412,7 @@ export default class poloniex extends poloniexRest {
412
412
  * @method
413
413
  * @name poloniex#watchOrderBook
414
414
  * @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
415
- * @see https://docs.poloniex.com/#public-channels-market-data-book-level-2
415
+ * @see https://api-docs.poloniex.com/spot/websocket/market-data#book-level-2
416
416
  * @param {string} symbol unified symbol of the market to fetch the order book for
417
417
  * @param {int} [limit] not used by poloniex watchOrderBook
418
418
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -430,7 +430,7 @@ export default class poloniex extends poloniexRest {
430
430
  * @method
431
431
  * @name poloniex#watchOrders
432
432
  * @description watches information on multiple orders made by the user
433
- * @see https://docs.poloniex.com/#authenticated-channels-market-data-orders
433
+ * @see https://api-docs.poloniex.com/spot/websocket/order
434
434
  * @param {string} symbol unified market symbol of the market orders were made in
435
435
  * @param {int} [since] not used by poloniex watchOrders
436
436
  * @param {int} [limit] not used by poloniex watchOrders
@@ -455,7 +455,7 @@ export default class poloniex extends poloniexRest {
455
455
  * @method
456
456
  * @name poloniex#watchMyTrades
457
457
  * @description watches information on multiple trades made by the user using orders stream
458
- * @see https://docs.poloniex.com/#authenticated-channels-market-data-orders
458
+ * @see https://api-docs.poloniex.com/spot/websocket/order
459
459
  * @param {string} symbol unified market symbol of the market orders were made in
460
460
  * @param {int} [since] not used by poloniex watchMyTrades
461
461
  * @param {int} [limit] not used by poloniex watchMyTrades
@@ -481,7 +481,7 @@ export default class poloniex extends poloniexRest {
481
481
  * @method
482
482
  * @name poloniex#watchBalance
483
483
  * @description watch balance and get the amount of funds available for trading or funds locked in orders
484
- * @see https://docs.poloniex.com/#authenticated-channels-market-data-balances
484
+ * @see https://api-docs.poloniex.com/spot/websocket/balance
485
485
  * @param {object} [params] extra parameters specific to the exchange API endpoint
486
486
  * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
487
487
  */
@@ -242,7 +242,7 @@ export default class poloniexfutures extends poloniexfuturesRest {
242
242
  * @method
243
243
  * @name poloniexfutures#watchTicker
244
244
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
245
- * @see https://futures-docs.poloniex.com/#get-real-time-symbol-ticker
245
+ * @see https://api-docs.poloniex.com/futures/websocket/public#get-real-time-symbol-ticker
246
246
  * @param {string} symbol unified symbol of the market to fetch the ticker for
247
247
  * @param {object} [params] extra parameters specific to the exchange API endpoint
248
248
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
@@ -257,7 +257,7 @@ export default class poloniexfutures extends poloniexfuturesRest {
257
257
  * @method
258
258
  * @name poloniexfutures#watchTrades
259
259
  * @description get the list of most recent trades for a particular symbol
260
- * @see https://futures-docs.poloniex.com/#full-matching-engine-data-level-3
260
+ * @see https://api-docs.poloniex.com/futures/websocket/public#full-matching-engine-datalevel-3
261
261
  * @param {string} symbol unified symbol of the market to fetch trades for
262
262
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
263
263
  * @param {int} [limit] the maximum amount of trades to fetch
@@ -280,7 +280,7 @@ export default class poloniexfutures extends poloniexfuturesRest {
280
280
  * @method
281
281
  * @name poloniexfutures#watchOrderBook
282
282
  * @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
283
- * @see https://futures-docs.poloniex.com/#level-2-market-data
283
+ * @see https://api-docs.poloniex.com/futures/websocket/public#level-2-market-data
284
284
  * @param {string} symbol unified symbol of the market to fetch the order book for
285
285
  * @param {int} [limit] not used by poloniexfutures watchOrderBook
286
286
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -310,7 +310,7 @@ export default class poloniexfutures extends poloniexfuturesRest {
310
310
  * @method
311
311
  * @name poloniexfutures#watchOrders
312
312
  * @description watches information on multiple orders made by the user
313
- * @see https://futures-docs.poloniex.com/#private-messages
313
+ * @see https://api-docs.poloniex.com/futures/websocket/user-messages#private-messages
314
314
  * @param {string} symbol filter by unified market symbol of the market orders were made in
315
315
  * @param {int} [since] the earliest time in ms to fetch orders for
316
316
  * @param {int} [limit] the maximum number of order structures to retrieve
@@ -337,7 +337,7 @@ export default class poloniexfutures extends poloniexfuturesRest {
337
337
  * @method
338
338
  * @name poloniexfutures#watchBalance
339
339
  * @description watch balance and get the amount of funds available for trading or funds locked in orders
340
- * @see https://futures-docs.poloniex.com/#account-balance-events
340
+ * @see https://api-docs.poloniex.com/futures/websocket/user-messages#account-balance-events
341
341
  * @param {object} [params] extra parameters specific to the exchange API endpoint
342
342
  * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
343
343
  */
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, TransferEntries, int, FundingHistory } 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 } from './base/types.js';
3
3
  /**
4
4
  * @class woo
5
5
  * @augments Exchange
@@ -87,7 +87,7 @@ export default class woo extends Exchange {
87
87
  parseTransaction(transaction: Dict, currency?: Currency): Transaction;
88
88
  parseTransactionStatus(status: Str): string;
89
89
  transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?: {}): Promise<TransferEntry>;
90
- fetchTransfers(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<TransferEntries>;
90
+ fetchTransfers(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<TransferEntry[]>;
91
91
  parseTransfer(transfer: Dict, currency?: Currency): TransferEntry;
92
92
  parseTransferStatus(status: Str): Str;
93
93
  withdraw(code: string, amount: number, address: string, tag?: any, params?: {}): Promise<Transaction>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccxt",
3
- "version": "4.3.68",
3
+ "version": "4.3.69",
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",