ccxt 4.3.89 → 4.3.90

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 (57) hide show
  1. package/README.md +3 -3
  2. package/dist/ccxt.browser.min.js +3 -3
  3. package/dist/cjs/ccxt.js +1 -1
  4. package/dist/cjs/src/alpaca.js +2 -2
  5. package/dist/cjs/src/ascendex.js +95 -97
  6. package/dist/cjs/src/bingx.js +31 -17
  7. package/dist/cjs/src/bitfinex2.js +21 -22
  8. package/dist/cjs/src/bitget.js +2 -2
  9. package/dist/cjs/src/bitmart.js +6 -9
  10. package/dist/cjs/src/coinbaseinternational.js +2 -1
  11. package/dist/cjs/src/coinex.js +1 -17
  12. package/dist/cjs/src/hitbtc.js +1 -0
  13. package/dist/cjs/src/htx.js +49 -49
  14. package/dist/cjs/src/huobijp.js +0 -9
  15. package/dist/cjs/src/latoken.js +1 -0
  16. package/dist/cjs/src/okx.js +1 -8
  17. package/dist/cjs/src/pro/binance.js +323 -0
  18. package/dist/cjs/src/pro/bingx.js +263 -91
  19. package/dist/cjs/src/pro/bithumb.js +5 -1
  20. package/dist/cjs/src/pro/bybit.js +1 -1
  21. package/dist/cjs/src/pro/coinex.js +994 -679
  22. package/dist/cjs/src/pro/lbank.js +2 -3
  23. package/dist/cjs/src/pro/okx.js +159 -3
  24. package/dist/cjs/src/whitebit.js +5 -3
  25. package/js/ccxt.d.ts +1 -1
  26. package/js/ccxt.js +1 -1
  27. package/js/src/alpaca.js +2 -2
  28. package/js/src/ascendex.js +95 -97
  29. package/js/src/bingx.js +31 -17
  30. package/js/src/bitfinex2.d.ts +0 -1
  31. package/js/src/bitfinex2.js +21 -22
  32. package/js/src/bitget.js +2 -2
  33. package/js/src/bitmart.d.ts +0 -1
  34. package/js/src/bitmart.js +6 -9
  35. package/js/src/coinbaseinternational.js +2 -1
  36. package/js/src/coinex.d.ts +0 -2
  37. package/js/src/coinex.js +1 -17
  38. package/js/src/hitbtc.js +1 -0
  39. package/js/src/htx.js +49 -49
  40. package/js/src/huobijp.d.ts +0 -1
  41. package/js/src/huobijp.js +0 -9
  42. package/js/src/latoken.js +1 -0
  43. package/js/src/okx.d.ts +0 -1
  44. package/js/src/okx.js +1 -8
  45. package/js/src/pro/binance.d.ts +9 -1
  46. package/js/src/pro/binance.js +327 -1
  47. package/js/src/pro/bingx.d.ts +2 -2
  48. package/js/src/pro/bingx.js +263 -91
  49. package/js/src/pro/bithumb.js +5 -1
  50. package/js/src/pro/bybit.js +1 -1
  51. package/js/src/pro/coinex.d.ts +12 -6
  52. package/js/src/pro/coinex.js +996 -681
  53. package/js/src/pro/lbank.js +2 -3
  54. package/js/src/pro/okx.d.ts +7 -0
  55. package/js/src/pro/okx.js +162 -4
  56. package/js/src/whitebit.js +5 -3
  57. package/package.json +1 -1
@@ -36,6 +36,7 @@ export default class bithumb extends bithumbRest {
36
36
  * @method
37
37
  * @name bithumb#watchTicker
38
38
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
39
+ * @see https://apidocs.bithumb.com/v1.2.0/reference/%EB%B9%97%EC%8D%B8-%EA%B1%B0%EB%9E%98%EC%86%8C-%EC%A0%95%EB%B3%B4-%EC%88%98%EC%8B%A0
39
40
  * @param {string} symbol unified symbol of the market to fetch the ticker for
40
41
  * @param {object} [params] extra parameters specific to the exchange API endpoint
41
42
  * @param {string} [params.channel] the channel to subscribe to, tickers by default. Can be tickers, sprd-tickers, index-tickers, block-tickers
@@ -55,8 +56,9 @@ export default class bithumb extends bithumbRest {
55
56
  async watchTickers(symbols = undefined, params = {}) {
56
57
  /**
57
58
  * @method
58
- * @name binance#watchTickers
59
+ * @name bithumb#watchTickers
59
60
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
61
+ * @see https://apidocs.bithumb.com/v1.2.0/reference/%EB%B9%97%EC%8D%B8-%EA%B1%B0%EB%9E%98%EC%86%8C-%EC%A0%95%EB%B3%B4-%EC%88%98%EC%8B%A0
60
62
  * @param {string[]} symbols unified symbol of the market to fetch the ticker for
61
63
  * @param {object} [params] extra parameters specific to the exchange API endpoint
62
64
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
@@ -170,6 +172,7 @@ export default class bithumb extends bithumbRest {
170
172
  /**
171
173
  * @method
172
174
  * @name bithumb#watchOrderBook
175
+ * @see https://apidocs.bithumb.com/v1.2.0/reference/%EB%B9%97%EC%8D%B8-%EA%B1%B0%EB%9E%98%EC%86%8C-%EC%A0%95%EB%B3%B4-%EC%88%98%EC%8B%A0
173
176
  * @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
174
177
  * @param {string} symbol unified symbol of the market to fetch the order book for
175
178
  * @param {int} [limit] the maximum amount of order book entries to return
@@ -257,6 +260,7 @@ export default class bithumb extends bithumbRest {
257
260
  * @method
258
261
  * @name bithumb#watchTrades
259
262
  * @description get the list of most recent trades for a particular symbol
263
+ * @see https://apidocs.bithumb.com/v1.2.0/reference/%EB%B9%97%EC%8D%B8-%EA%B1%B0%EB%9E%98%EC%86%8C-%EC%A0%95%EB%B3%B4-%EC%88%98%EC%8B%A0
260
264
  * @param {string} symbol unified symbol of the market to fetch trades for
261
265
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
262
266
  * @param {int} [limit] the maximum amount of trades to fetch
@@ -1440,7 +1440,7 @@ export default class bybit extends bybitRest {
1440
1440
  const topic = 'liquidation.' + market['id'];
1441
1441
  const newLiquidation = await this.watchTopics(url, [messageHash], [topic], params);
1442
1442
  if (this.newUpdates) {
1443
- return [newLiquidation];
1443
+ return newLiquidation;
1444
1444
  }
1445
1445
  return this.filterBySymbolsSinceLimit(this.liquidations, [symbol], since, limit, true);
1446
1446
  }
@@ -1,5 +1,5 @@
1
1
  import coinexRest from '../coinex.js';
2
- import type { Int, Str, Strings, OrderBook, Order, Trade, Ticker, Tickers, OHLCV, Balances } from '../base/types.js';
2
+ import type { Int, Str, Strings, OrderBook, Order, Trade, Ticker, Tickers, Balances, Dict, int } from '../base/types.js';
3
3
  import Client from '../base/ws/Client.js';
4
4
  export default class coinex extends coinexRest {
5
5
  describe(): any;
@@ -8,15 +8,17 @@ export default class coinex extends coinexRest {
8
8
  parseWSTicker(ticker: any, market?: any): Ticker;
9
9
  watchBalance(params?: {}): Promise<Balances>;
10
10
  handleBalance(client: Client, message: any): void;
11
+ parseWsBalance(balance: any, accountType?: any): void;
12
+ watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
13
+ handleMyTrades(client: Client, message: any): void;
11
14
  handleTrades(client: Client, message: any): void;
12
15
  parseWsTrade(trade: any, market?: any): Trade;
13
- handleOHLCV(client: Client, message: any): void;
14
16
  watchTicker(symbol: string, params?: {}): Promise<Ticker>;
15
17
  watchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
16
18
  watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
19
+ watchTradesForSymbols(symbols: string[], since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
20
+ watchOrderBookForSymbols(symbols: string[], limit?: Int, params?: {}): Promise<OrderBook>;
17
21
  watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
18
- watchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
19
- fetchOHLCVWs(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
20
22
  handleDelta(bookside: any, delta: any): void;
21
23
  handleDeltas(bookside: any, deltas: any): void;
22
24
  handleOrderBook(client: Client, message: any): void;
@@ -24,8 +26,12 @@ export default class coinex extends coinexRest {
24
26
  handleOrders(client: Client, message: any): void;
25
27
  parseWsOrder(order: any, market?: any): Order;
26
28
  parseWsOrderStatus(status: any): string;
29
+ watchBidsAsks(symbols?: Strings, params?: {}): Promise<Tickers>;
30
+ handleBidAsk(client: Client, message: any): void;
31
+ parseWsBidAsk(ticker: any, market?: any): Ticker;
27
32
  handleMessage(client: Client, message: any): void;
28
- handleAuthenticationMessage(client: Client, message: any): any;
33
+ handleErrors(code: int, reason: string, url: string, method: string, headers: Dict, body: string, response: any, requestHeaders: any, requestBody: any): any;
34
+ handleAuthenticationMessage(client: Client, message: any): void;
29
35
  handleSubscriptionStatus(client: Client, message: any): void;
30
- authenticate(params?: {}): Promise<any>;
36
+ authenticate(type: string): Promise<any>;
31
37
  }