ccxt 4.3.89 → 4.3.91
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 +3 -3
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/alpaca.js +2 -2
- package/dist/cjs/src/ascendex.js +95 -97
- package/dist/cjs/src/binance.js +1 -1
- package/dist/cjs/src/bingx.js +31 -17
- package/dist/cjs/src/bitfinex2.js +21 -22
- package/dist/cjs/src/bitget.js +2 -2
- package/dist/cjs/src/bitmart.js +6 -9
- package/dist/cjs/src/coinbaseinternational.js +2 -1
- package/dist/cjs/src/coinex.js +1 -17
- package/dist/cjs/src/hitbtc.js +2 -0
- package/dist/cjs/src/htx.js +49 -49
- package/dist/cjs/src/huobijp.js +0 -9
- package/dist/cjs/src/kucoin.js +59 -21
- package/dist/cjs/src/kucoinfutures.js +26 -2
- package/dist/cjs/src/latoken.js +1 -0
- package/dist/cjs/src/okx.js +1 -8
- package/dist/cjs/src/pro/binance.js +323 -0
- package/dist/cjs/src/pro/bingx.js +263 -91
- package/dist/cjs/src/pro/bithumb.js +5 -1
- package/dist/cjs/src/pro/bybit.js +1 -1
- package/dist/cjs/src/pro/coinex.js +994 -679
- package/dist/cjs/src/pro/lbank.js +2 -3
- package/dist/cjs/src/pro/okx.js +159 -3
- package/dist/cjs/src/whitebit.js +5 -3
- package/dist/cjs/src/woo.js +1 -1
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/kucoin.d.ts +1 -0
- package/js/src/abstract/kucoinfutures.d.ts +1 -0
- package/js/src/alpaca.js +2 -2
- package/js/src/ascendex.js +95 -97
- package/js/src/binance.js +1 -1
- package/js/src/bingx.js +31 -17
- package/js/src/bitfinex2.d.ts +0 -1
- package/js/src/bitfinex2.js +21 -22
- package/js/src/bitget.js +2 -2
- package/js/src/bitmart.d.ts +0 -1
- package/js/src/bitmart.js +6 -9
- package/js/src/coinbaseinternational.js +2 -1
- package/js/src/coinex.d.ts +0 -2
- package/js/src/coinex.js +1 -17
- package/js/src/hitbtc.js +2 -0
- package/js/src/htx.js +49 -49
- package/js/src/huobijp.d.ts +0 -1
- package/js/src/huobijp.js +0 -9
- package/js/src/kucoin.d.ts +3 -1
- package/js/src/kucoin.js +59 -21
- package/js/src/kucoinfutures.d.ts +1 -0
- package/js/src/kucoinfutures.js +26 -2
- package/js/src/latoken.js +1 -0
- package/js/src/okx.d.ts +0 -1
- package/js/src/okx.js +1 -8
- package/js/src/pro/binance.d.ts +9 -1
- package/js/src/pro/binance.js +327 -1
- package/js/src/pro/bingx.d.ts +2 -2
- package/js/src/pro/bingx.js +263 -91
- package/js/src/pro/bithumb.js +5 -1
- package/js/src/pro/bybit.js +1 -1
- package/js/src/pro/coinex.d.ts +12 -6
- package/js/src/pro/coinex.js +996 -681
- package/js/src/pro/lbank.js +2 -3
- package/js/src/pro/okx.d.ts +7 -0
- package/js/src/pro/okx.js +162 -4
- package/js/src/whitebit.js +5 -3
- package/js/src/woo.js +1 -1
- package/package.json +1 -1
package/js/src/pro/bithumb.js
CHANGED
|
@@ -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
|
|
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
|
package/js/src/pro/bybit.js
CHANGED
|
@@ -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
|
|
1443
|
+
return newLiquidation;
|
|
1444
1444
|
}
|
|
1445
1445
|
return this.filterBySymbolsSinceLimit(this.liquidations, [symbol], since, limit, true);
|
|
1446
1446
|
}
|
package/js/src/pro/coinex.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import coinexRest from '../coinex.js';
|
|
2
|
-
import type { Int, Str, Strings, OrderBook, Order, Trade, Ticker, Tickers,
|
|
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
|
-
|
|
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(
|
|
36
|
+
authenticate(type: string): Promise<any>;
|
|
31
37
|
}
|