ccxt 4.2.20 → 4.2.21

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.
@@ -682,7 +682,7 @@ class lbank extends lbank$1 {
682
682
  };
683
683
  const request = this.deepExtend(subscribe, params);
684
684
  const orderbook = await this.watch(url, messageHash, request, messageHash);
685
- return orderbook.limit(limit);
685
+ return orderbook.limit();
686
686
  }
687
687
  async watchOrderBook(symbol, limit = undefined, params = {}) {
688
688
  /**
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 { Market, Trade, Fee, Ticker, OrderBook, Order, Transaction, Tickers, Currency, Balance, DepositAddress, WithdrawalResponse, DepositAddressResponse, OHLCV, Balances, PartialBalances, Dictionary, MinMax, Position, FundingRateHistory, Liquidation, FundingHistory, MarginMode, Greeks } from './src/base/types.js';
6
6
  import { BaseError, ExchangeError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, NoChange } from './src/base/errors.js';
7
- declare const version = "4.2.19";
7
+ declare const version = "4.2.20";
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, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, MarginModeAlreadySet, BadResponse, NullResponse, InsufficientFunds, InvalidAddress, InvalidOrder, OrderNotFound, OrderNotCached, CancelPending, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, NotSupported, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, RequestTimeout, AuthenticationError, AddressPending, NoChange } from './src/base/errors.js';
39
39
  //-----------------------------------------------------------------------------
40
40
  // this is updated by vss.js when building
41
- const version = '4.2.20';
41
+ const version = '4.2.21';
42
42
  Exchange.ccxtVersion = version;
43
43
  //-----------------------------------------------------------------------------
44
44
  import ace from './src/ace.js';
@@ -242,6 +242,7 @@ interface Exchange {
242
242
  privateLoanGetMultiCollateralCurrencyQuota(params?: {}): Promise<implicitReturnType>;
243
243
  privateLoanGetMultiCollateralCurrencies(params?: {}): Promise<implicitReturnType>;
244
244
  privateLoanGetMultiCollateralLtv(params?: {}): Promise<implicitReturnType>;
245
+ privateLoanGetMultiCollateralFixedRate(params?: {}): Promise<implicitReturnType>;
245
246
  privateLoanPostCollateralOrders(params?: {}): Promise<implicitReturnType>;
246
247
  privateLoanPostCollateralRepay(params?: {}): Promise<implicitReturnType>;
247
248
  privateLoanPostCollateralCollaterals(params?: {}): Promise<implicitReturnType>;
@@ -242,6 +242,7 @@ interface gate {
242
242
  privateLoanGetMultiCollateralCurrencyQuota(params?: {}): Promise<implicitReturnType>;
243
243
  privateLoanGetMultiCollateralCurrencies(params?: {}): Promise<implicitReturnType>;
244
244
  privateLoanGetMultiCollateralLtv(params?: {}): Promise<implicitReturnType>;
245
+ privateLoanGetMultiCollateralFixedRate(params?: {}): Promise<implicitReturnType>;
245
246
  privateLoanPostCollateralOrders(params?: {}): Promise<implicitReturnType>;
246
247
  privateLoanPostCollateralRepay(params?: {}): Promise<implicitReturnType>;
247
248
  privateLoanPostCollateralCollaterals(params?: {}): Promise<implicitReturnType>;
@@ -19,9 +19,13 @@ interface Exchange {
19
19
  privateGetAccountSubsTransferRecord(params?: {}): Promise<implicitReturnType>;
20
20
  privateGetWalletQueryDepositWithdraw(params?: {}): Promise<implicitReturnType>;
21
21
  privatePostOrdersCreate(params?: {}): Promise<implicitReturnType>;
22
+ privatePostOrdersBatchCreate(params?: {}): Promise<implicitReturnType>;
22
23
  privatePostOrdersCancel(params?: {}): Promise<implicitReturnType>;
23
- privatePostAccountWithdrawCoin(params?: {}): Promise<implicitReturnType>;
24
+ privatePostOrdersBatchCancel(params?: {}): Promise<implicitReturnType>;
25
+ privatePostOrdersCancelBySymbol(params?: {}): Promise<implicitReturnType>;
24
26
  privatePostAccountSubsTransfer(params?: {}): Promise<implicitReturnType>;
27
+ privatePostWalletWithdrawCoin(params?: {}): Promise<implicitReturnType>;
28
+ privatePostAccountWithdrawCoin(params?: {}): Promise<implicitReturnType>;
25
29
  }
26
30
  declare abstract class Exchange extends _Exchange {
27
31
  }
@@ -48,6 +48,7 @@ interface Exchange {
48
48
  privateGetApiDataGFuturesTrades(params?: {}): Promise<implicitReturnType>;
49
49
  privateGetApiDataFuturesTradingFees(params?: {}): Promise<implicitReturnType>;
50
50
  privateGetApiDataGFuturesTradingFees(params?: {}): Promise<implicitReturnType>;
51
+ privateGetApiDataFuturesV2TradeAccountDetail(params?: {}): Promise<implicitReturnType>;
51
52
  privateGetGOrdersActiveList(params?: {}): Promise<implicitReturnType>;
52
53
  privateGetOrdersActiveList(params?: {}): Promise<implicitReturnType>;
53
54
  privateGetExchangeOrderList(params?: {}): Promise<implicitReturnType>;
@@ -337,11 +337,13 @@ export default class Exchange {
337
337
  fetchCrossBorrowRate: any;
338
338
  fetchCrossBorrowRates: any;
339
339
  fetchCurrencies: string;
340
+ fetchCurrenciesWs: string;
340
341
  fetchDeposit: any;
341
342
  fetchDepositAddress: any;
342
343
  fetchDepositAddresses: any;
343
344
  fetchDepositAddressesByNetwork: any;
344
345
  fetchDeposits: any;
346
+ fetchDepositsWs: any;
345
347
  fetchDepositsWithdrawals: any;
346
348
  fetchTransactionFee: any;
347
349
  fetchTransactionFees: any;
@@ -359,9 +361,11 @@ export default class Exchange {
359
361
  fetchLeverageTiers: any;
360
362
  fetchMarketLeverageTiers: any;
361
363
  fetchMarkets: boolean;
364
+ fetchMarketsWs: any;
362
365
  fetchMarkOHLCV: any;
363
366
  fetchMyTrades: any;
364
367
  fetchOHLCV: any;
368
+ fetchOHLCVWs: any;
365
369
  fetchOpenInterest: any;
366
370
  fetchOpenInterestHistory: any;
367
371
  fetchOpenOrder: any;
@@ -384,12 +388,14 @@ export default class Exchange {
384
388
  fetchTrades: boolean;
385
389
  fetchTradingFee: any;
386
390
  fetchTradingFees: any;
391
+ fetchTradingFeesWs: any;
387
392
  fetchTradingLimits: any;
388
393
  fetchTransactions: any;
389
394
  fetchTransfers: any;
390
395
  fetchWithdrawAddresses: any;
391
396
  fetchWithdrawal: any;
392
397
  fetchWithdrawals: any;
398
+ fetchWithdrawalsWs: any;
393
399
  reduceMargin: any;
394
400
  setLeverage: any;
395
401
  setMargin: any;
@@ -534,7 +540,9 @@ export default class Exchange {
534
540
  loadMarketsHelper(reload?: boolean, params?: {}): Promise<Dictionary<any>>;
535
541
  loadMarkets(reload?: boolean, params?: {}): Promise<Dictionary<Market>>;
536
542
  fetchCurrencies(params?: {}): Promise<unknown>;
543
+ fetchCurrenciesWs(params?: {}): Promise<unknown>;
537
544
  fetchMarkets(params?: {}): Promise<Market[]>;
545
+ fetchMarketsWs(params?: {}): Promise<Market[]>;
538
546
  checkRequiredDependencies(): void;
539
547
  parseNumber(value: any, d?: number): number;
540
548
  checkOrderArguments(market: any, type: any, side: any, amount: any, price: any, params: any): void;
@@ -678,6 +686,7 @@ export default class Exchange {
678
686
  borrowMargin(code: string, amount: any, symbol?: Str, params?: {}): Promise<any>;
679
687
  repayMargin(code: string, amount: any, symbol?: Str, params?: {}): Promise<any>;
680
688
  fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
689
+ fetchOHLCVWs(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
681
690
  watchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
682
691
  convertTradingViewToOHLCV(ohlcvs: any, timestamp?: string, open?: string, high?: string, low?: string, close?: string, volume?: string, ms?: boolean): any[];
683
692
  convertOHLCVToTradingView(ohlcvs: any, timestamp?: string, open?: string, high?: string, low?: string, close?: string, volume?: string, ms?: boolean): {};
@@ -808,11 +817,12 @@ export default class Exchange {
808
817
  fetchLiquidations(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Liquidation[]>;
809
818
  fetchMyTradesWs(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
810
819
  watchMyTrades(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
811
- fetchOHLCVWs(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
812
820
  fetchGreeks(symbol: string, params?: {}): Promise<Greeks>;
813
821
  fetchDepositsWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
814
822
  fetchDeposits(code?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
823
+ fetchDepositsWs(code?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
815
824
  fetchWithdrawals(code?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
825
+ fetchWithdrawalsWs(code?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
816
826
  fetchOpenInterest(symbol: string, params?: {}): Promise<OpenInterest>;
817
827
  fetchFundingRateHistory(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<FundingRateHistory[]>;
818
828
  fetchFundingHistory(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<FundingHistory[]>;
@@ -870,6 +880,7 @@ export default class Exchange {
870
880
  handlePostOnly(isMarketOrder: boolean, exchangeSpecificPostOnlyOption: boolean, params?: any): any[];
871
881
  fetchLastPrices(symbols?: string[], params?: {}): Promise<void>;
872
882
  fetchTradingFees(params?: {}): Promise<any>;
883
+ fetchTradingFeesWs(params?: {}): Promise<any>;
873
884
  fetchTradingFee(symbol: string, params?: {}): Promise<any>;
874
885
  parseOpenInterest(interest: any, market?: Market): OpenInterest;
875
886
  parseOpenInterests(response: any, market?: any, since?: Int, limit?: Int): OpenInterest[];
@@ -394,11 +394,13 @@ export default class Exchange {
394
394
  'fetchCrossBorrowRate': undefined,
395
395
  'fetchCrossBorrowRates': undefined,
396
396
  'fetchCurrencies': 'emulated',
397
+ 'fetchCurrenciesWs': 'emulated',
397
398
  'fetchDeposit': undefined,
398
399
  'fetchDepositAddress': undefined,
399
400
  'fetchDepositAddresses': undefined,
400
401
  'fetchDepositAddressesByNetwork': undefined,
401
402
  'fetchDeposits': undefined,
403
+ 'fetchDepositsWs': undefined,
402
404
  'fetchDepositsWithdrawals': undefined,
403
405
  'fetchTransactionFee': undefined,
404
406
  'fetchTransactionFees': undefined,
@@ -416,9 +418,11 @@ export default class Exchange {
416
418
  'fetchLeverageTiers': undefined,
417
419
  'fetchMarketLeverageTiers': undefined,
418
420
  'fetchMarkets': true,
421
+ 'fetchMarketsWs': undefined,
419
422
  'fetchMarkOHLCV': undefined,
420
423
  'fetchMyTrades': undefined,
421
424
  'fetchOHLCV': undefined,
425
+ 'fetchOHLCVWs': undefined,
422
426
  'fetchOpenInterest': undefined,
423
427
  'fetchOpenInterestHistory': undefined,
424
428
  'fetchOpenOrder': undefined,
@@ -441,12 +445,14 @@ export default class Exchange {
441
445
  'fetchTrades': true,
442
446
  'fetchTradingFee': undefined,
443
447
  'fetchTradingFees': undefined,
448
+ 'fetchTradingFeesWs': undefined,
444
449
  'fetchTradingLimits': undefined,
445
450
  'fetchTransactions': undefined,
446
451
  'fetchTransfers': undefined,
447
452
  'fetchWithdrawAddresses': undefined,
448
453
  'fetchWithdrawal': undefined,
449
454
  'fetchWithdrawals': undefined,
455
+ 'fetchWithdrawalsWs': undefined,
450
456
  'reduceMargin': undefined,
451
457
  'setLeverage': undefined,
452
458
  'setMargin': undefined,
@@ -966,6 +972,13 @@ export default class Exchange {
966
972
  // and may be changed for consistency later
967
973
  return new Promise((resolve, reject) => resolve(this.currencies));
968
974
  }
975
+ fetchCurrenciesWs(params = {}) {
976
+ // markets are returned as a list
977
+ // currencies are returned as a dict
978
+ // this is for historical reasons
979
+ // and may be changed for consistency later
980
+ return new Promise((resolve, reject) => resolve(this.currencies));
981
+ }
969
982
  fetchMarkets(params = {}) {
970
983
  // markets are returned as a list
971
984
  // currencies are returned as a dict
@@ -973,6 +986,13 @@ export default class Exchange {
973
986
  // and may be changed for consistency later
974
987
  return new Promise((resolve, reject) => resolve(Object.values(this.markets)));
975
988
  }
989
+ fetchMarketsWs(params = {}) {
990
+ // markets are returned as a list
991
+ // currencies are returned as a dict
992
+ // this is for historical reasons
993
+ // and may be changed for consistency later
994
+ return new Promise((resolve, reject) => resolve(Object.values(this.markets)));
995
+ }
976
996
  checkRequiredDependencies() {
977
997
  return;
978
998
  }
@@ -2753,6 +2773,13 @@ export default class Exchange {
2753
2773
  }
2754
2774
  throw new NotSupported(this.id + ' fetchOHLCV() is not supported yet' + message);
2755
2775
  }
2776
+ async fetchOHLCVWs(symbol, timeframe = '1m', since = undefined, limit = undefined, params = {}) {
2777
+ let message = '';
2778
+ if (this.has['fetchTradesWs']) {
2779
+ message = '. If you want to build OHLCV candles from trade executions data, visit https://github.com/ccxt/ccxt/tree/master/examples/ and see "build-ohlcv-bars" file';
2780
+ }
2781
+ throw new NotSupported(this.id + ' fetchOHLCVWs() is not supported yet. Try using fetchOHLCV instead.' + message);
2782
+ }
2756
2783
  async watchOHLCV(symbol, timeframe = '1m', since = undefined, limit = undefined, params = {}) {
2757
2784
  throw new NotSupported(this.id + ' watchOHLCV() is not supported yet');
2758
2785
  }
@@ -3112,7 +3139,7 @@ export default class Exchange {
3112
3139
  for (let i = 0; i < response.length; i++) {
3113
3140
  const item = response[i];
3114
3141
  const id = this.safeString(item, marketIdKey);
3115
- const market = this.safeMarket(id, undefined, undefined, this.safeString(this.options, 'defaultType'));
3142
+ const market = this.safeMarket(id, undefined, undefined, 'swap');
3116
3143
  const symbol = market['symbol'];
3117
3144
  const contract = this.safeValue(market, 'contract', false);
3118
3145
  if (contract && ((symbols === undefined) || this.inArray(symbol, symbols))) {
@@ -4106,9 +4133,6 @@ export default class Exchange {
4106
4133
  async watchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
4107
4134
  throw new NotSupported(this.id + ' watchMyTrades() is not supported yet');
4108
4135
  }
4109
- async fetchOHLCVWs(symbol, timeframe = '1m', since = undefined, limit = undefined, params = {}) {
4110
- throw new NotSupported(this.id + ' fetchOHLCVWs() is not supported yet');
4111
- }
4112
4136
  async fetchGreeks(symbol, params = {}) {
4113
4137
  throw new NotSupported(this.id + ' fetchGreeks() is not supported yet');
4114
4138
  }
@@ -4128,9 +4152,15 @@ export default class Exchange {
4128
4152
  async fetchDeposits(code = undefined, since = undefined, limit = undefined, params = {}) {
4129
4153
  throw new NotSupported(this.id + ' fetchDeposits() is not supported yet');
4130
4154
  }
4155
+ async fetchDepositsWs(code = undefined, since = undefined, limit = undefined, params = {}) {
4156
+ throw new NotSupported(this.id + ' fetchDepositsWs() is not supported yet');
4157
+ }
4131
4158
  async fetchWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
4132
4159
  throw new NotSupported(this.id + ' fetchWithdrawals() is not supported yet');
4133
4160
  }
4161
+ async fetchWithdrawalsWs(code = undefined, since = undefined, limit = undefined, params = {}) {
4162
+ throw new NotSupported(this.id + ' fetchWithdrawalsWs() is not supported yet');
4163
+ }
4134
4164
  async fetchOpenInterest(symbol, params = {}) {
4135
4165
  throw new NotSupported(this.id + ' fetchOpenInterest() is not supported yet');
4136
4166
  }
@@ -4610,6 +4640,9 @@ export default class Exchange {
4610
4640
  async fetchTradingFees(params = {}) {
4611
4641
  throw new NotSupported(this.id + ' fetchTradingFees() is not supported yet');
4612
4642
  }
4643
+ async fetchTradingFeesWs(params = {}) {
4644
+ throw new NotSupported(this.id + ' fetchTradingFeesWs() is not supported yet');
4645
+ }
4613
4646
  async fetchTradingFee(symbol, params = {}) {
4614
4647
  if (!this.has['fetchTradingFees']) {
4615
4648
  throw new NotSupported(this.id + ' fetchTradingFee() is not supported yet');
@@ -4,10 +4,12 @@
4
4
  // https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
5
5
  // EDIT THE CORRESPONDENT .ts FILE INSTEAD
6
6
 
7
+ // eslint-disable-next-line no-shadow
8
+ import WebSocket from 'ws';
7
9
  import Client from './Client.js';
8
10
  import { sleep, isNode, milliseconds, } from '../../base/functions.js';
9
- import WebSocket from 'ws';
10
11
  import { Future } from './Future.js';
12
+ // eslint-disable-next-line no-restricted-globals
11
13
  const WebSocketPlatform = isNode ? WebSocket : self.WebSocket;
12
14
  export default class WsClient extends Client {
13
15
  createConnection() {
@@ -61,4 +63,3 @@ export default class WsClient extends Client {
61
63
  return this.disconnected;
62
64
  }
63
65
  }
64
- ;
package/js/src/bitget.js CHANGED
@@ -57,8 +57,8 @@ export default class bitget extends Exchange {
57
57
  'fetchBorrowInterest': true,
58
58
  'fetchBorrowRateHistories': false,
59
59
  'fetchBorrowRateHistory': false,
60
- 'fetchCanceledOrders': true,
61
60
  'fetchCanceledAndClosedOrders': true,
61
+ 'fetchCanceledOrders': true,
62
62
  'fetchClosedOrders': true,
63
63
  'fetchCrossBorrowRate': true,
64
64
  'fetchCrossBorrowRates': false,
@@ -11,16 +11,20 @@ export default class bitvavo extends Exchange {
11
11
  priceToPrecision(symbol: any, price: any): any;
12
12
  fetchTime(params?: {}): Promise<number>;
13
13
  fetchMarkets(params?: {}): Promise<any[]>;
14
+ parseMarkets(markets: any): any[];
14
15
  fetchCurrencies(params?: {}): Promise<{}>;
16
+ parseCurrencies(currencies: any): {};
15
17
  fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
16
18
  parseTicker(ticker: any, market?: Market): Ticker;
17
19
  fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
18
20
  fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
19
21
  parseTrade(trade: any, market?: Market): Trade;
20
22
  fetchTradingFees(params?: {}): Promise<{}>;
23
+ parseTradingFees(fees: any, market?: any): {};
21
24
  fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
22
25
  parseOHLCV(ohlcv: any, market?: Market): OHLCV;
23
- fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
26
+ fetchOHLCVRequest(symbol: Str, timeframe?: string, since?: Int, limit?: Int, params?: {}): any;
27
+ fetchOHLCV(symbol: Str, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
24
28
  parseBalance(response: any): Balances;
25
29
  fetchBalance(params?: {}): Promise<Balances>;
26
30
  fetchDepositAddress(code: string, params?: {}): Promise<{
@@ -30,18 +34,26 @@ export default class bitvavo extends Exchange {
30
34
  network: any;
31
35
  info: any;
32
36
  }>;
33
- createOrder(symbol: string, type: OrderType, side: OrderSide, amount: any, price?: any, params?: {}): Promise<Order>;
37
+ createOrderRequest(symbol: Str, type: OrderType, side: OrderSide, amount: any, price?: any, params?: {}): any;
38
+ createOrder(symbol: Str, type: OrderType, side: OrderSide, amount: any, price?: any, params?: {}): Promise<Order>;
39
+ editOrderRequest(id: string, symbol: any, type: any, side: any, amount?: any, price?: any, params?: {}): {};
34
40
  editOrder(id: string, symbol: any, type: any, side: any, amount?: any, price?: any, params?: {}): Promise<Order>;
41
+ cancelOrderRequest(id: Str, symbol?: Str, params?: {}): any;
35
42
  cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
36
43
  cancelAllOrders(symbol?: Str, params?: {}): Promise<Order[]>;
37
44
  fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
45
+ fetchOrdersRequest(symbol?: Str, since?: Int, limit?: Int, params?: {}): any;
38
46
  fetchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
39
47
  fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
40
48
  parseOrderStatus(status: any): string;
41
49
  parseOrder(order: any, market?: Market): Order;
50
+ fetchMyTradesRequest(symbol?: Str, since?: Int, limit?: Int, params?: {}): any;
42
51
  fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
52
+ withdrawRequest(code: Str, amount: any, address: any, tag?: any, params?: {}): any;
43
53
  withdraw(code: string, amount: any, address: any, tag?: any, params?: {}): Promise<Transaction>;
54
+ fetchWithdrawalsRequest(code?: Str, since?: Int, limit?: Int, params?: {}): any;
44
55
  fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
56
+ fetchDepositsRequest(code?: Str, since?: Int, limit?: Int, params?: {}): any;
45
57
  fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
46
58
  parseTransactionStatus(status: any): string;
47
59
  parseTransaction(transaction: any, currency?: Currency): Transaction;