ccxt 4.4.74 → 4.4.77

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 (65) 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/base/Exchange.js +16 -9
  5. package/dist/cjs/src/binance.js +43 -219
  6. package/dist/cjs/src/bitget.js +1 -1
  7. package/dist/cjs/src/bitopro.js +37 -0
  8. package/dist/cjs/src/bitrue.js +48 -0
  9. package/dist/cjs/src/coinex.js +3 -0
  10. package/dist/cjs/src/coinlist.js +90 -1
  11. package/dist/cjs/src/okx.js +47 -33
  12. package/dist/cjs/src/paradex.js +3 -12
  13. package/dist/cjs/src/pro/hyperliquid.js +1 -1
  14. package/dist/cjs/src/upbit.js +64 -46
  15. package/dist/cjs/src/xt.js +122 -4
  16. package/js/ccxt.d.ts +1 -1
  17. package/js/ccxt.js +1 -1
  18. package/js/src/abstract/coinlist.d.ts +3 -0
  19. package/js/src/abstract/myokx.d.ts +4 -0
  20. package/js/src/abstract/okx.d.ts +4 -0
  21. package/js/src/abstract/upbit.d.ts +15 -1
  22. package/js/src/abstract/xt.d.ts +3 -0
  23. package/js/src/base/Exchange.d.ts +1 -0
  24. package/js/src/base/Exchange.js +16 -9
  25. package/js/src/binance.d.ts +2 -0
  26. package/js/src/binance.js +43 -219
  27. package/js/src/bitget.js +1 -1
  28. package/js/src/bitopro.js +37 -0
  29. package/js/src/bitrue.js +48 -0
  30. package/js/src/coinex.js +3 -0
  31. package/js/src/coinlist.d.ts +12 -1
  32. package/js/src/coinlist.js +90 -1
  33. package/js/src/okx.js +47 -33
  34. package/js/src/paradex.js +3 -12
  35. package/js/src/pro/hyperliquid.js +1 -1
  36. package/js/src/upbit.js +64 -46
  37. package/js/src/xt.d.ts +19 -0
  38. package/js/src/xt.js +122 -4
  39. package/package.json +1 -1
  40. package/js/src/abstract/bitcoincom.d.ts +0 -118
  41. package/js/src/abstract/bitcoincom.js +0 -11
  42. package/js/src/abstract/bitfinex1.d.ts +0 -72
  43. package/js/src/abstract/bitfinex1.js +0 -11
  44. package/js/src/abstract/bitpanda.d.ts +0 -26
  45. package/js/src/abstract/bitpanda.js +0 -5
  46. package/js/src/abstract/poloniexfutures.d.ts +0 -51
  47. package/js/src/abstract/poloniexfutures.js +0 -11
  48. package/js/src/abstract/wazirx.d.ts +0 -33
  49. package/js/src/abstract/wazirx.js +0 -11
  50. package/js/src/bitcoincom.d.ts +0 -4
  51. package/js/src/bitcoincom.js +0 -18
  52. package/js/src/bitpanda.d.ts +0 -4
  53. package/js/src/bitpanda.js +0 -17
  54. package/js/src/poloniexfutures.d.ts +0 -321
  55. package/js/src/poloniexfutures.js +0 -1941
  56. package/js/src/pro/bitcoincom.d.ts +0 -4
  57. package/js/src/pro/bitcoincom.js +0 -34
  58. package/js/src/pro/bitpanda.d.ts +0 -4
  59. package/js/src/pro/bitpanda.js +0 -17
  60. package/js/src/pro/poloniexfutures.d.ts +0 -108
  61. package/js/src/pro/poloniexfutures.js +0 -1042
  62. package/js/src/pro/wazirx.d.ts +0 -102
  63. package/js/src/pro/wazirx.js +0 -784
  64. package/js/src/static_dependencies/starknet/utils/json.d.ts +0 -24
  65. package/js/src/static_dependencies/starknet/utils/json.js +0 -43
@@ -1,4 +0,0 @@
1
- import hitbtc from './hitbtc.js';
2
- export default class bitcoincom extends hitbtc {
3
- describe(): any;
4
- }
@@ -1,34 +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 hitbtc from './hitbtc.js';
9
- import hitbtcRest from '../hitbtc.js';
10
- import bitcoincomRest from '../bitcoincom.js';
11
- // ---------------------------------------------------------------------------
12
- export default class bitcoincom extends hitbtc {
13
- describe() {
14
- // eslint-disable-next-line new-cap
15
- const describeExtended = this.getDescribeForExtendedWsExchange(new bitcoincomRest(), new hitbtcRest(), super.describe());
16
- return this.deepExtend(describeExtended, {
17
- 'id': 'bitcoincom',
18
- 'name': 'bitcoin.com',
19
- 'countries': ['KN'],
20
- 'urls': {
21
- 'logo': 'https://user-images.githubusercontent.com/1294454/97296144-514fa300-1861-11eb-952b-3d55d492200b.jpg',
22
- 'api': {
23
- 'ws': 'wss://api.fmfw.io/api/2/ws',
24
- },
25
- },
26
- 'fees': {
27
- 'trading': {
28
- 'maker': this.parseNumber('0.0015'),
29
- 'taker': this.parseNumber('0.002'),
30
- },
31
- },
32
- });
33
- }
34
- }
@@ -1,4 +0,0 @@
1
- import onetrading from './onetrading.js';
2
- export default class bitpanda extends onetrading {
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 onetrading from './onetrading.js';
9
- // ---------------------------------------------------------------------------
10
- export default class bitpanda extends onetrading {
11
- describe() {
12
- return this.deepExtend(super.describe(), {
13
- 'alias': true,
14
- 'id': 'bitpanda',
15
- });
16
- }
17
- }
@@ -1,108 +0,0 @@
1
- import poloniexfuturesRest from '../poloniexfutures.js';
2
- import type { Int, Str, OrderBook, Order, Trade, Ticker, Balances } from '../base/types.js';
3
- import Client from '../base/ws/Client.js';
4
- export default class poloniexfutures extends poloniexfuturesRest {
5
- describe(): any;
6
- negotiate(privateChannel: any, params?: {}): Promise<any>;
7
- negotiateHelper(privateChannel: any, params?: {}): Promise<string>;
8
- requestId(): any;
9
- /**
10
- * @ignore
11
- * @method
12
- * @description Connects to a websocket channel
13
- * @param {string} name name of the channel and suscriptionHash
14
- * @param {bool} isPrivate true for the authenticated url, false for the public url
15
- * @param {string} symbol is required for all public channels, not required for private channels (except position)
16
- * @param {object} subscription subscription parameters
17
- * @param {object} [params] extra parameters specific to the poloniex api
18
- * @returns {object} data from the websocket stream
19
- */
20
- subscribe(name: string, isPrivate: boolean, symbol?: Str, subscription?: any, params?: {}): Promise<any>;
21
- onClose(client: any, error: any): void;
22
- stream(url: any, subscriptionHash: any): Promise<string>;
23
- handleOrderBookSubscription(client: Client, message: any, subscription: any): void;
24
- handleSubscriptionStatus(client: Client, message: any): any;
25
- handleNewStream(client: Client, message: any, subscription: any): void;
26
- /**
27
- * @method
28
- * @name poloniexfutures#watchTicker
29
- * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
30
- * @see https://api-docs.poloniex.com/futures/websocket/public#get-real-time-symbol-ticker
31
- * @param {string} symbol unified symbol of the market to fetch the ticker for
32
- * @param {object} [params] extra parameters specific to the exchange API endpoint
33
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
34
- */
35
- watchTicker(symbol: string, params?: {}): Promise<Ticker>;
36
- /**
37
- * @method
38
- * @name poloniexfutures#watchTrades
39
- * @description get the list of most recent trades for a particular symbol
40
- * @see https://api-docs.poloniex.com/futures/websocket/public#full-matching-engine-datalevel-3
41
- * @param {string} symbol unified symbol of the market to fetch trades for
42
- * @param {int} [since] timestamp in ms of the earliest trade to fetch
43
- * @param {int} [limit] the maximum amount of trades to fetch
44
- * @param {object} [params] extra parameters specific to the exchange API endpoint
45
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
46
- */
47
- watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
48
- /**
49
- * @method
50
- * @name poloniexfutures#watchOrderBook
51
- * @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
52
- * @see https://api-docs.poloniex.com/futures/websocket/public#level-2-market-data
53
- * @param {string} symbol unified symbol of the market to fetch the order book for
54
- * @param {int} [limit] not used by poloniexfutures watchOrderBook
55
- * @param {object} [params] extra parameters specific to the exchange API endpoint
56
- * @param {string} [params.method] the method to use. Defaults to /contractMarket/level2 can also be /contractMarket/level3v2 to receive the raw stream of orders
57
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
58
- */
59
- watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
60
- /**
61
- * @method
62
- * @name poloniexfutures#watchOrders
63
- * @description watches information on multiple orders made by the user
64
- * @see https://api-docs.poloniex.com/futures/websocket/user-messages#private-messages
65
- * @param {string} symbol filter by unified market symbol of the market orders were made in
66
- * @param {int} [since] the earliest time in ms to fetch orders for
67
- * @param {int} [limit] the maximum number of order structures to retrieve
68
- * @param {object} [params] extra parameters specific to the exchange API endpoint
69
- * @param {string} [params.method] the method to use will default to /contractMarket/tradeOrders. Set to /contractMarket/advancedOrders to watch stop orders
70
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
71
- */
72
- watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
73
- /**
74
- * @method
75
- * @name poloniexfutures#watchBalance
76
- * @description watch balance and get the amount of funds available for trading or funds locked in orders
77
- * @see https://api-docs.poloniex.com/futures/websocket/user-messages#account-balance-events
78
- * @param {object} [params] extra parameters specific to the exchange API endpoint
79
- * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
80
- */
81
- watchBalance(params?: {}): Promise<Balances>;
82
- handleTrade(client: Client, message: any): any;
83
- parseWsTrade(trade: any, market?: any): Trade;
84
- parseWsOrderTrade(trade: any, market?: any): Trade;
85
- handleOrder(client: Client, message: any): any;
86
- parseOrderStatus(status: string, type: string): string;
87
- parseWsOrder(order: any, market?: any): Order;
88
- handleTicker(client: Client, message: any): any;
89
- handleL3OrderBook(client: Client, message: any): void;
90
- handleLevel2(client: Client, message: any): void;
91
- handleL2OrderBook(client: Client, message: any): void;
92
- handeL2Snapshot(client: Client, message: any): void;
93
- getSymbolFromTopic(topic: string): string;
94
- getCacheIndex(orderbook: any, cache: any): any;
95
- handleDelta(orderbook: any, delta: any): void;
96
- handleBalance(client: Client, message: any): any;
97
- parseWsBalance(response: any): Balances;
98
- handleSystemStatus(client: Client, message: any): any;
99
- handleSubject(client: Client, message: any): void;
100
- ping(client: Client): {
101
- id: any;
102
- type: string;
103
- };
104
- handlePong(client: Client, message: any): any;
105
- handleErrorMessage(client: Client, message: any): void;
106
- handleMessage(client: Client, message: any): void;
107
- handleAuthenticate(client: any, message: any): any;
108
- }