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.
- package/README.md +4 -4
- package/dist/ccxt.browser.min.js +2 -2
- package/dist/cjs/ccxt.js +1 -6
- package/dist/cjs/src/ace.js +42 -7
- package/dist/cjs/src/alpaca.js +46 -0
- package/dist/cjs/src/ascendex.js +1 -1
- package/dist/cjs/src/base/Exchange.js +6 -16
- package/dist/cjs/src/binance.js +20 -15
- package/dist/cjs/src/bit2c.js +11 -0
- package/dist/cjs/src/bitget.js +7 -5
- package/dist/cjs/src/bitrue.js +1 -1
- package/dist/cjs/src/bybit.js +9 -0
- package/dist/cjs/src/defx.js +1 -1
- package/dist/cjs/src/derive.js +2 -0
- package/dist/cjs/src/pro/bitget.js +1 -1
- package/js/ccxt.d.ts +2 -8
- package/js/ccxt.js +2 -6
- package/js/src/ace.js +42 -7
- package/js/src/alpaca.js +46 -0
- package/js/src/ascendex.js +1 -1
- package/js/src/base/Exchange.d.ts +1 -1
- package/js/src/base/Exchange.js +6 -16
- package/js/src/binance.js +20 -15
- package/js/src/bit2c.js +11 -0
- package/js/src/bitget.js +7 -5
- package/js/src/bitrue.js +1 -1
- package/js/src/bybit.d.ts +4 -20
- package/js/src/bybit.js +9 -0
- package/js/src/defx.js +1 -1
- package/js/src/derive.js +2 -0
- package/js/src/pro/bitget.d.ts +1 -1
- package/js/src/pro/bitget.js +1 -1
- package/package.json +1 -1
- package/js/src/bitfinex1.d.ts +0 -297
- package/js/src/bitfinex1.js +0 -1770
- package/js/src/pro/bitfinex1.d.ts +0 -67
- package/js/src/pro/bitfinex1.js +0 -676
- package/js/src/pro/bitfinex2.d.ts +0 -99
- package/js/src/pro/bitfinex2.js +0 -1165
|
@@ -1,67 +0,0 @@
|
|
|
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 bitfinex1#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 bitfinex1#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 bitfinex1#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 bitfinex1#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
|
-
}
|