ccxt 4.1.87 → 4.1.89

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 (101) hide show
  1. package/CHANGELOG.md +8309 -5710
  2. package/README.md +10 -9
  3. package/changelog.js +101 -0
  4. package/dist/ccxt.browser.js +8628 -4849
  5. package/dist/ccxt.browser.min.js +3 -3
  6. package/dist/cjs/ccxt.js +6 -1
  7. package/dist/cjs/src/base/Exchange.js +95 -27
  8. package/dist/cjs/src/base/ws/Client.js +3 -3
  9. package/dist/cjs/src/base/ws/Future.js +9 -2
  10. package/dist/cjs/src/base/ws/WsClient.js +1 -1
  11. package/dist/cjs/src/bigone.js +8 -1
  12. package/dist/cjs/src/binance.js +4 -105
  13. package/dist/cjs/src/bit2c.js +8 -2
  14. package/dist/cjs/src/bitget.js +3455 -2480
  15. package/dist/cjs/src/bitmart.js +35 -9
  16. package/dist/cjs/src/coinbase.js +2 -0
  17. package/dist/cjs/src/coinbasepro.js +0 -43
  18. package/dist/cjs/src/coinex.js +14 -1
  19. package/dist/cjs/src/coinsph.js +0 -29
  20. package/dist/cjs/src/cryptocom.js +22 -10
  21. package/dist/cjs/src/gate.js +37 -39
  22. package/dist/cjs/src/gemini.js +1 -0
  23. package/dist/cjs/src/novadax.js +28 -16
  24. package/dist/cjs/src/okcoin.js +80 -21
  25. package/dist/cjs/src/phemex.js +105 -29
  26. package/dist/cjs/src/pro/binance.js +18 -215
  27. package/dist/cjs/src/pro/bitget.js +780 -736
  28. package/dist/cjs/src/pro/bitmart.js +8 -10
  29. package/dist/cjs/src/pro/bitmex.js +9 -34
  30. package/dist/cjs/src/pro/bitpanda.js +4 -4
  31. package/dist/cjs/src/pro/bybit.js +21 -97
  32. package/dist/cjs/src/pro/coinbasepro.js +36 -40
  33. package/dist/cjs/src/pro/cryptocom.js +10 -26
  34. package/dist/cjs/src/pro/gate.js +20 -17
  35. package/dist/cjs/src/pro/kucoin.js +39 -39
  36. package/dist/cjs/src/pro/kucoinfutures.js +40 -36
  37. package/dist/cjs/src/pro/okx.js +16 -29
  38. package/dist/cjs/src/tokocrypto.js +28 -14
  39. package/dist/cjs/src/woo.js +41 -14
  40. package/js/ccxt.d.ts +8 -2
  41. package/js/ccxt.js +6 -2
  42. package/js/src/abstract/bitget.d.ts +1 -1
  43. package/js/src/abstract/coinbasepro.d.ts +69 -0
  44. package/js/src/abstract/coinbasepro.js +11 -0
  45. package/js/src/abstract/phemex.d.ts +1 -0
  46. package/js/src/base/Exchange.d.ts +2 -3
  47. package/js/src/base/Exchange.js +96 -28
  48. package/js/src/base/ws/Client.d.ts +2 -2
  49. package/js/src/base/ws/Client.js +4 -4
  50. package/js/src/base/ws/Future.d.ts +5 -2
  51. package/js/src/base/ws/Future.js +8 -2
  52. package/js/src/base/ws/WsClient.d.ts +1 -1
  53. package/js/src/base/ws/WsClient.js +2 -2
  54. package/js/src/bigone.js +9 -2
  55. package/js/src/binance.d.ts +0 -9
  56. package/js/src/binance.js +4 -105
  57. package/js/src/bit2c.js +8 -2
  58. package/js/src/bitget.d.ts +13 -11
  59. package/js/src/bitget.js +3455 -2480
  60. package/js/src/bitmart.js +35 -9
  61. package/js/src/coinbase.js +2 -0
  62. package/js/src/coinbasepro.d.ts +0 -4
  63. package/js/src/coinbasepro.js +1 -44
  64. package/js/src/coinex.js +14 -1
  65. package/js/src/coinsph.d.ts +0 -1
  66. package/js/src/coinsph.js +0 -29
  67. package/js/src/cryptocom.js +22 -10
  68. package/js/src/gate.js +37 -39
  69. package/js/src/gemini.js +1 -0
  70. package/js/src/novadax.js +28 -16
  71. package/js/src/okcoin.d.ts +1 -0
  72. package/js/src/okcoin.js +81 -22
  73. package/js/src/phemex.d.ts +2 -108
  74. package/js/src/phemex.js +105 -29
  75. package/js/src/pro/binance.d.ts +0 -2
  76. package/js/src/pro/binance.js +19 -216
  77. package/js/src/pro/bitget.d.ts +3 -5
  78. package/js/src/pro/bitget.js +780 -736
  79. package/js/src/pro/bitmart.js +8 -10
  80. package/js/src/pro/bitmex.js +9 -34
  81. package/js/src/pro/bitpanda.d.ts +1 -1
  82. package/js/src/pro/bitpanda.js +4 -4
  83. package/js/src/pro/bybit.d.ts +1 -2
  84. package/js/src/pro/bybit.js +21 -97
  85. package/js/src/pro/coinbasepro.d.ts +2 -2
  86. package/js/src/pro/coinbasepro.js +36 -40
  87. package/js/src/pro/cryptocom.d.ts +1 -1
  88. package/js/src/pro/cryptocom.js +10 -26
  89. package/js/src/pro/gate.d.ts +1 -0
  90. package/js/src/pro/gate.js +20 -17
  91. package/js/src/pro/kucoin.d.ts +1 -0
  92. package/js/src/pro/kucoin.js +39 -39
  93. package/js/src/pro/kucoinfutures.d.ts +2 -1
  94. package/js/src/pro/kucoinfutures.js +40 -36
  95. package/js/src/pro/okx.d.ts +1 -1
  96. package/js/src/pro/okx.js +16 -29
  97. package/js/src/tokocrypto.js +28 -14
  98. package/js/src/woo.d.ts +1 -0
  99. package/js/src/woo.js +42 -15
  100. package/package.json +2 -2
  101. package/skip-tests.json +3 -14
package/js/src/bigone.js CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  // ---------------------------------------------------------------------------
8
8
  import Exchange from './abstract/bigone.js';
9
- import { ExchangeError, AuthenticationError, InsufficientFunds, PermissionDenied, BadRequest, BadSymbol, RateLimitExceeded, InvalidOrder, ArgumentsRequired } from './base/errors.js';
9
+ import { ExchangeError, AuthenticationError, InsufficientFunds, PermissionDenied, BadRequest, BadSymbol, RateLimitExceeded, InvalidOrder, ArgumentsRequired, NotSupported } from './base/errors.js';
10
10
  import { TICK_SIZE } from './base/functions/number.js';
11
11
  import { jwt } from './base/functions/rsa.js';
12
12
  import { sha256 } from './static_dependencies/noble-hashes/sha256.js';
@@ -34,6 +34,7 @@ export default class bigone extends Exchange {
34
34
  'cancelAllOrders': true,
35
35
  'cancelOrder': true,
36
36
  'createMarketBuyOrderWithCost': true,
37
+ 'createMarketOrderWithCost': false,
37
38
  'createMarketSellOrderWithCost': false,
38
39
  'createOrder': true,
39
40
  'createPostOnlyOrder': true,
@@ -1161,13 +1162,18 @@ export default class bigone extends Exchange {
1161
1162
  /**
1162
1163
  * @method
1163
1164
  * @name bigone#createMarketBuyOrderWithCost
1164
- * @see https://open.big.one/docs/spot_orders.html#create-order
1165
1165
  * @description create a market buy order by providing the symbol and cost
1166
+ * @see https://open.big.one/docs/spot_orders.html#create-order
1166
1167
  * @param {string} symbol unified symbol of the market to create an order in
1167
1168
  * @param {float} cost how much you want to trade in units of the quote currency
1168
1169
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1169
1170
  * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1170
1171
  */
1172
+ await this.loadMarkets();
1173
+ const market = this.market(symbol);
1174
+ if (!market['spot']) {
1175
+ throw new NotSupported(this.id + ' createMarketBuyOrderWithCost() supports spot orders only');
1176
+ }
1171
1177
  params['createMarketBuyOrderRequiresPrice'] = false;
1172
1178
  return await this.createOrder(symbol, 'market', 'buy', cost, undefined, params);
1173
1179
  }
@@ -1186,6 +1192,7 @@ export default class bigone extends Exchange {
1186
1192
  * @param {float} [params.triggerPrice] the price at which a trigger order is triggered at
1187
1193
  * @param {bool} [params.postOnly] if true, the order will only be posted to the order book and not executed immediately
1188
1194
  * @param {string} [params.timeInForce] "GTC", "IOC", or "PO"
1195
+ * @param {float} [params.cost] *spot market buy only* the quote quantity that can be used as an alternative for the amount
1189
1196
  *
1190
1197
  * EXCHANGE SPECIFIC PARAMETERS
1191
1198
  * @param {string} operator *stop order only* GTE or LTE (default)
@@ -34,15 +34,6 @@ export default class binance extends Exchange {
34
34
  }>;
35
35
  fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
36
36
  fetchBidsAsks(symbols?: Strings, params?: {}): Promise<import("./base/types.js").Dictionary<Ticker>>;
37
- fetchLastPrices(symbols?: Strings, params?: {}): Promise<any>;
38
- parseLastPrice(info: any, market?: Market): {
39
- symbol: string;
40
- timestamp: number;
41
- datetime: string;
42
- price: number;
43
- side: any;
44
- info: any;
45
- };
46
37
  fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
47
38
  parseOHLCV(ohlcv: any, market?: Market): OHLCV;
48
39
  fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
package/js/src/binance.js CHANGED
@@ -81,7 +81,6 @@ export default class binance extends Exchange {
81
81
  'fetchIsolatedBorrowRate': false,
82
82
  'fetchIsolatedBorrowRates': false,
83
83
  'fetchL3OrderBook': false,
84
- 'fetchLastPrices': true,
85
84
  'fetchLedger': true,
86
85
  'fetchLeverage': false,
87
86
  'fetchLeverageTiers': true,
@@ -3129,110 +3128,6 @@ export default class binance extends Exchange {
3129
3128
  }
3130
3129
  return this.parseTickers(response, symbols);
3131
3130
  }
3132
- async fetchLastPrices(symbols = undefined, params = {}) {
3133
- /**
3134
- * @method
3135
- * @name binance#fetchLastPrices
3136
- * @description fetches the last price for multiple markets
3137
- * @see https://binance-docs.github.io/apidocs/spot/en/#symbol-price-ticker // spot
3138
- * @see https://binance-docs.github.io/apidocs/future/en/#symbol-price-ticker // swap
3139
- * @see https://binance-docs.github.io/apidocs/delivery/en/#symbol-price-ticker // future
3140
- * @param {string[]|undefined} symbols unified symbols of the markets to fetch the last prices
3141
- * @param {object} [params] extra parameters specific to the exchange API endpoint
3142
- * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
3143
- */
3144
- await this.loadMarkets();
3145
- symbols = this.marketSymbols(symbols);
3146
- const market = this.getMarketFromSymbols(symbols);
3147
- let type = undefined;
3148
- let subType = undefined;
3149
- [subType, params] = this.handleSubTypeAndParams('fetchLastPrices', market, params);
3150
- [type, params] = this.handleMarketTypeAndParams('fetchLastPrices', market, params);
3151
- let response = undefined;
3152
- if (this.isLinear(type, subType)) {
3153
- response = await this.fapiPublicV2GetTickerPrice(params);
3154
- //
3155
- // [
3156
- // {
3157
- // "symbol": "LTCBTC",
3158
- // "price": "4.00000200"
3159
- // "time": 1589437530011
3160
- // },
3161
- // ...
3162
- // ]
3163
- //
3164
- }
3165
- else if (this.isInverse(type, subType)) {
3166
- response = await this.dapiPublicGetTickerPrice(params);
3167
- //
3168
- // [
3169
- // {
3170
- // "symbol": "BTCUSD_200626",
3171
- // "ps": "9647.8",
3172
- // "price": "9647.8",
3173
- // "time": 1591257246176
3174
- // }
3175
- // ]
3176
- //
3177
- }
3178
- else if (type === 'spot') {
3179
- response = await this.publicGetTickerPrice(params);
3180
- //
3181
- // [
3182
- // {
3183
- // "symbol": "LTCBTC",
3184
- // "price": "4.00000200"
3185
- // },
3186
- // ...
3187
- // ]
3188
- //
3189
- }
3190
- else {
3191
- throw new NotSupported(this.id + ' fetchLastPrices() does not support ' + type + ' markets yet');
3192
- }
3193
- return this.parseLastPrices(response, symbols);
3194
- }
3195
- parseLastPrice(info, market = undefined) {
3196
- //
3197
- // spot
3198
- //
3199
- // {
3200
- // "symbol": "LTCBTC",
3201
- // "price": "4.00000200"
3202
- // }
3203
- //
3204
- // usdm (swap/future)
3205
- //
3206
- // {
3207
- // "symbol": "BTCUSDT",
3208
- // "price": "6000.01",
3209
- // "time": 1589437530011 // Transaction time
3210
- // }
3211
- //
3212
- //
3213
- // coinm (swap/future)
3214
- //
3215
- // {
3216
- // "symbol": "BTCUSD_200626", // symbol ("BTCUSD_200626", "BTCUSD_PERP", etc..)
3217
- // "ps": "BTCUSD", // pair
3218
- // "price": "9647.8",
3219
- // "time": 1591257246176
3220
- // }
3221
- //
3222
- const timestamp = this.safeInteger(info, 'time');
3223
- const type = (timestamp === undefined) ? 'spot' : 'swap';
3224
- const marketId = this.safeString(info, 'symbol');
3225
- market = this.safeMarket(marketId, market, undefined, type);
3226
- const price = this.safeNumber(info, 'price');
3227
- return {
3228
- 'symbol': market['symbol'],
3229
- 'timestamp': timestamp,
3230
- 'datetime': this.iso8601(timestamp),
3231
- 'price': price,
3232
- 'side': undefined,
3233
- 'info': info,
3234
- };
3235
- }
3236
3131
  async fetchTickers(symbols = undefined, params = {}) {
3237
3132
  /**
3238
3133
  * @method
@@ -3826,6 +3721,7 @@ export default class binance extends Exchange {
3826
3721
  /**
3827
3722
  * @method
3828
3723
  * @name binance#editSpotOrder
3724
+ * @ignore
3829
3725
  * @description edit a trade order
3830
3726
  * @see https://binance-docs.github.io/apidocs/spot/en/#cancel-an-existing-order-and-send-a-new-order-trade
3831
3727
  * @param {string} id cancel order id
@@ -6880,6 +6776,7 @@ export default class binance extends Exchange {
6880
6776
  /**
6881
6777
  * @method
6882
6778
  * @name binance#futuresTransfer
6779
+ * @ignore
6883
6780
  * @description transfer between futures account
6884
6781
  * @see https://binance-docs.github.io/apidocs/spot/en/#new-future-account-transfer-user_data
6885
6782
  * @param {string} code unified currency code
@@ -7853,6 +7750,7 @@ export default class binance extends Exchange {
7853
7750
  /**
7854
7751
  * @method
7855
7752
  * @name binance#fetchAccountPositions
7753
+ * @ignore
7856
7754
  * @description fetch account positions
7857
7755
  * @see https://binance-docs.github.io/apidocs/futures/en/#account-information-v2-user_data
7858
7756
  * @see https://binance-docs.github.io/apidocs/delivery/en/#account-information-user_data
@@ -7891,6 +7789,7 @@ export default class binance extends Exchange {
7891
7789
  /**
7892
7790
  * @method
7893
7791
  * @name binance#fetchPositionsRisk
7792
+ * @ignore
7894
7793
  * @description fetch positions risk
7895
7794
  * @see https://binance-docs.github.io/apidocs/futures/en/#position-information-v2-user_data
7896
7795
  * @see https://binance-docs.github.io/apidocs/delivery/en/#position-information-user_data
package/js/src/bit2c.js CHANGED
@@ -346,7 +346,13 @@ export default class bit2c extends Exchange {
346
346
  if (limit !== undefined) {
347
347
  request['limit'] = limit; // max 100000
348
348
  }
349
- const response = await this[method](this.extend(request, params));
349
+ let response = undefined;
350
+ if (method === 'public_get_exchanges_pair_trades') {
351
+ response = await this.publicGetExchangesPairTrades(this.extend(request, params));
352
+ }
353
+ else {
354
+ response = await this.publicGetExchangesPairLasttrades(this.extend(request, params));
355
+ }
350
356
  //
351
357
  // [
352
358
  // {"date":1651785980,"price":127975.68,"amount":0.3750321,"isBid":true,"tid":1261018},
@@ -434,7 +440,7 @@ export default class bit2c extends Exchange {
434
440
  request['Price'] = price;
435
441
  const amountString = this.numberToString(amount);
436
442
  const priceString = this.numberToString(price);
437
- request['Total'] = this.parseNumber(Precise.stringMul(amountString, priceString));
443
+ request['Total'] = this.parseToNumeric(Precise.stringMul(amountString, priceString));
438
444
  request['IsBid'] = (side === 'buy');
439
445
  }
440
446
  const response = await this[method](this.extend(request, params));
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/bitget.js';
2
- import type { Int, OrderSide, OrderType, Trade, OHLCV, Order, FundingRateHistory, OrderRequest, FundingHistory, Balances, Str, Transaction, Ticker, OrderBook, Tickers, Market, Strings, Currency, Position } from './base/types.js';
2
+ import type { Int, OrderSide, OrderType, Trade, OHLCV, Order, FundingRateHistory, OrderRequest, FundingHistory, Balances, Str, Transaction, Ticker, OrderBook, Tickers, Market, Strings, Currency, Position, Liquidation } from './base/types.js';
3
3
  /**
4
4
  * @class bitget
5
5
  * @augments Exchange
@@ -7,6 +7,8 @@ import type { Int, OrderSide, OrderType, Trade, OHLCV, Order, FundingRateHistory
7
7
  export default class bitget extends Exchange {
8
8
  describe(): any;
9
9
  setSandboxMode(enabled: any): void;
10
+ convertSymbolForSandbox(symbol: any): any;
11
+ handleProductTypeAndParams(market?: any, params?: {}): {}[];
10
12
  fetchTime(params?: {}): Promise<number>;
11
13
  fetchMarkets(params?: {}): Promise<any>;
12
14
  parseMarket(market: any): Market;
@@ -16,7 +18,7 @@ export default class bitget extends Exchange {
16
18
  parseMarketLeverageTiers(info: any, market?: Market): any[];
17
19
  fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
18
20
  withdraw(code: string, amount: any, address: any, tag?: any, params?: {}): Promise<{
19
- id: any;
21
+ id: string;
20
22
  info: any;
21
23
  txid: any;
22
24
  timestamp: any;
@@ -78,26 +80,26 @@ export default class bitget extends Exchange {
78
80
  parseBalance(balance: any): Balances;
79
81
  parseOrderStatus(status: any): string;
80
82
  parseOrder(order: any, market?: Market): Order;
83
+ createMarketBuyOrderWithCost(symbol: string, cost: any, params?: {}): Promise<Order>;
81
84
  createOrder(symbol: string, type: OrderType, side: OrderSide, amount: any, price?: any, params?: {}): Promise<Order>;
82
85
  createOrderRequest(symbol: any, type: any, side: any, amount: any, price?: any, params?: {}): any;
83
86
  createOrders(orders: OrderRequest[], params?: {}): Promise<Order[]>;
84
87
  editOrder(id: string, symbol: any, type: any, side: any, amount?: any, price?: any, params?: {}): Promise<Order>;
85
88
  cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
86
- cancelOrders(ids: any, symbol?: Str, params?: {}): Promise<any>;
89
+ cancelOrders(ids: any, symbol?: Str, params?: {}): Promise<Order[]>;
87
90
  cancelAllOrders(symbol?: Str, params?: {}): Promise<any>;
88
91
  fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
89
92
  fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
90
93
  fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
91
94
  fetchCanceledOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
92
95
  fetchCanceledAndClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
93
- addPaginationCursorToResult(response: any, data: any): any;
94
96
  fetchLedger(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
95
97
  parseLedgerEntry(item: any, currency?: Currency): {
96
98
  info: any;
97
99
  id: string;
98
100
  timestamp: number;
99
101
  datetime: string;
100
- direction: any;
102
+ direction: string;
101
103
  account: any;
102
104
  referenceId: any;
103
105
  referenceAccount: any;
@@ -109,8 +111,8 @@ export default class bitget extends Exchange {
109
111
  status: any;
110
112
  fee: number;
111
113
  };
114
+ parseLedgerType(type: any): string;
112
115
  fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
113
- fetchOrderTrades(id: string, symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
114
116
  fetchPosition(symbol: string, params?: {}): Promise<Position>;
115
117
  fetchPositions(symbols?: Strings, params?: {}): Promise<Position[]>;
116
118
  parsePosition(position: any, market?: Market): Position;
@@ -180,6 +182,7 @@ export default class bitget extends Exchange {
180
182
  setMarginMode(marginMode: any, symbol?: Str, params?: {}): Promise<any>;
181
183
  setPositionMode(hedged: any, symbol?: Str, params?: {}): Promise<any>;
182
184
  fetchOpenInterest(symbol: string, params?: {}): Promise<import("./base/types.js").OpenInterest>;
185
+ parseOpenInterest(interest: any, market?: Market): import("./base/types.js").OpenInterest;
183
186
  fetchTransfers(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
184
187
  transfer(code: string, amount: any, fromAccount: any, toAccount: any, params?: {}): Promise<{
185
188
  info: any;
@@ -203,6 +206,7 @@ export default class bitget extends Exchange {
203
206
  toAccount: string;
204
207
  status: string;
205
208
  };
209
+ parseTransferStatus(status: any): string;
206
210
  parseDepositWithdrawFee(fee: any, currency?: Currency): {
207
211
  info: any;
208
212
  withdraw: {
@@ -216,8 +220,6 @@ export default class bitget extends Exchange {
216
220
  networks: {};
217
221
  };
218
222
  fetchDepositWithdrawFees(codes?: Strings, params?: {}): Promise<any>;
219
- parseTransferStatus(status: any): string;
220
- parseOpenInterest(interest: any, market?: Market): import("./base/types.js").OpenInterest;
221
223
  borrowCrossMargin(code: string, amount: any, params?: {}): Promise<{
222
224
  id: string;
223
225
  currency: string;
@@ -254,7 +256,7 @@ export default class bitget extends Exchange {
254
256
  datetime: any;
255
257
  info: any;
256
258
  }>;
257
- parseMarginLoan(info: any, currency?: Currency): {
259
+ parseMarginLoan(info: any, currency?: Currency, market?: Market): {
258
260
  id: string;
259
261
  currency: string;
260
262
  amount: number;
@@ -263,8 +265,8 @@ export default class bitget extends Exchange {
263
265
  datetime: any;
264
266
  info: any;
265
267
  };
266
- fetchMyLiquidations(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<import("./base/types.js").Liquidation[]>;
267
- parseLiquidation(liquidation: any, market?: Market): import("./base/types.js").Liquidation;
268
+ fetchMyLiquidations(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Liquidation[]>;
269
+ parseLiquidation(liquidation: any, market?: Market): Liquidation;
268
270
  fetchIsolatedBorrowRate(symbol: string, params?: {}): Promise<{
269
271
  symbol: string;
270
272
  base: string;