ccxt 4.4.72 → 4.4.73

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.
@@ -1,99 +0,0 @@
1
- import bitfinex2Rest from '../bitfinex2.js';
2
- import type { Int, Str, OrderBook, Order, Trade, Ticker, OHLCV, Balances } from '../base/types.js';
3
- import Client from '../base/ws/Client.js';
4
- export default class bitfinex2 extends bitfinex2Rest {
5
- describe(): any;
6
- subscribe(channel: any, symbol: any, params?: {}): Promise<any>;
7
- subscribePrivate(messageHash: any): Promise<any>;
8
- /**
9
- * @method
10
- * @name bitfinex2#watchOHLCV
11
- * @description watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
12
- * @param {string} symbol unified symbol of the market to fetch OHLCV data for
13
- * @param {string} timeframe the length of time each candle represents
14
- * @param {int} [since] timestamp in ms of the earliest candle to fetch
15
- * @param {int} [limit] the maximum amount of candles to fetch
16
- * @param {object} [params] extra parameters specific to the exchange API endpoint
17
- * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
18
- */
19
- watchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
20
- handleOHLCV(client: Client, message: any, subscription: any): void;
21
- /**
22
- * @method
23
- * @name bitfinex2#watchTrades
24
- * @description get the list of most recent trades for a particular symbol
25
- * @param {string} symbol unified symbol of the market to fetch trades for
26
- * @param {int} [since] timestamp in ms of the earliest trade to fetch
27
- * @param {int} [limit] the maximum amount of trades to fetch
28
- * @param {object} [params] extra parameters specific to the exchange API endpoint
29
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
30
- */
31
- watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
32
- /**
33
- * @method
34
- * @name bitfinex2#watchMyTrades
35
- * @description watches information on multiple trades made by the user
36
- * @param {string} symbol unified market symbol of the market trades were made in
37
- * @param {int} [since] the earliest time in ms to fetch trades for
38
- * @param {int} [limit] the maximum number of trade structures to retrieve
39
- * @param {object} [params] extra parameters specific to the exchange API endpoint
40
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
41
- */
42
- watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
43
- /**
44
- * @method
45
- * @name bitfinex2#watchTicker
46
- * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
47
- * @param {string} symbol unified symbol of the market to fetch the ticker for
48
- * @param {object} [params] extra parameters specific to the exchange API endpoint
49
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
50
- */
51
- watchTicker(symbol: string, params?: {}): Promise<Ticker>;
52
- handleMyTrade(client: Client, message: any, subscription?: {}): void;
53
- handleTrades(client: Client, message: any, subscription: any): void;
54
- parseWsTrade(trade: any, market?: any): Trade;
55
- handleTicker(client: Client, message: any, subscription: any): void;
56
- parseWsTicker(ticker: any, market?: any): Ticker;
57
- /**
58
- * @method
59
- * @name bitfinex2#watchOrderBook
60
- * @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
61
- * @param {string} symbol unified symbol of the market to fetch the order book for
62
- * @param {int} [limit] the maximum amount of order book entries to return
63
- * @param {object} [params] extra parameters specific to the exchange API endpoint
64
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
65
- */
66
- watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
67
- handleOrderBook(client: Client, message: any, subscription: any): void;
68
- handleChecksum(client: Client, message: any, subscription: any): void;
69
- /**
70
- * @method
71
- * @name bitfinex2#watchBalance
72
- * @description watch balance and get the amount of funds available for trading or funds locked in orders
73
- * @param {object} [params] extra parameters specific to the exchange API endpoint
74
- * @param {str} [params.type] spot or contract if not provided this.options['defaultType'] is used
75
- * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
76
- */
77
- watchBalance(params?: {}): Promise<Balances>;
78
- handleBalance(client: Client, message: any, subscription: any): void;
79
- parseWsBalance(balance: any): import("../base/types.js").BalanceAccount;
80
- handleSystemStatus(client: Client, message: any): any;
81
- handleSubscriptionStatus(client: Client, message: any): any;
82
- authenticate(params?: {}): Promise<any>;
83
- handleAuthenticationMessage(client: Client, message: any): void;
84
- /**
85
- * @method
86
- * @name bitfinex2#watchOrders
87
- * @description watches information on multiple orders made by the user
88
- * @param {string} symbol unified market symbol of the market orders were made in
89
- * @param {int} [since] the earliest time in ms to fetch orders for
90
- * @param {int} [limit] the maximum number of order structures to retrieve
91
- * @param {object} [params] extra parameters specific to the exchange API endpoint
92
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
93
- */
94
- watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
95
- handleOrders(client: Client, message: any, subscription: any): void;
96
- parseWsOrderStatus(status: any): string;
97
- parseWsOrder(order: any, market?: any): Order;
98
- handleMessage(client: Client, message: any): void;
99
- }