ccxt 4.2.74 → 4.2.75

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 (51) hide show
  1. package/CHANGELOG.md +206 -10
  2. package/README.md +8 -7
  3. package/dist/ccxt.browser.js +862 -198
  4. package/dist/ccxt.browser.min.js +3 -3
  5. package/dist/cjs/ccxt.js +4 -1
  6. package/dist/cjs/src/abstract/tradeogre.js +9 -0
  7. package/dist/cjs/src/ascendex.js +3 -2
  8. package/dist/cjs/src/bitmart.js +1 -0
  9. package/dist/cjs/src/coinex.js +4 -3
  10. package/dist/cjs/src/gate.js +1 -0
  11. package/dist/cjs/src/kraken.js +3 -3
  12. package/dist/cjs/src/kucoin.js +1 -1
  13. package/dist/cjs/src/tradeogre.js +632 -0
  14. package/js/ccxt.d.ts +5 -2
  15. package/js/ccxt.js +4 -2
  16. package/js/src/abstract/tradeogre.d.ts +19 -0
  17. package/js/src/abstract/tradeogre.js +11 -0
  18. package/js/src/ascendex.d.ts +2 -7
  19. package/js/src/ascendex.js +3 -2
  20. package/js/src/base/Exchange.d.ts +5 -5
  21. package/js/src/base/types.d.ts +7 -1
  22. package/js/src/binance.d.ts +1 -1
  23. package/js/src/bitmart.d.ts +1 -1
  24. package/js/src/bitmart.js +2 -1
  25. package/js/src/coinbase.d.ts +4 -4
  26. package/js/src/coinbaseinternational.d.ts +1 -1
  27. package/js/src/coinbasepro.d.ts +2 -2
  28. package/js/src/coinex.js +4 -3
  29. package/js/src/coinlist.d.ts +2 -2
  30. package/js/src/cryptocom.d.ts +2 -2
  31. package/js/src/currencycom.d.ts +2 -2
  32. package/js/src/deribit.d.ts +2 -2
  33. package/js/src/gate.d.ts +1 -1
  34. package/js/src/gate.js +1 -0
  35. package/js/src/htx.d.ts +2 -2
  36. package/js/src/huobijp.d.ts +2 -2
  37. package/js/src/kraken.d.ts +1 -1
  38. package/js/src/kraken.js +3 -3
  39. package/js/src/kucoin.d.ts +3 -3
  40. package/js/src/kucoin.js +1 -1
  41. package/js/src/luno.d.ts +2 -2
  42. package/js/src/mexc.d.ts +3 -3
  43. package/js/src/ndax.d.ts +2 -2
  44. package/js/src/novadax.d.ts +2 -2
  45. package/js/src/okx.d.ts +2 -2
  46. package/js/src/pro/bitfinex2.d.ts +1 -1
  47. package/js/src/tradeogre.d.ts +32 -0
  48. package/js/src/tradeogre.js +633 -0
  49. package/js/src/woo.d.ts +2 -2
  50. package/package.json +1 -1
  51. package/skip-tests.json +5 -0
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.74';
41
+ const version = '4.2.75';
42
42
  Exchange.ccxtVersion = version;
43
43
  //-----------------------------------------------------------------------------
44
44
  import ace from './src/ace.js';
@@ -135,6 +135,7 @@ import poloniexfutures from './src/poloniexfutures.js';
135
135
  import probit from './src/probit.js';
136
136
  import timex from './src/timex.js';
137
137
  import tokocrypto from './src/tokocrypto.js';
138
+ import tradeogre from './src/tradeogre.js';
138
139
  import upbit from './src/upbit.js';
139
140
  import wavesexchange from './src/wavesexchange.js';
140
141
  import wazirx from './src/wazirx.js';
@@ -302,6 +303,7 @@ const exchanges = {
302
303
  'probit': probit,
303
304
  'timex': timex,
304
305
  'tokocrypto': tokocrypto,
306
+ 'tradeogre': tradeogre,
305
307
  'upbit': upbit,
306
308
  'wavesexchange': wavesexchange,
307
309
  'wazirx': wazirx,
@@ -388,6 +390,6 @@ pro.exchanges = Object.keys(pro);
388
390
  pro['Exchange'] = Exchange; // now the same for rest and ts
389
391
  //-----------------------------------------------------------------------------
390
392
  const ccxt = Object.assign({ version, Exchange, Precise, 'exchanges': Object.keys(exchanges), 'pro': pro }, exchanges, functions, errors);
391
- export { version, Exchange, exchanges, pro, Precise, functions, errors, 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, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbay, bitbns, bitcoincom, bitfinex, bitfinex2, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitpanda, bitrue, bitso, bitstamp, bitteam, bitvavo, bl3p, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbaseinternational, coinbasepro, coincheck, coinex, coinlist, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, currencycom, delta, deribit, digifinex, exmo, fmfwio, gate, gateio, gemini, hitbtc, hitbtc3, hollaex, htx, huobi, huobijp, hyperliquid, idex, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, kuna, latoken, lbank, luno, lykke, mercado, mexc, ndax, novadax, oceanex, okcoin, okx, onetrading, p2b, paymium, phemex, poloniex, poloniexfutures, probit, timex, tokocrypto, upbit, wavesexchange, wazirx, whitebit, woo, yobit, zaif, zonda, };
393
+ export { version, Exchange, exchanges, pro, Precise, functions, errors, 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, ace, alpaca, ascendex, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbay, bitbns, bitcoincom, bitfinex, bitfinex2, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitpanda, bitrue, bitso, bitstamp, bitteam, bitvavo, bl3p, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bybit, cex, coinbase, coinbaseinternational, coinbasepro, coincheck, coinex, coinlist, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, currencycom, delta, deribit, digifinex, exmo, fmfwio, gate, gateio, gemini, hitbtc, hitbtc3, hollaex, htx, huobi, huobijp, hyperliquid, idex, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, kuna, latoken, lbank, luno, lykke, mercado, mexc, ndax, novadax, oceanex, okcoin, okx, onetrading, p2b, paymium, phemex, poloniex, poloniexfutures, probit, timex, tokocrypto, tradeogre, upbit, wavesexchange, wazirx, whitebit, woo, yobit, zaif, zonda, };
392
394
  export default ccxt;
393
395
  //-----------------------------------------------------------------------------
@@ -0,0 +1,19 @@
1
+ import { implicitReturnType } from '../base/types.js';
2
+ import { Exchange as _Exchange } from '../base/Exchange.js';
3
+ interface Exchange {
4
+ publicGetMarkets(params?: {}): Promise<implicitReturnType>;
5
+ publicGetOrdersMarket(params?: {}): Promise<implicitReturnType>;
6
+ publicGetTickerMarket(params?: {}): Promise<implicitReturnType>;
7
+ publicGetHistoryMarket(params?: {}): Promise<implicitReturnType>;
8
+ privateGetAccountBalance(params?: {}): Promise<implicitReturnType>;
9
+ privateGetAccountBalances(params?: {}): Promise<implicitReturnType>;
10
+ privateGetAccountOrderUuid(params?: {}): Promise<implicitReturnType>;
11
+ privatePostOrderBuy(params?: {}): Promise<implicitReturnType>;
12
+ privatePostOrderSell(params?: {}): Promise<implicitReturnType>;
13
+ privatePostOrderCancel(params?: {}): Promise<implicitReturnType>;
14
+ privatePostOrders(params?: {}): Promise<implicitReturnType>;
15
+ privatePostAccountOrders(params?: {}): Promise<implicitReturnType>;
16
+ }
17
+ declare abstract class Exchange extends _Exchange {
18
+ }
19
+ export default Exchange;
@@ -0,0 +1,11 @@
1
+ // ----------------------------------------------------------------------------
2
+
3
+ // PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
4
+ // https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
5
+ // EDIT THE CORRESPONDENT .ts FILE INSTEAD
6
+
7
+ // -------------------------------------------------------------------------------
8
+ import { Exchange as _Exchange } from '../base/Exchange.js';
9
+ class Exchange extends _Exchange {
10
+ }
11
+ export default Exchange;
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/ascendex.js';
2
- import type { TransferEntry, FundingHistory, Int, OHLCV, Order, OrderSide, OrderType, OrderRequest, Str, Trade, Balances, Transaction, Ticker, OrderBook, Tickers, Strings, Num, Currency, Market, Leverage, Leverages, MarginModes, MarginMode } from './base/types.js';
2
+ import type { TransferEntry, FundingHistory, Int, OHLCV, Order, OrderSide, OrderType, OrderRequest, Str, Trade, Balances, Transaction, Ticker, OrderBook, Tickers, Strings, Num, Currency, Market, Leverage, Leverages, Account, MarginModes, MarginMode } from './base/types.js';
3
3
  /**
4
4
  * @class ascendex
5
5
  * @augments Exchange
@@ -10,12 +10,7 @@ export default class ascendex extends Exchange {
10
10
  fetchCurrencies(params?: {}): Promise<{}>;
11
11
  fetchMarkets(params?: {}): Promise<any[]>;
12
12
  fetchTime(params?: {}): Promise<number>;
13
- fetchAccounts(params?: {}): Promise<{
14
- id: string;
15
- type: any;
16
- currency: any;
17
- info: any;
18
- }[]>;
13
+ fetchAccounts(params?: {}): Promise<Account[]>;
19
14
  parseBalance(response: any): Balances;
20
15
  parseMarginBalance(response: any): Balances;
21
16
  parseSwapBalance(response: any): Balances;
@@ -753,7 +753,7 @@ export default class ascendex extends Exchange {
753
753
  {
754
754
  'id': accountGroup,
755
755
  'type': undefined,
756
- 'currency': undefined,
756
+ 'code': undefined,
757
757
  'info': response,
758
758
  },
759
759
  ];
@@ -2733,7 +2733,8 @@ export default class ascendex extends Exchange {
2733
2733
  if (Precise.stringEq(notional, '0')) {
2734
2734
  notional = this.safeString(position, 'sellOpenOrderNotional');
2735
2735
  }
2736
- const marginMode = this.safeString(position, 'marginType');
2736
+ const marginType = this.safeString(position, 'marginType');
2737
+ const marginMode = (marginType === 'crossed') ? 'cross' : 'isolated';
2737
2738
  let collateral = undefined;
2738
2739
  if (marginMode === 'isolated') {
2739
2740
  collateral = this.safeString(position, 'isolatedMargin');
@@ -3,7 +3,7 @@ import { // eslint-disable-line object-curly-newline
3
3
  ExchangeError, AuthenticationError, DDoSProtection, RequestTimeout, ExchangeNotAvailable, RateLimitExceeded } from "./errors.js";
4
4
  import WsClient from './ws/WsClient.js';
5
5
  import { OrderBook as WsOrderBook, IndexedOrderBook, CountedOrderBook } from './ws/OrderBook.js';
6
- import type { Market, Trade, Ticker, OHLCV, OHLCVC, Order, OrderBook, Balance, Balances, Dictionary, Transaction, DepositAddressResponse, Currency, MinMax, IndexType, Int, OrderType, OrderSide, Position, FundingRate, DepositWithdrawFeeNetwork, LedgerEntry, BorrowInterest, OpenInterest, LeverageTier, TransferEntry, FundingRateHistory, Liquidation, FundingHistory, OrderRequest, MarginMode, Tickers, Greeks, Str, Num, MarketInterface, CurrencyInterface, Account, MarginModes, MarketType, Leverage, Leverages, LastPrice, LastPrices } from './types.js';
6
+ import type { Market, Trade, Ticker, OHLCV, OHLCVC, Order, OrderBook, Balance, Balances, Dictionary, Transaction, DepositAddressResponse, Currency, MinMax, IndexType, Int, OrderType, OrderSide, Position, FundingRate, DepositWithdrawFeeNetwork, LedgerEntry, BorrowInterest, OpenInterest, LeverageTier, TransferEntry, FundingRateHistory, Liquidation, FundingHistory, OrderRequest, MarginMode, Tickers, Greeks, Str, Num, MarketInterface, CurrencyInterface, BalanceAccount, MarginModes, MarketType, Leverage, Leverages, LastPrice, LastPrices, Account } from './types.js';
7
7
  export type { Market, Trade, Fee, Ticker, OHLCV, OHLCVC, Order, OrderBook, Balance, Balances, Dictionary, Transaction, DepositAddressResponse, Currency, MinMax, IndexType, Int, OrderType, OrderSide, Position, FundingRateHistory, Liquidation, FundingHistory, Greeks, Leverage, Leverages, Str } from './types.js';
8
8
  import { ArrayCache, ArrayCacheByTimestamp } from './ws/Cache.js';
9
9
  import { OrderBook as Ob } from './ws/OrderBook.js';
@@ -644,7 +644,7 @@ export default class Exchange {
644
644
  filterByValueSinceLimit(array: object[], field: IndexType, value?: any, since?: Int, limit?: Int, key?: string, tail?: boolean): any;
645
645
  setSandboxMode(enabled: boolean): void;
646
646
  sign(path: any, api?: any, method?: string, params?: {}, headers?: any, body?: any): {};
647
- fetchAccounts(params?: {}): Promise<{}>;
647
+ fetchAccounts(params?: {}): Promise<Account[]>;
648
648
  fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
649
649
  fetchTradesWs(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
650
650
  watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
@@ -668,7 +668,7 @@ export default class Exchange {
668
668
  parseTrade(trade: object, market?: Market): Trade;
669
669
  parseTransaction(transaction: any, currency?: Currency): Transaction;
670
670
  parseTransfer(transfer: any, currency?: Currency): object;
671
- parseAccount(account: any): {};
671
+ parseAccount(account: any): Account;
672
672
  parseLedgerEntry(item: any, currency?: Currency): object;
673
673
  parseOrder(order: any, market?: Market): Order;
674
674
  fetchCrossBorrowRates(params?: {}): Promise<{}>;
@@ -789,7 +789,7 @@ export default class Exchange {
789
789
  loadTradingLimits(symbols?: string[], reload?: boolean, params?: {}): Promise<Dictionary<any>>;
790
790
  safePosition(position: any): Position;
791
791
  parsePositions(positions: any[], symbols?: string[], params?: {}): Position[];
792
- parseAccounts(accounts: any[], params?: {}): any[];
792
+ parseAccounts(accounts: any[], params?: {}): Account[];
793
793
  parseTrades(trades: any[], market?: Market, since?: Int, limit?: Int, params?: {}): Trade[];
794
794
  parseTransactions(transactions: any[], currency?: Currency, since?: Int, limit?: Int, params?: {}): Transaction[];
795
795
  parseTransfers(transfers: any[], currency?: Currency, since?: Int, limit?: Int, params?: {}): any;
@@ -914,7 +914,7 @@ export default class Exchange {
914
914
  fetchL3OrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
915
915
  parseLastPrice(price: any, market?: Market): LastPrice;
916
916
  fetchDepositAddress(code: string, params?: {}): Promise<any>;
917
- account(): Account;
917
+ account(): BalanceAccount;
918
918
  commonCurrencyCode(currency: string): string;
919
919
  currency(code: string): any;
920
920
  market(symbol: string): MarketInterface;
@@ -180,11 +180,17 @@ export interface Balance {
180
180
  total: Num;
181
181
  debt?: Num;
182
182
  }
183
- export interface Account {
183
+ export interface BalanceAccount {
184
184
  free: Str;
185
185
  used: Str;
186
186
  total: Str;
187
187
  }
188
+ export interface Account {
189
+ id: Str;
190
+ type: Str;
191
+ code: Str;
192
+ info: any;
193
+ }
188
194
  export interface PartialBalances extends Dictionary<number> {
189
195
  }
190
196
  export interface Balances extends Dictionary<Balance> {
@@ -20,7 +20,7 @@ export default class binance extends Exchange {
20
20
  fetchCurrencies(params?: {}): Promise<{}>;
21
21
  fetchMarkets(params?: {}): Promise<any[]>;
22
22
  parseMarket(market: any): Market;
23
- parseBalanceHelper(entry: any): import("./base/types.js").Account;
23
+ parseBalanceHelper(entry: any): import("./base/types.js").BalanceAccount;
24
24
  parseBalanceCustom(response: any, type?: any, marginMode?: any, isPortfolioMargin?: boolean): Balances;
25
25
  fetchBalance(params?: {}): Promise<Balances>;
26
26
  fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
@@ -47,7 +47,7 @@ export default class bitmart extends Exchange {
47
47
  fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
48
48
  fetchOrderTrades(id: string, symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
49
49
  customParseBalance(response: any, marketType: any): Balances;
50
- parseBalanceHelper(entry: any): import("./base/types.js").Account;
50
+ parseBalanceHelper(entry: any): import("./base/types.js").BalanceAccount;
51
51
  fetchBalance(params?: {}): Promise<Balances>;
52
52
  parseTradingFee(fee: any, market?: Market): {
53
53
  info: any;
package/js/src/bitmart.js CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  // ---------------------------------------------------------------------------
8
8
  import Exchange from './abstract/bitmart.js';
9
- import { AuthenticationError, ExchangeNotAvailable, OnMaintenance, AccountSuspended, PermissionDenied, RateLimitExceeded, InvalidNonce, InvalidAddress, ArgumentsRequired, ExchangeError, InvalidOrder, InsufficientFunds, BadRequest, OrderNotFound, BadSymbol, NotSupported } from './base/errors.js';
9
+ import { AuthenticationError, ExchangeNotAvailable, OnMaintenance, AccountSuspended, PermissionDenied, RateLimitExceeded, InvalidNonce, InvalidAddress, ArgumentsRequired, ExchangeError, InvalidOrder, InsufficientFunds, BadRequest, OrderNotFound, BadSymbol, NotSupported, NetworkError } from './base/errors.js';
10
10
  import { Precise } from './base/Precise.js';
11
11
  import { TICK_SIZE, TRUNCATE } from './base/functions/number.js';
12
12
  import { sha256 } from './static_dependencies/noble-hashes/sha256.js';
@@ -350,6 +350,7 @@ export default class bitmart extends Exchange {
350
350
  '70000': ExchangeError,
351
351
  '70001': BadRequest,
352
352
  '70002': BadSymbol,
353
+ '70003': NetworkError,
353
354
  '71001': BadRequest,
354
355
  '71002': BadRequest,
355
356
  '71003': BadRequest,
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/coinbase.js';
2
- import type { Int, OrderSide, OrderType, Order, Trade, OHLCV, Ticker, OrderBook, Str, Transaction, Balances, Tickers, Strings, Market, Currency, Num } from './base/types.js';
2
+ import type { Int, OrderSide, OrderType, Order, Trade, OHLCV, Ticker, OrderBook, Str, Transaction, Balances, Tickers, Strings, Market, Currency, Num, Account } from './base/types.js';
3
3
  /**
4
4
  * @class coinbase
5
5
  * @augments Exchange
@@ -7,9 +7,9 @@ import type { Int, OrderSide, OrderType, Order, Trade, OHLCV, Ticker, OrderBook,
7
7
  export default class coinbase extends Exchange {
8
8
  describe(): any;
9
9
  fetchTime(params?: {}): Promise<number>;
10
- fetchAccounts(params?: {}): Promise<any>;
11
- fetchAccountsV2(params?: {}): Promise<any>;
12
- fetchAccountsV3(params?: {}): Promise<any>;
10
+ fetchAccounts(params?: {}): Promise<Account[]>;
11
+ fetchAccountsV2(params?: {}): Promise<Account[]>;
12
+ fetchAccountsV3(params?: {}): Promise<Account[]>;
13
13
  parseAccount(account: any): {
14
14
  id: string;
15
15
  type: string;
@@ -8,7 +8,7 @@ export default class coinbaseinternational extends Exchange {
8
8
  describe(): any;
9
9
  handlePortfolioAndParams(methodName: string, params?: {}): Promise<any[]>;
10
10
  handleNetworkIdAndParams(currencyCode: string, methodName: string, params: any): Promise<any[]>;
11
- fetchAccounts(params?: {}): Promise<any[]>;
11
+ fetchAccounts(params?: {}): Promise<import("./base/types.js").Account[]>;
12
12
  parseAccount(account: any): {
13
13
  id: string;
14
14
  type: any;
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/coinbasepro.js';
2
- import type { Int, OrderSide, OrderType, Trade, OHLCV, Order, Balances, Str, Transaction, Ticker, OrderBook, Tickers, Strings, Market, Currency, Num } from './base/types.js';
2
+ import type { Int, OrderSide, OrderType, Trade, OHLCV, Order, Balances, Str, Transaction, Ticker, OrderBook, Tickers, Strings, Market, Currency, Num, Account } from './base/types.js';
3
3
  /**
4
4
  * @class coinbasepro
5
5
  * @augments Exchange
@@ -8,7 +8,7 @@ export default class coinbasepro extends Exchange {
8
8
  describe(): any;
9
9
  fetchCurrencies(params?: {}): Promise<{}>;
10
10
  fetchMarkets(params?: {}): Promise<any[]>;
11
- fetchAccounts(params?: {}): Promise<any[]>;
11
+ fetchAccounts(params?: {}): Promise<Account[]>;
12
12
  parseAccount(account: any): {
13
13
  id: string;
14
14
  type: any;
package/js/src/coinex.js CHANGED
@@ -137,7 +137,7 @@ export default class coinex extends Exchange {
137
137
  'perpetualPrivate': 'https://api.coinex.com/perpetual',
138
138
  },
139
139
  'www': 'https://www.coinex.com',
140
- 'doc': 'https://github.com/coinexcom/coinex_exchange_api/wiki',
140
+ 'doc': 'https://viabtc.github.io/coinex_api_en_doc',
141
141
  'fees': 'https://www.coinex.com/fees',
142
142
  'referral': 'https://www.coinex.com/register?refer_code=yw5fz',
143
143
  },
@@ -351,6 +351,7 @@ export default class coinex extends Exchange {
351
351
  },
352
352
  'broad': {
353
353
  'ip not allow visit': PermissionDenied,
354
+ 'service too busy': ExchangeNotAvailable,
354
355
  },
355
356
  },
356
357
  });
@@ -5157,7 +5158,7 @@ export default class coinex extends Exchange {
5157
5158
  * @method
5158
5159
  * @name coinex#borrowIsolatedMargin
5159
5160
  * @description create a loan to borrow margin
5160
- * @see https://github.com/coinexcom/coinex_exchange_api/wiki/086margin_loan
5161
+ * @see https://viabtc.github.io/coinex_api_en_doc/spot/#docsspot002_account017_margin_loan
5161
5162
  * @param {string} symbol unified market symbol, required for coinex
5162
5163
  * @param {string} code unified currency code of the currency to borrow
5163
5164
  * @param {float} amount the amount to borrow
@@ -5194,7 +5195,7 @@ export default class coinex extends Exchange {
5194
5195
  * @method
5195
5196
  * @name coinex#repayIsolatedMargin
5196
5197
  * @description repay borrowed margin and interest
5197
- * @see https://github.com/coinexcom/coinex_exchange_api/wiki/087margin_flat
5198
+ * @see https://viabtc.github.io/coinex_api_en_doc/spot/#docsspot002_account018_margin_flat
5198
5199
  * @param {string} symbol unified market symbol, required for coinex
5199
5200
  * @param {string} code unified currency code of the currency to repay
5200
5201
  * @param {float} amount the amount to repay
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/coinlist.js';
2
- import type { Balances, Currency, Int, Market, Num, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction, TransferEntry } from './base/types.js';
2
+ import type { Account, Balances, Currency, Int, Market, Num, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction, TransferEntry } from './base/types.js';
3
3
  /**
4
4
  * @class coinlist
5
5
  * @augments Exchange
@@ -24,7 +24,7 @@ export default class coinlist extends Exchange {
24
24
  maker: any[];
25
25
  taker: any[];
26
26
  };
27
- fetchAccounts(params?: {}): Promise<any[]>;
27
+ fetchAccounts(params?: {}): Promise<Account[]>;
28
28
  parseAccount(account: any): {
29
29
  id: string;
30
30
  type: string;
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/cryptocom.js';
2
- import type { Int, OrderSide, OrderType, Trade, OHLCV, Order, FundingRateHistory, Str, Ticker, OrderRequest, Balances, Transaction, OrderBook, Tickers, Strings, Currency, Market, Num } from './base/types.js';
2
+ import type { Int, OrderSide, OrderType, Trade, OHLCV, Order, FundingRateHistory, Str, Ticker, OrderRequest, Balances, Transaction, OrderBook, Tickers, Strings, Currency, Market, Num, Account } from './base/types.js';
3
3
  /**
4
4
  * @class cryptocom
5
5
  * @augments Exchange
@@ -77,7 +77,7 @@ export default class cryptocom extends Exchange {
77
77
  info: any;
78
78
  };
79
79
  parseLedgerEntryType(type: any): string;
80
- fetchAccounts(params?: {}): Promise<any[]>;
80
+ fetchAccounts(params?: {}): Promise<Account[]>;
81
81
  parseAccount(account: any): {
82
82
  id: string;
83
83
  type: string;
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/currencycom.js';
2
- import type { Balances, Currency, Int, Market, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction, Leverage, Num } from './base/types.js';
2
+ import type { Balances, Currency, Int, Market, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction, Leverage, Num, Account } from './base/types.js';
3
3
  /**
4
4
  * @class currencycom
5
5
  * @augments Exchange
@@ -10,7 +10,7 @@ export default class currencycom extends Exchange {
10
10
  fetchTime(params?: {}): Promise<number>;
11
11
  fetchCurrencies(params?: {}): Promise<{}>;
12
12
  fetchMarkets(params?: {}): Promise<any[]>;
13
- fetchAccounts(params?: {}): Promise<any[]>;
13
+ fetchAccounts(params?: {}): Promise<Account[]>;
14
14
  fetchTradingFees(params?: {}): Promise<{}>;
15
15
  parseBalance(response: any, type?: any): Balances;
16
16
  fetchBalance(params?: {}): Promise<Balances>;
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/deribit.js';
2
- import type { Balances, Currency, FundingRateHistory, Greeks, Int, Liquidation, Market, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction, TransferEntry, MarketInterface, Num } from './base/types.js';
2
+ import type { Balances, Currency, FundingRateHistory, Greeks, Int, Liquidation, Market, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction, TransferEntry, MarketInterface, Num, Account } from './base/types.js';
3
3
  /**
4
4
  * @class deribit
5
5
  * @augments Exchange
@@ -21,7 +21,7 @@ export default class deribit extends Exchange {
21
21
  url: any;
22
22
  info: any;
23
23
  }>;
24
- fetchAccounts(params?: {}): Promise<any[]>;
24
+ fetchAccounts(params?: {}): Promise<Account[]>;
25
25
  parseAccount(account: any, currency?: Currency): {
26
26
  info: any;
27
27
  id: string;
package/js/src/gate.d.ts CHANGED
@@ -163,7 +163,7 @@ export default class gate extends Exchange {
163
163
  fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
164
164
  parseTicker(ticker: any, market?: Market): Ticker;
165
165
  fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
166
- parseBalanceHelper(entry: any): import("./base/types.js").Account;
166
+ parseBalanceHelper(entry: any): import("./base/types.js").BalanceAccount;
167
167
  fetchBalance(params?: {}): Promise<Balances>;
168
168
  fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
169
169
  fetchOptionOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
package/js/src/gate.js CHANGED
@@ -4289,6 +4289,7 @@ export default class gate extends Exchange {
4289
4289
  'failed': 'canceled',
4290
4290
  'expired': 'canceled',
4291
4291
  'finished': 'closed',
4292
+ 'finish': 'closed',
4292
4293
  'succeeded': 'closed',
4293
4294
  };
4294
4295
  return this.safeString(statuses, status, status);
package/js/src/htx.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/htx.js';
2
- import type { BorrowRate, TransferEntry, Int, OrderSide, OrderType, Order, OHLCV, Trade, FundingRateHistory, Balances, Str, Transaction, Ticker, OrderBook, Tickers, OrderRequest, Strings, Market, Currency, Num } from './base/types.js';
2
+ import type { BorrowRate, TransferEntry, Int, OrderSide, OrderType, Order, OHLCV, Trade, FundingRateHistory, Balances, Str, Transaction, Ticker, OrderBook, Tickers, OrderRequest, Strings, Market, Currency, Num, Account } from './base/types.js';
3
3
  /**
4
4
  * @class huobi
5
5
  * @augments Exchange
@@ -68,7 +68,7 @@ export default class htx extends Exchange {
68
68
  fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
69
69
  parseOHLCV(ohlcv: any, market?: Market): OHLCV;
70
70
  fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
71
- fetchAccounts(params?: {}): Promise<any[]>;
71
+ fetchAccounts(params?: {}): Promise<Account[]>;
72
72
  parseAccount(account: any): {
73
73
  info: any;
74
74
  id: string;
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/huobijp.js';
2
- import type { Balances, Currency, Int, Market, Num, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction } from './base/types.js';
2
+ import type { Account, Balances, Currency, Int, Market, Num, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction } from './base/types.js';
3
3
  /**
4
4
  * @class huobijp
5
5
  * @augments Exchange
@@ -38,7 +38,7 @@ export default class huobijp extends Exchange {
38
38
  fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
39
39
  parseOHLCV(ohlcv: any, market?: Market): OHLCV;
40
40
  fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
41
- fetchAccounts(params?: {}): Promise<any>;
41
+ fetchAccounts(params?: {}): Promise<Account[]>;
42
42
  fetchCurrencies(params?: {}): Promise<{}>;
43
43
  parseBalance(response: any): Balances;
44
44
  fetchBalance(params?: {}): Promise<Balances>;
@@ -112,7 +112,7 @@ export default class kraken extends Exchange {
112
112
  };
113
113
  withdraw(code: string, amount: number, address: any, tag?: any, params?: {}): Promise<Transaction>;
114
114
  fetchPositions(symbols?: Strings, params?: {}): Promise<any>;
115
- parseAccount(account: any): string;
115
+ parseAccountType(account: any): string;
116
116
  transferOut(code: string, amount: any, params?: {}): Promise<TransferEntry>;
117
117
  transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?: {}): Promise<TransferEntry>;
118
118
  parseTransfer(transfer: any, currency?: Currency): {
package/js/src/kraken.js CHANGED
@@ -2764,7 +2764,7 @@ export default class kraken extends Exchange {
2764
2764
  // todo unify parsePosition/parsePositions
2765
2765
  return result;
2766
2766
  }
2767
- parseAccount(account) {
2767
+ parseAccountType(account) {
2768
2768
  const accountByType = {
2769
2769
  'spot': 'Spot Wallet',
2770
2770
  'swap': 'Futures Wallet',
@@ -2798,8 +2798,8 @@ export default class kraken extends Exchange {
2798
2798
  */
2799
2799
  await this.loadMarkets();
2800
2800
  const currency = this.currency(code);
2801
- fromAccount = this.parseAccount(fromAccount);
2802
- toAccount = this.parseAccount(toAccount);
2801
+ fromAccount = this.parseAccountType(fromAccount);
2802
+ toAccount = this.parseAccountType(toAccount);
2803
2803
  const request = {
2804
2804
  'amount': this.currencyToPrecision(code, amount),
2805
2805
  'from': fromAccount,
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/kucoin.js';
2
- import type { TransferEntry, Int, OrderSide, OrderType, Order, OHLCV, Trade, Balances, OrderRequest, Str, Transaction, Ticker, OrderBook, Tickers, Strings, Currency, Market, Num } from './base/types.js';
2
+ import type { TransferEntry, Int, OrderSide, OrderType, Order, OHLCV, Trade, Balances, OrderRequest, Str, Transaction, Ticker, OrderBook, Tickers, Strings, Currency, Market, Num, Account } from './base/types.js';
3
3
  /**
4
4
  * @class kucoin
5
5
  * @augments Exchange
@@ -17,7 +17,7 @@ export default class kucoin extends Exchange {
17
17
  }>;
18
18
  fetchMarkets(params?: {}): Promise<any[]>;
19
19
  fetchCurrencies(params?: {}): Promise<{}>;
20
- fetchAccounts(params?: {}): Promise<any[]>;
20
+ fetchAccounts(params?: {}): Promise<Account[]>;
21
21
  fetchTransactionFee(code: string, params?: {}): Promise<{
22
22
  info: any;
23
23
  withdraw: {};
@@ -97,7 +97,7 @@ export default class kucoin extends Exchange {
97
97
  parseTransaction(transaction: any, currency?: Currency): Transaction;
98
98
  fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
99
99
  fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
100
- parseBalanceHelper(entry: any): import("./base/types.js").Account;
100
+ parseBalanceHelper(entry: any): import("./base/types.js").BalanceAccount;
101
101
  fetchBalance(params?: {}): Promise<Balances>;
102
102
  transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?: {}): Promise<TransferEntry>;
103
103
  parseTransfer(transfer: any, currency?: Currency): {
package/js/src/kucoin.js CHANGED
@@ -464,7 +464,7 @@ export default class kucoin extends Exchange {
464
464
  '400006': AuthenticationError,
465
465
  '400007': AuthenticationError,
466
466
  '400008': NotSupported,
467
- '400100': BadRequest,
467
+ '400100': InsufficientFunds,
468
468
  '400200': InvalidOrder,
469
469
  '400350': InvalidOrder,
470
470
  '400370': InvalidOrder,
package/js/src/luno.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/luno.js';
2
- import type { Balances, Currency, Int, Market, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, OHLCV, Num } from './base/types.js';
2
+ import type { Balances, Currency, Int, Market, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, OHLCV, Num, Account } from './base/types.js';
3
3
  /**
4
4
  * @class luno
5
5
  * @augments Exchange
@@ -7,7 +7,7 @@ import type { Balances, Currency, Int, Market, Order, OrderBook, OrderSide, Orde
7
7
  export default class luno extends Exchange {
8
8
  describe(): any;
9
9
  fetchMarkets(params?: {}): Promise<any[]>;
10
- fetchAccounts(params?: {}): Promise<any[]>;
10
+ fetchAccounts(params?: {}): Promise<Account[]>;
11
11
  parseBalance(response: any): Balances;
12
12
  fetchBalance(params?: {}): Promise<Balances>;
13
13
  fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
package/js/src/mexc.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/mexc.js';
2
- import type { TransferEntry, IndexType, Int, OrderSide, Balances, OrderType, OHLCV, FundingRateHistory, Position, OrderBook, OrderRequest, FundingHistory, Order, Str, Trade, Transaction, Ticker, Tickers, Strings, Market, Currency, Leverage, Num } from './base/types.js';
2
+ import type { TransferEntry, IndexType, Int, OrderSide, Balances, OrderType, OHLCV, FundingRateHistory, Position, OrderBook, OrderRequest, FundingHistory, Order, Str, Trade, Transaction, Ticker, Tickers, Strings, Market, Currency, Leverage, Num, Account } from './base/types.js';
3
3
  /**
4
4
  * @class mexc
5
5
  * @augments Exchange
@@ -51,10 +51,10 @@ export default class mexc extends Exchange {
51
51
  parseOrderStatus(status: any): string;
52
52
  parseOrderTimeInForce(status: any): string;
53
53
  fetchAccountHelper(type: any, params: any): Promise<any>;
54
- fetchAccounts(params?: {}): Promise<any[]>;
54
+ fetchAccounts(params?: {}): Promise<Account[]>;
55
55
  fetchTradingFees(params?: {}): Promise<{}>;
56
56
  customParseBalance(response: any, marketType: any): Balances;
57
- parseBalanceHelper(entry: any): import("./base/types.js").Account;
57
+ parseBalanceHelper(entry: any): import("./base/types.js").BalanceAccount;
58
58
  fetchBalance(params?: {}): Promise<Balances>;
59
59
  fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
60
60
  fetchOrderTrades(id: string, symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
package/js/src/ndax.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/ndax.js';
2
- import type { IndexType, Balances, Currency, Int, Market, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Ticker, Trade, Transaction, Num } from './base/types.js';
2
+ import type { IndexType, Balances, Currency, Int, Market, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Ticker, Trade, Transaction, Num, Account } from './base/types.js';
3
3
  /**
4
4
  * @class ndax
5
5
  * @augments Exchange
@@ -18,7 +18,7 @@ export default class ndax extends Exchange {
18
18
  fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
19
19
  parseTrade(trade: any, market?: Market): Trade;
20
20
  fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
21
- fetchAccounts(params?: {}): Promise<any[]>;
21
+ fetchAccounts(params?: {}): Promise<Account[]>;
22
22
  parseBalance(response: any): Balances;
23
23
  fetchBalance(params?: {}): Promise<Balances>;
24
24
  parseLedgerEntryType(type: any): string;
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/novadax.js';
2
- import type { TransferEntry, Balances, Currency, Int, Market, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction, Num } from './base/types.js';
2
+ import type { TransferEntry, Balances, Currency, Int, Market, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction, Num, Account } from './base/types.js';
3
3
  /**
4
4
  * @class novadax
5
5
  * @augments Exchange
@@ -43,7 +43,7 @@ export default class novadax extends Exchange {
43
43
  };
44
44
  parseTransferStatus(status: any): string;
45
45
  withdraw(code: string, amount: number, address: any, tag?: any, params?: {}): Promise<Transaction>;
46
- fetchAccounts(params?: {}): Promise<any[]>;
46
+ fetchAccounts(params?: {}): Promise<Account[]>;
47
47
  fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
48
48
  fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
49
49
  fetchDepositsWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
package/js/src/okx.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/okx.js';
2
- import type { TransferEntry, Int, OrderSide, OrderType, Trade, OHLCV, Order, FundingRateHistory, OrderRequest, FundingHistory, Str, Transaction, Ticker, OrderBook, Balances, Tickers, Market, Greeks, Strings, MarketInterface, Currency, Leverage, Num } from './base/types.js';
2
+ import type { TransferEntry, Int, OrderSide, OrderType, Trade, OHLCV, Order, FundingRateHistory, OrderRequest, FundingHistory, Str, Transaction, Ticker, OrderBook, Balances, Tickers, Market, Greeks, Strings, MarketInterface, Currency, Leverage, Num, Account } from './base/types.js';
3
3
  /**
4
4
  * @class okx
5
5
  * @augments Exchange
@@ -19,7 +19,7 @@ export default class okx extends Exchange {
19
19
  info: any;
20
20
  }>;
21
21
  fetchTime(params?: {}): Promise<number>;
22
- fetchAccounts(params?: {}): Promise<any[]>;
22
+ fetchAccounts(params?: {}): Promise<Account[]>;
23
23
  fetchMarkets(params?: {}): Promise<any[]>;
24
24
  parseMarket(market: any): Market;
25
25
  fetchMarketsByType(type: any, params?: {}): Promise<MarketInterface[]>;
@@ -20,7 +20,7 @@ export default class bitfinex2 extends bitfinex2Rest {
20
20
  handleChecksum(client: Client, message: any, subscription: any): void;
21
21
  watchBalance(params?: {}): Promise<Balances>;
22
22
  handleBalance(client: Client, message: any, subscription: any): void;
23
- parseWsBalance(balance: any): import("../base/types.js").Account;
23
+ parseWsBalance(balance: any): import("../base/types.js").BalanceAccount;
24
24
  handleSystemStatus(client: Client, message: any): any;
25
25
  handleSubscriptionStatus(client: Client, message: any): any;
26
26
  authenticate(params?: {}): Promise<any>;
@@ -0,0 +1,32 @@
1
+ import { Market } from '../ccxt.js';
2
+ import Exchange from './abstract/tradeogre.js';
3
+ import type { Int, Num, Order, OrderSide, OrderType, Str, Ticker, IndexType } from './base/types.js';
4
+ /**
5
+ * @class tradeogre
6
+ * @augments Exchange
7
+ */
8
+ export default class tradeogre extends Exchange {
9
+ describe(): any;
10
+ fetchMarkets(params?: {}): Promise<any[]>;
11
+ fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
12
+ parseTicker(ticker: any, market?: Market): Ticker;
13
+ fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<import("./base/types.js").OrderBook>;
14
+ parseBidsAsks(bidasks: any, priceKey?: IndexType, amountKey?: IndexType, countOrIdKey?: IndexType): any[];
15
+ fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<import("./base/types.js").Trade[]>;
16
+ parseTrade(trade: any, market?: Market): import("./base/types.js").Trade;
17
+ fetchBalance(params?: {}): Promise<import("./base/types.js").Balances>;
18
+ parseBalance(response: any): import("./base/types.js").Balances;
19
+ createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
20
+ cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
21
+ cancelAllOrders(symbol?: Str, params?: {}): Promise<Order>;
22
+ fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
23
+ fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
24
+ parseOrder(order: any, market?: Market): Order;
25
+ sign(path: any, api?: string, method?: string, params?: {}, headers?: any, body?: any): {
26
+ url: string;
27
+ method: string;
28
+ body: any;
29
+ headers: any;
30
+ };
31
+ handleErrors(code: any, reason: any, url: any, method: any, headers: any, body: any, response: any, requestHeaders: any, requestBody: any): any;
32
+ }