ccxt 4.4.34 → 4.4.35

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 +3 -3
  2. package/dist/ccxt.browser.min.js +3 -3
  3. package/dist/cjs/ccxt.js +1 -1
  4. package/dist/cjs/src/bingx.js +339 -144
  5. package/dist/cjs/src/bitmex.js +1 -1
  6. package/dist/cjs/src/bitrue.js +2 -2
  7. package/dist/cjs/src/btcmarkets.js +3 -3
  8. package/dist/cjs/src/btcturk.js +19 -19
  9. package/dist/cjs/src/gate.js +143 -40
  10. package/dist/cjs/src/hyperliquid.js +73 -11
  11. package/dist/cjs/src/idex.js +3 -3
  12. package/dist/cjs/src/kraken.js +71 -54
  13. package/dist/cjs/src/kucoin.js +1 -1
  14. package/dist/cjs/src/okx.js +1 -0
  15. package/dist/cjs/src/onetrading.js +20 -395
  16. package/dist/cjs/src/pro/bitrue.js +13 -11
  17. package/dist/cjs/src/pro/probit.js +58 -66
  18. package/dist/cjs/src/xt.js +5 -5
  19. package/js/ccxt.d.ts +1 -1
  20. package/js/ccxt.js +1 -1
  21. package/js/src/abstract/bingx.d.ts +1 -0
  22. package/js/src/abstract/bitpanda.d.ts +0 -12
  23. package/js/src/abstract/bitrue.d.ts +3 -3
  24. package/js/src/abstract/okx.d.ts +1 -0
  25. package/js/src/abstract/onetrading.d.ts +0 -12
  26. package/js/src/bingx.d.ts +8 -0
  27. package/js/src/bingx.js +339 -144
  28. package/js/src/bitmex.js +1 -1
  29. package/js/src/bitrue.js +2 -2
  30. package/js/src/btcmarkets.js +3 -3
  31. package/js/src/btcturk.js +19 -19
  32. package/js/src/gate.d.ts +5 -5
  33. package/js/src/gate.js +143 -40
  34. package/js/src/hyperliquid.d.ts +10 -0
  35. package/js/src/hyperliquid.js +75 -13
  36. package/js/src/idex.js +4 -4
  37. package/js/src/kraken.d.ts +11 -8
  38. package/js/src/kraken.js +71 -54
  39. package/js/src/kucoin.js +1 -1
  40. package/js/src/okx.js +1 -0
  41. package/js/src/onetrading.d.ts +15 -67
  42. package/js/src/onetrading.js +20 -395
  43. package/js/src/pro/bitrue.js +13 -11
  44. package/js/src/pro/probit.d.ts +2 -1
  45. package/js/src/pro/probit.js +58 -66
  46. package/js/src/xt.js +5 -5
  47. package/package.json +2 -1
@@ -34,15 +34,6 @@ class probit extends probit$1 {
34
34
  'filter': 'order_books_l2',
35
35
  'interval': 100, // or 500
36
36
  },
37
- 'watchTrades': {
38
- 'filter': 'recent_trades',
39
- },
40
- 'watchTicker': {
41
- 'filter': 'ticker',
42
- },
43
- 'watchOrders': {
44
- 'channel': 'open_order',
45
- },
46
37
  },
47
38
  'streaming': {},
48
39
  });
@@ -58,13 +49,7 @@ class probit extends probit$1 {
58
49
  async watchBalance(params = {}) {
59
50
  await this.authenticate(params);
60
51
  const messageHash = 'balance';
61
- const url = this.urls['api']['ws'];
62
- const subscribe = {
63
- 'type': 'subscribe',
64
- 'channel': 'balance',
65
- };
66
- const request = this.extend(subscribe, params);
67
- return await this.watch(url, messageHash, request, messageHash);
52
+ return await this.subscribePrivate(messageHash, 'balance', params);
68
53
  }
69
54
  handleBalance(client, message) {
70
55
  //
@@ -124,9 +109,8 @@ class probit extends probit$1 {
124
109
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
125
110
  */
126
111
  async watchTicker(symbol, params = {}) {
127
- let filter = undefined;
128
- [filter, params] = this.handleOptionAndParams(params, 'watchTicker', 'filter', 'ticker');
129
- return await this.subscribeOrderBook(symbol, 'ticker', filter, params);
112
+ const channel = 'ticker';
113
+ return await this.subscribePublic('watchTicker', symbol, 'ticker', channel, params);
130
114
  }
131
115
  handleTicker(client, message) {
132
116
  //
@@ -169,9 +153,8 @@ class probit extends probit$1 {
169
153
  * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
170
154
  */
171
155
  async watchTrades(symbol, since = undefined, limit = undefined, params = {}) {
172
- let filter = undefined;
173
- [filter, params] = this.handleOptionAndParams(params, 'watchTrades', 'filter', 'recent_trades');
174
- const trades = await this.subscribeOrderBook(symbol, 'trades', filter, params);
156
+ const channel = 'recent_trades';
157
+ const trades = await this.subscribePublic('watchTrades', symbol, 'trades', channel, params);
175
158
  if (this.newUpdates) {
176
159
  limit = trades.getLimit(symbol, limit);
177
160
  }
@@ -202,10 +185,12 @@ class probit extends probit$1 {
202
185
  const symbol = this.safeSymbol(marketId);
203
186
  const market = this.safeMarket(marketId);
204
187
  const trades = this.safeValue(message, 'recent_trades', []);
205
- const reset = this.safeBool(message, 'reset', false);
188
+ if (this.safeBool(message, 'reset', false)) {
189
+ return; // see comment in handleMessage
190
+ }
206
191
  const messageHash = 'trades:' + symbol;
207
192
  let stored = this.safeValue(this.trades, symbol);
208
- if (stored === undefined || reset) {
193
+ if (stored === undefined) {
209
194
  const limit = this.safeInteger(this.options, 'tradesLimit', 1000);
210
195
  stored = new Cache.ArrayCache(limit);
211
196
  this.trades[symbol] = stored;
@@ -232,20 +217,12 @@ class probit extends probit$1 {
232
217
  async watchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
233
218
  await this.loadMarkets();
234
219
  await this.authenticate(params);
235
- let messageHash = 'myTrades';
220
+ let messageHash = 'trades';
236
221
  if (symbol !== undefined) {
237
- const market = this.market(symbol);
238
- symbol = market['symbol'];
222
+ symbol = this.safeSymbol(symbol);
239
223
  messageHash = messageHash + ':' + symbol;
240
224
  }
241
- const url = this.urls['api']['ws'];
242
- const channel = 'trade_history';
243
- const message = {
244
- 'type': 'subscribe',
245
- 'channel': channel,
246
- };
247
- const request = this.extend(message, params);
248
- const trades = await this.watch(url, messageHash, request, channel);
225
+ const trades = await this.subscribePrivate(messageHash, 'trade_history', params);
249
226
  if (this.newUpdates) {
250
227
  limit = trades.getLimit(symbol, limit);
251
228
  }
@@ -276,10 +253,12 @@ class probit extends probit$1 {
276
253
  if (length === 0) {
277
254
  return;
278
255
  }
279
- const reset = this.safeBool(message, 'reset', false);
280
- const messageHash = 'myTrades';
256
+ if (this.safeBool(message, 'reset', false)) {
257
+ return; // see comment in handleMessage
258
+ }
259
+ const messageHash = 'trades';
281
260
  let stored = this.myTrades;
282
- if ((stored === undefined) || reset) {
261
+ if (stored === undefined) {
283
262
  const limit = this.safeInteger(this.options, 'tradesLimit', 1000);
284
263
  stored = new Cache.ArrayCacheBySymbolById(limit);
285
264
  this.myTrades = stored;
@@ -288,10 +267,18 @@ class probit extends probit$1 {
288
267
  const tradeSymbols = {};
289
268
  for (let j = 0; j < trades.length; j++) {
290
269
  const trade = trades[j];
270
+ // don't include 'executed' state, because it's just blanket state of the trade, emited before actual trade event
271
+ if (this.safeString(trade['info'], 'status') === 'executed') {
272
+ continue;
273
+ }
291
274
  tradeSymbols[trade['symbol']] = true;
292
275
  stored.append(trade);
293
276
  }
294
277
  const unique = Object.keys(tradeSymbols);
278
+ const uniqueLength = unique.length;
279
+ if (uniqueLength === 0) {
280
+ return;
281
+ }
295
282
  for (let i = 0; i < unique.length; i++) {
296
283
  const symbol = unique[i];
297
284
  const symbolSpecificMessageHash = messageHash + ':' + symbol;
@@ -313,21 +300,12 @@ class probit extends probit$1 {
313
300
  */
314
301
  async watchOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
315
302
  await this.authenticate(params);
316
- const url = this.urls['api']['ws'];
317
303
  let messageHash = 'orders';
318
304
  if (symbol !== undefined) {
319
- const market = this.market(symbol);
320
- symbol = market['symbol'];
305
+ symbol = this.safeSymbol(symbol);
321
306
  messageHash = messageHash + ':' + symbol;
322
307
  }
323
- let channel = undefined;
324
- [channel, params] = this.handleOptionAndParams(params, 'watchOrders', 'channel', 'open_order');
325
- const subscribe = {
326
- 'type': 'subscribe',
327
- 'channel': channel,
328
- };
329
- const request = this.extend(subscribe, params);
330
- const orders = await this.watch(url, messageHash, request, channel);
308
+ const orders = await this.subscribePrivate(messageHash, 'open_order', params);
331
309
  if (this.newUpdates) {
332
310
  limit = orders.getLimit(symbol, limit);
333
311
  }
@@ -397,41 +375,51 @@ class probit extends probit$1 {
397
375
  * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
398
376
  */
399
377
  async watchOrderBook(symbol, limit = undefined, params = {}) {
400
- let filter = undefined;
401
- [filter, params] = this.handleOptionAndParams(params, 'watchOrderBook', 'filter', 'order_books');
402
- const orderbook = await this.subscribeOrderBook(symbol, 'orderbook', filter, params);
378
+ let channel = undefined;
379
+ [channel, params] = this.handleOptionAndParams(params, 'watchOrderBook', 'filter', 'order_books');
380
+ const orderbook = await this.subscribePublic('watchOrderBook', symbol, 'orderbook', channel, params);
403
381
  return orderbook.limit();
404
382
  }
405
- async subscribeOrderBook(symbol, messageHash, filter, params = {}) {
383
+ async subscribePrivate(messageHash, channel, params) {
384
+ const url = this.urls['api']['ws'];
385
+ const subscribe = {
386
+ 'type': 'subscribe',
387
+ 'channel': channel,
388
+ };
389
+ const request = this.extend(subscribe, params);
390
+ const subscribeHash = messageHash;
391
+ return await this.watch(url, messageHash, request, subscribeHash);
392
+ }
393
+ async subscribePublic(methodName, symbol, dataType, filter, params = {}) {
406
394
  await this.loadMarkets();
407
395
  const market = this.market(symbol);
408
396
  symbol = market['symbol'];
409
397
  const url = this.urls['api']['ws'];
410
398
  const client = this.client(url);
411
- let interval = undefined;
412
- [interval, params] = this.handleOptionAndParams(params, 'watchOrderBook', 'interval', 100);
413
- const subscriptionHash = 'marketdata:' + symbol;
414
- messageHash = messageHash + ':' + symbol;
399
+ const subscribeHash = 'marketdata:' + symbol;
400
+ const messageHash = dataType + ':' + symbol;
415
401
  let filters = {};
416
- if (subscriptionHash in client.subscriptions) {
402
+ if (subscribeHash in client.subscriptions) {
417
403
  // already subscribed
418
- filters = client.subscriptions[subscriptionHash];
404
+ filters = client.subscriptions[subscribeHash];
419
405
  if (!(filter in filters)) {
420
406
  // resubscribe
421
- delete client.subscriptions[subscriptionHash];
407
+ delete client.subscriptions[subscribeHash];
422
408
  }
423
409
  }
424
410
  filters[filter] = true;
425
411
  const keys = Object.keys(filters);
426
- const message = {
412
+ let interval = undefined;
413
+ [interval, params] = this.handleOptionAndParams(params, methodName, 'interval', 100);
414
+ let request = {
415
+ 'type': 'subscribe',
427
416
  'channel': 'marketdata',
428
- 'interval': interval,
429
417
  'market_id': market['id'],
430
- 'type': 'subscribe',
431
418
  'filter': keys,
419
+ 'interval': interval,
432
420
  };
433
- const request = this.extend(message, params);
434
- return await this.watch(url, messageHash, request, messageHash, filters);
421
+ request = this.extend(request, params);
422
+ return await this.watch(url, messageHash, request, subscribeHash, filters);
435
423
  }
436
424
  handleOrderBook(client, message, orderBook) {
437
425
  //
@@ -510,7 +498,8 @@ class probit extends probit$1 {
510
498
  const result = this.safeString(message, 'result');
511
499
  const future = client.subscriptions['authenticated'];
512
500
  if (result === 'ok') {
513
- future.resolve(true);
501
+ const messageHash = 'authenticated';
502
+ client.resolve(message, messageHash);
514
503
  }
515
504
  else {
516
505
  future.reject(message);
@@ -543,6 +532,9 @@ class probit extends probit$1 {
543
532
  // }
544
533
  // }
545
534
  //
535
+ // Note about 'reset' field
536
+ // 'reset': true field - it happens once after initial subscription, which just returns old items by the moment of subscription (like "fetchMyTrades" does)
537
+ //
546
538
  const errorCode = this.safeString(message, 'errorCode');
547
539
  if (errorCode !== undefined) {
548
540
  this.handleErrorMessage(client, message);
@@ -142,16 +142,16 @@ class xt extends xt$1 {
142
142
  'spot': {
143
143
  'get': {
144
144
  'currencies': 1,
145
- 'depth': 0.05,
146
- 'kline': 0.1,
145
+ 'depth': 10,
146
+ 'kline': 1,
147
147
  'symbol': 1,
148
148
  'ticker': 1,
149
149
  'ticker/book': 1,
150
150
  'ticker/price': 1,
151
151
  'ticker/24h': 1,
152
152
  'time': 1,
153
- 'trade/history': 0.1,
154
- 'trade/recent': 0.1,
153
+ 'trade/history': 1,
154
+ 'trade/recent': 1,
155
155
  'wallet/support/currency': 1,
156
156
  },
157
157
  },
@@ -221,7 +221,7 @@ class xt extends xt$1 {
221
221
  },
222
222
  'post': {
223
223
  'order': 0.2,
224
- 'withdraw': 1,
224
+ 'withdraw': 10,
225
225
  'balance/transfer': 1,
226
226
  'balance/account/transfer': 1,
227
227
  'ws-token': 1,
package/js/ccxt.d.ts CHANGED
@@ -4,7 +4,7 @@ import * as functions from './src/base/functions.js';
4
4
  import * as errors from './src/base/errors.js';
5
5
  import type { Int, int, Str, Strings, Num, Bool, IndexType, OrderSide, OrderType, MarketType, SubType, Dict, NullableDict, List, NullableList, Fee, OHLCV, OHLCVC, implicitReturnType, Market, Currency, Dictionary, MinMax, FeeInterface, TradingFeeInterface, MarketInterface, Trade, Order, OrderBook, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, DepositAddressResponse, FundingRate, FundingRates, Position, BorrowInterest, LeverageTier, LedgerEntry, DepositWithdrawFeeNetwork, DepositWithdrawFee, TransferEntry, CrossBorrowRate, IsolatedBorrowRate, FundingRateHistory, OpenInterest, Liquidation, OrderRequest, CancellationRequest, FundingHistory, MarketMarginModes, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers, LongShortRatio } from './src/base/types.js';
6
6
  import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError } from './src/base/errors.js';
7
- declare const version = "4.4.33";
7
+ declare const version = "4.4.34";
8
8
  import ace from './src/ace.js';
9
9
  import alpaca from './src/alpaca.js';
10
10
  import ascendex from './src/ascendex.js';
package/js/ccxt.js CHANGED
@@ -38,7 +38,7 @@ import * as errors from './src/base/errors.js';
38
38
  import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError } from './src/base/errors.js';
39
39
  //-----------------------------------------------------------------------------
40
40
  // this is updated by vss.js when building
41
- const version = '4.4.34';
41
+ const version = '4.4.35';
42
42
  Exchange.ccxtVersion = version;
43
43
  //-----------------------------------------------------------------------------
44
44
  import ace from './src/ace.js';
@@ -131,6 +131,7 @@ interface Exchange {
131
131
  walletsV1PrivatePostCapitalDepositCreateSubAddress(params?: {}): Promise<implicitReturnType>;
132
132
  subAccountV1PrivateGetList(params?: {}): Promise<implicitReturnType>;
133
133
  subAccountV1PrivateGetAssets(params?: {}): Promise<implicitReturnType>;
134
+ subAccountV1PrivateGetAllAccountBalance(params?: {}): Promise<implicitReturnType>;
134
135
  subAccountV1PrivatePostCreate(params?: {}): Promise<implicitReturnType>;
135
136
  subAccountV1PrivatePostApiKeyCreate(params?: {}): Promise<implicitReturnType>;
136
137
  subAccountV1PrivatePostApiKeyEdit(params?: {}): Promise<implicitReturnType>;
@@ -8,26 +8,14 @@ interface onetrading {
8
8
  publicGetOrderBookInstrumentCode(params?: {}): Promise<implicitReturnType>;
9
9
  publicGetMarketTicker(params?: {}): Promise<implicitReturnType>;
10
10
  publicGetMarketTickerInstrumentCode(params?: {}): Promise<implicitReturnType>;
11
- publicGetPriceTicksInstrumentCode(params?: {}): Promise<implicitReturnType>;
12
11
  publicGetTime(params?: {}): Promise<implicitReturnType>;
13
12
  privateGetAccountBalances(params?: {}): Promise<implicitReturnType>;
14
- privateGetAccountDepositCryptoCurrencyCode(params?: {}): Promise<implicitReturnType>;
15
- privateGetAccountDepositFiatEUR(params?: {}): Promise<implicitReturnType>;
16
- privateGetAccountDeposits(params?: {}): Promise<implicitReturnType>;
17
- privateGetAccountDepositsBitpanda(params?: {}): Promise<implicitReturnType>;
18
- privateGetAccountWithdrawals(params?: {}): Promise<implicitReturnType>;
19
- privateGetAccountWithdrawalsBitpanda(params?: {}): Promise<implicitReturnType>;
20
13
  privateGetAccountFees(params?: {}): Promise<implicitReturnType>;
21
14
  privateGetAccountOrders(params?: {}): Promise<implicitReturnType>;
22
15
  privateGetAccountOrdersOrderId(params?: {}): Promise<implicitReturnType>;
23
16
  privateGetAccountOrdersOrderIdTrades(params?: {}): Promise<implicitReturnType>;
24
17
  privateGetAccountTrades(params?: {}): Promise<implicitReturnType>;
25
18
  privateGetAccountTradesTradeId(params?: {}): Promise<implicitReturnType>;
26
- privateGetAccountTradingVolume(params?: {}): Promise<implicitReturnType>;
27
- privatePostAccountDepositCrypto(params?: {}): Promise<implicitReturnType>;
28
- privatePostAccountWithdrawCrypto(params?: {}): Promise<implicitReturnType>;
29
- privatePostAccountWithdrawFiat(params?: {}): Promise<implicitReturnType>;
30
- privatePostAccountFees(params?: {}): Promise<implicitReturnType>;
31
19
  privatePostAccountOrders(params?: {}): Promise<implicitReturnType>;
32
20
  privateDeleteAccountOrders(params?: {}): Promise<implicitReturnType>;
33
21
  privateDeleteAccountOrdersOrderId(params?: {}): Promise<implicitReturnType>;
@@ -66,9 +66,9 @@ interface Exchange {
66
66
  dapiV2PrivatePostOrder(params?: {}): Promise<implicitReturnType>;
67
67
  dapiV2PrivatePostAllOpenOrders(params?: {}): Promise<implicitReturnType>;
68
68
  dapiV2PrivatePostFuturesTransfer(params?: {}): Promise<implicitReturnType>;
69
- openPrivatePostPoseidonApiV1ListenKey(params?: {}): Promise<implicitReturnType>;
70
- openPrivatePutPoseidonApiV1ListenKeyListenKey(params?: {}): Promise<implicitReturnType>;
71
- openPrivateDeletePoseidonApiV1ListenKeyListenKey(params?: {}): Promise<implicitReturnType>;
69
+ openV1PrivatePostPoseidonApiV1ListenKey(params?: {}): Promise<implicitReturnType>;
70
+ openV1PrivatePutPoseidonApiV1ListenKeyListenKey(params?: {}): Promise<implicitReturnType>;
71
+ openV1PrivateDeletePoseidonApiV1ListenKeyListenKey(params?: {}): Promise<implicitReturnType>;
72
72
  }
73
73
  declare abstract class Exchange extends _Exchange {
74
74
  }
@@ -122,6 +122,7 @@ interface Exchange {
122
122
  privateGetAssetConvertCurrencyPair(params?: {}): Promise<implicitReturnType>;
123
123
  privateGetAssetConvertHistory(params?: {}): Promise<implicitReturnType>;
124
124
  privateGetAssetMonthlyStatement(params?: {}): Promise<implicitReturnType>;
125
+ privateGetAccountInstruments(params?: {}): Promise<implicitReturnType>;
125
126
  privateGetAccountBalance(params?: {}): Promise<implicitReturnType>;
126
127
  privateGetAccountPositions(params?: {}): Promise<implicitReturnType>;
127
128
  privateGetAccountPositionsHistory(params?: {}): Promise<implicitReturnType>;
@@ -8,26 +8,14 @@ interface Exchange {
8
8
  publicGetOrderBookInstrumentCode(params?: {}): Promise<implicitReturnType>;
9
9
  publicGetMarketTicker(params?: {}): Promise<implicitReturnType>;
10
10
  publicGetMarketTickerInstrumentCode(params?: {}): Promise<implicitReturnType>;
11
- publicGetPriceTicksInstrumentCode(params?: {}): Promise<implicitReturnType>;
12
11
  publicGetTime(params?: {}): Promise<implicitReturnType>;
13
12
  privateGetAccountBalances(params?: {}): Promise<implicitReturnType>;
14
- privateGetAccountDepositCryptoCurrencyCode(params?: {}): Promise<implicitReturnType>;
15
- privateGetAccountDepositFiatEUR(params?: {}): Promise<implicitReturnType>;
16
- privateGetAccountDeposits(params?: {}): Promise<implicitReturnType>;
17
- privateGetAccountDepositsBitpanda(params?: {}): Promise<implicitReturnType>;
18
- privateGetAccountWithdrawals(params?: {}): Promise<implicitReturnType>;
19
- privateGetAccountWithdrawalsBitpanda(params?: {}): Promise<implicitReturnType>;
20
13
  privateGetAccountFees(params?: {}): Promise<implicitReturnType>;
21
14
  privateGetAccountOrders(params?: {}): Promise<implicitReturnType>;
22
15
  privateGetAccountOrdersOrderId(params?: {}): Promise<implicitReturnType>;
23
16
  privateGetAccountOrdersOrderIdTrades(params?: {}): Promise<implicitReturnType>;
24
17
  privateGetAccountTrades(params?: {}): Promise<implicitReturnType>;
25
18
  privateGetAccountTradesTradeId(params?: {}): Promise<implicitReturnType>;
26
- privateGetAccountTradingVolume(params?: {}): Promise<implicitReturnType>;
27
- privatePostAccountDepositCrypto(params?: {}): Promise<implicitReturnType>;
28
- privatePostAccountWithdrawCrypto(params?: {}): Promise<implicitReturnType>;
29
- privatePostAccountWithdrawFiat(params?: {}): Promise<implicitReturnType>;
30
- privatePostAccountFees(params?: {}): Promise<implicitReturnType>;
31
19
  privatePostAccountOrders(params?: {}): Promise<implicitReturnType>;
32
20
  privateDeleteAccountOrders(params?: {}): Promise<implicitReturnType>;
33
21
  privateDeleteAccountOrdersOrderId(params?: {}): Promise<implicitReturnType>;
package/js/src/bingx.d.ts CHANGED
@@ -257,6 +257,7 @@ export default class bingx extends Exchange {
257
257
  * @see https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Trade%20order
258
258
  * @see https://bingx-api.github.io/docs/#/en-us/spot/trade-api.html#Create%20an%20Order
259
259
  * @see https://bingx-api.github.io/docs/#/en-us/cswap/trade-api.html#Trade%20order
260
+ * @see https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Place%20TWAP%20Order
260
261
  * @param {string} symbol unified symbol of the market to create an order in
261
262
  * @param {string} type 'market' or 'limit'
262
263
  * @param {string} side 'buy' or 'sell'
@@ -306,6 +307,7 @@ export default class bingx extends Exchange {
306
307
  * @see https://bingx-api.github.io/docs/#/en-us/spot/trade-api.html#Cancel%20Order
307
308
  * @see https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Cancel%20Order
308
309
  * @see https://bingx-api.github.io/docs/#/en-us/cswap/trade-api.html#Cancel%20an%20Order
310
+ * @see https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Cancel%20TWAP%20Order
309
311
  * @param {string} id order id
310
312
  * @param {string} symbol unified symbol of the market the order was made in
311
313
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -357,9 +359,11 @@ export default class bingx extends Exchange {
357
359
  * @see https://bingx-api.github.io/docs/#/en-us/spot/trade-api.html#Query%20Order%20details
358
360
  * @see https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Query%20Order%20details
359
361
  * @see https://bingx-api.github.io/docs/#/en-us/cswap/trade-api.html#Query%20Order
362
+ * @see https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#TWAP%20Order%20Details
360
363
  * @param {string} id the order id
361
364
  * @param {string} symbol unified symbol of the market the order was made in
362
365
  * @param {object} [params] extra parameters specific to the exchange API endpoint
366
+ * @param {boolean} [params.twap] if fetching twap order
363
367
  * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
364
368
  */
365
369
  fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
@@ -385,10 +389,12 @@ export default class bingx extends Exchange {
385
389
  * @see https://bingx-api.github.io/docs/#/en-us/spot/trade-api.html#Current%20Open%20Orders
386
390
  * @see https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Current%20All%20Open%20Orders
387
391
  * @see https://bingx-api.github.io/docs/#/en-us/cswap/trade-api.html#Query%20all%20current%20pending%20orders
392
+ * @see https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Query%20TWAP%20Entrusted%20Order
388
393
  * @param {string} symbol unified market symbol
389
394
  * @param {int} [since] the earliest time in ms to fetch open orders for
390
395
  * @param {int} [limit] the maximum number of open order structures to retrieve
391
396
  * @param {object} [params] extra parameters specific to the exchange API endpoint
397
+ * @param {boolean} [params.twap] if fetching twap open orders
392
398
  * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
393
399
  */
394
400
  fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
@@ -434,12 +440,14 @@ export default class bingx extends Exchange {
434
440
  * @see https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Query%20Order%20history
435
441
  * @see https://bingx-api.github.io/docs/#/en-us/cswap/trade-api.html#User's%20History%20Orders
436
442
  * @see https://bingx-api.github.io/docs/#/standard/contract-interface.html#Historical%20order
443
+ * @see https://bingx-api.github.io/docs/#/en-us/swapV2/trade-api.html#Query%20TWAP%20Historical%20Orders
437
444
  * @param {string} [symbol] unified market symbol of the market orders were made in
438
445
  * @param {int} [since] the earliest time in ms to fetch orders for
439
446
  * @param {int} [limit] the maximum number of order structures to retrieve
440
447
  * @param {object} [params] extra parameters specific to the exchange API endpoint
441
448
  * @param {int} [params.until] the latest time in ms to fetch orders for
442
449
  * @param {boolean} [params.standard] whether to fetch standard contract orders
450
+ * @param {boolean} [params.twap] if fetching twap orders
443
451
  * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
444
452
  */
445
453
  fetchCanceledAndClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;