ccxt 4.3.67 → 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 (63) 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 +364 -356
  5. package/dist/cjs/src/base/functions/type.js +2 -2
  6. package/dist/cjs/src/bingx.js +463 -217
  7. package/dist/cjs/src/bitget.js +4 -2
  8. package/dist/cjs/src/btcbox.js +2 -1
  9. package/dist/cjs/src/coinbaseinternational.js +79 -1
  10. package/dist/cjs/src/hyperliquid.js +0 -3
  11. package/dist/cjs/src/kucoin.js +12 -5
  12. package/dist/cjs/src/oxfun.js +2 -2
  13. package/dist/cjs/src/poloniex.js +33 -33
  14. package/dist/cjs/src/poloniexfutures.js +26 -26
  15. package/dist/cjs/src/pro/krakenfutures.js +7 -6
  16. package/dist/cjs/src/pro/poloniex.js +13 -13
  17. package/dist/cjs/src/pro/poloniexfutures.js +5 -5
  18. package/js/ccxt.d.ts +3 -3
  19. package/js/ccxt.js +1 -1
  20. package/js/src/base/Exchange.d.ts +107 -82
  21. package/js/src/base/Exchange.js +364 -356
  22. package/js/src/base/functions/type.js +2 -2
  23. package/js/src/base/types.d.ts +0 -2
  24. package/js/src/binance.d.ts +2 -2
  25. package/js/src/bingx.d.ts +4 -2
  26. package/js/src/bingx.js +463 -217
  27. package/js/src/bitget.d.ts +2 -2
  28. package/js/src/bitget.js +4 -2
  29. package/js/src/bitmart.d.ts +2 -2
  30. package/js/src/bitrue.d.ts +2 -2
  31. package/js/src/btcbox.js +2 -1
  32. package/js/src/bybit.d.ts +2 -2
  33. package/js/src/coinbaseinternational.d.ts +11 -0
  34. package/js/src/coinbaseinternational.js +79 -1
  35. package/js/src/coinex.d.ts +2 -2
  36. package/js/src/coinlist.d.ts +2 -2
  37. package/js/src/deribit.d.ts +2 -2
  38. package/js/src/digifinex.d.ts +2 -2
  39. package/js/src/hyperliquid.js +0 -3
  40. package/js/src/kucoin.js +12 -5
  41. package/js/src/latoken.d.ts +2 -2
  42. package/js/src/mexc.d.ts +2 -2
  43. package/js/src/okx.d.ts +2 -2
  44. package/js/src/oxfun.d.ts +1 -1
  45. package/js/src/oxfun.js +2 -2
  46. package/js/src/phemex.d.ts +2 -2
  47. package/js/src/poloniex.js +33 -33
  48. package/js/src/poloniexfutures.js +26 -26
  49. package/js/src/pro/krakenfutures.js +7 -6
  50. package/js/src/pro/poloniex.js +13 -13
  51. package/js/src/pro/poloniexfutures.js +5 -5
  52. package/js/src/woo.d.ts +2 -2
  53. package/package.json +1 -1
  54. package/js/src/coinbaseprime.d.ts +0 -4
  55. package/js/src/coinbaseprime.js +0 -32
  56. package/js/src/pro/coinbaseprime.d.ts +0 -4
  57. package/js/src/pro/coinbaseprime.js +0 -33
  58. package/js/src/pro/huobipro.d.ts +0 -4
  59. package/js/src/pro/huobipro.js +0 -17
  60. package/js/src/pro/mexc3.d.ts +0 -4
  61. package/js/src/pro/mexc3.js +0 -17
  62. package/js/src/pro/okex.d.ts +0 -4
  63. package/js/src/pro/okex.js +0 -17
@@ -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.67",
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",
@@ -1,4 +0,0 @@
1
- import coinbasepro from './coinbasepro.js';
2
- export default class coinbaseprime extends coinbasepro {
3
- describe(): any;
4
- }
@@ -1,32 +0,0 @@
1
- // ----------------------------------------------------------------------------
2
-
3
- // PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
4
- // https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
5
- // EDIT THE CORRESPONDENT .ts FILE INSTEAD
6
-
7
- // ---------------------------------------------------------------------------
8
- import coinbasepro from './coinbasepro.js';
9
- // ---------------------------------------------------------------------------
10
- export default class coinbaseprime extends coinbasepro {
11
- describe() {
12
- return this.deepExtend(super.describe(), {
13
- 'id': 'coinbaseprime',
14
- 'name': 'Coinbase Prime',
15
- 'pro': true,
16
- 'hostname': 'exchange.coinbase.com',
17
- 'urls': {
18
- 'test': {
19
- 'public': 'https://public.sandbox.exchange.coinbase.com',
20
- 'private': 'https://public.sandbox.exchange.coinbase.com',
21
- },
22
- 'logo': 'https://user-images.githubusercontent.com/1294454/44539184-29f26e00-a70c-11e8-868f-e907fc236a7c.jpg',
23
- 'api': {
24
- 'public': 'https://api.{hostname}',
25
- 'private': 'https://api.{hostname}',
26
- },
27
- 'www': 'https://exchange.coinbase.com',
28
- 'doc': 'https://docs.exchange.coinbase.com',
29
- },
30
- });
31
- }
32
- }
@@ -1,4 +0,0 @@
1
- import coinbasepro from './coinbasepro.js';
2
- export default class coinbaseprime extends coinbasepro {
3
- describe(): any;
4
- }
@@ -1,33 +0,0 @@
1
- // ----------------------------------------------------------------------------
2
-
3
- // PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
4
- // https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
5
- // EDIT THE CORRESPONDENT .ts FILE INSTEAD
6
-
7
- // ---------------------------------------------------------------------------
8
- import coinbasepro from './coinbasepro.js';
9
- // ---------------------------------------------------------------------------
10
- export default class coinbaseprime extends coinbasepro {
11
- describe() {
12
- return this.deepExtend(super.describe(), {
13
- 'id': 'coinbaseprime',
14
- 'name': 'Coinbase Prime',
15
- 'has': {
16
- 'ws': true,
17
- 'watchOrderBook': true,
18
- },
19
- 'urls': {
20
- 'test': {
21
- 'ws': 'wss://ws-feed-public.sandbox.exchange.coinbase.com',
22
- },
23
- 'logo': 'https://user-images.githubusercontent.com/1294454/44539184-29f26e00-a70c-11e8-868f-e907fc236a7c.jpg',
24
- 'api': {
25
- 'ws': 'wss://ws-feed.exchange.coinbase.com',
26
- },
27
- 'www': 'https://exchange.coinbase.com',
28
- 'doc': 'https://docs.exchange.coinbase.com/',
29
- 'fees': 'https://pro.coinbase.com/fees',
30
- },
31
- });
32
- }
33
- }
@@ -1,4 +0,0 @@
1
- import huobi from './huobi.js';
2
- export default class huobipro extends huobi {
3
- describe(): any;
4
- }
@@ -1,17 +0,0 @@
1
- // ----------------------------------------------------------------------------
2
-
3
- // PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
4
- // https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
5
- // EDIT THE CORRESPONDENT .ts FILE INSTEAD
6
-
7
- // ---------------------------------------------------------------------------
8
- import huobi from './huobi.js';
9
- // ---------------------------------------------------------------------------
10
- export default class huobipro extends huobi {
11
- describe() {
12
- return this.deepExtend(super.describe(), {
13
- 'alias': true,
14
- 'id': 'huobipro',
15
- });
16
- }
17
- }
@@ -1,4 +0,0 @@
1
- import mexc from './mexc.js';
2
- export default class mexc3 extends mexc {
3
- describe(): any;
4
- }
@@ -1,17 +0,0 @@
1
- // ----------------------------------------------------------------------------
2
-
3
- // PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
4
- // https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
5
- // EDIT THE CORRESPONDENT .ts FILE INSTEAD
6
-
7
- // ---------------------------------------------------------------------------
8
- import mexc from './mexc.js';
9
- // ---------------------------------------------------------------------------
10
- export default class mexc3 extends mexc {
11
- describe() {
12
- return this.deepExtend(super.describe(), {
13
- 'id': 'mexc3',
14
- 'alias': true,
15
- });
16
- }
17
- }
@@ -1,4 +0,0 @@
1
- import okx from './okx.js';
2
- export default class okex extends okx {
3
- describe(): any;
4
- }
@@ -1,17 +0,0 @@
1
- // ----------------------------------------------------------------------------
2
-
3
- // PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
4
- // https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
5
- // EDIT THE CORRESPONDENT .ts FILE INSTEAD
6
-
7
- // ---------------------------------------------------------------------------
8
- import okx from './okx.js';
9
- // ---------------------------------------------------------------------------
10
- export default class okex extends okx {
11
- describe() {
12
- return this.deepExtend(super.describe(), {
13
- 'alias': true,
14
- 'id': 'okex',
15
- });
16
- }
17
- }