ccxt 4.4.21 → 4.4.23

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 (86) hide show
  1. package/README.md +112 -111
  2. package/dist/ccxt.browser.min.js +2 -2
  3. package/dist/cjs/ccxt.js +6 -1
  4. package/dist/cjs/src/abstract/coincatch.js +9 -0
  5. package/dist/cjs/src/alpaca.js +1 -0
  6. package/dist/cjs/src/base/Exchange.js +21 -0
  7. package/dist/cjs/src/bigone.js +3 -0
  8. package/dist/cjs/src/binance.js +172 -44
  9. package/dist/cjs/src/bitfinex.js +4 -0
  10. package/dist/cjs/src/bitflyer.js +58 -0
  11. package/dist/cjs/src/bitget.js +77 -0
  12. package/dist/cjs/src/bitrue.js +3 -0
  13. package/dist/cjs/src/bybit.js +80 -2
  14. package/dist/cjs/src/cex.js +1307 -1381
  15. package/dist/cjs/src/coinbase.js +1 -1
  16. package/dist/cjs/src/coinbaseexchange.js +3 -0
  17. package/dist/cjs/src/coincatch.js +5370 -0
  18. package/dist/cjs/src/coinex.js +63 -1
  19. package/dist/cjs/src/cryptocom.js +1 -1
  20. package/dist/cjs/src/gate.js +103 -3
  21. package/dist/cjs/src/htx.js +1 -7
  22. package/dist/cjs/src/hyperliquid.js +10 -8
  23. package/dist/cjs/src/kucoin.js +27 -59
  24. package/dist/cjs/src/latoken.js +6 -0
  25. package/dist/cjs/src/mexc.js +1 -1
  26. package/dist/cjs/src/oceanex.js +2 -0
  27. package/dist/cjs/src/okcoin.js +1 -0
  28. package/dist/cjs/src/okx.js +74 -0
  29. package/dist/cjs/src/poloniex.js +5 -0
  30. package/dist/cjs/src/pro/coincatch.js +1554 -0
  31. package/js/ccxt.d.ts +9 -3
  32. package/js/ccxt.js +6 -2
  33. package/js/src/abstract/binance.d.ts +21 -0
  34. package/js/src/abstract/binancecoinm.d.ts +21 -0
  35. package/js/src/abstract/binanceus.d.ts +21 -0
  36. package/js/src/abstract/binanceusdm.d.ts +21 -0
  37. package/js/src/abstract/bitflyer.d.ts +1 -0
  38. package/js/src/abstract/bitget.d.ts +3 -0
  39. package/js/src/abstract/cex.d.ts +28 -29
  40. package/js/src/abstract/coincatch.d.ts +97 -0
  41. package/js/src/abstract/coincatch.js +11 -0
  42. package/js/src/abstract/gate.d.ts +5 -0
  43. package/js/src/abstract/gateio.d.ts +5 -0
  44. package/js/src/abstract/kucoin.d.ts +1 -0
  45. package/js/src/abstract/kucoinfutures.d.ts +1 -0
  46. package/js/src/abstract/okx.d.ts +1 -0
  47. package/js/src/alpaca.js +1 -0
  48. package/js/src/base/Exchange.d.ts +8 -2
  49. package/js/src/base/Exchange.js +21 -0
  50. package/js/src/base/types.d.ts +8 -0
  51. package/js/src/bigone.js +3 -0
  52. package/js/src/binance.d.ts +3 -1
  53. package/js/src/binance.js +172 -44
  54. package/js/src/bitfinex.js +4 -0
  55. package/js/src/bitflyer.d.ts +3 -1
  56. package/js/src/bitflyer.js +58 -0
  57. package/js/src/bitget.d.ts +3 -1
  58. package/js/src/bitget.js +77 -0
  59. package/js/src/bitrue.js +3 -0
  60. package/js/src/bybit.d.ts +3 -1
  61. package/js/src/bybit.js +80 -2
  62. package/js/src/cex.d.ts +34 -20
  63. package/js/src/cex.js +1308 -1382
  64. package/js/src/coinbase.js +1 -1
  65. package/js/src/coinbaseexchange.js +3 -0
  66. package/js/src/coincatch.d.ts +130 -0
  67. package/js/src/coincatch.js +5371 -0
  68. package/js/src/coinex.d.ts +1 -0
  69. package/js/src/coinex.js +63 -1
  70. package/js/src/cryptocom.js +1 -1
  71. package/js/src/gate.d.ts +2 -0
  72. package/js/src/gate.js +103 -3
  73. package/js/src/htx.js +1 -7
  74. package/js/src/hyperliquid.js +10 -8
  75. package/js/src/kucoin.d.ts +0 -1
  76. package/js/src/kucoin.js +27 -59
  77. package/js/src/latoken.js +6 -0
  78. package/js/src/mexc.js +1 -1
  79. package/js/src/oceanex.js +2 -0
  80. package/js/src/okcoin.js +1 -0
  81. package/js/src/okx.d.ts +3 -1
  82. package/js/src/okx.js +74 -0
  83. package/js/src/poloniex.js +5 -0
  84. package/js/src/pro/coincatch.d.ts +57 -0
  85. package/js/src/pro/coincatch.js +1555 -0
  86. package/package.json +1 -1
package/js/src/bitget.js CHANGED
@@ -95,6 +95,8 @@ export default class bitget extends Exchange {
95
95
  'fetchLeverage': true,
96
96
  'fetchLeverageTiers': false,
97
97
  'fetchLiquidations': false,
98
+ 'fetchLongShortRatio': false,
99
+ 'fetchLongShortRatioHistory': true,
98
100
  'fetchMarginAdjustmentHistory': false,
99
101
  'fetchMarginMode': true,
100
102
  'fetchMarketLeverageTiers': true,
@@ -270,6 +272,7 @@ export default class bitget extends Exchange {
270
272
  'v2/mix/market/current-fund-rate': 1,
271
273
  'v2/mix/market/contracts': 1,
272
274
  'v2/mix/market/query-position-lever': 2,
275
+ 'v2/mix/market/account-long-short': 20,
273
276
  },
274
277
  },
275
278
  'margin': {
@@ -280,6 +283,7 @@ export default class bitget extends Exchange {
280
283
  'margin/v1/isolated/public/tierData': 2,
281
284
  'margin/v1/public/currencies': 1,
282
285
  'v2/margin/currencies': 2,
286
+ 'v2/margin/market/long-short-ratio': 20,
283
287
  },
284
288
  },
285
289
  'earn': {
@@ -442,6 +446,7 @@ export default class bitget extends Exchange {
442
446
  'v2/mix/order/orders-history': 2,
443
447
  'v2/mix/order/orders-plan-pending': 2,
444
448
  'v2/mix/order/orders-plan-history': 2,
449
+ 'v2/mix/market/position-long-short': 20,
445
450
  },
446
451
  'post': {
447
452
  'mix/v1/account/sub-account-contract-assets': 200,
@@ -8903,6 +8908,78 @@ export default class bitget extends Exchange {
8903
8908
  const first = this.safeDict(data, 0, {});
8904
8909
  return this.parseFundingRate(first, market);
8905
8910
  }
8911
+ async fetchLongShortRatioHistory(symbol = undefined, timeframe = undefined, since = undefined, limit = undefined, params = {}) {
8912
+ /**
8913
+ * @method
8914
+ * @name bitget#fetchLongShortRatioHistory
8915
+ * @description fetches the long short ratio history for a unified market symbol
8916
+ * @see https://www.bitget.com/api-doc/common/apidata/Margin-Ls-Ratio
8917
+ * @see https://www.bitget.com/api-doc/common/apidata/Account-Long-Short
8918
+ * @param {string} symbol unified symbol of the market to fetch the long short ratio for
8919
+ * @param {string} [timeframe] the period for the ratio
8920
+ * @param {int} [since] the earliest time in ms to fetch ratios for
8921
+ * @param {int} [limit] the maximum number of long short ratio structures to retrieve
8922
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
8923
+ * @returns {object[]} an array of [long short ratio structures]{@link https://docs.ccxt.com/#/?id=long-short-ratio-structure}
8924
+ */
8925
+ await this.loadMarkets();
8926
+ const market = this.market(symbol);
8927
+ const request = {
8928
+ 'symbol': market['id'],
8929
+ };
8930
+ if (timeframe !== undefined) {
8931
+ request['period'] = timeframe;
8932
+ }
8933
+ let response = undefined;
8934
+ if (market['swap'] || market['future']) {
8935
+ response = await this.publicMixGetV2MixMarketAccountLongShort(this.extend(request, params));
8936
+ //
8937
+ // {
8938
+ // "code": "00000",
8939
+ // "msg": "success",
8940
+ // "requestTime": 1729321233281,
8941
+ // "data": [
8942
+ // {
8943
+ // "longAccountRatio": "0.58",
8944
+ // "shortAccountRatio": "0.42",
8945
+ // "longShortAccountRatio": "0.0138",
8946
+ // "ts": "1729312200000"
8947
+ // },
8948
+ // ]
8949
+ // }
8950
+ //
8951
+ }
8952
+ else {
8953
+ response = await this.publicMarginGetV2MarginMarketLongShortRatio(this.extend(request, params));
8954
+ //
8955
+ // {
8956
+ // "code": "00000",
8957
+ // "msg": "success",
8958
+ // "requestTime": 1729306974712,
8959
+ // "data": [
8960
+ // {
8961
+ // "longShortRatio": "40.66",
8962
+ // "ts": "1729306800000"
8963
+ // },
8964
+ // ]
8965
+ // }
8966
+ //
8967
+ }
8968
+ const data = this.safeList(response, 'data', []);
8969
+ return this.parseLongShortRatioHistory(data, market);
8970
+ }
8971
+ parseLongShortRatio(info, market = undefined) {
8972
+ const marketId = this.safeString(info, 'symbol');
8973
+ const timestamp = this.safeIntegerOmitZero(info, 'ts');
8974
+ return {
8975
+ 'info': info,
8976
+ 'symbol': this.safeSymbol(marketId, market, undefined, 'contract'),
8977
+ 'timestamp': timestamp,
8978
+ 'datetime': this.iso8601(timestamp),
8979
+ 'timeframe': undefined,
8980
+ 'longShortRatio': this.safeNumber2(info, 'longShortRatio', 'longShortAccountRatio'),
8981
+ };
8982
+ }
8906
8983
  handleErrors(code, reason, url, method, headers, body, response, requestHeaders, requestBody) {
8907
8984
  if (!response) {
8908
8985
  return undefined; // fallback to default error handler
package/js/src/bitrue.js CHANGED
@@ -55,7 +55,10 @@ export default class bitrue extends Exchange {
55
55
  'fetchDepositsWithdrawals': false,
56
56
  'fetchDepositWithdrawFee': 'emulated',
57
57
  'fetchDepositWithdrawFees': true,
58
+ 'fetchFundingHistory': false,
58
59
  'fetchFundingRate': false,
60
+ 'fetchFundingRateHistory': false,
61
+ 'fetchFundingRates': false,
59
62
  'fetchIsolatedBorrowRate': false,
60
63
  'fetchIsolatedBorrowRates': false,
61
64
  'fetchMarginMode': false,
package/js/src/bybit.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/bybit.js';
2
- import type { Int, OrderSide, OrderType, Trade, Order, OHLCV, FundingRateHistory, OpenInterest, OrderRequest, Balances, Str, Transaction, Ticker, OrderBook, Tickers, Greeks, Strings, Market, Currency, MarketInterface, TransferEntry, Liquidation, Leverage, Num, FundingHistory, Option, OptionChain, TradingFeeInterface, Currencies, TradingFees, CancellationRequest, Position, CrossBorrowRate, Dict, LeverageTier, LeverageTiers, int, LedgerEntry, Conversion, FundingRate, FundingRates, DepositAddress } from './base/types.js';
2
+ import type { Int, OrderSide, OrderType, Trade, Order, OHLCV, FundingRateHistory, OpenInterest, OrderRequest, Balances, Str, Transaction, Ticker, OrderBook, Tickers, Greeks, Strings, Market, Currency, MarketInterface, TransferEntry, Liquidation, Leverage, Num, FundingHistory, Option, OptionChain, TradingFeeInterface, Currencies, TradingFees, CancellationRequest, Position, CrossBorrowRate, Dict, LeverageTier, LeverageTiers, int, LedgerEntry, Conversion, FundingRate, FundingRates, DepositAddress, LongShortRatio } from './base/types.js';
3
3
  /**
4
4
  * @class bybit
5
5
  * @augments Exchange
@@ -181,6 +181,8 @@ export default class bybit extends Exchange {
181
181
  fetchConvertTrade(id: string, code?: Str, params?: {}): Promise<Conversion>;
182
182
  fetchConvertTradeHistory(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Conversion[]>;
183
183
  parseConversion(conversion: Dict, fromCurrency?: Currency, toCurrency?: Currency): Conversion;
184
+ fetchLongShortRatioHistory(symbol?: Str, timeframe?: Str, since?: Int, limit?: Int, params?: {}): Promise<LongShortRatio[]>;
185
+ parseLongShortRatio(info: Dict, market?: Market): LongShortRatio;
184
186
  sign(path: any, api?: string, method?: string, params?: {}, headers?: any, body?: any): {
185
187
  url: string;
186
188
  method: string;
package/js/src/bybit.js CHANGED
@@ -92,6 +92,8 @@ export default class bybit extends Exchange {
92
92
  'fetchLedger': true,
93
93
  'fetchLeverage': true,
94
94
  'fetchLeverageTiers': true,
95
+ 'fetchLongShortRatio': false,
96
+ 'fetchLongShortRatioHistory': true,
95
97
  'fetchMarginAdjustmentHistory': false,
96
98
  'fetchMarketLeverageTiers': true,
97
99
  'fetchMarkets': true,
@@ -7648,13 +7650,13 @@ export default class bybit extends Exchange {
7648
7650
  }
7649
7651
  parseMarginLoan(info, currency = undefined) {
7650
7652
  //
7651
- // borrowMargin
7653
+ // borrowCrossMargin
7652
7654
  //
7653
7655
  // {
7654
7656
  // "transactId": "14143"
7655
7657
  // }
7656
7658
  //
7657
- // repayMargin
7659
+ // repayCrossMargin
7658
7660
  //
7659
7661
  // {
7660
7662
  // "repayId": "12128"
@@ -9314,6 +9316,82 @@ export default class bybit extends Exchange {
9314
9316
  'fee': undefined,
9315
9317
  };
9316
9318
  }
9319
+ async fetchLongShortRatioHistory(symbol = undefined, timeframe = undefined, since = undefined, limit = undefined, params = {}) {
9320
+ /**
9321
+ * @method
9322
+ * @name bybit#fetchLongShortRatioHistory
9323
+ * @description fetches the long short ratio history for a unified market symbol
9324
+ * @see https://bybit-exchange.github.io/docs/v5/market/long-short-ratio
9325
+ * @param {string} symbol unified symbol of the market to fetch the long short ratio for
9326
+ * @param {string} [timeframe] the period for the ratio, default is 24 hours
9327
+ * @param {int} [since] the earliest time in ms to fetch ratios for
9328
+ * @param {int} [limit] the maximum number of long short ratio structures to retrieve
9329
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
9330
+ * @returns {object[]} an array of [long short ratio structures]{@link https://docs.ccxt.com/#/?id=long-short-ratio-structure}
9331
+ */
9332
+ await this.loadMarkets();
9333
+ const market = this.market(symbol);
9334
+ let type = undefined;
9335
+ [type, params] = this.getBybitType('fetchLongShortRatioHistory', market, params);
9336
+ if (type === 'spot' || type === 'option') {
9337
+ throw new NotSupported(this.id + ' fetchLongShortRatioHistory() only support linear and inverse markets');
9338
+ }
9339
+ if (timeframe === undefined) {
9340
+ timeframe = '1d';
9341
+ }
9342
+ const request = {
9343
+ 'symbol': market['id'],
9344
+ 'period': timeframe,
9345
+ 'category': type,
9346
+ };
9347
+ if (limit !== undefined) {
9348
+ request['limit'] = limit;
9349
+ }
9350
+ const response = await this.publicGetV5MarketAccountRatio(this.extend(request, params));
9351
+ //
9352
+ // {
9353
+ // "retCode": 0,
9354
+ // "retMsg": "OK",
9355
+ // "result": {
9356
+ // "list": [
9357
+ // {
9358
+ // "symbol": "BTCUSDT",
9359
+ // "buyRatio": "0.5707",
9360
+ // "sellRatio": "0.4293",
9361
+ // "timestamp": "1729123200000"
9362
+ // },
9363
+ // ]
9364
+ // },
9365
+ // "retExtInfo": {},
9366
+ // "time": 1729147842516
9367
+ // }
9368
+ //
9369
+ const result = this.safeDict(response, 'result', {});
9370
+ const data = this.safeList(result, 'list', []);
9371
+ return this.parseLongShortRatioHistory(data, market);
9372
+ }
9373
+ parseLongShortRatio(info, market = undefined) {
9374
+ //
9375
+ // {
9376
+ // "symbol": "BTCUSDT",
9377
+ // "buyRatio": "0.5707",
9378
+ // "sellRatio": "0.4293",
9379
+ // "timestamp": "1729123200000"
9380
+ // }
9381
+ //
9382
+ const marketId = this.safeString(info, 'symbol');
9383
+ const timestamp = this.safeIntegerOmitZero(info, 'timestamp');
9384
+ const longString = this.safeString(info, 'buyRatio');
9385
+ const shortString = this.safeString(info, 'sellRatio');
9386
+ return {
9387
+ 'info': info,
9388
+ 'symbol': this.safeSymbol(marketId, market, undefined, 'contract'),
9389
+ 'timestamp': timestamp,
9390
+ 'datetime': this.iso8601(timestamp),
9391
+ 'timeframe': undefined,
9392
+ 'longShortRatio': this.parseToNumeric(Precise.stringDiv(longString, shortString)),
9393
+ };
9394
+ }
9317
9395
  sign(path, api = 'public', method = 'GET', params = {}, headers = undefined, body = undefined) {
9318
9396
  let url = this.implodeHostname(this.urls['api'][api]) + '/' + path;
9319
9397
  if (api === 'public') {
package/js/src/cex.d.ts CHANGED
@@ -1,42 +1,56 @@
1
1
  import Exchange from './abstract/cex.js';
2
- import type { Balances, Currencies, Dict, Int, Market, Num, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, TradingFees, int, DepositAddress } from './base/types.js';
2
+ import type { Currency, Currencies, Dict, Int, Market, Num, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, TradingFees, TradingFeeInterface, int, Account, Balances, LedgerEntry, Transaction, TransferEntry, DepositAddress } from './base/types.js';
3
3
  /**
4
4
  * @class cex
5
5
  * @augments Exchange
6
6
  */
7
7
  export default class cex extends Exchange {
8
8
  describe(): any;
9
- fetchCurrenciesFromCache(params?: {}): Promise<any>;
10
9
  fetchCurrencies(params?: {}): Promise<Currencies>;
10
+ parseCurrency(rawCurrency: Dict): Currency;
11
11
  fetchMarkets(params?: {}): Promise<Market[]>;
12
- parseBalance(response: any): Balances;
13
- fetchBalance(params?: {}): Promise<Balances>;
14
- fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
15
- parseOHLCV(ohlcv: any, market?: Market): OHLCV;
16
- fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
17
- parseTicker(ticker: Dict, market?: Market): Ticker;
18
- fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
12
+ parseMarket(market: Dict): Market;
13
+ fetchTime(params?: {}): Promise<number>;
19
14
  fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
20
- parseTrade(trade: Dict, market?: Market): Trade;
15
+ fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
16
+ parseTicker(ticker: Dict, market?: Market): Ticker;
21
17
  fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
18
+ parseTrade(trade: Dict, market?: Market): Trade;
19
+ fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
20
+ fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
21
+ parseOHLCV(ohlcv: any, market?: Market): OHLCV;
22
22
  fetchTradingFees(params?: {}): Promise<TradingFees>;
23
- createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
24
- cancelOrder(id: string, symbol?: Str, params?: {}): Promise<any>;
25
- cancelAllOrders(symbol?: Str, params?: {}): Promise<any>;
26
- parseOrder(order: Dict, market?: Market): Order;
27
- fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
23
+ parseTradingFees(response: any, useKeyAsId?: boolean): TradingFees;
24
+ parseTradingFee(fee: Dict, market?: Market): TradingFeeInterface;
25
+ fetchAccounts(params?: {}): Promise<Account[]>;
26
+ parseAccount(account: Dict): Account;
27
+ fetchBalance(params?: {}): Promise<Balances>;
28
+ parseBalance(response: any): Balances;
29
+ fetchOrdersByStatus(status: string, symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
28
30
  fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
29
- fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
30
- fetchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
31
+ fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
31
32
  parseOrderStatus(status: Str): string;
32
- editOrder(id: string, symbol: string, type: OrderType, side: OrderSide, amount?: Num, price?: Num, params?: {}): Promise<Order>;
33
+ parseOrder(order: Dict, market?: Market): Order;
34
+ createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
35
+ cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
36
+ cancelAllOrders(symbol?: Str, params?: {}): Promise<Order[]>;
37
+ fetchLedger(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<LedgerEntry[]>;
38
+ parseLedgerEntry(item: Dict, currency?: Currency): LedgerEntry;
39
+ parseLedgerEntryType(type: any): string;
40
+ fetchDepositsWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
41
+ parseTransaction(transaction: Dict, currency?: Currency): Transaction;
42
+ parseTransactionStatus(status: Str): string;
43
+ transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?: {}): Promise<TransferEntry>;
44
+ transferBetweenMainAndSubAccount(code: string, amount: number, fromAccount: string, toAccount: string, params?: {}): Promise<TransferEntry>;
45
+ transferBetweenSubAccounts(code: string, amount: number, fromAccount: string, toAccount: string, params?: {}): Promise<TransferEntry>;
46
+ parseTransfer(transfer: Dict, currency?: Currency): TransferEntry;
33
47
  fetchDepositAddress(code: string, params?: {}): Promise<DepositAddress>;
34
- nonce(): number;
48
+ parseDepositAddress(depositAddress: any, currency?: Currency): DepositAddress;
35
49
  sign(path: any, api?: string, method?: string, params?: {}, headers?: any, body?: any): {
36
50
  url: string;
37
51
  method: string;
38
52
  body: any;
39
53
  headers: any;
40
54
  };
41
- handleErrors(code: int, reason: string, url: string, method: string, headers: Dict, body: string, response: any, requestHeaders: any, requestBody: any): any[];
55
+ handleErrors(code: int, reason: string, url: string, method: string, headers: Dict, body: string, response: any, requestHeaders: any, requestBody: any): any;
42
56
  }