ccxt 4.1.52 → 4.1.54
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 +9 -10
- package/dist/ccxt.browser.js +3517 -3374
- package/dist/ccxt.browser.min.js +10 -10
- package/dist/cjs/ccxt.js +4 -7
- package/dist/cjs/src/abstract/p2b.js +9 -0
- package/dist/cjs/src/ace.js +56 -59
- package/dist/cjs/src/ascendex.js +1 -2
- package/dist/cjs/src/base/Exchange.js +11 -17
- package/dist/cjs/src/bingx.js +48 -8
- package/dist/cjs/src/bitget.js +670 -405
- package/dist/cjs/src/bybit.js +2 -11
- package/dist/cjs/src/cryptocom.js +1 -0
- package/dist/cjs/src/digifinex.js +9 -6
- package/dist/cjs/src/lbank.js +2333 -443
- package/dist/cjs/src/ndax.js +59 -61
- package/dist/cjs/src/novadax.js +57 -59
- package/dist/cjs/src/oceanex.js +58 -60
- package/dist/cjs/src/okcoin.js +1 -9
- package/dist/cjs/src/okx.js +0 -7
- package/dist/cjs/src/p2b.js +1246 -0
- package/dist/cjs/src/poloniex.js +55 -57
- package/dist/cjs/src/poloniexfutures.js +67 -70
- package/dist/cjs/src/pro/bingx.js +18 -11
- package/dist/cjs/src/pro/poloniexfutures.js +9 -0
- package/dist/cjs/src/probit.js +62 -65
- package/dist/cjs/src/timex.js +1 -5
- package/dist/cjs/src/upbit.js +56 -58
- package/dist/cjs/src/wazirx.js +72 -74
- package/dist/cjs/src/whitebit.js +88 -91
- package/dist/cjs/src/woo.js +75 -77
- package/dist/cjs/src/zaif.js +57 -71
- package/dist/cjs/src/zonda.js +67 -70
- package/js/ccxt.d.ts +5 -8
- package/js/ccxt.js +4 -6
- package/js/src/abstract/bitget.d.ts +495 -254
- package/js/src/abstract/bybit.d.ts +1 -0
- package/js/src/abstract/lbank.d.ts +57 -15
- package/js/src/abstract/p2b.d.ts +25 -0
- package/js/src/ace.d.ts +9 -8
- package/js/src/ace.js +56 -59
- package/js/src/alpaca.d.ts +5 -5
- package/js/src/ascendex.d.ts +17 -17
- package/js/src/ascendex.js +1 -2
- package/js/src/base/Exchange.d.ts +5 -5
- package/js/src/base/Exchange.js +11 -17
- package/js/src/base/types.d.ts +73 -68
- package/js/src/bigone.d.ts +12 -12
- package/js/src/binance.d.ts +37 -37
- package/js/src/bingx.d.ts +20 -20
- package/js/src/bingx.js +48 -8
- package/js/src/bit2c.d.ts +5 -5
- package/js/src/bitbank.d.ts +6 -6
- package/js/src/bitbns.d.ts +8 -8
- package/js/src/bitfinex.d.ts +11 -11
- package/js/src/bitfinex2.d.ts +15 -15
- package/js/src/bitflyer.d.ts +10 -10
- package/js/src/bitforex.d.ts +6 -6
- package/js/src/bitget.d.ts +28 -28
- package/js/src/bitget.js +670 -405
- package/js/src/bithumb.d.ts +5 -5
- package/js/src/bitmart.d.ts +23 -23
- package/js/src/bitmex.d.ts +19 -19
- package/js/src/bitopro.d.ts +15 -15
- package/js/src/bitpanda.d.ts +13 -13
- package/js/src/bitrue.d.ts +12 -12
- package/js/src/bitso.d.ts +13 -13
- package/js/src/bitstamp.d.ts +12 -12
- package/js/src/bitstamp1.d.ts +4 -4
- package/js/src/bittrex.d.ts +18 -18
- package/js/src/bitvavo.d.ts +11 -11
- package/js/src/bl3p.d.ts +2 -2
- package/js/src/blockchaincom.d.ts +14 -14
- package/js/src/btcalpha.d.ts +11 -11
- package/js/src/btcbox.d.ts +6 -6
- package/js/src/btcmarkets.d.ts +13 -13
- package/js/src/btcturk.d.ts +7 -7
- package/js/src/bybit.d.ts +33 -33
- package/js/src/bybit.js +2 -11
- package/js/src/cex.d.ts +7 -7
- package/js/src/coinbase.d.ts +21 -21
- package/js/src/coinbasepro.d.ts +14 -14
- package/js/src/coincheck.d.ts +6 -6
- package/js/src/coinex.d.ts +24 -24
- package/js/src/coinlist.d.ts +16 -16
- package/js/src/coinmate.d.ts +7 -7
- package/js/src/coinone.d.ts +6 -6
- package/js/src/coinsph.d.ts +11 -11
- package/js/src/coinspot.d.ts +4 -4
- package/js/src/cryptocom.d.ts +19 -19
- package/js/src/cryptocom.js +1 -0
- package/js/src/currencycom.d.ts +12 -12
- package/js/src/delta.d.ts +14 -14
- package/js/src/deribit.d.ts +16 -16
- package/js/src/digifinex.d.ts +22 -22
- package/js/src/digifinex.js +9 -6
- package/js/src/exmo.d.ts +15 -15
- package/js/src/gate.d.ts +25 -25
- package/js/src/gemini.d.ts +7 -7
- package/js/src/hitbtc.d.ts +20 -20
- package/js/src/hollaex.d.ts +16 -16
- package/js/src/htx.d.ts +34 -34
- package/js/src/huobijp.d.ts +18 -18
- package/js/src/idex.d.ts +14 -14
- package/js/src/independentreserve.d.ts +6 -6
- package/js/src/indodax.d.ts +7 -7
- package/js/src/kraken.d.ts +18 -18
- package/js/src/krakenfutures.d.ts +14 -14
- package/js/src/kucoin.d.ts +17 -17
- package/js/src/kucoinfutures.d.ts +12 -12
- package/js/src/kuna.d.ts +13 -13
- package/js/src/latoken.d.ts +10 -10
- package/js/src/lbank.d.ts +66 -13
- package/js/src/lbank.js +2334 -444
- package/js/src/lbank2.d.ts +11 -11
- package/js/src/luno.d.ts +11 -11
- package/js/src/lykke.d.ts +9 -9
- package/js/src/mercado.d.ts +6 -6
- package/js/src/mexc.d.ts +28 -28
- package/js/src/ndax.d.ts +13 -12
- package/js/src/ndax.js +59 -61
- package/js/src/novadax.d.ts +14 -13
- package/js/src/novadax.js +57 -59
- package/js/src/oceanex.d.ts +12 -11
- package/js/src/oceanex.js +58 -60
- package/js/src/okcoin.d.ts +13 -14
- package/js/src/okcoin.js +1 -9
- package/js/src/okx.d.ts +30 -31
- package/js/src/okx.js +0 -7
- package/js/src/p2b.d.ts +34 -0
- package/js/src/p2b.js +1246 -0
- package/js/src/paymium.d.ts +2 -2
- package/js/src/phemex.d.ts +19 -19
- package/js/src/poloniex.d.ts +17 -16
- package/js/src/poloniex.js +55 -57
- package/js/src/poloniexfutures.d.ts +13 -12
- package/js/src/poloniexfutures.js +67 -70
- package/js/src/pro/alpaca.d.ts +3 -3
- package/js/src/pro/ascendex.d.ts +2 -2
- package/js/src/pro/binance.d.ts +12 -12
- package/js/src/pro/bingx.d.ts +3 -3
- package/js/src/pro/bingx.js +19 -12
- package/js/src/pro/bitfinex.d.ts +3 -3
- package/js/src/pro/bitfinex2.d.ts +3 -3
- package/js/src/pro/bitget.d.ts +5 -5
- package/js/src/pro/bitmart.d.ts +2 -2
- package/js/src/pro/bitmex.d.ts +3 -3
- package/js/src/pro/bitpanda.d.ts +5 -5
- package/js/src/pro/bitrue.d.ts +2 -2
- package/js/src/pro/bitstamp.d.ts +2 -2
- package/js/src/pro/bittrex.d.ts +3 -3
- package/js/src/pro/bitvavo.d.ts +3 -3
- package/js/src/pro/blockchaincom.d.ts +2 -2
- package/js/src/pro/bybit.d.ts +7 -7
- package/js/src/pro/cex.d.ts +4 -4
- package/js/src/pro/coinbasepro.d.ts +6 -6
- package/js/src/pro/coinex.d.ts +3 -3
- package/js/src/pro/cryptocom.d.ts +7 -7
- package/js/src/pro/deribit.d.ts +3 -3
- package/js/src/pro/exmo.d.ts +2 -2
- package/js/src/pro/gate.d.ts +6 -6
- package/js/src/pro/gemini.d.ts +2 -2
- package/js/src/pro/hitbtc.d.ts +5 -5
- package/js/src/pro/hollaex.d.ts +3 -3
- package/js/src/pro/htx.d.ts +4 -4
- package/js/src/pro/idex.d.ts +3 -3
- package/js/src/pro/kraken.d.ts +8 -8
- package/js/src/pro/krakenfutures.d.ts +6 -6
- package/js/src/pro/kucoin.d.ts +4 -4
- package/js/src/pro/kucoinfutures.d.ts +3 -3
- package/js/src/pro/mexc.d.ts +3 -3
- package/js/src/pro/okcoin.d.ts +2 -2
- package/js/src/pro/okx.d.ts +9 -9
- package/js/src/pro/phemex.d.ts +3 -3
- package/js/src/pro/poloniex.d.ts +4 -4
- package/js/src/pro/poloniexfutures.d.ts +3 -3
- package/js/src/pro/poloniexfutures.js +9 -0
- package/js/src/pro/probit.d.ts +3 -3
- package/js/src/pro/wazirx.d.ts +4 -4
- package/js/src/pro/whitebit.d.ts +3 -3
- package/js/src/pro/woo.d.ts +3 -3
- package/js/src/probit.d.ts +13 -12
- package/js/src/probit.js +62 -65
- package/js/src/tidex.d.ts +7 -7
- package/js/src/timex.d.ts +11 -11
- package/js/src/timex.js +1 -5
- package/js/src/tokocrypto.d.ts +11 -11
- package/js/src/upbit.d.ts +13 -12
- package/js/src/upbit.js +56 -58
- package/js/src/wavesexchange.d.ts +10 -10
- package/js/src/wazirx.d.ts +8 -7
- package/js/src/wazirx.js +72 -74
- package/js/src/whitebit.d.ts +15 -14
- package/js/src/whitebit.js +88 -91
- package/js/src/woo.d.ts +22 -21
- package/js/src/woo.js +75 -77
- package/js/src/yobit.d.ts +7 -7
- package/js/src/zaif.d.ts +6 -5
- package/js/src/zaif.js +57 -71
- package/js/src/zonda.d.ts +8 -7
- package/js/src/zonda.js +67 -70
- package/package.json +1 -1
- package/skip-tests.json +7 -15
- package/test.ts +0 -0
- package/js/src/abstract/bitstamp1.d.ts +0 -26
- package/js/src/abstract/lbank2.d.ts +0 -64
- package/js/src/abstract/lbank2.js +0 -11
- /package/js/src/abstract/{bitstamp1.js → p2b.js} +0 -0
package/js/src/pro/bingx.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
// ---------------------------------------------------------------------------
|
|
8
8
|
import bingxRest from '../bingx.js';
|
|
9
|
-
import { BadRequest } from '../base/errors.js';
|
|
9
|
+
import { BadRequest, NetworkError } from '../base/errors.js';
|
|
10
10
|
import { ArrayCache, ArrayCacheByTimestamp, ArrayCacheBySymbolById } from '../base/ws/Cache.js';
|
|
11
11
|
// ---------------------------------------------------------------------------
|
|
12
12
|
export default class bingx extends bingxRest {
|
|
@@ -302,11 +302,12 @@ export default class bingx extends bingxRest {
|
|
|
302
302
|
// "h": "28915.4",
|
|
303
303
|
// "l": "28896.1",
|
|
304
304
|
// "v": "27.6919",
|
|
305
|
-
// "T":
|
|
305
|
+
// "T": 1696687499999,
|
|
306
|
+
// "t": 1696687440000
|
|
306
307
|
// }
|
|
307
308
|
//
|
|
308
309
|
return [
|
|
309
|
-
this.safeInteger(ohlcv, '
|
|
310
|
+
this.safeInteger(ohlcv, 't'),
|
|
310
311
|
this.safeNumber(ohlcv, 'o'),
|
|
311
312
|
this.safeNumber(ohlcv, 'h'),
|
|
312
313
|
this.safeNumber(ohlcv, 'l'),
|
|
@@ -600,16 +601,22 @@ export default class bingx extends bingxRest {
|
|
|
600
601
|
// swap
|
|
601
602
|
// Ping
|
|
602
603
|
//
|
|
603
|
-
|
|
604
|
-
|
|
604
|
+
try {
|
|
605
|
+
if (message === 'Ping') {
|
|
606
|
+
await client.send('Pong');
|
|
607
|
+
}
|
|
608
|
+
else {
|
|
609
|
+
const ping = this.safeString(message, 'ping');
|
|
610
|
+
const time = this.safeString(message, 'time');
|
|
611
|
+
await client.send({
|
|
612
|
+
'pong': ping,
|
|
613
|
+
'time': time,
|
|
614
|
+
});
|
|
615
|
+
}
|
|
605
616
|
}
|
|
606
|
-
|
|
607
|
-
const
|
|
608
|
-
|
|
609
|
-
await client.send({
|
|
610
|
-
'pong': ping,
|
|
611
|
-
'time': time,
|
|
612
|
-
});
|
|
617
|
+
catch (e) {
|
|
618
|
+
const error = new NetworkError(this.id + ' pong failed with error ' + this.json(e));
|
|
619
|
+
client.reset(error);
|
|
613
620
|
}
|
|
614
621
|
}
|
|
615
622
|
handleOrder(client, message) {
|
package/js/src/pro/bitfinex.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import bitfinexRest from '../bitfinex.js';
|
|
2
|
-
import { Int, Trade } from '../base/types.js';
|
|
2
|
+
import { Int, Str, Trade } from '../base/types.js';
|
|
3
3
|
import Client from '../base/ws/Client.js';
|
|
4
4
|
export default class bitfinex extends bitfinexRest {
|
|
5
5
|
describe(): any;
|
|
@@ -16,8 +16,8 @@ export default class bitfinex extends bitfinexRest {
|
|
|
16
16
|
handleSubscriptionStatus(client: Client, message: any): any;
|
|
17
17
|
authenticate(params?: {}): Promise<any>;
|
|
18
18
|
handleAuthenticationMessage(client: Client, message: any): void;
|
|
19
|
-
watchOrder(id: any, symbol?:
|
|
20
|
-
watchOrders(symbol?:
|
|
19
|
+
watchOrder(id: any, symbol?: Str, params?: {}): Promise<any>;
|
|
20
|
+
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
21
21
|
handleOrders(client: Client, message: any, subscription: any): void;
|
|
22
22
|
parseWsOrderStatus(status: any): string;
|
|
23
23
|
handleOrder(client: Client, order: any): import("../base/types.js").Order;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import bitfinex2Rest from '../bitfinex2.js';
|
|
2
|
-
import { Int } from '../base/types.js';
|
|
2
|
+
import { Int, Str } from '../base/types.js';
|
|
3
3
|
import Client from '../base/ws/Client.js';
|
|
4
4
|
export default class bitfinex2 extends bitfinex2Rest {
|
|
5
5
|
describe(): any;
|
|
@@ -8,7 +8,7 @@ export default class bitfinex2 extends bitfinex2Rest {
|
|
|
8
8
|
watchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
9
9
|
handleOHLCV(client: Client, message: any, subscription: any): void;
|
|
10
10
|
watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
11
|
-
watchMyTrades(symbol?:
|
|
11
|
+
watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
12
12
|
watchTicker(symbol: string, params?: {}): Promise<any>;
|
|
13
13
|
handleMyTrade(client: Client, message: any, subscription?: {}): void;
|
|
14
14
|
handleTrades(client: Client, message: any, subscription: any): any;
|
|
@@ -25,7 +25,7 @@ export default class bitfinex2 extends bitfinex2Rest {
|
|
|
25
25
|
handleSubscriptionStatus(client: Client, message: any): any;
|
|
26
26
|
authenticate(params?: {}): Promise<any>;
|
|
27
27
|
handleAuthenticationMessage(client: Client, message: any): void;
|
|
28
|
-
watchOrders(symbol?:
|
|
28
|
+
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
29
29
|
handleOrders(client: Client, message: any, subscription: any): void;
|
|
30
30
|
parseWsOrderStatus(status: any): string;
|
|
31
31
|
parseWsOrder(order: any, market?: any): import("../base/types.js").Order;
|
package/js/src/pro/bitget.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import bitgetRest from '../bitget.js';
|
|
2
|
-
import { Int, OHLCV } from '../base/types.js';
|
|
2
|
+
import { Int, OHLCV, Str, Strings } from '../base/types.js';
|
|
3
3
|
import Client from '../base/ws/Client.js';
|
|
4
4
|
/**
|
|
5
5
|
* @class bitget
|
|
@@ -11,7 +11,7 @@ export default class bitget extends bitgetRest {
|
|
|
11
11
|
getWsMarketId(market: any): any;
|
|
12
12
|
getMarketIdFromArg(arg: any): string;
|
|
13
13
|
watchTicker(symbol: string, params?: {}): Promise<any>;
|
|
14
|
-
watchTickers(symbols?:
|
|
14
|
+
watchTickers(symbols?: Strings, params?: {}): Promise<any>;
|
|
15
15
|
handleTicker(client: Client, message: any): any;
|
|
16
16
|
parseWsTicker(message: any, market?: any): import("../base/types.js").Ticker;
|
|
17
17
|
watchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
@@ -27,14 +27,14 @@ export default class bitget extends bitgetRest {
|
|
|
27
27
|
watchTradesForSymbols(symbols: string[], since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
28
28
|
handleTrades(client: Client, message: any): void;
|
|
29
29
|
parseWsTrade(trade: any, market?: any): import("../base/types.js").Trade;
|
|
30
|
-
watchPositions(symbols?:
|
|
30
|
+
watchPositions(symbols?: Strings, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
31
31
|
handlePositions(client: Client, message: any): void;
|
|
32
32
|
parseWsPosition(position: any, market?: any): import("../base/types.js").Position;
|
|
33
|
-
watchOrders(symbol?:
|
|
33
|
+
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
34
34
|
handleOrder(client: Client, message: any, subscription?: any): void;
|
|
35
35
|
parseWsOrder(order: any, market?: any): import("../base/types.js").Order;
|
|
36
36
|
parseWsOrderStatus(status: any): string;
|
|
37
|
-
watchMyTrades(symbol?:
|
|
37
|
+
watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
38
38
|
handleMyTrades(client: Client, message: any): void;
|
|
39
39
|
parseWsMyTrade(trade: any, market?: any): import("../base/types.js").Trade;
|
|
40
40
|
watchBalance(params?: {}): Promise<any>;
|
package/js/src/pro/bitmart.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import bitmartRest from '../bitmart.js';
|
|
2
|
-
import { Int } from '../base/types.js';
|
|
2
|
+
import { Int, Str } from '../base/types.js';
|
|
3
3
|
import Client from '../base/ws/Client.js';
|
|
4
4
|
export default class bitmart extends bitmartRest {
|
|
5
5
|
describe(): any;
|
|
@@ -7,7 +7,7 @@ export default class bitmart extends bitmartRest {
|
|
|
7
7
|
subscribePrivate(channel: any, symbol: any, params?: {}): Promise<any>;
|
|
8
8
|
watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
9
9
|
watchTicker(symbol: string, params?: {}): Promise<any>;
|
|
10
|
-
watchOrders(symbol?:
|
|
10
|
+
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
11
11
|
handleOrders(client: Client, message: any): void;
|
|
12
12
|
parseWsOrder(order: any, market?: any): import("../base/types.js").Order;
|
|
13
13
|
handleTrade(client: Client, message: any): any;
|
package/js/src/pro/bitmex.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import bitmexRest from '../bitmex.js';
|
|
2
|
-
import { Int } from '../base/types.js';
|
|
2
|
+
import { Int, Str } from '../base/types.js';
|
|
3
3
|
import Client from '../base/ws/Client.js';
|
|
4
4
|
export default class bitmex extends bitmexRest {
|
|
5
5
|
describe(): any;
|
|
@@ -11,9 +11,9 @@ export default class bitmex extends bitmexRest {
|
|
|
11
11
|
watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
12
12
|
authenticate(params?: {}): Promise<any>;
|
|
13
13
|
handleAuthenticationMessage(client: Client, message: any): void;
|
|
14
|
-
watchOrders(symbol?:
|
|
14
|
+
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
15
15
|
handleOrders(client: Client, message: any): void;
|
|
16
|
-
watchMyTrades(symbol?:
|
|
16
|
+
watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
17
17
|
handleMyTrades(client: Client, message: any): void;
|
|
18
18
|
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<any>;
|
|
19
19
|
watchOrderBookForSymbols(symbols: string[], limit?: Int, params?: {}): Promise<any>;
|
package/js/src/pro/bitpanda.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import bitpandaRest from '../bitpanda.js';
|
|
2
|
-
import { Int } from '../base/types.js';
|
|
2
|
+
import { Int, Str, Strings } from '../base/types.js';
|
|
3
3
|
import Client from '../base/ws/Client.js';
|
|
4
4
|
export default class bitpanda extends bitpandaRest {
|
|
5
5
|
describe(): any;
|
|
6
6
|
watchBalance(params?: {}): Promise<any>;
|
|
7
7
|
handleBalanceSnapshot(client: any, message: any): void;
|
|
8
8
|
watchTicker(symbol: string, params?: {}): Promise<any>;
|
|
9
|
-
watchTickers(symbols?:
|
|
9
|
+
watchTickers(symbols?: Strings, params?: {}): Promise<any>;
|
|
10
10
|
handleTicker(client: Client, message: any): void;
|
|
11
11
|
parseWSTicker(ticker: any, market?: any): import("../base/types.js").Ticker;
|
|
12
|
-
watchMyTrades(symbol?:
|
|
12
|
+
watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): any;
|
|
13
13
|
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<any>;
|
|
14
14
|
handleOrderBook(client: Client, message: any): void;
|
|
15
15
|
handleDelta(orderbook: any, delta: any): void;
|
|
16
16
|
handleDeltas(orderbook: any, deltas: any): void;
|
|
17
|
-
watchOrders(symbol?:
|
|
17
|
+
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): any;
|
|
18
18
|
handleTrading(client: Client, message: any): void;
|
|
19
19
|
parseTradingOrder(order: any, market?: any): import("../base/types.js").Order;
|
|
20
20
|
parseTradingOrderStatus(status: any): string;
|
|
@@ -31,6 +31,6 @@ export default class bitpanda extends bitpandaRest {
|
|
|
31
31
|
handleMessage(client: Client, message: any): any;
|
|
32
32
|
handlePricePointUpdates(client: Client, message: any): any;
|
|
33
33
|
handleAuthenticationMessage(client: Client, message: any): any;
|
|
34
|
-
watchMultiple(messageHash: any, request: any, subscriptionHash: any, symbols?:
|
|
34
|
+
watchMultiple(messageHash: any, request: any, subscriptionHash: any, symbols?: Strings, params?: {}): Promise<any>;
|
|
35
35
|
authenticate(params?: {}): Promise<any>;
|
|
36
36
|
}
|
package/js/src/pro/bitrue.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import bitrueRest from '../bitrue.js';
|
|
2
|
-
import { Int } from '../base/types.js';
|
|
2
|
+
import { Int, Str } from '../base/types.js';
|
|
3
3
|
import Client from '../base/ws/Client.js';
|
|
4
4
|
export default class bitrue extends bitrueRest {
|
|
5
5
|
describe(): any;
|
|
6
6
|
watchBalance(params?: {}): Promise<any>;
|
|
7
7
|
handleBalance(client: Client, message: any): void;
|
|
8
8
|
parseWSBalances(balances: any): void;
|
|
9
|
-
watchOrders(symbol?:
|
|
9
|
+
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
10
10
|
handleOrder(client: Client, message: any): void;
|
|
11
11
|
parseWsOrder(order: any, market?: any): import("../base/types.js").Order;
|
|
12
12
|
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<any>;
|
package/js/src/pro/bitstamp.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import bitstampRest from '../bitstamp.js';
|
|
2
|
-
import { Int } from '../base/types.js';
|
|
2
|
+
import { Int, Str } from '../base/types.js';
|
|
3
3
|
import Client from '../base/ws/Client.js';
|
|
4
4
|
export default class bitstamp extends bitstampRest {
|
|
5
5
|
describe(): any;
|
|
@@ -11,7 +11,7 @@ export default class bitstamp extends bitstampRest {
|
|
|
11
11
|
watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
12
12
|
parseWsTrade(trade: any, market?: any): import("../base/types.js").Trade;
|
|
13
13
|
handleTrade(client: Client, message: any): void;
|
|
14
|
-
watchOrders(symbol?:
|
|
14
|
+
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
15
15
|
handleOrders(client: Client, message: any): void;
|
|
16
16
|
parseWsOrder(order: any, market?: any): import("../base/types.js").Order;
|
|
17
17
|
handleOrderBookSubscription(client: Client, message: any): void;
|
package/js/src/pro/bittrex.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import bittrexRest from '../bittrex.js';
|
|
2
|
-
import { Int } from '../base/types.js';
|
|
2
|
+
import { Int, Str } from '../base/types.js';
|
|
3
3
|
import Client from '../base/ws/Client.js';
|
|
4
4
|
export default class bittrex extends bittrexRest {
|
|
5
5
|
describe(): any;
|
|
@@ -33,7 +33,7 @@ export default class bittrex extends bittrexRest {
|
|
|
33
33
|
createSignalRQuery(params?: {}): any;
|
|
34
34
|
negotiate(params?: {}): Promise<any>;
|
|
35
35
|
start(negotiation: any, params?: {}): Promise<any>;
|
|
36
|
-
watchOrders(symbol?:
|
|
36
|
+
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
37
37
|
subscribeToOrders(authentication: any, params?: {}): Promise<any>;
|
|
38
38
|
handleOrder(client: Client, message: any): void;
|
|
39
39
|
watchBalance(params?: {}): Promise<any>;
|
|
@@ -51,7 +51,7 @@ export default class bittrex extends bittrexRest {
|
|
|
51
51
|
watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
52
52
|
subscribeToTrades(negotiation: any, symbol: any, params?: {}): Promise<any>;
|
|
53
53
|
handleTrades(client: Client, message: any): void;
|
|
54
|
-
watchMyTrades(symbol?:
|
|
54
|
+
watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
55
55
|
subscribeToMyTrades(authentication: any, params?: {}): Promise<any>;
|
|
56
56
|
handleMyTrades(client: Client, message: any): void;
|
|
57
57
|
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<any>;
|
package/js/src/pro/bitvavo.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import bitvavoRest from '../bitvavo.js';
|
|
2
|
-
import { Int } from '../base/types.js';
|
|
2
|
+
import { Int, Str } from '../base/types.js';
|
|
3
3
|
import Client from '../base/ws/Client.js';
|
|
4
4
|
export default class bitvavo extends bitvavoRest {
|
|
5
5
|
describe(): any;
|
|
@@ -19,8 +19,8 @@ export default class bitvavo extends bitvavoRest {
|
|
|
19
19
|
handleOrderBookSnapshot(client: Client, message: any): any;
|
|
20
20
|
handleOrderBookSubscription(client: Client, message: any, subscription: any): void;
|
|
21
21
|
handleOrderBookSubscriptions(client: Client, message: any, marketIds: any): void;
|
|
22
|
-
watchOrders(symbol?:
|
|
23
|
-
watchMyTrades(symbol?:
|
|
22
|
+
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
23
|
+
watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
24
24
|
handleOrder(client: Client, message: any): void;
|
|
25
25
|
handleMyTrade(client: Client, message: any): void;
|
|
26
26
|
handleSubscriptionStatus(client: Client, message: any): any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import blockchaincomRest from '../blockchaincom.js';
|
|
2
|
-
import { IndexType, Int } from '../base/types.js';
|
|
2
|
+
import { IndexType, Int, Str } from '../base/types.js';
|
|
3
3
|
import Client from '../base/ws/Client.js';
|
|
4
4
|
export default class blockchaincom extends blockchaincomRest {
|
|
5
5
|
describe(): any;
|
|
@@ -13,7 +13,7 @@ export default class blockchaincom extends blockchaincomRest {
|
|
|
13
13
|
watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
14
14
|
handleTrades(client: Client, message: any): any;
|
|
15
15
|
parseWsTrade(trade: any, market?: any): import("../base/types.js").Trade;
|
|
16
|
-
watchOrders(symbol?:
|
|
16
|
+
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
17
17
|
handleOrders(client: Client, message: any): any;
|
|
18
18
|
parseWsOrder(order: any, market?: any): import("../base/types.js").Order;
|
|
19
19
|
parseWsOrderStatus(status: any): string;
|
package/js/src/pro/bybit.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import bybitRest from '../bybit.js';
|
|
2
|
-
import { Int, OHLCV } from '../base/types.js';
|
|
2
|
+
import { Int, OHLCV, Str, Strings } from '../base/types.js';
|
|
3
3
|
import Client from '../base/ws/Client.js';
|
|
4
4
|
export default class bybit extends bybitRest {
|
|
5
5
|
describe(): any;
|
|
6
6
|
requestId(): any;
|
|
7
|
-
getUrlByMarketType(symbol?:
|
|
7
|
+
getUrlByMarketType(symbol?: Str, isPrivate?: boolean, method?: any, params?: {}): any;
|
|
8
8
|
cleanParams(params: any): any;
|
|
9
9
|
watchTicker(symbol: string, params?: {}): Promise<any>;
|
|
10
|
-
watchTickers(symbols?:
|
|
10
|
+
watchTickers(symbols?: Strings, params?: {}): Promise<any>;
|
|
11
11
|
handleTicker(client: Client, message: any): void;
|
|
12
12
|
watchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
13
13
|
watchOHLCVForSymbols(symbolsAndTimeframes: string[][], since?: Int, limit?: Int, params?: {}): Promise<import("../base/types.js").Dictionary<import("../base/types.js").Dictionary<OHLCV[]>>>;
|
|
@@ -23,13 +23,13 @@ export default class bybit extends bybitRest {
|
|
|
23
23
|
handleTrades(client: Client, message: any): void;
|
|
24
24
|
parseWsTrade(trade: any, market?: any): import("../base/types.js").Trade;
|
|
25
25
|
getPrivateType(url: any): "spot" | "unified" | "usdc";
|
|
26
|
-
watchMyTrades(symbol?:
|
|
26
|
+
watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
27
27
|
handleMyTrades(client: Client, message: any): void;
|
|
28
|
-
watchPositions(symbols?:
|
|
29
|
-
setPositionsCache(client: Client, symbols?:
|
|
28
|
+
watchPositions(symbols?: Strings, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
29
|
+
setPositionsCache(client: Client, symbols?: Strings): any;
|
|
30
30
|
loadPositionsSnapshot(client: any, messageHash: any): Promise<void>;
|
|
31
31
|
handlePositions(client: any, message: any): void;
|
|
32
|
-
watchOrders(symbol?:
|
|
32
|
+
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
33
33
|
handleOrder(client: Client, message: any, subscription?: any): void;
|
|
34
34
|
parseWsSpotOrder(order: any, market?: any): import("../base/types.js").Order;
|
|
35
35
|
watchBalance(params?: {}): Promise<any>;
|
package/js/src/pro/cex.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import cexRest from '../cex.js';
|
|
2
|
-
import { Int } from '../base/types.js';
|
|
2
|
+
import { Int, Str, Strings } from '../base/types.js';
|
|
3
3
|
import Client from '../base/ws/Client.js';
|
|
4
4
|
export default class cex extends cexRest {
|
|
5
5
|
describe(): any;
|
|
@@ -11,11 +11,11 @@ export default class cex extends cexRest {
|
|
|
11
11
|
parseWsOldTrade(trade: any, market?: any): import("../base/types.js").Trade;
|
|
12
12
|
handleTrade(client: Client, message: any): void;
|
|
13
13
|
watchTicker(symbol: string, params?: {}): Promise<any>;
|
|
14
|
-
watchTickers(symbols?:
|
|
14
|
+
watchTickers(symbols?: Strings, params?: {}): any;
|
|
15
15
|
handleTicker(client: Client, message: any): void;
|
|
16
16
|
parseWsTicker(ticker: any, market?: any): import("../base/types.js").Ticker;
|
|
17
|
-
watchOrders(symbol?:
|
|
18
|
-
watchMyTrades(symbol?:
|
|
17
|
+
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
18
|
+
watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
19
19
|
handleTransaction(client: Client, message: any): void;
|
|
20
20
|
handleMyTrades(client: Client, message: any): void;
|
|
21
21
|
parseWsTrade(trade: any, market?: any): import("../base/types.js").Trade;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import coinbaseproRest from '../coinbasepro.js';
|
|
2
|
-
import { Int, Ticker } from '../base/types.js';
|
|
2
|
+
import { Int, Ticker, Str, Strings } from '../base/types.js';
|
|
3
3
|
import Client from '../base/ws/Client.js';
|
|
4
4
|
export default class coinbasepro extends coinbaseproRest {
|
|
5
5
|
describe(): any;
|
|
@@ -12,13 +12,13 @@ export default class coinbasepro extends coinbaseproRest {
|
|
|
12
12
|
subscribe(name: any, symbol?: any, messageHashStart?: any, params?: {}): Promise<any>;
|
|
13
13
|
subscribeMultiple(name: any, symbols?: any[], messageHashStart?: any, params?: {}): Promise<any>;
|
|
14
14
|
watchTicker(symbol: string, params?: {}): Promise<any>;
|
|
15
|
-
watchTickers(symbols?:
|
|
15
|
+
watchTickers(symbols?: Strings, params?: {}): Promise<any>;
|
|
16
16
|
watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
17
17
|
watchTradesForSymbols(symbols: string[], since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
18
|
-
watchMyTrades(symbol?:
|
|
19
|
-
watchMyTradesForSymbols(symbols?:
|
|
20
|
-
watchOrdersForSymbols(symbols?:
|
|
21
|
-
watchOrders(symbol?:
|
|
18
|
+
watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
19
|
+
watchMyTradesForSymbols(symbols?: Strings, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
20
|
+
watchOrdersForSymbols(symbols?: Strings, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
21
|
+
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
22
22
|
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<any>;
|
|
23
23
|
watchOrderBookForSymbols(symbols: string[], limit?: Int, params?: {}): Promise<any>;
|
|
24
24
|
handleTrade(client: Client, message: any): any;
|
package/js/src/pro/coinex.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import coinexRest from '../coinex.js';
|
|
2
|
-
import { Int } from '../base/types.js';
|
|
2
|
+
import { Int, Str, Strings } 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;
|
|
@@ -12,7 +12,7 @@ export default class coinex extends coinexRest {
|
|
|
12
12
|
parseWsTrade(trade: any, market?: any): import("../base/types.js").Trade;
|
|
13
13
|
handleOHLCV(client: Client, message: any): void;
|
|
14
14
|
watchTicker(symbol: string, params?: {}): Promise<any>;
|
|
15
|
-
watchTickers(symbols?:
|
|
15
|
+
watchTickers(symbols?: Strings, params?: {}): Promise<any>;
|
|
16
16
|
watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
17
17
|
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<any>;
|
|
18
18
|
watchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
@@ -20,7 +20,7 @@ export default class coinex extends coinexRest {
|
|
|
20
20
|
handleDelta(bookside: any, delta: any): void;
|
|
21
21
|
handleDeltas(bookside: any, deltas: any): void;
|
|
22
22
|
handleOrderBook(client: Client, message: any): void;
|
|
23
|
-
watchOrders(symbol?:
|
|
23
|
+
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
24
24
|
handleOrders(client: Client, message: any): void;
|
|
25
25
|
parseWsOrder(order: any, market?: any): import("../base/types.js").Order;
|
|
26
26
|
parseWsOrderStatus(status: any): string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import cryptocomRest from '../cryptocom.js';
|
|
2
|
-
import { Int, OrderSide, OrderType } from '../base/types.js';
|
|
2
|
+
import { Int, OrderSide, OrderType, Str, Strings } from '../base/types.js';
|
|
3
3
|
import Client from '../base/ws/Client.js';
|
|
4
4
|
export default class cryptocom extends cryptocomRest {
|
|
5
5
|
describe(): any;
|
|
@@ -10,23 +10,23 @@ export default class cryptocom extends cryptocomRest {
|
|
|
10
10
|
watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
11
11
|
watchTradesForSymbols(symbols: string[], since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
12
12
|
handleTrades(client: Client, message: any): void;
|
|
13
|
-
watchMyTrades(symbol?:
|
|
13
|
+
watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
14
14
|
watchTicker(symbol: string, params?: {}): Promise<any>;
|
|
15
15
|
handleTicker(client: Client, message: any): void;
|
|
16
16
|
watchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
17
17
|
handleOHLCV(client: Client, message: any): void;
|
|
18
|
-
watchOrders(symbol?:
|
|
18
|
+
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
19
19
|
handleOrders(client: Client, message: any, subscription?: any): void;
|
|
20
|
-
watchPositions(symbols?:
|
|
21
|
-
setPositionsCache(client: Client, type: any, symbols?:
|
|
20
|
+
watchPositions(symbols?: Strings, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
21
|
+
setPositionsCache(client: Client, type: any, symbols?: Strings): void;
|
|
22
22
|
loadPositionsSnapshot(client: any, messageHash: any): Promise<void>;
|
|
23
23
|
handlePositions(client: any, message: any): void;
|
|
24
24
|
watchBalance(params?: {}): Promise<any>;
|
|
25
25
|
handleBalance(client: Client, message: any): void;
|
|
26
26
|
createOrderWs(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: number, params?: {}): Promise<any>;
|
|
27
27
|
handleOrder(client: Client, message: any): void;
|
|
28
|
-
cancelOrderWs(id: string, symbol?:
|
|
29
|
-
cancelAllOrdersWs(symbol?:
|
|
28
|
+
cancelOrderWs(id: string, symbol?: Str, params?: {}): Promise<any>;
|
|
29
|
+
cancelAllOrdersWs(symbol?: Str, params?: {}): Promise<any>;
|
|
30
30
|
handleCancelAllOrders(client: Client, message: any): void;
|
|
31
31
|
watchPublic(messageHash: any, params?: {}): Promise<any>;
|
|
32
32
|
watchPublicMultiple(messageHash: any, topics: any, params?: {}): Promise<any>;
|
package/js/src/pro/deribit.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import deribitRest from '../deribit.js';
|
|
2
|
-
import { Int } from '../base/types.js';
|
|
2
|
+
import { Int, Str } from '../base/types.js';
|
|
3
3
|
import Client from '../base/ws/Client.js';
|
|
4
4
|
export default class deribit extends deribitRest {
|
|
5
5
|
describe(): any;
|
|
@@ -10,14 +10,14 @@ export default class deribit extends deribitRest {
|
|
|
10
10
|
handleTicker(client: Client, message: any): void;
|
|
11
11
|
watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
12
12
|
handleTrades(client: Client, message: any): void;
|
|
13
|
-
watchMyTrades(symbol?:
|
|
13
|
+
watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
14
14
|
handleMyTrades(client: Client, message: any): void;
|
|
15
15
|
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<any>;
|
|
16
16
|
handleOrderBook(client: Client, message: any): void;
|
|
17
17
|
cleanOrderBook(data: any): any;
|
|
18
18
|
handleDelta(bookside: any, delta: any): void;
|
|
19
19
|
handleDeltas(bookside: any, deltas: any): void;
|
|
20
|
-
watchOrders(symbol?:
|
|
20
|
+
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
21
21
|
handleOrders(client: Client, message: any): void;
|
|
22
22
|
watchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
23
23
|
handleOHLCV(client: Client, message: any): void;
|
package/js/src/pro/exmo.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import exmoRest from '../exmo.js';
|
|
2
|
-
import { Int } from '../base/types.js';
|
|
2
|
+
import { Int, Str } from '../base/types.js';
|
|
3
3
|
import Client from '../base/ws/Client.js';
|
|
4
4
|
export default class exmo extends exmoRest {
|
|
5
5
|
describe(): any;
|
|
@@ -12,7 +12,7 @@ export default class exmo extends exmoRest {
|
|
|
12
12
|
handleTicker(client: Client, message: any): void;
|
|
13
13
|
watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
14
14
|
handleTrades(client: Client, message: any): void;
|
|
15
|
-
watchMyTrades(symbol?:
|
|
15
|
+
watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
16
16
|
handleMyTrades(client: Client, message: any): void;
|
|
17
17
|
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<any>;
|
|
18
18
|
handleOrderBook(client: Client, message: any): void;
|
package/js/src/pro/gate.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import gateRest from '../gate.js';
|
|
2
|
-
import { Int } from '../base/types.js';
|
|
2
|
+
import { Int, Str, Strings } from '../base/types.js';
|
|
3
3
|
import Client from '../base/ws/Client.js';
|
|
4
4
|
export default class gate extends gateRest {
|
|
5
5
|
describe(): any;
|
|
@@ -10,22 +10,22 @@ export default class gate extends gateRest {
|
|
|
10
10
|
handleBidAsks(bookSide: any, bidAsks: any): void;
|
|
11
11
|
handleDelta(orderbook: any, delta: any): void;
|
|
12
12
|
watchTicker(symbol: string, params?: {}): Promise<any>;
|
|
13
|
-
watchTickers(symbols?:
|
|
13
|
+
watchTickers(symbols?: Strings, params?: {}): Promise<any>;
|
|
14
14
|
handleTicker(client: Client, message: any): void;
|
|
15
15
|
watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
16
16
|
watchTradesForSymbols(symbols: string[], since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
17
17
|
handleTrades(client: Client, message: any): void;
|
|
18
18
|
watchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
19
19
|
handleOHLCV(client: Client, message: any): void;
|
|
20
|
-
watchMyTrades(symbol?:
|
|
20
|
+
watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
21
21
|
handleMyTrades(client: Client, message: any): void;
|
|
22
22
|
watchBalance(params?: {}): Promise<any>;
|
|
23
23
|
handleBalance(client: Client, message: any): void;
|
|
24
|
-
watchPositions(symbols?:
|
|
25
|
-
setPositionsCache(client: Client, type: any, symbols?:
|
|
24
|
+
watchPositions(symbols?: Strings, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
25
|
+
setPositionsCache(client: Client, type: any, symbols?: Strings): void;
|
|
26
26
|
loadPositionsSnapshot(client: any, messageHash: any, type: any): Promise<void>;
|
|
27
27
|
handlePositions(client: any, message: any): void;
|
|
28
|
-
watchOrders(symbol?:
|
|
28
|
+
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
29
29
|
handleOrder(client: Client, message: any): void;
|
|
30
30
|
handleErrorMessage(client: Client, message: any): boolean;
|
|
31
31
|
handleBalanceSubscription(client: Client, message: any, subscription?: any): void;
|
package/js/src/pro/gemini.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import geminiRest from '../gemini.js';
|
|
2
|
-
import { Int } from '../base/types.js';
|
|
2
|
+
import { Int, Str } from '../base/types.js';
|
|
3
3
|
import Client from '../base/ws/Client.js';
|
|
4
4
|
export default class gemini extends geminiRest {
|
|
5
5
|
describe(): any;
|
|
@@ -12,7 +12,7 @@ export default class gemini extends geminiRest {
|
|
|
12
12
|
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<any>;
|
|
13
13
|
handleOrderBook(client: Client, message: any): void;
|
|
14
14
|
handleL2Updates(client: Client, message: any): void;
|
|
15
|
-
watchOrders(symbol?:
|
|
15
|
+
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
16
16
|
handleHeartbeat(client: Client, message: any): any;
|
|
17
17
|
handleSubscription(client: Client, message: any): any;
|
|
18
18
|
handleOrder(client: Client, message: any): void;
|
package/js/src/pro/hitbtc.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import hitbtcRest from '../hitbtc.js';
|
|
2
|
-
import { Int, OHLCV } from '../base/types.js';
|
|
2
|
+
import { Int, OHLCV, Strings } from '../base/types.js';
|
|
3
3
|
import Client from '../base/ws/Client.js';
|
|
4
|
-
import { Trade } from '../base/types';
|
|
4
|
+
import { Str, Trade } from '../base/types';
|
|
5
5
|
export default class hitbtc extends hitbtcRest {
|
|
6
6
|
describe(): any;
|
|
7
7
|
authenticate(): Promise<any>;
|
|
8
|
-
subscribePublic(name: string, symbols?:
|
|
9
|
-
subscribePrivate(name: string, symbol?:
|
|
8
|
+
subscribePublic(name: string, symbols?: Strings, params?: {}): Promise<any>;
|
|
9
|
+
subscribePrivate(name: string, symbol?: Str, params?: {}): Promise<any>;
|
|
10
10
|
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<any>;
|
|
11
11
|
handleOrderBook(client: Client, message: any): void;
|
|
12
12
|
handleDelta(bookside: any, delta: any): void;
|
|
@@ -22,7 +22,7 @@ export default class hitbtc extends hitbtcRest {
|
|
|
22
22
|
watchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
23
23
|
handleOHLCV(client: Client, message: any): any;
|
|
24
24
|
parseWsOHLCV(ohlcv: any, market?: any): OHLCV;
|
|
25
|
-
watchOrders(symbol?:
|
|
25
|
+
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
26
26
|
handleOrder(client: Client, message: any): any;
|
|
27
27
|
handleOrderHelper(client: Client, message: any, order: any): void;
|
|
28
28
|
parseWsOrderTrade(trade: any, market?: any): Trade;
|
package/js/src/pro/hollaex.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import hollaexRest from '../hollaex.js';
|
|
2
|
-
import { Int } from '../base/types.js';
|
|
2
|
+
import { Int, Str } from '../base/types.js';
|
|
3
3
|
import Client from '../base/ws/Client.js';
|
|
4
4
|
export default class hollaex extends hollaexRest {
|
|
5
5
|
describe(): any;
|
|
@@ -7,9 +7,9 @@ export default class hollaex extends hollaexRest {
|
|
|
7
7
|
handleOrderBook(client: Client, message: any): void;
|
|
8
8
|
watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
9
9
|
handleTrades(client: Client, message: any): void;
|
|
10
|
-
watchMyTrades(symbol?:
|
|
10
|
+
watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
11
11
|
handleMyTrades(client: Client, message: any, subscription?: any): number;
|
|
12
|
-
watchOrders(symbol?:
|
|
12
|
+
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
13
13
|
handleOrder(client: Client, message: any, subscription?: any): number;
|
|
14
14
|
watchBalance(params?: {}): Promise<any>;
|
|
15
15
|
handleBalance(client: Client, message: any): void;
|
package/js/src/pro/htx.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import htxRest from '../htx.js';
|
|
2
|
-
import { Int } from '../base/types.js';
|
|
2
|
+
import { Int, Str, Strings } from '../base/types.js';
|
|
3
3
|
import Client from '../base/ws/Client.js';
|
|
4
4
|
export default class htx extends htxRest {
|
|
5
5
|
describe(): any;
|
|
@@ -18,13 +18,13 @@ export default class htx extends htxRest {
|
|
|
18
18
|
handleOrderBookMessage(client: Client, message: any, orderbook: any): any;
|
|
19
19
|
handleOrderBook(client: Client, message: any): void;
|
|
20
20
|
handleOrderBookSubscription(client: Client, message: any, subscription: any): void;
|
|
21
|
-
watchMyTrades(symbol?:
|
|
21
|
+
watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
22
22
|
getOrderChannelAndMessageHash(type: any, subType: any, market?: any, params?: {}): any[];
|
|
23
|
-
watchOrders(symbol?:
|
|
23
|
+
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
24
24
|
handleOrder(client: Client, message: any): void;
|
|
25
25
|
parseWsOrder(order: any, market?: any): import("../base/types.js").Order;
|
|
26
26
|
parseOrderTrade(trade: any, market?: any): import("../base/types.js").Trade;
|
|
27
|
-
watchPositions(symbols?:
|
|
27
|
+
watchPositions(symbols?: Strings, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
28
28
|
handlePositions(client: any, message: any): void;
|
|
29
29
|
watchBalance(params?: {}): Promise<any>;
|
|
30
30
|
handleBalance(client: Client, message: any): void;
|