ccxt 4.3.33 → 4.3.34

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 (124) hide show
  1. package/README.md +3 -3
  2. package/dist/ccxt.browser.min.js +2 -2
  3. package/dist/cjs/ccxt.js +1 -1
  4. package/dist/cjs/src/base/Exchange.js +26 -0
  5. package/dist/cjs/src/binance.js +1 -0
  6. package/dist/cjs/src/coinbase.js +106 -53
  7. package/dist/cjs/src/pro/binance.js +352 -0
  8. package/dist/cjs/src/pro/bitmex.js +108 -0
  9. package/dist/cjs/src/pro/bybit.js +85 -0
  10. package/dist/cjs/src/pro/gate.js +183 -0
  11. package/dist/cjs/src/pro/kucoinfutures.js +4 -0
  12. package/dist/cjs/src/pro/okx.js +259 -1
  13. package/js/ccxt.d.ts +1 -1
  14. package/js/ccxt.js +1 -1
  15. package/js/src/abstract/binance.d.ts +1 -0
  16. package/js/src/abstract/binancecoinm.d.ts +1 -0
  17. package/js/src/abstract/binanceus.d.ts +1 -0
  18. package/js/src/abstract/binanceusdm.d.ts +1 -0
  19. package/js/src/ace.d.ts +3 -3
  20. package/js/src/alpaca.d.ts +2 -2
  21. package/js/src/ascendex.d.ts +3 -3
  22. package/js/src/base/Exchange.d.ts +13 -3
  23. package/js/src/base/Exchange.js +26 -0
  24. package/js/src/base/types.d.ts +1 -0
  25. package/js/src/bigone.d.ts +3 -3
  26. package/js/src/binance.d.ts +4 -4
  27. package/js/src/binance.js +1 -0
  28. package/js/src/bingx.d.ts +3 -3
  29. package/js/src/bit2c.d.ts +2 -2
  30. package/js/src/bitbank.d.ts +2 -2
  31. package/js/src/bitbns.d.ts +2 -2
  32. package/js/src/bitfinex.d.ts +3 -3
  33. package/js/src/bitfinex2.d.ts +1 -1
  34. package/js/src/bitflyer.d.ts +2 -2
  35. package/js/src/bitget.d.ts +4 -4
  36. package/js/src/bithumb.d.ts +2 -2
  37. package/js/src/bitmart.d.ts +3 -3
  38. package/js/src/bitmex.d.ts +4 -4
  39. package/js/src/bitopro.d.ts +4 -4
  40. package/js/src/bitrue.d.ts +3 -3
  41. package/js/src/bitso.d.ts +3 -3
  42. package/js/src/bitstamp.d.ts +3 -3
  43. package/js/src/bitteam.d.ts +4 -4
  44. package/js/src/bitvavo.d.ts +3 -3
  45. package/js/src/blockchaincom.d.ts +2 -2
  46. package/js/src/blofin.d.ts +4 -4
  47. package/js/src/btcalpha.d.ts +4 -4
  48. package/js/src/btcbox.d.ts +2 -2
  49. package/js/src/btcmarkets.d.ts +4 -4
  50. package/js/src/btcturk.d.ts +2 -2
  51. package/js/src/bybit.d.ts +3 -3
  52. package/js/src/cex.d.ts +2 -2
  53. package/js/src/coinbase.d.ts +3 -3
  54. package/js/src/coinbase.js +106 -53
  55. package/js/src/coinbaseexchange.d.ts +2 -2
  56. package/js/src/coinbaseinternational.d.ts +4 -4
  57. package/js/src/coincheck.d.ts +3 -3
  58. package/js/src/coinex.d.ts +3 -3
  59. package/js/src/coinlist.d.ts +3 -3
  60. package/js/src/coinmate.d.ts +3 -3
  61. package/js/src/coinmetro.d.ts +3 -3
  62. package/js/src/coinone.d.ts +2 -2
  63. package/js/src/coinsph.d.ts +3 -3
  64. package/js/src/cryptocom.d.ts +2 -2
  65. package/js/src/currencycom.d.ts +3 -3
  66. package/js/src/delta.d.ts +2 -2
  67. package/js/src/deribit.d.ts +3 -3
  68. package/js/src/digifinex.d.ts +3 -3
  69. package/js/src/exmo.d.ts +3 -3
  70. package/js/src/gate.d.ts +3 -3
  71. package/js/src/gemini.d.ts +3 -3
  72. package/js/src/hitbtc.d.ts +3 -3
  73. package/js/src/hollaex.d.ts +2 -2
  74. package/js/src/htx.d.ts +3 -3
  75. package/js/src/huobijp.d.ts +3 -3
  76. package/js/src/hyperliquid.d.ts +3 -3
  77. package/js/src/idex.d.ts +3 -3
  78. package/js/src/indodax.d.ts +3 -3
  79. package/js/src/kraken.d.ts +3 -3
  80. package/js/src/krakenfutures.d.ts +2 -2
  81. package/js/src/kucoin.d.ts +3 -3
  82. package/js/src/kuna.d.ts +3 -3
  83. package/js/src/latoken.d.ts +3 -3
  84. package/js/src/lbank.d.ts +2 -2
  85. package/js/src/luno.d.ts +2 -2
  86. package/js/src/lykke.d.ts +2 -2
  87. package/js/src/mercado.d.ts +2 -2
  88. package/js/src/mexc.d.ts +2 -2
  89. package/js/src/ndax.d.ts +3 -3
  90. package/js/src/novadax.d.ts +4 -4
  91. package/js/src/oceanex.d.ts +3 -3
  92. package/js/src/okcoin.d.ts +4 -4
  93. package/js/src/okx.d.ts +4 -4
  94. package/js/src/onetrading.d.ts +3 -3
  95. package/js/src/p2b.d.ts +3 -3
  96. package/js/src/paymium.d.ts +2 -2
  97. package/js/src/phemex.d.ts +5 -5
  98. package/js/src/poloniex.d.ts +4 -4
  99. package/js/src/poloniexfutures.d.ts +3 -3
  100. package/js/src/pro/binance.d.ts +9 -2
  101. package/js/src/pro/binance.js +352 -0
  102. package/js/src/pro/bitmex.d.ts +4 -1
  103. package/js/src/pro/bitmex.js +108 -0
  104. package/js/src/pro/bybit.d.ts +4 -1
  105. package/js/src/pro/bybit.js +85 -0
  106. package/js/src/pro/gate.d.ts +5 -1
  107. package/js/src/pro/gate.js +183 -0
  108. package/js/src/pro/kucoinfutures.js +4 -0
  109. package/js/src/pro/okx.d.ts +8 -1
  110. package/js/src/pro/okx.js +259 -1
  111. package/js/src/probit.d.ts +4 -4
  112. package/js/src/timex.d.ts +3 -3
  113. package/js/src/tokocrypto.d.ts +2 -2
  114. package/js/src/tradeogre.d.ts +2 -2
  115. package/js/src/upbit.d.ts +4 -4
  116. package/js/src/wavesexchange.d.ts +2 -2
  117. package/js/src/wazirx.d.ts +4 -4
  118. package/js/src/whitebit.d.ts +4 -4
  119. package/js/src/woo.d.ts +4 -4
  120. package/js/src/woofipro.d.ts +4 -4
  121. package/js/src/yobit.d.ts +2 -2
  122. package/js/src/zaif.d.ts +3 -3
  123. package/js/src/zonda.d.ts +2 -2
  124. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/blofin.js';
2
- import type { Int, OrderSide, OrderType, Trade, OHLCV, Order, FundingRateHistory, OrderRequest, Str, Transaction, Ticker, OrderBook, Balances, Tickers, Market, Strings, Currency, Position, TransferEntry, Leverage, Leverages, MarginMode, Num, TradingFeeInterface, Dict } from './base/types.js';
2
+ import type { Int, OrderSide, OrderType, Trade, OHLCV, Order, FundingRateHistory, OrderRequest, Str, Transaction, Ticker, OrderBook, Balances, Tickers, Market, Strings, Currency, Position, TransferEntry, Leverage, Leverages, MarginMode, Num, TradingFeeInterface, Dict, int } from './base/types.js';
3
3
  /**
4
4
  * @class blofin
5
5
  * @augments Exchange
@@ -7,7 +7,7 @@ import type { Int, OrderSide, OrderType, Trade, OHLCV, Order, FundingRateHistory
7
7
  export default class blofin extends Exchange {
8
8
  describe(): any;
9
9
  fetchMarkets(params?: {}): Promise<Market[]>;
10
- parseMarket(market: any): Market;
10
+ parseMarket(market: Dict): Market;
11
11
  fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
12
12
  parseTicker(ticker: Dict, market?: Market): Ticker;
13
13
  fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
@@ -73,7 +73,7 @@ export default class blofin extends Exchange {
73
73
  fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
74
74
  fetchLedger(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
75
75
  parseTransaction(transaction: Dict, currency?: Currency): Transaction;
76
- parseTransactionStatus(status: any): string;
76
+ parseTransactionStatus(status: Str): string;
77
77
  parseLedgerEntryType(type: any): string;
78
78
  parseLedgerEntry(item: Dict, currency?: Currency): {
79
79
  id: string;
@@ -103,7 +103,7 @@ export default class blofin extends Exchange {
103
103
  fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
104
104
  fetchMarginMode(symbol: string, params?: {}): Promise<MarginMode>;
105
105
  parseMarginMode(marginMode: Dict, market?: any): MarginMode;
106
- handleErrors(httpCode: any, reason: any, url: any, method: any, headers: any, body: any, response: any, requestHeaders: any, requestBody: any): any;
106
+ handleErrors(httpCode: int, reason: string, url: string, method: string, headers: Dict, body: string, response: any, requestHeaders: any, requestBody: any): any;
107
107
  sign(path: any, api?: string, method?: string, params?: {}, headers?: any, body?: any): {
108
108
  url: string;
109
109
  method: string;
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/btcalpha.js';
2
- import type { IndexType, Balances, Currency, Int, Market, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction, Num, Dict } from './base/types.js';
2
+ import type { IndexType, Balances, Currency, Int, Market, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction, Num, Dict, int } from './base/types.js';
3
3
  /**
4
4
  * @class btcalpha
5
5
  * @augments Exchange
@@ -7,7 +7,7 @@ import type { IndexType, Balances, Currency, Int, Market, OHLCV, Order, OrderBoo
7
7
  export default class btcalpha extends Exchange {
8
8
  describe(): any;
9
9
  fetchMarkets(params?: {}): Promise<Market[]>;
10
- parseMarket(market: any): Market;
10
+ parseMarket(market: Dict): Market;
11
11
  fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
12
12
  fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
13
13
  parseTicker(ticker: Dict, market?: Market): Ticker;
@@ -18,7 +18,7 @@ export default class btcalpha extends Exchange {
18
18
  fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
19
19
  fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
20
20
  parseTransaction(transaction: Dict, currency?: Currency): Transaction;
21
- parseTransactionStatus(status: any): string;
21
+ parseTransactionStatus(status: Str): string;
22
22
  parseOHLCV(ohlcv: any, market?: Market): OHLCV;
23
23
  fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
24
24
  parseBalance(response: any): Balances;
@@ -39,5 +39,5 @@ export default class btcalpha extends Exchange {
39
39
  body: any;
40
40
  headers: any;
41
41
  };
42
- handleErrors(code: any, reason: any, url: any, method: any, headers: any, body: any, response: any, requestHeaders: any, requestBody: any): any;
42
+ handleErrors(code: int, reason: string, url: string, method: string, headers: Dict, body: string, response: any, requestHeaders: any, requestBody: any): any;
43
43
  }
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/btcbox.js';
2
- import type { Balances, Dict, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Ticker, Trade } from './base/types.js';
2
+ import type { Balances, Dict, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Ticker, Trade, int } from './base/types.js';
3
3
  /**
4
4
  * @class btcbox
5
5
  * @augments Exchange
@@ -28,6 +28,6 @@ export default class btcbox extends Exchange {
28
28
  body: any;
29
29
  headers: any;
30
30
  };
31
- handleErrors(httpCode: any, reason: any, url: any, method: any, headers: any, body: any, response: any, requestHeaders: any, requestBody: any): any;
31
+ handleErrors(httpCode: int, reason: string, url: string, method: string, headers: Dict, body: string, response: any, requestHeaders: any, requestBody: any): any;
32
32
  request(path: any, api?: string, method?: string, params?: {}, headers?: any, body?: any, config?: {}): Promise<any>;
33
33
  }
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/btcmarkets.js';
2
- import type { Balances, Currency, Dict, Int, Market, Num, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Ticker, Trade, Transaction } from './base/types.js';
2
+ import type { Balances, Currency, Dict, Int, Market, Num, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Ticker, Trade, Transaction, int } from './base/types.js';
3
3
  /**
4
4
  * @class btcmarkets
5
5
  * @augments Exchange
@@ -10,11 +10,11 @@ export default class btcmarkets extends Exchange {
10
10
  fetchDepositsWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
11
11
  fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
12
12
  fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
13
- parseTransactionStatus(status: any): string;
13
+ parseTransactionStatus(status: Str): string;
14
14
  parseTransactionType(type: any): string;
15
15
  parseTransaction(transaction: Dict, currency?: Currency): Transaction;
16
16
  fetchMarkets(params?: {}): Promise<Market[]>;
17
- parseMarket(market: any): Market;
17
+ parseMarket(market: Dict): Market;
18
18
  fetchTime(params?: {}): Promise<number>;
19
19
  parseBalance(response: any): Balances;
20
20
  fetchBalance(params?: {}): Promise<Balances>;
@@ -50,5 +50,5 @@ export default class btcmarkets extends Exchange {
50
50
  body: any;
51
51
  headers: any;
52
52
  };
53
- handleErrors(code: any, reason: any, url: any, method: any, headers: any, body: any, response: any, requestHeaders: any, requestBody: any): any;
53
+ handleErrors(code: int, reason: string, url: string, method: string, headers: Dict, body: string, response: any, requestHeaders: any, requestBody: any): any;
54
54
  }
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/btcturk.js';
2
- import type { Balances, Dict, Int, Market, Num, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade } from './base/types.js';
2
+ import type { Balances, Dict, Int, Market, Num, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, int } from './base/types.js';
3
3
  /**
4
4
  * @class btcturk
5
5
  * @augments Exchange
@@ -33,5 +33,5 @@ export default class btcturk extends Exchange {
33
33
  body: any;
34
34
  headers: any;
35
35
  };
36
- handleErrors(code: any, reason: any, url: any, method: any, headers: any, body: any, response: any, requestHeaders: any, requestBody: any): any;
36
+ handleErrors(code: int, reason: string, url: string, method: string, headers: Dict, body: string, response: any, requestHeaders: any, requestBody: any): any;
37
37
  }
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, TransferEntries, LeverageTier, LeverageTiers } 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, TransferEntries, LeverageTier, LeverageTiers, int } from './base/types.js';
3
3
  /**
4
4
  * @class bybit
5
5
  * @augments Exchange
@@ -103,7 +103,7 @@ export default class bybit extends Exchange {
103
103
  }>;
104
104
  fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
105
105
  fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
106
- parseTransactionStatus(status: any): string;
106
+ parseTransactionStatus(status: Str): string;
107
107
  parseTransaction(transaction: Dict, currency?: Currency): Transaction;
108
108
  fetchLedger(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
109
109
  parseLedgerEntry(item: Dict, currency?: Currency): {
@@ -222,5 +222,5 @@ export default class bybit extends Exchange {
222
222
  body: any;
223
223
  headers: any;
224
224
  };
225
- handleErrors(httpCode: any, reason: any, url: any, method: any, headers: any, body: any, response: any, requestHeaders: any, requestBody: any): any;
225
+ handleErrors(httpCode: int, reason: string, url: string, method: string, headers: Dict, body: string, response: any, requestHeaders: any, requestBody: any): any;
226
226
  }
package/js/src/cex.d.ts CHANGED
@@ -1,5 +1,5 @@
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 } from './base/types.js';
2
+ import type { Balances, Currencies, Dict, Int, Market, Num, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, TradingFees, int } from './base/types.js';
3
3
  /**
4
4
  * @class cex
5
5
  * @augments Exchange
@@ -44,5 +44,5 @@ export default class cex extends Exchange {
44
44
  body: any;
45
45
  headers: any;
46
46
  };
47
- handleErrors(code: any, reason: any, url: any, method: any, headers: any, body: any, response: any, requestHeaders: any, requestBody: any): any[];
47
+ handleErrors(code: int, reason: string, url: string, method: string, headers: Dict, body: string, response: any, requestHeaders: any, requestBody: any): any[];
48
48
  }
@@ -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, Account, Currencies, MarketInterface, Conversion, Dict } from './base/types.js';
2
+ import type { Int, OrderSide, OrderType, Order, Trade, OHLCV, Ticker, OrderBook, Str, Transaction, Balances, Tickers, Strings, Market, Currency, Num, Account, Currencies, MarketInterface, Conversion, Dict, int } from './base/types.js';
3
3
  /**
4
4
  * @class coinbase
5
5
  * @augments Exchange
@@ -28,7 +28,7 @@ export default class coinbase extends Exchange {
28
28
  fetchTransactionsWithMethod(method: any, code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
29
29
  fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
30
30
  fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
31
- parseTransactionStatus(status: any): string;
31
+ parseTransactionStatus(status: Str): string;
32
32
  parseTransaction(transaction: Dict, currency?: Currency): Transaction;
33
33
  parseTrade(trade: Dict, market?: Market): Trade;
34
34
  fetchMarkets(params?: {}): Promise<Market[]>;
@@ -117,5 +117,5 @@ export default class coinbase extends Exchange {
117
117
  body: any;
118
118
  headers: any;
119
119
  };
120
- handleErrors(code: any, reason: any, url: any, method: any, headers: any, body: any, response: any, requestHeaders: any, requestBody: any): any;
120
+ handleErrors(code: int, reason: string, url: string, method: string, headers: Dict, body: string, response: any, requestHeaders: any, requestBody: any): any;
121
121
  }
@@ -345,6 +345,7 @@ export default class coinbase extends Exchange {
345
345
  'CGLD': 'CELO',
346
346
  },
347
347
  'options': {
348
+ 'usePrivate': false,
348
349
  'brokerId': 'ccxt',
349
350
  'stablePairs': ['BUSD-USD', 'CBETH-ETH', 'DAI-USD', 'GUSD-USD', 'GYEN-USD', 'PAX-USD', 'PAX-USDT', 'USDC-EUR', 'USDC-GBP', 'USDT-EUR', 'USDT-GBP', 'USDT-USD', 'USDT-USDC', 'WBTC-BTC'],
350
351
  'fetchCurrencies': {
@@ -1108,6 +1109,7 @@ export default class coinbase extends Exchange {
1108
1109
  * @see https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-exchange-rates#get-exchange-rates
1109
1110
  * @description retrieves data on all markets for coinbase
1110
1111
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1112
+ * @param {boolean} [params.usePrivate] use private endpoint for fetching markets
1111
1113
  * @returns {object[]} an array of objects representing market data
1112
1114
  */
1113
1115
  const method = this.safeString(this.options, 'fetchMarkets', 'fetchMarketsV3');
@@ -1189,54 +1191,60 @@ export default class coinbase extends Exchange {
1189
1191
  return result;
1190
1192
  }
1191
1193
  async fetchMarketsV3(params = {}) {
1192
- const spotUnresolvedPromises = [
1193
- this.v3PublicGetBrokerageMarketProducts(params),
1194
- //
1195
- // {
1196
- // products: [
1197
- // {
1198
- // product_id: 'BTC-USD',
1199
- // price: '67060',
1200
- // price_percentage_change_24h: '3.30054960636883',
1201
- // volume_24h: '10967.87426597',
1202
- // volume_percentage_change_24h: '141.73048325503036',
1203
- // base_increment: '0.00000001',
1204
- // quote_increment: '0.01',
1205
- // quote_min_size: '1',
1206
- // quote_max_size: '150000000',
1207
- // base_min_size: '0.00000001',
1208
- // base_max_size: '3400',
1209
- // base_name: 'Bitcoin',
1210
- // quote_name: 'US Dollar',
1211
- // watched: false,
1212
- // is_disabled: false,
1213
- // new: false,
1214
- // status: 'online',
1215
- // cancel_only: false,
1216
- // limit_only: false,
1217
- // post_only: false,
1218
- // trading_disabled: false,
1219
- // auction_mode: false,
1220
- // product_type: 'SPOT',
1221
- // quote_currency_id: 'USD',
1222
- // base_currency_id: 'BTC',
1223
- // fcm_trading_session_details: null,
1224
- // mid_market_price: '',
1225
- // alias: '',
1226
- // alias_to: [ 'BTC-USDC' ],
1227
- // base_display_symbol: 'BTC',
1228
- // quote_display_symbol: 'USD',
1229
- // view_only: false,
1230
- // price_increment: '0.01',
1231
- // display_name: 'BTC-USD',
1232
- // product_venue: 'CBE'
1233
- // },
1234
- // ...
1235
- // ],
1236
- // num_products: '646'
1237
- // }
1238
- //
1239
- ];
1194
+ let usePrivate = false;
1195
+ [usePrivate, params] = this.handleOptionAndParams(params, 'fetchMarkets', 'usePrivate', false);
1196
+ const spotUnresolvedPromises = [];
1197
+ if (usePrivate) {
1198
+ spotUnresolvedPromises.push(this.v3PrivateGetBrokerageProducts(params));
1199
+ }
1200
+ else {
1201
+ spotUnresolvedPromises.push(this.v3PublicGetBrokerageMarketProducts(params));
1202
+ }
1203
+ //
1204
+ // {
1205
+ // products: [
1206
+ // {
1207
+ // product_id: 'BTC-USD',
1208
+ // price: '67060',
1209
+ // price_percentage_change_24h: '3.30054960636883',
1210
+ // volume_24h: '10967.87426597',
1211
+ // volume_percentage_change_24h: '141.73048325503036',
1212
+ // base_increment: '0.00000001',
1213
+ // quote_increment: '0.01',
1214
+ // quote_min_size: '1',
1215
+ // quote_max_size: '150000000',
1216
+ // base_min_size: '0.00000001',
1217
+ // base_max_size: '3400',
1218
+ // base_name: 'Bitcoin',
1219
+ // quote_name: 'US Dollar',
1220
+ // watched: false,
1221
+ // is_disabled: false,
1222
+ // new: false,
1223
+ // status: 'online',
1224
+ // cancel_only: false,
1225
+ // limit_only: false,
1226
+ // post_only: false,
1227
+ // trading_disabled: false,
1228
+ // auction_mode: false,
1229
+ // product_type: 'SPOT',
1230
+ // quote_currency_id: 'USD',
1231
+ // base_currency_id: 'BTC',
1232
+ // fcm_trading_session_details: null,
1233
+ // mid_market_price: '',
1234
+ // alias: '',
1235
+ // alias_to: [ 'BTC-USDC' ],
1236
+ // base_display_symbol: 'BTC',
1237
+ // quote_display_symbol: 'USD',
1238
+ // view_only: false,
1239
+ // price_increment: '0.01',
1240
+ // display_name: 'BTC-USD',
1241
+ // product_venue: 'CBE'
1242
+ // },
1243
+ // ...
1244
+ // ],
1245
+ // num_products: '646'
1246
+ // }
1247
+ //
1240
1248
  if (this.checkRequiredCredentials(false)) {
1241
1249
  spotUnresolvedPromises.push(this.v3PrivateGetBrokerageTransactionSummary(params));
1242
1250
  }
@@ -1764,6 +1772,7 @@ export default class coinbase extends Exchange {
1764
1772
  * @see https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-exchange-rates#get-exchange-rates
1765
1773
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
1766
1774
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1775
+ * @param {boolean} [params.usePrivate] use private endpoint for fetching tickers
1767
1776
  * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
1768
1777
  */
1769
1778
  const method = this.safeString(this.options, 'fetchTickers', 'fetchTickersV3');
@@ -1818,7 +1827,15 @@ export default class coinbase extends Exchange {
1818
1827
  if (marketType !== undefined && marketType !== 'default') {
1819
1828
  request['product_type'] = (marketType === 'swap') ? 'FUTURE' : 'SPOT';
1820
1829
  }
1821
- const response = await this.v3PublicGetBrokerageMarketProducts(this.extend(request, params));
1830
+ let response = undefined;
1831
+ let usePrivate = false;
1832
+ [usePrivate, params] = this.handleOptionAndParams(params, 'fetchTickers', 'usePrivate', false);
1833
+ if (usePrivate) {
1834
+ response = await this.v3PrivateGetBrokerageProducts(this.extend(request, params));
1835
+ }
1836
+ else {
1837
+ response = await this.v3PublicGetBrokerageMarketProducts(this.extend(request, params));
1838
+ }
1822
1839
  //
1823
1840
  // {
1824
1841
  // "products": [
@@ -1878,6 +1895,7 @@ export default class coinbase extends Exchange {
1878
1895
  * @see https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-prices#get-sell-price
1879
1896
  * @param {string} symbol unified symbol of the market to fetch the ticker for
1880
1897
  * @param {object} [params] extra parameters specific to the exchange API endpoint
1898
+ * @param {boolean} [params.usePrivate] whether to use the private endpoint for fetching the ticker
1881
1899
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
1882
1900
  */
1883
1901
  const method = this.safeString(this.options, 'fetchTicker', 'fetchTickerV3');
@@ -1921,7 +1939,15 @@ export default class coinbase extends Exchange {
1921
1939
  'product_id': market['id'],
1922
1940
  'limit': 1,
1923
1941
  };
1924
- const response = await this.v3PublicGetBrokerageMarketProductsProductIdTicker(this.extend(request, params));
1942
+ let usePrivate = false;
1943
+ [usePrivate, params] = this.handleOptionAndParams(params, 'fetchTicker', 'usePrivate', false);
1944
+ let response = undefined;
1945
+ if (usePrivate) {
1946
+ response = await this.v3PrivateGetBrokerageProductsProductIdTicker(this.extend(request, params));
1947
+ }
1948
+ else {
1949
+ response = await this.v3PublicGetBrokerageMarketProductsProductIdTicker(this.extend(request, params));
1950
+ }
1925
1951
  //
1926
1952
  // {
1927
1953
  // "trades": [
@@ -3490,6 +3516,7 @@ export default class coinbase extends Exchange {
3490
3516
  * @param {object} [params] extra parameters specific to the exchange API endpoint
3491
3517
  * @param {int} [params.until] the latest time in ms to fetch trades for
3492
3518
  * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
3519
+ * @param {boolean} [params.usePrivate] default false, when true will use the private endpoint to fetch the candles
3493
3520
  * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
3494
3521
  */
3495
3522
  await this.loadMarkets();
@@ -3525,7 +3552,15 @@ export default class coinbase extends Exchange {
3525
3552
  // 300 candles max
3526
3553
  request['end'] = Precise.stringAdd(sinceString, requestedDuration.toString());
3527
3554
  }
3528
- const response = await this.v3PublicGetBrokerageMarketProductsProductIdCandles(this.extend(request, params));
3555
+ let response = undefined;
3556
+ let usePrivate = false;
3557
+ [usePrivate, params] = this.handleOptionAndParams(params, 'fetchOHLCV', 'usePrivate', false);
3558
+ if (usePrivate) {
3559
+ response = await this.v3PrivateGetBrokerageProductsProductIdCandles(this.extend(request, params));
3560
+ }
3561
+ else {
3562
+ response = await this.v3PublicGetBrokerageMarketProductsProductIdCandles(this.extend(request, params));
3563
+ }
3529
3564
  //
3530
3565
  // {
3531
3566
  // "candles": [
@@ -3575,6 +3610,7 @@ export default class coinbase extends Exchange {
3575
3610
  * @param {int} [since] not used by coinbase fetchTrades
3576
3611
  * @param {int} [limit] the maximum number of trade structures to fetch
3577
3612
  * @param {object} [params] extra parameters specific to the exchange API endpoint
3613
+ * @param {boolean} [params.usePrivate] default false, when true will use the private endpoint to fetch the trades
3578
3614
  * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
3579
3615
  */
3580
3616
  await this.loadMarkets();
@@ -3596,7 +3632,15 @@ export default class coinbase extends Exchange {
3596
3632
  else if (since !== undefined) {
3597
3633
  throw new ArgumentsRequired(this.id + ' fetchTrades() requires a `until` parameter when you use `since` argument');
3598
3634
  }
3599
- const response = await this.v3PublicGetBrokerageMarketProductsProductIdTicker(this.extend(request, params));
3635
+ let response = undefined;
3636
+ let usePrivate = false;
3637
+ [usePrivate, params] = this.handleOptionAndParams(params, 'fetchTrades', 'usePrivate', false);
3638
+ if (usePrivate) {
3639
+ response = await this.v3PrivateGetBrokerageProductsProductIdTicker(this.extend(request, params));
3640
+ }
3641
+ else {
3642
+ response = await this.v3PublicGetBrokerageMarketProductsProductIdTicker(this.extend(request, params));
3643
+ }
3600
3644
  //
3601
3645
  // {
3602
3646
  // "trades": [
@@ -3697,6 +3741,7 @@ export default class coinbase extends Exchange {
3697
3741
  * @param {string} symbol unified symbol of the market to fetch the order book for
3698
3742
  * @param {int} [limit] the maximum amount of order book entries to return
3699
3743
  * @param {object} [params] extra parameters specific to the exchange API endpoint
3744
+ * @param {boolean} [params.usePrivate] default false, when true will use the private endpoint to fetch the order book
3700
3745
  * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
3701
3746
  */
3702
3747
  await this.loadMarkets();
@@ -3707,7 +3752,15 @@ export default class coinbase extends Exchange {
3707
3752
  if (limit !== undefined) {
3708
3753
  request['limit'] = limit;
3709
3754
  }
3710
- const response = await this.v3PublicGetBrokerageMarketProductBook(this.extend(request, params));
3755
+ let response = undefined;
3756
+ let usePrivate = false;
3757
+ [usePrivate, params] = this.handleOptionAndParams(params, 'fetchOrderBook', 'usePrivate', false);
3758
+ if (usePrivate) {
3759
+ response = await this.v3PrivateGetBrokerageProductBook(this.extend(request, params));
3760
+ }
3761
+ else {
3762
+ response = await this.v3PublicGetBrokerageMarketProductBook(this.extend(request, params));
3763
+ }
3711
3764
  //
3712
3765
  // {
3713
3766
  // "pricebook": {
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/coinbaseexchange.js';
2
- import type { Int, OrderSide, OrderType, Trade, OHLCV, Order, Balances, Str, Transaction, Ticker, OrderBook, Tickers, Strings, Market, Currency, Num, Account, Currencies, TradingFees, Dict } from './base/types.js';
2
+ import type { Int, OrderSide, OrderType, Trade, OHLCV, Order, Balances, Str, Transaction, Ticker, OrderBook, Tickers, Strings, Market, Currency, Num, Account, Currencies, TradingFees, Dict, int } from './base/types.js';
3
3
  /**
4
4
  * @class coinbaseexchange
5
5
  * @augments Exchange
@@ -76,6 +76,6 @@ export default class coinbaseexchange extends Exchange {
76
76
  body: any;
77
77
  headers: any;
78
78
  };
79
- handleErrors(code: any, reason: any, url: any, method: any, headers: any, body: any, response: any, requestHeaders: any, requestBody: any): any;
79
+ handleErrors(code: int, reason: string, url: string, method: string, headers: Dict, body: string, response: any, requestHeaders: any, requestBody: any): any;
80
80
  request(path: any, api?: string, method?: string, params?: {}, headers?: any, body?: any, config?: {}): Promise<any>;
81
81
  }
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/coinbaseinternational.js';
2
- import type { Int, OrderSide, OrderType, Order, Trade, Ticker, Str, Transaction, Balances, Tickers, Strings, Market, Currency, TransferEntry, Position, FundingRateHistory, Currencies, Dict } from './base/types.js';
2
+ import type { Int, OrderSide, OrderType, Order, Trade, Ticker, Str, Transaction, Balances, Tickers, Strings, Market, Currency, TransferEntry, Position, FundingRateHistory, Currencies, Dict, int } from './base/types.js';
3
3
  /**
4
4
  * @class coinbaseinternational
5
5
  * @augments Exchange
@@ -73,11 +73,11 @@ export default class coinbaseinternational extends Exchange {
73
73
  fetchPositions(symbols?: Strings, params?: {}): Promise<Position[]>;
74
74
  fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
75
75
  fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
76
- parseTransactionStatus(status: any): string;
76
+ parseTransactionStatus(status: Str): string;
77
77
  parseTransaction(transaction: Dict, currency?: Currency): Transaction;
78
78
  parseTrade(trade: Dict, market?: Market): Trade;
79
79
  fetchMarkets(params?: {}): Promise<Market[]>;
80
- parseMarket(market: any): Market;
80
+ parseMarket(market: Dict): Market;
81
81
  fetchCurrencies(params?: {}): Promise<Currencies>;
82
82
  parseCurrency(currency: Dict): {
83
83
  id: string;
@@ -142,5 +142,5 @@ export default class coinbaseinternational extends Exchange {
142
142
  body: any;
143
143
  headers: any;
144
144
  };
145
- handleErrors(code: any, reason: any, url: any, method: any, headers: any, body: any, response: any, requestHeaders: any, requestBody: any): any;
145
+ handleErrors(code: int, reason: string, url: string, method: string, headers: Dict, body: string, response: any, requestHeaders: any, requestBody: any): any;
146
146
  }
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/coincheck.js';
2
- import type { Balances, Currency, Dict, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Ticker, Trade, TradingFees, Transaction } from './base/types.js';
2
+ import type { Balances, Currency, Dict, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Ticker, Trade, TradingFees, Transaction, int } from './base/types.js';
3
3
  /**
4
4
  * @class coincheck
5
5
  * @augments Exchange
@@ -21,7 +21,7 @@ export default class coincheck extends Exchange {
21
21
  cancelOrder(id: string, symbol?: Str, params?: {}): Promise<any>;
22
22
  fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
23
23
  fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
24
- parseTransactionStatus(status: any): string;
24
+ parseTransactionStatus(status: Str): string;
25
25
  parseTransaction(transaction: Dict, currency?: Currency): Transaction;
26
26
  nonce(): number;
27
27
  sign(path: any, api?: string, method?: string, params?: {}, headers?: any, body?: any): {
@@ -30,5 +30,5 @@ export default class coincheck extends Exchange {
30
30
  body: any;
31
31
  headers: any;
32
32
  };
33
- handleErrors(httpCode: any, reason: any, url: any, method: any, headers: any, body: any, response: any, requestHeaders: any, requestBody: any): any;
33
+ handleErrors(httpCode: int, reason: string, url: string, method: string, headers: Dict, body: string, response: any, requestHeaders: any, requestBody: any): any;
34
34
  }
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/coinex.js';
2
- import type { Balances, Currency, FundingHistory, FundingRateHistory, Int, Market, OHLCV, Order, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction, OrderRequest, TransferEntry, Leverage, Num, MarginModification, TradingFeeInterface, Currencies, TradingFees, Position, IsolatedBorrowRate, Dict, TransferEntries, LeverageTiers, LeverageTier } from './base/types.js';
2
+ import type { Balances, Currency, FundingHistory, FundingRateHistory, Int, Market, OHLCV, Order, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction, OrderRequest, TransferEntry, Leverage, Num, MarginModification, TradingFeeInterface, Currencies, TradingFees, Position, IsolatedBorrowRate, Dict, TransferEntries, LeverageTiers, LeverageTier, int } from './base/types.js';
3
3
  /**
4
4
  * @class coinex
5
5
  * @augments Exchange
@@ -117,7 +117,7 @@ export default class coinex extends Exchange {
117
117
  };
118
118
  fetchFundingRates(symbols?: Strings, params?: {}): Promise<any>;
119
119
  withdraw(code: string, amount: number, address: string, tag?: any, params?: {}): Promise<Transaction>;
120
- parseTransactionStatus(status: any): string;
120
+ parseTransactionStatus(status: Str): string;
121
121
  fetchFundingRateHistory(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<FundingRateHistory[]>;
122
122
  parseTransaction(transaction: Dict, currency?: Currency): Transaction;
123
123
  transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?: {}): Promise<TransferEntry>;
@@ -166,6 +166,6 @@ export default class coinex extends Exchange {
166
166
  body: any;
167
167
  headers: any;
168
168
  };
169
- handleErrors(httpCode: any, reason: any, url: any, method: any, headers: any, body: any, response: any, requestHeaders: any, requestBody: any): any;
169
+ handleErrors(httpCode: int, reason: string, url: string, method: string, headers: Dict, body: string, response: any, requestHeaders: any, requestBody: any): any;
170
170
  fetchMarginAdjustmentHistory(symbol?: Str, type?: Str, since?: Num, limit?: Num, params?: {}): Promise<MarginModification[]>;
171
171
  }
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/coinlist.js';
2
- import type { Account, Balances, Currencies, Currency, Dict, Int, Market, Num, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, TradingFees, Transaction, TransferEntries, TransferEntry } from './base/types.js';
2
+ import type { Account, Balances, Currencies, Currency, Dict, Int, Market, Num, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, TradingFees, Transaction, TransferEntries, TransferEntry, int } from './base/types.js';
3
3
  /**
4
4
  * @class coinlist
5
5
  * @augments Exchange
@@ -10,7 +10,7 @@ export default class coinlist extends Exchange {
10
10
  fetchTime(params?: {}): Promise<number>;
11
11
  fetchCurrencies(params?: {}): Promise<Currencies>;
12
12
  fetchMarkets(params?: {}): Promise<Market[]>;
13
- parseMarket(market: any): Market;
13
+ parseMarket(market: Dict): Market;
14
14
  fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
15
15
  fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
16
16
  parseTicker(ticker: Dict, market?: Market): Ticker;
@@ -81,5 +81,5 @@ export default class coinlist extends Exchange {
81
81
  body: any;
82
82
  headers: any;
83
83
  };
84
- handleErrors(code: any, reason: any, url: any, method: any, headers: any, body: any, response: any, requestHeaders: any, requestBody: any): any;
84
+ handleErrors(code: int, reason: string, url: string, method: string, headers: Dict, body: string, response: any, requestHeaders: any, requestBody: any): any;
85
85
  }
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/coinmate.js';
2
- import type { Balances, Currency, Dict, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, TradingFeeInterface, Transaction } from './base/types.js';
2
+ import type { Balances, Currency, Dict, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, TradingFeeInterface, Transaction, int } from './base/types.js';
3
3
  /**
4
4
  * @class coinmate
5
5
  * @augments Exchange
@@ -14,7 +14,7 @@ export default class coinmate extends Exchange {
14
14
  fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
15
15
  parseTicker(ticker: Dict, market?: Market): Ticker;
16
16
  fetchDepositsWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
17
- parseTransactionStatus(status: any): string;
17
+ parseTransactionStatus(status: Str): string;
18
18
  parseTransaction(transaction: Dict, currency?: Currency): Transaction;
19
19
  withdraw(code: string, amount: number, address: string, tag?: any, params?: {}): Promise<Transaction>;
20
20
  fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
@@ -38,5 +38,5 @@ export default class coinmate extends Exchange {
38
38
  body: any;
39
39
  headers: any;
40
40
  };
41
- handleErrors(code: any, reason: any, url: any, method: any, headers: any, body: any, response: any, requestHeaders: any, requestBody: any): any;
41
+ handleErrors(code: int, reason: string, url: string, method: string, headers: Dict, body: string, response: any, requestHeaders: any, requestBody: any): any;
42
42
  }
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/coinmetro.js';
2
- import { Balances, Currencies, Currency, Dict, IndexType, Int, Market, Num, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade } from './base/types.js';
2
+ import { Balances, Currencies, Currency, Dict, IndexType, int, Int, Market, Num, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade } from './base/types.js';
3
3
  /**
4
4
  * @class coinmetro
5
5
  * @augments Exchange
@@ -8,7 +8,7 @@ export default class coinmetro extends Exchange {
8
8
  describe(): any;
9
9
  fetchCurrencies(params?: {}): Promise<Currencies>;
10
10
  fetchMarkets(params?: {}): Promise<Market[]>;
11
- parseMarket(market: any): Market;
11
+ parseMarket(market: Dict): Market;
12
12
  parseMarketId(marketId: any): Dict;
13
13
  parseMarketPrecisionAndLimits(currencyId: any): Dict;
14
14
  fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
@@ -69,5 +69,5 @@ export default class coinmetro extends Exchange {
69
69
  body: any;
70
70
  headers: any;
71
71
  };
72
- handleErrors(code: any, reason: any, url: any, method: any, headers: any, body: any, response: any, requestHeaders: any, requestBody: any): any;
72
+ handleErrors(code: int, reason: string, url: string, method: string, headers: Dict, body: string, response: any, requestHeaders: any, requestBody: any): any;
73
73
  }
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/coinone.js';
2
- import type { Balances, Currencies, Dict, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade } from './base/types.js';
2
+ import type { Balances, Currencies, Dict, Int, Market, Num, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, int } from './base/types.js';
3
3
  /**
4
4
  * @class coinone
5
5
  * @augments Exchange
@@ -30,5 +30,5 @@ export default class coinone extends Exchange {
30
30
  body: any;
31
31
  headers: any;
32
32
  };
33
- handleErrors(code: any, reason: any, url: any, method: any, headers: any, body: any, response: any, requestHeaders: any, requestBody: any): any;
33
+ handleErrors(code: int, reason: string, url: string, method: string, headers: Dict, body: string, response: any, requestHeaders: any, requestBody: any): any;
34
34
  }