ccxt 4.4.82 → 4.4.85

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 (103) hide show
  1. package/README.md +5 -7
  2. package/dist/ccxt.browser.min.js +7 -7
  3. package/dist/cjs/ccxt.js +1 -9
  4. package/dist/cjs/src/apex.js +2 -1
  5. package/dist/cjs/src/base/Exchange.js +15 -2
  6. package/dist/cjs/src/bitget.js +1 -3
  7. package/dist/cjs/src/bitrue.js +14 -35
  8. package/dist/cjs/src/bitso.js +33 -0
  9. package/dist/cjs/src/bitstamp.js +33 -0
  10. package/dist/cjs/src/blofin.js +154 -13
  11. package/dist/cjs/src/btcbox.js +25 -5
  12. package/dist/cjs/src/bybit.js +16 -40
  13. package/dist/cjs/src/cex.js +2 -4
  14. package/dist/cjs/src/coinbase.js +56 -40
  15. package/dist/cjs/src/coinbaseexchange.js +142 -32
  16. package/dist/cjs/src/coincatch.js +14 -67
  17. package/dist/cjs/src/coinex.js +29 -32
  18. package/dist/cjs/src/coinlist.js +16 -15
  19. package/dist/cjs/src/coinmetro.js +22 -11
  20. package/dist/cjs/src/coinone.js +8 -10
  21. package/dist/cjs/src/coinsph.js +126 -1
  22. package/dist/cjs/src/cryptocom.js +111 -1
  23. package/dist/cjs/src/cryptomus.js +43 -89
  24. package/dist/cjs/src/delta.js +76 -36
  25. package/dist/cjs/src/derive.js +46 -10
  26. package/dist/cjs/src/ellipx.js +175 -79
  27. package/dist/cjs/src/gate.js +1 -1
  28. package/dist/cjs/src/gemini.js +3 -5
  29. package/dist/cjs/src/hitbtc.js +56 -69
  30. package/dist/cjs/src/hyperliquid.js +2 -2
  31. package/dist/cjs/src/kraken.js +29 -24
  32. package/dist/cjs/src/kucoinfutures.js +6 -0
  33. package/dist/cjs/src/lbank.js +1 -1
  34. package/dist/cjs/src/paradex.js +119 -3
  35. package/dist/cjs/src/pro/binance.js +31 -33
  36. package/dist/cjs/src/pro/bithumb.js +5 -3
  37. package/dist/cjs/src/pro/kraken.js +289 -79
  38. package/dist/cjs/src/pro/mexc.js +302 -8
  39. package/dist/cjs/src/pro/poloniex.js +6 -2
  40. package/examples/js/cli.js +127 -13
  41. package/js/ccxt.d.ts +2 -11
  42. package/js/ccxt.js +2 -8
  43. package/js/src/abstract/blofin.d.ts +8 -0
  44. package/js/src/abstract/btcbox.d.ts +1 -0
  45. package/js/src/apex.js +2 -1
  46. package/js/src/base/Exchange.d.ts +15 -1
  47. package/js/src/base/Exchange.js +15 -2
  48. package/js/src/base/types.d.ts +3 -0
  49. package/js/src/bitget.js +1 -3
  50. package/js/src/bitrue.js +14 -35
  51. package/js/src/bitso.js +33 -0
  52. package/js/src/bitstamp.js +33 -0
  53. package/js/src/blofin.d.ts +42 -2
  54. package/js/src/blofin.js +154 -13
  55. package/js/src/btcbox.js +25 -5
  56. package/js/src/bybit.js +16 -40
  57. package/js/src/cex.js +2 -4
  58. package/js/src/coinbase.js +56 -40
  59. package/js/src/coinbaseexchange.js +142 -32
  60. package/js/src/coincatch.js +14 -67
  61. package/js/src/coinex.js +28 -29
  62. package/js/src/coinlist.js +16 -15
  63. package/js/src/coinmetro.js +22 -11
  64. package/js/src/coinone.js +8 -10
  65. package/js/src/coinsph.d.ts +10 -1
  66. package/js/src/coinsph.js +126 -1
  67. package/js/src/cryptocom.d.ts +10 -1
  68. package/js/src/cryptocom.js +111 -1
  69. package/js/src/cryptomus.js +43 -89
  70. package/js/src/delta.js +76 -36
  71. package/js/src/derive.js +46 -10
  72. package/js/src/ellipx.d.ts +2 -3
  73. package/js/src/ellipx.js +175 -80
  74. package/js/src/gate.js +1 -1
  75. package/js/src/gemini.js +3 -5
  76. package/js/src/hitbtc.js +56 -69
  77. package/js/src/hyperliquid.js +2 -2
  78. package/js/src/kraken.js +29 -24
  79. package/js/src/kucoinfutures.d.ts +1 -0
  80. package/js/src/kucoinfutures.js +6 -0
  81. package/js/src/lbank.js +1 -1
  82. package/js/src/paradex.d.ts +12 -1
  83. package/js/src/paradex.js +119 -3
  84. package/js/src/pro/binance.d.ts +26 -26
  85. package/js/src/pro/binance.js +31 -33
  86. package/js/src/pro/bithumb.js +5 -3
  87. package/js/src/pro/kraken.d.ts +7 -6
  88. package/js/src/pro/kraken.js +290 -80
  89. package/js/src/pro/mexc.d.ts +58 -0
  90. package/js/src/pro/mexc.js +302 -8
  91. package/js/src/pro/poloniex.d.ts +1 -1
  92. package/js/src/pro/poloniex.js +6 -2
  93. package/package.json +1 -1
  94. package/js/src/abstract/bl3p.d.ts +0 -22
  95. package/js/src/abstract/bl3p.js +0 -11
  96. package/js/src/abstract/idex.d.ts +0 -29
  97. package/js/src/abstract/idex.js +0 -11
  98. package/js/src/bl3p.d.ts +0 -116
  99. package/js/src/bl3p.js +0 -552
  100. package/js/src/idex.d.ts +0 -312
  101. package/js/src/idex.js +0 -1961
  102. package/js/src/pro/idex.d.ts +0 -81
  103. package/js/src/pro/idex.js +0 -720
package/js/src/idex.d.ts DELETED
@@ -1,312 +0,0 @@
1
- import Exchange from './abstract/idex.js';
2
- import type { Balances, Currencies, Currency, Dict, Int, Market, Num, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, TradingFees, Transaction, int, DepositAddress } from './base/types.js';
3
- /**
4
- * @class idex
5
- * @augments Exchange
6
- */
7
- export default class idex extends Exchange {
8
- describe(): any;
9
- priceToPrecision(symbol: any, price: any): string;
10
- /**
11
- * @method
12
- * @name idex#fetchMarkets
13
- * @description retrieves data on all markets for idex
14
- * @see https://api-docs-v3.idex.io/#get-markets
15
- * @param {object} [params] extra parameters specific to the exchange API endpoint
16
- * @returns {object[]} an array of objects representing market data
17
- */
18
- fetchMarkets(params?: {}): Promise<Market[]>;
19
- /**
20
- * @method
21
- * @name idex#fetchTicker
22
- * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
23
- * @see https://api-docs-v3.idex.io/#get-tickers
24
- * @param {string} symbol unified symbol of the market to fetch the ticker for
25
- * @param {object} [params] extra parameters specific to the exchange API endpoint
26
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
27
- */
28
- fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
29
- /**
30
- * @method
31
- * @name idex#fetchTickers
32
- * @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
33
- * @see https://api-docs-v3.idex.io/#get-tickers
34
- * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
35
- * @param {object} [params] extra parameters specific to the exchange API endpoint
36
- * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
37
- */
38
- fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
39
- parseTicker(ticker: Dict, market?: Market): Ticker;
40
- /**
41
- * @method
42
- * @name idex#fetchOHLCV
43
- * @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
44
- * @see https://api-docs-v3.idex.io/#get-candles
45
- * @param {string} symbol unified symbol of the market to fetch OHLCV data for
46
- * @param {string} timeframe the length of time each candle represents
47
- * @param {int} [since] timestamp in ms of the earliest candle to fetch
48
- * @param {int} [limit] the maximum amount of candles to fetch
49
- * @param {object} [params] extra parameters specific to the exchange API endpoint
50
- * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
51
- */
52
- fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
53
- parseOHLCV(ohlcv: any, market?: Market): OHLCV;
54
- /**
55
- * @method
56
- * @name idex#fetchTrades
57
- * @description get the list of most recent trades for a particular symbol
58
- * @see https://api-docs-v3.idex.io/#get-trades
59
- * @param {string} symbol unified symbol of the market to fetch trades for
60
- * @param {int} [since] timestamp in ms of the earliest trade to fetch
61
- * @param {int} [limit] the maximum amount of trades to fetch
62
- * @param {object} [params] extra parameters specific to the exchange API endpoint
63
- * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
64
- */
65
- fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
66
- parseTrade(trade: Dict, market?: Market): Trade;
67
- /**
68
- * @method
69
- * @name idex#fetchTradingFees
70
- * @description fetch the trading fees for multiple markets
71
- * @see https://api-docs-v3.idex.io/#get-api-account
72
- * @param {object} [params] extra parameters specific to the exchange API endpoint
73
- * @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
74
- */
75
- fetchTradingFees(params?: {}): Promise<TradingFees>;
76
- /**
77
- * @method
78
- * @name idex#fetchOrderBook
79
- * @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
80
- * @see https://api-docs-v3.idex.io/#get-order-books
81
- * @param {string} symbol unified symbol of the market to fetch the order book for
82
- * @param {int} [limit] the maximum amount of order book entries to return
83
- * @param {object} [params] extra parameters specific to the exchange API endpoint
84
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
85
- */
86
- fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
87
- parseSide(book: any, side: any): any[];
88
- /**
89
- * @method
90
- * @name idex#fetchCurrencies
91
- * @description fetches all available currencies on an exchange
92
- * @see https://api-docs-v3.idex.io/#get-assets
93
- * @param {object} [params] extra parameters specific to the exchange API endpoint
94
- * @returns {object} an associative dictionary of currencies
95
- */
96
- fetchCurrencies(params?: {}): Promise<Currencies>;
97
- parseBalance(response: any): Balances;
98
- /**
99
- * @method
100
- * @name idex#fetchBalance
101
- * @description query for balance and get the amount of funds available for trading or funds locked in orders
102
- * @see https://api-docs-v3.idex.io/#get-balances
103
- * @param {object} [params] extra parameters specific to the exchange API endpoint
104
- * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
105
- */
106
- fetchBalance(params?: {}): Promise<Balances>;
107
- /**
108
- * @method
109
- * @name idex#fetchMyTrades
110
- * @description fetch all trades made by the user
111
- * @see https://api-docs-v3.idex.io/#get-fills
112
- * @param {string} symbol unified market symbol
113
- * @param {int} [since] the earliest time in ms to fetch trades for
114
- * @param {int} [limit] the maximum number of trades structures to retrieve
115
- * @param {object} [params] extra parameters specific to the exchange API endpoint
116
- * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
117
- */
118
- fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
119
- /**
120
- * @method
121
- * @name idex#fetchOrder
122
- * @description fetches information on an order made by the user
123
- * @see https://api-docs-v3.idex.io/#get-orders
124
- * @param {string} id order id
125
- * @param {string} symbol unified symbol of the market the order was made in
126
- * @param {object} [params] extra parameters specific to the exchange API endpoint
127
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
128
- */
129
- fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
130
- /**
131
- * @method
132
- * @name idex#fetchOpenOrders
133
- * @description fetch all unfilled currently open orders
134
- * @see https://api-docs-v3.idex.io/#get-orders
135
- * @param {string} symbol unified market symbol
136
- * @param {int} [since] the earliest time in ms to fetch open orders for
137
- * @param {int} [limit] the maximum number of open orders structures to retrieve
138
- * @param {object} [params] extra parameters specific to the exchange API endpoint
139
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
140
- */
141
- fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
142
- /**
143
- * @method
144
- * @name idex#fetchClosedOrders
145
- * @description fetches information on multiple closed orders made by the user
146
- * @see https://api-docs-v3.idex.io/#get-orders
147
- * @param {string} symbol unified market symbol of the market orders were made in
148
- * @param {int} [since] the earliest time in ms to fetch orders for
149
- * @param {int} [limit] the maximum number of order structures to retrieve
150
- * @param {object} [params] extra parameters specific to the exchange API endpoint
151
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
152
- */
153
- fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
154
- fetchOrdersHelper(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
155
- parseOrderStatus(status: Str): string;
156
- parseOrder(order: Dict, market?: Market): Order;
157
- associateWallet(walletAddress: any, params?: {}): Promise<any>;
158
- /**
159
- * @method
160
- * @name idex#createOrder
161
- * @description create a trade order, https://docs.idex.io/#create-order
162
- * @see https://api-docs-v3.idex.io/#create-order
163
- * @param {string} symbol unified symbol of the market to create an order in
164
- * @param {string} type 'market' or 'limit'
165
- * @param {string} side 'buy' or 'sell'
166
- * @param {float} amount how much of currency you want to trade in units of base currency
167
- * @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
168
- * @param {object} [params] extra parameters specific to the exchange API endpoint
169
- * @param {bool} [params.test] set to true to test an order, no order will be created but the request will be validated
170
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
171
- */
172
- createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
173
- /**
174
- * @method
175
- * @name idex#withdraw
176
- * @description make a withdrawal
177
- * @see https://api-docs-v3.idex.io/#withdraw-funds
178
- * @param {string} code unified currency code
179
- * @param {float} amount the amount to withdraw
180
- * @param {string} address the address to withdraw to
181
- * @param {string} tag
182
- * @param {object} [params] extra parameters specific to the exchange API endpoint
183
- * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
184
- */
185
- withdraw(code: string, amount: number, address: string, tag?: any, params?: {}): Promise<Transaction>;
186
- /**
187
- * @method
188
- * @name idex#cancelAllOrders
189
- * @description cancel all open orders
190
- * @see https://api-docs-v3.idex.io/#cancel-order
191
- * @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
192
- * @param {object} [params] extra parameters specific to the exchange API endpoint
193
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
194
- */
195
- cancelAllOrders(symbol?: Str, params?: {}): Promise<Order[]>;
196
- /**
197
- * @method
198
- * @name idex#cancelOrder
199
- * @description cancels an open order
200
- * @see https://api-docs-v3.idex.io/#cancel-order
201
- * @param {string} id order id
202
- * @param {string} symbol unified symbol of the market the order was made in
203
- * @param {object} [params] extra parameters specific to the exchange API endpoint
204
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
205
- */
206
- cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
207
- handleErrors(code: int, reason: string, url: string, method: string, headers: Dict, body: string, response: any, requestHeaders: any, requestBody: any): any;
208
- /**
209
- * @method
210
- * @name idex#fetchDeposit
211
- * @description fetch information on a deposit
212
- * @see https://api-docs-v3.idex.io/#get-deposits
213
- * @param {string} id deposit id
214
- * @param {string} code not used by idex fetchDeposit ()
215
- * @param {object} [params] extra parameters specific to the exchange API endpoint
216
- * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
217
- */
218
- fetchDeposit(id: string, code?: Str, params?: {}): Promise<Transaction>;
219
- /**
220
- * @method
221
- * @name idex#fetchDeposits
222
- * @description fetch all deposits made to an account
223
- * @see https://api-docs-v3.idex.io/#get-deposits
224
- * @param {string} code unified currency code
225
- * @param {int} [since] the earliest time in ms to fetch deposits for
226
- * @param {int} [limit] the maximum number of deposits structures to retrieve
227
- * @param {object} [params] extra parameters specific to the exchange API endpoint
228
- * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
229
- */
230
- fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
231
- /**
232
- * @method
233
- * @name idex#fetchStatus
234
- * @description the latest known information on the availability of the exchange API
235
- * @see https://api-docs-v3.idex.io/#get-ping
236
- * @param {object} [params] extra parameters specific to the exchange API endpoint
237
- * @returns {object} a [status structure]{@link https://docs.ccxt.com/#/?id=exchange-status-structure}
238
- */
239
- fetchStatus(params?: {}): Promise<{
240
- status: string;
241
- updated: any;
242
- eta: any;
243
- url: any;
244
- info: any;
245
- }>;
246
- /**
247
- * @method
248
- * @name idex#fetchTime
249
- * @description fetches the current integer timestamp in milliseconds from the exchange server
250
- * @see https://api-docs-v3.idex.io/#get-time
251
- * @param {object} [params] extra parameters specific to the exchange API endpoint
252
- * @returns {int} the current integer timestamp in milliseconds from the exchange server
253
- */
254
- fetchTime(params?: {}): Promise<Int>;
255
- /**
256
- * @method
257
- * @name idex#fetchWithdrawal
258
- * @description fetch data on a currency withdrawal via the withdrawal id
259
- * @see https://api-docs-v3.idex.io/#get-withdrawals
260
- * @param {string} id withdrawal id
261
- * @param {string} code not used by idex.fetchWithdrawal
262
- * @param {object} [params] extra parameters specific to the exchange API endpoint
263
- * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
264
- */
265
- fetchWithdrawal(id: string, code?: Str, params?: {}): Promise<Transaction>;
266
- /**
267
- * @method
268
- * @name idex#fetchWithdrawals
269
- * @description fetch all withdrawals made from an account
270
- * @see https://api-docs-v3.idex.io/#get-withdrawals
271
- * @param {string} code unified currency code
272
- * @param {int} [since] the earliest time in ms to fetch withdrawals for
273
- * @param {int} [limit] the maximum number of withdrawals structures to retrieve
274
- * @param {object} [params] extra parameters specific to the exchange API endpoint
275
- * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
276
- */
277
- fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
278
- fetchTransactionsHelper(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
279
- parseTransactionStatus(status: Str): string;
280
- parseTransaction(transaction: Dict, currency?: Currency): Transaction;
281
- calculateRateLimiterCost(api: any, method: any, path: any, params: any, config?: {}): any;
282
- /**
283
- * @method
284
- * @name idex#fetchDepositAddress
285
- * @description fetch the Polygon address of the wallet
286
- * @see https://api-docs-v3.idex.io/#get-wallets
287
- * @param {string} code not used by idex
288
- * @param {object} [params] extra parameters specific to the exchange API endpoint
289
- * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
290
- */
291
- fetchDepositAddress(code: Str, params?: {}): Promise<DepositAddress>;
292
- parseDepositAddress(depositAddress: any, currency?: Currency): DepositAddress;
293
- sign(path: any, api?: string, method?: string, params?: {}, headers?: any, body?: any): {
294
- url: string;
295
- method: string;
296
- body: any;
297
- headers: any;
298
- };
299
- remove0xPrefix(hexData: any): any;
300
- hashMessage(message: any): string;
301
- signHash(hash: any, privateKey: any): {
302
- r: string;
303
- s: string;
304
- v: number;
305
- };
306
- signMessage(message: any, privateKey: any): {
307
- r: string;
308
- s: string;
309
- v: number;
310
- };
311
- signMessageString(message: any, privateKey: any): string;
312
- }