ccxt 4.1.86 → 4.1.87
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 +5 -8
- package/dist/ccxt.browser.js +17010 -23553
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -16
- package/dist/cjs/src/binanceus.js +0 -2
- package/dist/cjs/src/bitforex.js +0 -2
- package/dist/cjs/src/coinlist.js +0 -2
- package/dist/cjs/src/coinsph.js +0 -2
- package/dist/cjs/src/cryptocom.js +0 -2
- package/dist/cjs/src/gate.js +0 -210
- package/dist/cjs/src/kuna.js +0 -2
- package/dist/cjs/src/mexc.js +0 -2
- package/dist/cjs/src/okx.js +0 -1
- package/dist/cjs/src/pro/coinex.js +2 -1
- package/dist/cjs/src/tokocrypto.js +0 -1
- package/dist/cjs/src/upbit.js +36 -26
- package/dist/cjs/src/wazirx.js +0 -2
- package/dist/cjs/src/whitebit.js +0 -2
- package/dist/cjs/src/woo.js +0 -2
- package/js/ccxt.d.ts +3 -21
- package/js/ccxt.js +2 -14
- package/js/src/ace.d.ts +1 -1
- package/js/src/alpaca.d.ts +1 -1
- package/js/src/ascendex.d.ts +1 -1
- package/js/src/base/Exchange.d.ts +3 -3
- package/js/src/bigone.d.ts +1 -1
- package/js/src/binance.d.ts +1 -1
- package/js/src/binanceus.js +0 -2
- package/js/src/bingx.d.ts +1 -1
- package/js/src/bit2c.d.ts +1 -1
- package/js/src/bitbank.d.ts +1 -1
- package/js/src/bitbns.d.ts +1 -1
- package/js/src/bitfinex.d.ts +1 -1
- package/js/src/bitfinex2.d.ts +1 -1
- package/js/src/bitflyer.d.ts +1 -1
- package/js/src/bitforex.d.ts +1 -1
- package/js/src/bitforex.js +0 -2
- package/js/src/bitget.d.ts +1 -1
- package/js/src/bithumb.d.ts +1 -1
- package/js/src/bitmart.d.ts +1 -1
- package/js/src/bitmex.d.ts +1 -1
- package/js/src/bitopro.d.ts +1 -1
- package/js/src/bitpanda.d.ts +1 -1
- package/js/src/bitrue.d.ts +1 -1
- package/js/src/bitso.d.ts +1 -1
- package/js/src/bitstamp.d.ts +1 -1
- package/js/src/bitvavo.d.ts +1 -1
- package/js/src/bl3p.d.ts +1 -1
- package/js/src/blockchaincom.d.ts +1 -1
- package/js/src/btcalpha.d.ts +1 -1
- package/js/src/btcbox.d.ts +1 -1
- package/js/src/btcmarkets.d.ts +1 -1
- package/js/src/btcturk.d.ts +1 -1
- package/js/src/bybit.d.ts +1 -1
- package/js/src/cex.d.ts +1 -1
- package/js/src/coinbase.d.ts +1 -1
- package/js/src/coinbasepro.d.ts +1 -1
- package/js/src/coincheck.d.ts +1 -1
- package/js/src/coinex.d.ts +1 -1
- package/js/src/coinlist.d.ts +1 -1
- package/js/src/coinlist.js +0 -2
- package/js/src/coinmate.d.ts +1 -1
- package/js/src/coinone.d.ts +1 -1
- package/js/src/coinsph.d.ts +1 -1
- package/js/src/coinsph.js +0 -2
- package/js/src/coinspot.d.ts +1 -1
- package/js/src/cryptocom.d.ts +1 -1
- package/js/src/cryptocom.js +0 -2
- package/js/src/currencycom.d.ts +1 -1
- package/js/src/delta.d.ts +1 -1
- package/js/src/deribit.d.ts +1 -1
- package/js/src/digifinex.d.ts +1 -1
- package/js/src/exmo.d.ts +1 -1
- package/js/src/gate.d.ts +1 -28
- package/js/src/gate.js +0 -210
- package/js/src/gemini.d.ts +1 -1
- package/js/src/hitbtc.d.ts +1 -1
- package/js/src/hollaex.d.ts +1 -1
- package/js/src/htx.d.ts +1 -1
- package/js/src/huobijp.d.ts +1 -1
- package/js/src/idex.d.ts +1 -1
- package/js/src/independentreserve.d.ts +1 -1
- package/js/src/indodax.d.ts +1 -1
- package/js/src/kraken.d.ts +1 -1
- package/js/src/krakenfutures.d.ts +1 -1
- package/js/src/kucoin.d.ts +1 -1
- package/js/src/kucoinfutures.d.ts +1 -1
- package/js/src/kuna.d.ts +1 -1
- package/js/src/kuna.js +0 -2
- package/js/src/latoken.d.ts +1 -1
- package/js/src/lbank.d.ts +1 -1
- package/js/src/luno.d.ts +1 -1
- package/js/src/lykke.d.ts +1 -1
- package/js/src/mercado.d.ts +1 -1
- package/js/src/mexc.d.ts +1 -1
- package/js/src/mexc.js +0 -2
- package/js/src/ndax.d.ts +1 -1
- package/js/src/novadax.d.ts +1 -1
- package/js/src/oceanex.d.ts +1 -1
- package/js/src/okcoin.d.ts +1 -1
- package/js/src/okx.d.ts +1 -1
- package/js/src/okx.js +0 -1
- package/js/src/p2b.d.ts +1 -1
- package/js/src/paymium.d.ts +1 -1
- package/js/src/phemex.d.ts +1 -1
- package/js/src/poloniex.d.ts +1 -1
- package/js/src/poloniexfutures.d.ts +1 -1
- package/js/src/pro/alpaca.d.ts +8 -8
- package/js/src/pro/ascendex.d.ts +7 -7
- package/js/src/pro/binance.d.ts +24 -24
- package/js/src/pro/bingx.d.ts +7 -7
- package/js/src/pro/bitfinex.d.ts +6 -6
- package/js/src/pro/bitfinex2.d.ts +11 -11
- package/js/src/pro/bitget.d.ts +17 -17
- package/js/src/pro/bitmart.d.ts +13 -13
- package/js/src/pro/bitmex.d.ts +10 -10
- package/js/src/pro/bitopro.d.ts +5 -5
- package/js/src/pro/bitpanda.d.ts +10 -10
- package/js/src/pro/bitrue.d.ts +5 -5
- package/js/src/pro/bitstamp.d.ts +6 -6
- package/js/src/pro/bitvavo.d.ts +7 -7
- package/js/src/pro/blockchaincom.d.ts +10 -10
- package/js/src/pro/bybit.d.ts +14 -14
- package/js/src/pro/cex.d.ts +20 -20
- package/js/src/pro/coinbase.d.ts +7 -6
- package/js/src/pro/coinbasepro.d.ts +12 -12
- package/js/src/pro/coinex.d.ts +12 -12
- package/js/src/pro/coinex.js +2 -1
- package/js/src/pro/cryptocom.d.ts +13 -13
- package/js/src/pro/currencycom.d.ts +6 -6
- package/js/src/pro/deribit.d.ts +8 -8
- package/js/src/pro/exmo.d.ts +6 -6
- package/js/src/pro/gate.d.ts +11 -11
- package/js/src/pro/gemini.d.ts +7 -7
- package/js/src/pro/hitbtc.d.ts +13 -13
- package/js/src/pro/hollaex.d.ts +6 -6
- package/js/src/pro/htx.d.ts +12 -12
- package/js/src/pro/huobijp.d.ts +5 -5
- package/js/src/pro/idex.d.ts +7 -7
- package/js/src/pro/independentreserve.d.ts +4 -4
- package/js/src/pro/kraken.d.ts +11 -11
- package/js/src/pro/krakenfutures.d.ts +15 -15
- package/js/src/pro/kucoin.d.ts +13 -13
- package/js/src/pro/kucoinfutures.d.ts +10 -10
- package/js/src/pro/luno.d.ts +3 -3
- package/js/src/pro/mexc.d.ts +11 -11
- package/js/src/pro/ndax.d.ts +5 -5
- package/js/src/pro/okcoin.d.ts +7 -7
- package/js/src/pro/okx.d.ts +16 -16
- package/js/src/pro/phemex.d.ts +9 -9
- package/js/src/pro/poloniex.d.ts +13 -13
- package/js/src/pro/poloniexfutures.d.ts +10 -10
- package/js/src/pro/probit.d.ts +7 -7
- package/js/src/pro/upbit.d.ts +4 -4
- package/js/src/pro/wazirx.d.ts +12 -12
- package/js/src/pro/whitebit.d.ts +10 -10
- package/js/src/pro/woo.d.ts +11 -11
- package/js/src/probit.d.ts +1 -1
- package/js/src/timex.d.ts +1 -1
- package/js/src/tokocrypto.d.ts +1 -1
- package/js/src/tokocrypto.js +0 -1
- package/js/src/upbit.d.ts +1 -1
- package/js/src/upbit.js +36 -26
- package/js/src/wavesexchange.d.ts +1 -1
- package/js/src/wazirx.d.ts +1 -1
- package/js/src/wazirx.js +0 -2
- package/js/src/whitebit.d.ts +1 -1
- package/js/src/whitebit.js +0 -2
- package/js/src/woo.d.ts +1 -1
- package/js/src/woo.js +0 -2
- package/js/src/yobit.d.ts +1 -1
- package/js/src/zaif.d.ts +1 -1
- package/js/src/zonda.d.ts +1 -1
- package/jsdoc2md.js +0 -2
- package/package.json +1 -1
- package/js/src/abstract/bittrex.d.ts +0 -79
- package/js/src/abstract/bittrex.js +0 -11
- package/js/src/abstract/coinbaseprime.d.ts +0 -69
- package/js/src/abstract/coinbaseprime.js +0 -11
- package/js/src/abstract/coinbasepro.d.ts +0 -69
- package/js/src/abstract/coinbasepro.js +0 -11
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Exchange from './abstract/poloniexfutures.js';
|
|
2
|
-
import { Balances, FundingHistory, Int, Market, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade } from './base/types.js';
|
|
2
|
+
import type { Balances, FundingHistory, Int, Market, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade } from './base/types.js';
|
|
3
3
|
/**
|
|
4
4
|
* @class poloniexfutures
|
|
5
5
|
* @augments Exchange
|
package/js/src/pro/alpaca.d.ts
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import alpacaRest from '../alpaca.js';
|
|
2
|
-
import { Int, Str, Ticker } from '../base/types.js';
|
|
2
|
+
import type { Int, Str, Ticker, OrderBook, Order, Trade, OHLCV } from '../base/types.js';
|
|
3
3
|
import Client from '../base/ws/Client.js';
|
|
4
4
|
export default class alpaca extends alpacaRest {
|
|
5
5
|
describe(): any;
|
|
6
|
-
watchTicker(symbol: string, params?: {}): Promise<
|
|
6
|
+
watchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
7
7
|
handleTicker(client: Client, message: any): void;
|
|
8
8
|
parseTicker(ticker: any, market?: any): Ticker;
|
|
9
|
-
watchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
9
|
+
watchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
|
|
10
10
|
handleOHLCV(client: Client, message: any): void;
|
|
11
|
-
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<
|
|
11
|
+
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
12
12
|
handleOrderBook(client: Client, message: any): void;
|
|
13
13
|
handleDelta(bookside: any, delta: any): void;
|
|
14
14
|
handleDeltas(bookside: any, deltas: any): void;
|
|
15
|
-
watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
15
|
+
watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
16
16
|
handleTrades(client: Client, message: any): void;
|
|
17
|
-
watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<
|
|
18
|
-
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<
|
|
17
|
+
watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
18
|
+
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
19
19
|
handleTradeUpdate(client: Client, message: any): void;
|
|
20
20
|
handleOrder(client: Client, message: any): void;
|
|
21
21
|
handleMyTrade(client: Client, message: any): void;
|
|
22
|
-
parseMyTrade(trade: any, market?: any):
|
|
22
|
+
parseMyTrade(trade: any, market?: any): Trade;
|
|
23
23
|
authenticate(url: any, params?: {}): Promise<any>;
|
|
24
24
|
handleErrorMessage(client: Client, message: any): void;
|
|
25
25
|
handleConnected(client: Client, message: any): any;
|
package/js/src/pro/ascendex.d.ts
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import ascendexRest from '../ascendex.js';
|
|
2
|
-
import { Int, Str } from '../base/types.js';
|
|
2
|
+
import type { Int, Str, OrderBook, Order, Trade, OHLCV, Balances } from '../base/types.js';
|
|
3
3
|
import Client from '../base/ws/Client.js';
|
|
4
4
|
export default class ascendex extends ascendexRest {
|
|
5
5
|
describe(): any;
|
|
6
6
|
watchPublic(messageHash: any, params?: {}): Promise<any>;
|
|
7
7
|
watchPrivate(channel: any, messageHash: any, params?: {}): Promise<any>;
|
|
8
|
-
watchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
8
|
+
watchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
|
|
9
9
|
handleOHLCV(client: Client, message: any): any;
|
|
10
|
-
watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
10
|
+
watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
11
11
|
handleTrades(client: Client, message: any): void;
|
|
12
|
-
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<
|
|
12
|
+
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
13
13
|
watchOrderBookSnapshot(symbol: string, limit?: Int, params?: {}): Promise<any>;
|
|
14
14
|
handleOrderBookSnapshot(client: Client, message: any): void;
|
|
15
15
|
handleOrderBook(client: Client, message: any): void;
|
|
16
16
|
handleDelta(bookside: any, delta: any): void;
|
|
17
17
|
handleDeltas(bookside: any, deltas: any): void;
|
|
18
18
|
handleOrderBookMessage(client: Client, message: any, orderbook: any): any;
|
|
19
|
-
watchBalance(params?: {}): Promise<
|
|
19
|
+
watchBalance(params?: {}): Promise<Balances>;
|
|
20
20
|
handleBalance(client: Client, message: any): void;
|
|
21
|
-
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<
|
|
21
|
+
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
22
22
|
handleOrder(client: Client, message: any): void;
|
|
23
|
-
parseWsOrder(order: any, market?: any):
|
|
23
|
+
parseWsOrder(order: any, market?: any): Order;
|
|
24
24
|
handleErrorMessage(client: Client, message: any): boolean;
|
|
25
25
|
handleAuthenticate(client: Client, message: any): void;
|
|
26
26
|
handleMessage(client: Client, message: any): any;
|
package/js/src/pro/binance.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import binanceRest from '../binance.js';
|
|
2
|
-
import { Int, OrderSide, OrderType, Str, Strings, Trade } from '../base/types.js';
|
|
2
|
+
import type { Int, OrderSide, OrderType, Str, Strings, Trade, OrderBook, Order, Ticker, Tickers, OHLCV, Position, Balances } from '../base/types.js';
|
|
3
3
|
import Client from '../base/ws/Client.js';
|
|
4
4
|
export default class binance extends binanceRest {
|
|
5
5
|
describe(): any;
|
|
6
6
|
requestId(url: any): any;
|
|
7
7
|
stream(type: any, subscriptionHash: any): string;
|
|
8
|
-
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<
|
|
9
|
-
watchOrderBookForSymbols(symbols: string[], limit?: Int, params?: {}): Promise<
|
|
8
|
+
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
9
|
+
watchOrderBookForSymbols(symbols: string[], limit?: Int, params?: {}): Promise<OrderBook>;
|
|
10
10
|
fetchOrderBookSnapshot(client: any, message: any, subscription: any): Promise<void>;
|
|
11
11
|
handleDelta(bookside: any, delta: any): void;
|
|
12
12
|
handleDeltas(bookside: any, deltas: any): void;
|
|
@@ -14,15 +14,15 @@ export default class binance extends binanceRest {
|
|
|
14
14
|
handleOrderBook(client: Client, message: any): void;
|
|
15
15
|
handleOrderBookSubscription(client: Client, message: any, subscription: any): void;
|
|
16
16
|
handleSubscriptionStatus(client: Client, message: any): any;
|
|
17
|
-
watchTradesForSymbols(symbols: string[], since?: Int, limit?: Int, params?: {}): Promise<
|
|
18
|
-
watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
17
|
+
watchTradesForSymbols(symbols: string[], since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
18
|
+
watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
19
19
|
parseTrade(trade: any, market?: any): Trade;
|
|
20
20
|
handleTrade(client: Client, message: any): void;
|
|
21
|
-
watchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
22
|
-
watchOHLCVForSymbols(symbolsAndTimeframes: string[][], since?: Int, limit?: Int, params?: {}): Promise<import("../base/types.js").Dictionary<import("../base/types.js").Dictionary<
|
|
21
|
+
watchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
|
|
22
|
+
watchOHLCVForSymbols(symbolsAndTimeframes: string[][], since?: Int, limit?: Int, params?: {}): Promise<import("../base/types.js").Dictionary<import("../base/types.js").Dictionary<OHLCV[]>>>;
|
|
23
23
|
handleOHLCV(client: Client, message: any): void;
|
|
24
|
-
watchTicker(symbol: string, params?: {}): Promise<
|
|
25
|
-
watchTickers(symbols?: Strings, params?: {}): Promise<
|
|
24
|
+
watchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
25
|
+
watchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
26
26
|
parseWsTicker(message: any, marketType: any): {
|
|
27
27
|
symbol: string;
|
|
28
28
|
timestamp: any;
|
|
@@ -52,33 +52,33 @@ export default class binance extends binanceRest {
|
|
|
52
52
|
keepAliveListenKey(params?: {}): Promise<void>;
|
|
53
53
|
setBalanceCache(client: Client, type: any): any;
|
|
54
54
|
loadBalanceSnapshot(client: any, messageHash: any, type: any): Promise<void>;
|
|
55
|
-
fetchBalanceWs(params?: {}): Promise<
|
|
55
|
+
fetchBalanceWs(params?: {}): Promise<Balances>;
|
|
56
56
|
handleBalanceWs(client: Client, message: any): void;
|
|
57
|
-
watchBalance(params?: {}): Promise<
|
|
57
|
+
watchBalance(params?: {}): Promise<Balances>;
|
|
58
58
|
handleBalance(client: Client, message: any): void;
|
|
59
59
|
checkIsSpot(method: string, symbol: string, params?: {}): void;
|
|
60
|
-
createOrderWs(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: number, params?: {}): Promise<
|
|
60
|
+
createOrderWs(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: number, params?: {}): Promise<Order>;
|
|
61
61
|
handleOrderWs(client: Client, message: any): void;
|
|
62
62
|
handleOrdersWs(client: Client, message: any): void;
|
|
63
|
-
editOrderWs(id: string, symbol: string, type: OrderType, side: OrderSide, amount: number, price?: number, params?: {}): Promise<
|
|
63
|
+
editOrderWs(id: string, symbol: string, type: OrderType, side: OrderSide, amount: number, price?: number, params?: {}): Promise<Order>;
|
|
64
64
|
handleEditOrderWs(client: Client, message: any): void;
|
|
65
|
-
cancelOrderWs(id: string, symbol?: Str, params?: {}): Promise<
|
|
65
|
+
cancelOrderWs(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
66
66
|
cancelAllOrdersWs(symbol?: Str, params?: {}): Promise<any>;
|
|
67
|
-
fetchOrderWs(id: string, symbol?: Str, params?: {}): Promise<
|
|
68
|
-
fetchOrdersWs(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<
|
|
69
|
-
fetchOpenOrdersWs(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<
|
|
70
|
-
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<
|
|
71
|
-
watchOrdersForSymbols(symbols?: Strings, since?: Int, limit?: Int, params?: {}): Promise<
|
|
72
|
-
parseWsOrder(order: any, market?: any):
|
|
67
|
+
fetchOrderWs(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
68
|
+
fetchOrdersWs(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
69
|
+
fetchOpenOrdersWs(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
70
|
+
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
71
|
+
watchOrdersForSymbols(symbols?: Strings, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
72
|
+
parseWsOrder(order: any, market?: any): Order;
|
|
73
73
|
handleOrderUpdate(client: Client, message: any): void;
|
|
74
|
-
watchPositions(symbols?: Strings, since?: Int, limit?: Int, params?: {}): Promise<
|
|
74
|
+
watchPositions(symbols?: Strings, since?: Int, limit?: Int, params?: {}): Promise<Position[]>;
|
|
75
75
|
setPositionsCache(client: Client, type: any, symbols?: Strings): void;
|
|
76
76
|
loadPositionsSnapshot(client: any, messageHash: any, type: any): Promise<void>;
|
|
77
77
|
handlePositions(client: any, message: any): void;
|
|
78
|
-
parseWsPosition(position: any, market?: any):
|
|
79
|
-
fetchMyTradesWs(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<
|
|
78
|
+
parseWsPosition(position: any, market?: any): Position;
|
|
79
|
+
fetchMyTradesWs(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
80
80
|
handleTradesWs(client: Client, message: any): void;
|
|
81
|
-
watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<
|
|
81
|
+
watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
82
82
|
handleMyTrade(client: Client, message: any): void;
|
|
83
83
|
handleOrder(client: Client, message: any): void;
|
|
84
84
|
handleAcountUpdate(client: any, message: any): void;
|
package/js/src/pro/bingx.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import bingxRest from '../bingx.js';
|
|
2
|
-
import { Int, OHLCV, Str } from '../base/types.js';
|
|
2
|
+
import type { Int, OHLCV, Str, OrderBook, Order, Trade, Balances } from '../base/types.js';
|
|
3
3
|
import Client from '../base/ws/Client.js';
|
|
4
4
|
export default class bingx extends bingxRest {
|
|
5
5
|
describe(): any;
|
|
6
|
-
watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
6
|
+
watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
7
7
|
handleTrades(client: Client, message: any): void;
|
|
8
|
-
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<
|
|
8
|
+
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
9
9
|
handleDelta(bookside: any, delta: any): void;
|
|
10
10
|
handleOrderBook(client: Client, message: any): void;
|
|
11
11
|
parseWsOHLCV(ohlcv: any, market?: any): OHLCV;
|
|
12
12
|
handleOHLCV(client: Client, message: any): void;
|
|
13
|
-
watchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
14
|
-
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<
|
|
15
|
-
watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<
|
|
16
|
-
watchBalance(params?: {}): Promise<
|
|
13
|
+
watchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
|
|
14
|
+
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
15
|
+
watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
16
|
+
watchBalance(params?: {}): Promise<Balances>;
|
|
17
17
|
handleErrorMessage(client: any, message: any): boolean;
|
|
18
18
|
authenticate(params?: {}): Promise<void>;
|
|
19
19
|
pong(client: any, message: any): Promise<void>;
|
package/js/src/pro/bitfinex.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import bitfinexRest from '../bitfinex.js';
|
|
2
|
-
import { Int, Str, Trade } from '../base/types.js';
|
|
2
|
+
import type { Int, Str, Trade, OrderBook, Order, Ticker } 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;
|
|
6
6
|
subscribe(channel: any, symbol: any, params?: {}): Promise<any>;
|
|
7
|
-
watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
8
|
-
watchTicker(symbol: string, params?: {}): Promise<
|
|
7
|
+
watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
8
|
+
watchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
9
9
|
handleTrades(client: Client, message: any, subscription: any): any;
|
|
10
10
|
parseTrade(trade: any, market?: any): Trade;
|
|
11
11
|
handleTicker(client: Client, message: any, subscription: any): void;
|
|
12
|
-
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<
|
|
12
|
+
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
13
13
|
handleOrderBook(client: Client, message: any, subscription: any): void;
|
|
14
14
|
handleHeartbeat(client: Client, message: any): void;
|
|
15
15
|
handleSystemStatus(client: Client, message: any): any;
|
|
@@ -17,9 +17,9 @@ export default class bitfinex extends bitfinexRest {
|
|
|
17
17
|
authenticate(params?: {}): Promise<any>;
|
|
18
18
|
handleAuthenticationMessage(client: Client, message: any): void;
|
|
19
19
|
watchOrder(id: any, symbol?: Str, params?: {}): Promise<any>;
|
|
20
|
-
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<
|
|
20
|
+
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
21
21
|
handleOrders(client: Client, message: any, subscription: any): void;
|
|
22
22
|
parseWsOrderStatus(status: any): string;
|
|
23
|
-
handleOrder(client: Client, order: any):
|
|
23
|
+
handleOrder(client: Client, order: any): Order;
|
|
24
24
|
handleMessage(client: Client, message: any): any;
|
|
25
25
|
}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import bitfinex2Rest from '../bitfinex2.js';
|
|
2
|
-
import { Int, Str } from '../base/types.js';
|
|
2
|
+
import type { Int, Str, OrderBook, Order, Trade, Ticker, OHLCV, Balances } 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;
|
|
6
6
|
subscribe(channel: any, symbol: any, params?: {}): Promise<any>;
|
|
7
7
|
subscribePrivate(messageHash: any): Promise<any>;
|
|
8
|
-
watchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
8
|
+
watchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
|
|
9
9
|
handleOHLCV(client: Client, message: any, subscription: any): void;
|
|
10
|
-
watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
11
|
-
watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<
|
|
12
|
-
watchTicker(symbol: string, params?: {}): Promise<
|
|
10
|
+
watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
11
|
+
watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
12
|
+
watchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
13
13
|
handleMyTrade(client: Client, message: any, subscription?: {}): void;
|
|
14
14
|
handleTrades(client: Client, message: any, subscription: any): any;
|
|
15
|
-
parseWsTrade(trade: any, market?: any):
|
|
15
|
+
parseWsTrade(trade: any, market?: any): Trade;
|
|
16
16
|
handleTicker(client: Client, message: any, subscription: any): void;
|
|
17
|
-
parseWsTicker(ticker: any, market?: any):
|
|
18
|
-
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<
|
|
17
|
+
parseWsTicker(ticker: any, market?: any): Ticker;
|
|
18
|
+
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
19
19
|
handleOrderBook(client: Client, message: any, subscription: any): void;
|
|
20
20
|
handleChecksum(client: Client, message: any, subscription: any): void;
|
|
21
|
-
watchBalance(params?: {}): Promise<
|
|
21
|
+
watchBalance(params?: {}): Promise<Balances>;
|
|
22
22
|
handleBalance(client: Client, message: any, subscription: any): void;
|
|
23
23
|
parseWsBalance(balance: any): import("../base/types.js").Account;
|
|
24
24
|
handleSystemStatus(client: Client, message: any): any;
|
|
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?: Str, since?: Int, limit?: Int, params?: {}): Promise<
|
|
28
|
+
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
29
29
|
handleOrders(client: Client, message: any, subscription: any): void;
|
|
30
30
|
parseWsOrderStatus(status: any): string;
|
|
31
|
-
parseWsOrder(order: any, market?: any):
|
|
31
|
+
parseWsOrder(order: any, market?: any): Order;
|
|
32
32
|
handleMessage(client: Client, message: any): any;
|
|
33
33
|
}
|
package/js/src/pro/bitget.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import bitgetRest from '../bitget.js';
|
|
2
|
-
import { Int, OHLCV, Str, Strings } from '../base/types.js';
|
|
2
|
+
import type { Int, OHLCV, Str, Strings, OrderBook, Order, Trade, Ticker, Tickers, Position, Balances } from '../base/types.js';
|
|
3
3
|
import Client from '../base/ws/Client.js';
|
|
4
4
|
/**
|
|
5
5
|
* @class bitget
|
|
@@ -10,34 +10,34 @@ export default class bitget extends bitgetRest {
|
|
|
10
10
|
describe(): any;
|
|
11
11
|
getWsMarketId(market: any): any;
|
|
12
12
|
getMarketIdFromArg(arg: any): string;
|
|
13
|
-
watchTicker(symbol: string, params?: {}): Promise<
|
|
14
|
-
watchTickers(symbols?: Strings, params?: {}): Promise<
|
|
13
|
+
watchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
14
|
+
watchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
15
15
|
handleTicker(client: Client, message: any): any;
|
|
16
|
-
parseWsTicker(message: any, market?: any):
|
|
17
|
-
watchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
16
|
+
parseWsTicker(message: any, market?: any): Ticker;
|
|
17
|
+
watchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
|
|
18
18
|
watchOHLCVForSymbols(symbolsAndTimeframes: string[][], since?: Int, limit?: Int, params?: {}): Promise<import("../base/types.js").Dictionary<import("../base/types.js").Dictionary<OHLCV[]>>>;
|
|
19
19
|
handleOHLCV(client: Client, message: any): void;
|
|
20
20
|
parseWsOHLCV(ohlcv: any, market?: any): OHLCV;
|
|
21
|
-
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<
|
|
22
|
-
watchOrderBookForSymbols(symbols: string[], limit?: Int, params?: {}): Promise<
|
|
21
|
+
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
22
|
+
watchOrderBookForSymbols(symbols: string[], limit?: Int, params?: {}): Promise<OrderBook>;
|
|
23
23
|
handleOrderBook(client: Client, message: any): void;
|
|
24
24
|
handleDelta(bookside: any, delta: any): void;
|
|
25
25
|
handleDeltas(bookside: any, deltas: any): void;
|
|
26
|
-
watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
27
|
-
watchTradesForSymbols(symbols: string[], since?: Int, limit?: Int, params?: {}): Promise<
|
|
26
|
+
watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
27
|
+
watchTradesForSymbols(symbols: string[], since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
28
28
|
handleTrades(client: Client, message: any): void;
|
|
29
|
-
parseWsTrade(trade: any, market?: any):
|
|
30
|
-
watchPositions(symbols?: Strings, since?: Int, limit?: Int, params?: {}): Promise<
|
|
29
|
+
parseWsTrade(trade: any, market?: any): Trade;
|
|
30
|
+
watchPositions(symbols?: Strings, since?: Int, limit?: Int, params?: {}): Promise<Position[]>;
|
|
31
31
|
handlePositions(client: Client, message: any): void;
|
|
32
|
-
parseWsPosition(position: any, market?: any):
|
|
33
|
-
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<
|
|
32
|
+
parseWsPosition(position: any, market?: any): Position;
|
|
33
|
+
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
34
34
|
handleOrder(client: Client, message: any, subscription?: any): void;
|
|
35
|
-
parseWsOrder(order: any, market?: any):
|
|
35
|
+
parseWsOrder(order: any, market?: any): Order;
|
|
36
36
|
parseWsOrderStatus(status: any): string;
|
|
37
|
-
watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<
|
|
37
|
+
watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
38
38
|
handleMyTrades(client: Client, message: any): void;
|
|
39
|
-
parseWsMyTrade(trade: any, market?: any):
|
|
40
|
-
watchBalance(params?: {}): Promise<
|
|
39
|
+
parseWsMyTrade(trade: any, market?: any): Trade;
|
|
40
|
+
watchBalance(params?: {}): Promise<Balances>;
|
|
41
41
|
handleBalance(client: Client, message: any): void;
|
|
42
42
|
watchPublic(messageHash: any, args: any, params?: {}): Promise<any>;
|
|
43
43
|
watchPublicMultiple(messageHash: any, argsArray: any, params?: {}): Promise<any>;
|
package/js/src/pro/bitmart.d.ts
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import bitmartRest from '../bitmart.js';
|
|
2
|
-
import { Int, Market, Str, Strings } from '../base/types.js';
|
|
2
|
+
import type { Int, Market, Str, Strings, OrderBook, Order, Trade, Ticker, Tickers, OHLCV, Position, Balances } 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;
|
|
6
6
|
subscribe(channel: any, symbol: any, type: any, params?: {}): Promise<any>;
|
|
7
|
-
watchBalance(params?: {}): Promise<
|
|
7
|
+
watchBalance(params?: {}): Promise<Balances>;
|
|
8
8
|
setBalanceCache(client: Client, type: any): any;
|
|
9
9
|
loadBalanceSnapshot(client: any, messageHash: any, type: any): Promise<void>;
|
|
10
10
|
handleBalance(client: Client, message: any): void;
|
|
11
|
-
watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
12
|
-
watchTicker(symbol: string, params?: {}): Promise<
|
|
13
|
-
watchTickers(symbols?: Strings, params?: {}): Promise<
|
|
14
|
-
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<
|
|
11
|
+
watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
12
|
+
watchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
13
|
+
watchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
14
|
+
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
15
15
|
handleOrders(client: Client, message: any): void;
|
|
16
|
-
parseWsOrder(order: any, market?: Market):
|
|
16
|
+
parseWsOrder(order: any, market?: Market): Order;
|
|
17
17
|
parseWsOrderStatus(statusId: any): string;
|
|
18
18
|
parseWsOrderSide(sideId: any): string;
|
|
19
|
-
watchPositions(symbols?: Strings, since?: Int, limit?: Int, params?: {}): Promise<
|
|
19
|
+
watchPositions(symbols?: Strings, since?: Int, limit?: Int, params?: {}): Promise<Position[]>;
|
|
20
20
|
handlePositions(client: Client, message: any): void;
|
|
21
|
-
parseWsPosition(position: any, market?: Market):
|
|
21
|
+
parseWsPosition(position: any, market?: Market): Position;
|
|
22
22
|
handleTrade(client: Client, message: any): any;
|
|
23
|
-
parseWsTrade(trade: any, market?: Market):
|
|
23
|
+
parseWsTrade(trade: any, market?: Market): Trade;
|
|
24
24
|
handleTicker(client: Client, message: any): any;
|
|
25
|
-
parseWsSwapTicker(ticker: any, market?: Market):
|
|
26
|
-
watchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
25
|
+
parseWsSwapTicker(ticker: any, market?: Market): Ticker;
|
|
26
|
+
watchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
|
|
27
27
|
handleOHLCV(client: Client, message: any): void;
|
|
28
|
-
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<
|
|
28
|
+
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
29
29
|
handleDelta(bookside: any, delta: any): void;
|
|
30
30
|
handleDeltas(bookside: any, deltas: any): void;
|
|
31
31
|
handleOrderBookMessage(client: Client, message: any, orderbook: any): any;
|
package/js/src/pro/bitmex.d.ts
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import bitmexRest from '../bitmex.js';
|
|
2
|
-
import { Int, Str, Strings } from '../base/types.js';
|
|
2
|
+
import type { Int, Str, Strings, OrderBook, Order, Trade, Ticker, OHLCV, Position, Balances } 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;
|
|
6
|
-
watchTicker(symbol: string, params?: {}): Promise<
|
|
6
|
+
watchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
7
7
|
handleTicker(client: Client, message: any): any;
|
|
8
|
-
watchBalance(params?: {}): Promise<
|
|
8
|
+
watchBalance(params?: {}): Promise<Balances>;
|
|
9
9
|
handleBalance(client: Client, message: any): void;
|
|
10
10
|
handleTrades(client: Client, message: any): void;
|
|
11
|
-
watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
11
|
+
watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
12
12
|
authenticate(params?: {}): Promise<any>;
|
|
13
13
|
handleAuthenticationMessage(client: Client, message: any): void;
|
|
14
|
-
watchPositions(symbols?: Strings, since?: Int, limit?: Int, params?: {}): Promise<
|
|
14
|
+
watchPositions(symbols?: Strings, since?: Int, limit?: Int, params?: {}): Promise<Position[]>;
|
|
15
15
|
handlePositions(client: any, message: any): void;
|
|
16
|
-
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<
|
|
16
|
+
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
17
17
|
handleOrders(client: Client, message: any): void;
|
|
18
|
-
watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<
|
|
18
|
+
watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
19
19
|
handleMyTrades(client: Client, message: any): void;
|
|
20
|
-
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<
|
|
21
|
-
watchOrderBookForSymbols(symbols: string[], limit?: Int, params?: {}): Promise<
|
|
22
|
-
watchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
20
|
+
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
21
|
+
watchOrderBookForSymbols(symbols: string[], limit?: Int, params?: {}): Promise<OrderBook>;
|
|
22
|
+
watchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
|
|
23
23
|
handleOHLCV(client: Client, message: any): void;
|
|
24
24
|
watchHeartbeat(params?: {}): Promise<any>;
|
|
25
25
|
handleOrderBook(client: Client, message: any): void;
|
package/js/src/pro/bitopro.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import bitoproRest from '../bitopro.js';
|
|
2
|
-
import { Int } from '../base/types.js';
|
|
2
|
+
import type { Int, OrderBook, Trade, Ticker, Balances } from '../base/types.js';
|
|
3
3
|
import Client from '../base/ws/Client.js';
|
|
4
4
|
export default class bitopro extends bitoproRest {
|
|
5
5
|
describe(): any;
|
|
6
6
|
watchPublic(path: any, messageHash: any, marketId: any): Promise<any>;
|
|
7
|
-
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<
|
|
7
|
+
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
8
8
|
handleOrderBook(client: Client, message: any): void;
|
|
9
|
-
watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
9
|
+
watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
10
10
|
handleTrade(client: Client, message: any): void;
|
|
11
|
-
watchTicker(symbol: string, params?: {}): Promise<
|
|
11
|
+
watchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
12
12
|
handleTicker(client: Client, message: any): void;
|
|
13
13
|
authenticate(url: any): void;
|
|
14
|
-
watchBalance(params?: {}): Promise<
|
|
14
|
+
watchBalance(params?: {}): Promise<Balances>;
|
|
15
15
|
handleBalance(client: Client, message: any): void;
|
|
16
16
|
handleMessage(client: Client, message: any): any;
|
|
17
17
|
}
|
package/js/src/pro/bitpanda.d.ts
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import bitpandaRest from '../bitpanda.js';
|
|
2
|
-
import { Int, Str, Strings } from '../base/types.js';
|
|
2
|
+
import type { Int, Str, Strings, OrderBook, Order, Trade, Ticker, Tickers, OHLCV, Balances } 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
|
-
watchBalance(params?: {}): Promise<
|
|
6
|
+
watchBalance(params?: {}): Promise<Balances>;
|
|
7
7
|
handleBalanceSnapshot(client: any, message: any): void;
|
|
8
|
-
watchTicker(symbol: string, params?: {}): Promise<
|
|
9
|
-
watchTickers(symbols?: Strings, params?: {}): Promise<
|
|
8
|
+
watchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
9
|
+
watchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
10
10
|
handleTicker(client: Client, message: any): void;
|
|
11
|
-
parseWSTicker(ticker: any, market?: any):
|
|
12
|
-
watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}):
|
|
13
|
-
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<
|
|
11
|
+
parseWSTicker(ticker: any, market?: any): Ticker;
|
|
12
|
+
watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
13
|
+
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
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?: Str, since?: Int, limit?: Int, params?: {}):
|
|
17
|
+
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
18
18
|
handleTrading(client: Client, message: any): void;
|
|
19
|
-
parseTradingOrder(order: any, market?: any):
|
|
19
|
+
parseTradingOrder(order: any, market?: any): Order;
|
|
20
20
|
parseTradingOrderStatus(status: any): string;
|
|
21
21
|
handleOrders(client: Client, message: any): void;
|
|
22
22
|
handleAccountUpdate(client: Client, message: any): void;
|
|
23
23
|
parseWsOrderStatus(status: any): string;
|
|
24
24
|
updateBalance(balance: any): void;
|
|
25
|
-
watchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
25
|
+
watchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
|
|
26
26
|
handleOHLCV(client: Client, message: any): void;
|
|
27
27
|
findTimeframe(timeframe: any, timeframes?: any): string;
|
|
28
28
|
handleSubscriptions(client: Client, message: any): any;
|
package/js/src/pro/bitrue.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import bitrueRest from '../bitrue.js';
|
|
2
|
-
import { Int, Str } from '../base/types.js';
|
|
2
|
+
import type { Int, Str, OrderBook, Order, Balances } 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
|
-
watchBalance(params?: {}): Promise<
|
|
6
|
+
watchBalance(params?: {}): Promise<Balances>;
|
|
7
7
|
handleBalance(client: Client, message: any): void;
|
|
8
8
|
parseWSBalances(balances: any): void;
|
|
9
|
-
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<
|
|
9
|
+
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
10
10
|
handleOrder(client: Client, message: any): void;
|
|
11
|
-
parseWsOrder(order: any, market?: any):
|
|
12
|
-
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<
|
|
11
|
+
parseWsOrder(order: any, market?: any): Order;
|
|
12
|
+
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
13
13
|
handleOrderBook(client: Client, message: any): void;
|
|
14
14
|
parseWsOrderType(typeId: any): string;
|
|
15
15
|
parseWsOrderStatus(status: any): string;
|
package/js/src/pro/bitstamp.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import bitstampRest from '../bitstamp.js';
|
|
2
|
-
import { Int, Str } from '../base/types.js';
|
|
2
|
+
import type { Int, Str, OrderBook, Order, Trade } 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;
|
|
6
|
-
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<
|
|
6
|
+
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
7
7
|
handleOrderBook(client: Client, message: any): void;
|
|
8
8
|
handleDelta(orderbook: any, delta: any): void;
|
|
9
9
|
handleBidAsks(bookSide: any, bidAsks: any): void;
|
|
10
10
|
getCacheIndex(orderbook: any, deltas: any): any;
|
|
11
|
-
watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
12
|
-
parseWsTrade(trade: any, market?: any):
|
|
11
|
+
watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
12
|
+
parseWsTrade(trade: any, market?: any): Trade;
|
|
13
13
|
handleTrade(client: Client, message: any): void;
|
|
14
|
-
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<
|
|
14
|
+
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
15
15
|
handleOrders(client: Client, message: any): void;
|
|
16
|
-
parseWsOrder(order: any, market?: any):
|
|
16
|
+
parseWsOrder(order: any, market?: any): Order;
|
|
17
17
|
handleOrderBookSubscription(client: Client, message: any): void;
|
|
18
18
|
handleSubscriptionStatus(client: Client, message: any): void;
|
|
19
19
|
handleSubject(client: Client, message: any): void;
|
package/js/src/pro/bitvavo.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import bitvavoRest from '../bitvavo.js';
|
|
2
|
-
import { Int, Str } from '../base/types.js';
|
|
2
|
+
import type { Int, Str, OrderBook, Order, Trade, Ticker, OHLCV } 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;
|
|
6
6
|
watchPublic(name: any, symbol: any, params?: {}): Promise<any>;
|
|
7
|
-
watchTicker(symbol: string, params?: {}): Promise<
|
|
7
|
+
watchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
8
8
|
handleTicker(client: Client, message: any): any;
|
|
9
|
-
watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
9
|
+
watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
10
10
|
handleTrade(client: Client, message: any): void;
|
|
11
|
-
watchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
11
|
+
watchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
|
|
12
12
|
handleOHLCV(client: Client, message: any): void;
|
|
13
|
-
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<
|
|
13
|
+
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
14
14
|
handleDelta(bookside: any, delta: any): void;
|
|
15
15
|
handleDeltas(bookside: any, deltas: any): void;
|
|
16
16
|
handleOrderBookMessage(client: Client, message: any, orderbook: any): 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?: Str, since?: Int, limit?: Int, params?: {}): Promise<
|
|
23
|
-
watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<
|
|
22
|
+
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
23
|
+
watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
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,23 +1,23 @@
|
|
|
1
1
|
import blockchaincomRest from '../blockchaincom.js';
|
|
2
|
-
import { IndexType, Int, Str } from '../base/types.js';
|
|
2
|
+
import type { IndexType, Int, Str, OrderBook, Order, Trade, Ticker, OHLCV, Balances } 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;
|
|
6
|
-
watchBalance(params?: {}): Promise<
|
|
6
|
+
watchBalance(params?: {}): Promise<Balances>;
|
|
7
7
|
handleBalance(client: Client, message: any): any;
|
|
8
|
-
watchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
8
|
+
watchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
|
|
9
9
|
handleOHLCV(client: Client, message: any): any;
|
|
10
|
-
watchTicker(symbol: string, params?: {}): Promise<
|
|
10
|
+
watchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
11
11
|
handleTicker(client: Client, message: any): any;
|
|
12
|
-
parseWsUpdatedTicker(ticker: any, lastTicker?: any, market?: any):
|
|
13
|
-
watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<
|
|
12
|
+
parseWsUpdatedTicker(ticker: any, lastTicker?: any, market?: any): Ticker;
|
|
13
|
+
watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
14
14
|
handleTrades(client: Client, message: any): any;
|
|
15
|
-
parseWsTrade(trade: any, market?: any):
|
|
16
|
-
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<
|
|
15
|
+
parseWsTrade(trade: any, market?: any): Trade;
|
|
16
|
+
watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
17
17
|
handleOrders(client: Client, message: any): any;
|
|
18
|
-
parseWsOrder(order: any, market?: any):
|
|
18
|
+
parseWsOrder(order: any, market?: any): Order;
|
|
19
19
|
parseWsOrderStatus(status: any): string;
|
|
20
|
-
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<
|
|
20
|
+
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
21
21
|
handleOrderBook(client: Client, message: any): any;
|
|
22
22
|
parseCountedBidAsk(bidAsk: any, priceKey?: IndexType, amountKey?: IndexType, countKey?: IndexType): number[];
|
|
23
23
|
parseCountedBidsAsks(bidasks: any, priceKey?: IndexType, amountKey?: IndexType, countKey?: IndexType): any[];
|