ccxt 4.4.36 → 4.4.37

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 (38) hide show
  1. package/README.md +7 -7
  2. package/dist/ccxt.browser.min.js +2 -2
  3. package/dist/cjs/ccxt.js +6 -6
  4. package/dist/cjs/src/abstract/bitfinex1.js +9 -0
  5. package/dist/cjs/src/base/Exchange.js +6 -1
  6. package/dist/cjs/src/bitfinex.js +3178 -1161
  7. package/dist/cjs/src/bitfinex1.js +1760 -0
  8. package/dist/cjs/src/coinbase.js +87 -0
  9. package/dist/cjs/src/gate.js +1 -1
  10. package/dist/cjs/src/hyperliquid.js +125 -14
  11. package/dist/cjs/src/paradex.js +4 -2
  12. package/dist/cjs/src/pro/bitfinex.js +760 -271
  13. package/dist/cjs/src/pro/bitfinex1.js +675 -0
  14. package/dist/cjs/src/pro/probit.js +1 -0
  15. package/js/ccxt.d.ts +8 -8
  16. package/js/ccxt.js +6 -6
  17. package/js/src/abstract/bitfinex.d.ts +135 -64
  18. package/js/src/abstract/bitfinex1.d.ts +72 -0
  19. package/js/src/base/Exchange.js +6 -1
  20. package/js/src/bitfinex.d.ts +316 -106
  21. package/js/src/bitfinex.js +3179 -1162
  22. package/js/src/bitfinex1.d.ts +296 -0
  23. package/js/src/bitfinex1.js +1761 -0
  24. package/js/src/coinbase.d.ts +33 -0
  25. package/js/src/coinbase.js +87 -0
  26. package/js/src/gate.js +1 -1
  27. package/js/src/hyperliquid.d.ts +6 -1
  28. package/js/src/hyperliquid.js +125 -14
  29. package/js/src/paradex.d.ts +2 -0
  30. package/js/src/paradex.js +4 -2
  31. package/js/src/pro/bitfinex.d.ts +42 -10
  32. package/js/src/pro/bitfinex.js +761 -272
  33. package/js/src/pro/bitfinex1.d.ts +67 -0
  34. package/js/src/pro/bitfinex1.js +676 -0
  35. package/js/src/pro/probit.js +1 -0
  36. package/package.json +1 -1
  37. package/js/src/abstract/bitfinex2.d.ts +0 -143
  38. /package/js/src/abstract/{bitfinex2.js → bitfinex1.js} +0 -0
@@ -0,0 +1,67 @@
1
+ import bitfinex1Rest from '../bitfinex1.js';
2
+ import type { Int, Str, Trade, OrderBook, Order, Ticker } from '../base/types.js';
3
+ import Client from '../base/ws/Client.js';
4
+ export default class bitfinex1 extends bitfinex1Rest {
5
+ describe(): any;
6
+ subscribe(channel: any, symbol: any, params?: {}): Promise<any>;
7
+ /**
8
+ * @method
9
+ * @name bitfinex#watchTrades
10
+ * @description get the list of most recent trades for a particular symbol
11
+ * @see https://docs.bitfinex.com/v1/reference/ws-public-trades
12
+ * @param {string} symbol unified symbol of the market to fetch trades for
13
+ * @param {int} [since] timestamp in ms of the earliest trade to fetch
14
+ * @param {int} [limit] the maximum amount of trades to fetch
15
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
16
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
17
+ */
18
+ watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
19
+ /**
20
+ * @method
21
+ * @name bitfinex#watchTicker
22
+ * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
23
+ * @see https://docs.bitfinex.com/v1/reference/ws-public-ticker
24
+ * @param {string} symbol unified symbol of the market to fetch the ticker for
25
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
26
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
27
+ */
28
+ watchTicker(symbol: string, params?: {}): Promise<Ticker>;
29
+ handleTrades(client: Client, message: any, subscription: any): void;
30
+ parseTrade(trade: any, market?: any): Trade;
31
+ handleTicker(client: Client, message: any, subscription: any): void;
32
+ /**
33
+ * @method
34
+ * @name bitfinex#watchOrderBook
35
+ * @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
36
+ * @see https://docs.bitfinex.com/v1/reference/ws-public-order-books
37
+ * @param {string} symbol unified symbol of the market to fetch the order book for
38
+ * @param {int} [limit] the maximum amount of order book entries to return
39
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
40
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
41
+ */
42
+ watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
43
+ handleOrderBook(client: Client, message: any, subscription: any): void;
44
+ handleHeartbeat(client: Client, message: any): void;
45
+ handleSystemStatus(client: Client, message: any): any;
46
+ handleSubscriptionStatus(client: Client, message: any): any;
47
+ authenticate(params?: {}): Promise<any>;
48
+ handleAuthenticationMessage(client: Client, message: any): void;
49
+ watchOrder(id: any, symbol?: Str, params?: {}): Promise<any>;
50
+ /**
51
+ * @method
52
+ * @name bitfinex#watchOrders
53
+ * @description watches information on multiple orders made by the user
54
+ * @see https://docs.bitfinex.com/v1/reference/ws-auth-order-updates
55
+ * @see https://docs.bitfinex.com/v1/reference/ws-auth-order-snapshots
56
+ * @param {string} symbol unified market symbol of the market orders were made in
57
+ * @param {int} [since] the earliest time in ms to fetch orders for
58
+ * @param {int} [limit] the maximum number of order structures to retrieve
59
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
60
+ * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
61
+ */
62
+ watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
63
+ handleOrders(client: Client, message: any, subscription: any): void;
64
+ parseWsOrderStatus(status: any): string;
65
+ handleOrder(client: Client, order: any): Order;
66
+ handleMessage(client: Client, message: any): void;
67
+ }