tardis-dev 14.2.0 → 14.2.1
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/dist/binarysplit.d.ts.map +1 -1
- package/dist/binarysplit.js +19 -16
- package/dist/binarysplit.js.map +1 -1
- package/dist/consts.d.ts +10 -12
- package/dist/consts.d.ts.map +1 -1
- package/dist/consts.js +30 -16
- package/dist/consts.js.map +1 -1
- package/dist/mappers/bybit.d.ts +2 -2
- package/dist/mappers/bybitspot.d.ts +1 -1
- package/dist/mappers/cryptocom.d.ts +5 -5
- package/dist/mappers/cryptocom.d.ts.map +1 -1
- package/dist/mappers/huobi.d.ts +3 -3
- package/dist/mappers/index.d.ts +0 -8
- package/dist/mappers/index.d.ts.map +1 -1
- package/dist/mappers/index.js +0 -8
- package/dist/mappers/index.js.map +1 -1
- package/dist/realtimefeeds/binance.d.ts +14 -1
- package/dist/realtimefeeds/binance.d.ts.map +1 -1
- package/dist/realtimefeeds/binance.js +150 -34
- package/dist/realtimefeeds/binance.js.map +1 -1
- package/dist/realtimefeeds/index.d.ts.map +1 -1
- package/dist/realtimefeeds/index.js +0 -3
- package/dist/realtimefeeds/index.js.map +1 -1
- package/dist/realtimefeeds/realtimefeed.d.ts +1 -0
- package/dist/realtimefeeds/realtimefeed.d.ts.map +1 -1
- package/dist/realtimefeeds/realtimefeed.js +9 -3
- package/dist/realtimefeeds/realtimefeed.js.map +1 -1
- package/package.json +3 -3
- package/src/binarysplit.ts +25 -16
- package/src/consts.ts +30 -18
- package/src/mappers/cryptocom.ts +4 -4
- package/src/mappers/index.ts +0 -8
- package/src/realtimefeeds/binance.ts +226 -43
- package/src/realtimefeeds/index.ts +0 -3
- package/src/realtimefeeds/realtimefeed.ts +12 -4
- package/dist/mappers/binanceoptions.d.ts +0 -92
- package/dist/mappers/binanceoptions.d.ts.map +0 -1
- package/dist/mappers/binanceoptions.js +0 -177
- package/dist/mappers/binanceoptions.js.map +0 -1
- package/dist/realtimefeeds/binanceoptions.d.ts +0 -9
- package/dist/realtimefeeds/binanceoptions.d.ts.map +0 -1
- package/dist/realtimefeeds/binanceoptions.js +0 -34
- package/dist/realtimefeeds/binanceoptions.js.map +0 -1
- package/src/mappers/binanceoptions.ts +0 -265
- package/src/realtimefeeds/binanceoptions.ts +0 -37
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"binarysplit.d.ts","sourceRoot":"","sources":["../src/binarysplit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"binarysplit.d.ts","sourceRoot":"","sources":["../src/binarysplit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAA;AAGrD,qBAAa,iBAAkB,SAAQ,SAAS;IAC9C,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAQ;IACvC,OAAO,CAAC,SAAS,CAAC,CAAQ;;IAW1B,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,iBAAiB;CAkCjE"}
|
package/dist/binarysplit.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BinarySplitStream = void 0;
|
|
4
4
|
const stream_1 = require("stream");
|
|
5
|
-
//
|
|
5
|
+
// Inspired by https://github.com/maxogden/binary-split/blob/master/index.js
|
|
6
6
|
class BinarySplitStream extends stream_1.Transform {
|
|
7
7
|
_NEW_LINE_BYTE;
|
|
8
8
|
_buffered;
|
|
@@ -14,27 +14,30 @@ class BinarySplitStream extends stream_1.Transform {
|
|
|
14
14
|
this._buffered = undefined;
|
|
15
15
|
}
|
|
16
16
|
_transform(chunk, _, callback) {
|
|
17
|
-
let
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
17
|
+
let chunkStart = 0;
|
|
18
|
+
if (this._buffered !== undefined) {
|
|
19
|
+
const firstNewLineIndex = chunk.indexOf(this._NEW_LINE_BYTE);
|
|
20
|
+
if (firstNewLineIndex === -1) {
|
|
21
|
+
this._buffered = Buffer.concat([this._buffered, chunk]);
|
|
22
|
+
callback();
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
this.push(Buffer.concat([this._buffered, chunk.subarray(0, firstNewLineIndex)]));
|
|
24
26
|
this._buffered = undefined;
|
|
27
|
+
chunkStart = firstNewLineIndex + 1;
|
|
25
28
|
}
|
|
29
|
+
let offset = chunkStart;
|
|
30
|
+
let lineStart = chunkStart;
|
|
26
31
|
while (true) {
|
|
27
|
-
|
|
28
|
-
if (newLineIndex
|
|
29
|
-
this.push(bufferToSplit.slice(lastMatch, newLineIndex));
|
|
30
|
-
offset = newLineIndex + 1;
|
|
31
|
-
lastMatch = offset;
|
|
32
|
-
}
|
|
33
|
-
else {
|
|
34
|
-
this._buffered = bufferToSplit.slice(lastMatch);
|
|
32
|
+
const newLineIndex = chunk.indexOf(this._NEW_LINE_BYTE, offset);
|
|
33
|
+
if (newLineIndex === -1) {
|
|
35
34
|
break;
|
|
36
35
|
}
|
|
36
|
+
this.push(chunk.subarray(lineStart, newLineIndex));
|
|
37
|
+
offset = newLineIndex + 1;
|
|
38
|
+
lineStart = offset;
|
|
37
39
|
}
|
|
40
|
+
this._buffered = lineStart < chunk.length ? chunk.subarray(lineStart) : undefined;
|
|
38
41
|
callback();
|
|
39
42
|
}
|
|
40
43
|
}
|
package/dist/binarysplit.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"binarysplit.js","sourceRoot":"","sources":["../src/binarysplit.ts"],"names":[],"mappings":";;;AAAA,mCAAqD;
|
|
1
|
+
{"version":3,"file":"binarysplit.js","sourceRoot":"","sources":["../src/binarysplit.ts"],"names":[],"mappings":";;;AAAA,mCAAqD;AAErD,4EAA4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AK,CAAC,QAAQ,CAAC,SAAS,EAAE,YAAY,CAAC,CAAC,CAAA;YAClD,MAAM,GAAG,YAAY,GAAG,CAAC,CAAA;YACzB,SAAS,GAAG,MAAM,CAAA;QACpB,CAAC;QAED,IAAI,CAAC,SAAS,GAAG,SAAS,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAA;QACjF,QAAQ,EAAE,CAAA;IACZ,CAAC;CACF;AA/CD,8CA+CC"}
|
package/dist/consts.d.ts
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
export declare const EXCHANGES: readonly ["bitmex", "deribit", "binance-futures", "binance-delivery", "binance-
|
|
1
|
+
export declare const EXCHANGES: readonly ["bitmex", "deribit", "binance-futures", "binance-delivery", "binance-european-options", "binance", "ftx", "okex-futures", "okex-options", "okex-swap", "okex", "okex-spreads", "huobi-dm", "huobi-dm-swap", "huobi-dm-linear-swap", "huobi", "bitfinex-derivatives", "bitfinex", "coinbase", "coinbase-international", "cryptofacilities", "kraken", "bitstamp", "gemini", "poloniex", "bybit", "bybit-spot", "bybit-options", "phemex", "delta", "ftx-us", "binance-us", "gate-io-futures", "gate-io", "okcoin", "bitflyer", "hitbtc", "coinflex", "binance-jersey", "binance-dex", "upbit", "ascendex", "dydx", "dydx-v4", "serum", "mango", "huobi-dm-options", "star-atlas", "crypto-com", "kucoin", "kucoin-futures", "bitnomial", "woo-x", "blockchain-com", "bitget", "bitget-futures", "hyperliquid"];
|
|
2
2
|
export declare const EXCHANGE_CHANNELS_INFO: {
|
|
3
3
|
bitmex: readonly ["trade", "orderBookL2", "liquidation", "connected", "announcement", "chat", "publicNotifications", "instrument", "settlement", "funding", "insurance", "orderBookL2_25", "orderBook10", "quote", "quoteBin1m", "quoteBin5m", "quoteBin1h", "quoteBin1d", "tradeBin1m", "tradeBin5m", "tradeBin1h", "tradeBin1d"];
|
|
4
|
-
coinbase: readonly ["match", "subscriptions", "received", "open", "done", "change", "l2update", "ticker", "snapshot", "last_match", "full_snapshot"];
|
|
4
|
+
coinbase: readonly ["match", "subscriptions", "received", "open", "done", "change", "l2update", "ticker", "snapshot", "last_match", "full_snapshot", "rfq_matches"];
|
|
5
5
|
'coinbase-international': string[];
|
|
6
6
|
deribit: readonly ["book", "deribit_price_index", "deribit_price_ranking", "deribit_volatility_index", "estimated_expiration_price", "markprice.options", "perpetual", "trades", "ticker", "quote", "platform_state", "instrument.state.any"];
|
|
7
7
|
cryptofacilities: readonly ["trade", "trade_snapshot", "book", "book_snapshot", "ticker", "heartbeat"];
|
|
8
8
|
bitstamp: readonly ["live_trades", "live_orders", "diff_order_book"];
|
|
9
9
|
kraken: readonly ["trade", "ticker", "book", "spread"];
|
|
10
|
-
okex: readonly ["spot/trade", "spot/depth", "spot/depth_l2_tbt", "spot/ticker", "system/status", "margin/interest_rate", "trades", "trades-all", "books-l2-tbt", "bbo-tbt", "books", "tickers", "interest-rate-loan-quota", "vip-interest-rate-loan-quota", "status", "instruments", "taker-volume", "public-struc-block-trades"];
|
|
11
|
-
'okex-swap': readonly ["swap/trade", "swap/depth", "swap/depth_l2_tbt", "swap/ticker", "swap/funding_rate", "swap/mark_price", "swap/liquidation", "index/ticker", "system/status", "information/sentiment", "information/long_short_ratio", "information/margin", "trades", "trades-all", "books-l2-tbt", "bbo-tbt", "books", "tickers", "open-interest", "mark-price", "price-limit", "funding-rate", "status", "instruments", "index-tickers", "long-short-account-ratio", "taker-volume", "liquidations", "public-struc-block-trades", "liquidation-orders"];
|
|
12
|
-
'okex-futures': readonly ["futures/trade", "futures/depth", "futures/depth_l2_tbt", "futures/ticker", "futures/mark_price", "futures/liquidation", "index/ticker", "system/status", "information/sentiment", "information/long_short_ratio", "information/margin", "trades", "trades-all", "books-l2-tbt", "bbo-tbt", "books", "tickers", "open-interest", "mark-price", "price-limit", "status", "instruments", "index-tickers", "long-short-account-ratio", "taker-volume", "liquidations", "public-struc-block-trades", "liquidation-orders"];
|
|
13
|
-
'okex-options': readonly ["option/trade", "option/depth", "option/depth_l2_tbt", "option/ticker", "option/summary", "option/instruments", "index/ticker", "system/status", "option/trades", "trades", "trades-all", "books-l2-tbt", "bbo-tbt", "books", "tickers", "opt-summary", "status", "instruments", "index-tickers", "open-interest", "mark-price", "price-limit", "public-struc-block-trades", "option-trades"];
|
|
10
|
+
okex: readonly ["spot/trade", "spot/depth", "spot/depth_l2_tbt", "spot/ticker", "system/status", "margin/interest_rate", "trades", "trades-all", "books-l2-tbt", "bbo-tbt", "books", "tickers", "interest-rate-loan-quota", "vip-interest-rate-loan-quota", "status", "instruments", "taker-volume", "public-struc-block-trades", "liquidations", "loan-ratio", "public-block-trades"];
|
|
11
|
+
'okex-swap': readonly ["swap/trade", "swap/depth", "swap/depth_l2_tbt", "swap/ticker", "swap/funding_rate", "swap/mark_price", "swap/liquidation", "index/ticker", "system/status", "information/sentiment", "information/long_short_ratio", "information/margin", "trades", "trades-all", "books-l2-tbt", "bbo-tbt", "books", "tickers", "open-interest", "mark-price", "price-limit", "funding-rate", "status", "instruments", "index-tickers", "long-short-account-ratio", "taker-volume", "liquidations", "public-struc-block-trades", "liquidation-orders", "long-short-account-ratio-contract", "long-short-account-ratio-contract-top-trader", "long-short-position-ratio-contract-top-trader", "public-block-trades", "taker-volume-contract"];
|
|
12
|
+
'okex-futures': readonly ["futures/trade", "futures/depth", "futures/depth_l2_tbt", "futures/ticker", "futures/mark_price", "futures/liquidation", "index/ticker", "system/status", "information/sentiment", "information/long_short_ratio", "information/margin", "trades", "trades-all", "books-l2-tbt", "bbo-tbt", "books", "tickers", "open-interest", "mark-price", "price-limit", "status", "instruments", "index-tickers", "long-short-account-ratio", "taker-volume", "liquidations", "public-struc-block-trades", "liquidation-orders", "estimated-price", "long-short-account-ratio-contract", "long-short-account-ratio-contract-top-trader", "long-short-position-ratio-contract-top-trader", "public-block-trades", "taker-volume-contract"];
|
|
13
|
+
'okex-options': readonly ["option/trade", "option/depth", "option/depth_l2_tbt", "option/ticker", "option/summary", "option/instruments", "index/ticker", "system/status", "option/trades", "trades", "trades-all", "books-l2-tbt", "bbo-tbt", "books", "tickers", "opt-summary", "status", "instruments", "index-tickers", "open-interest", "mark-price", "price-limit", "public-struc-block-trades", "option-trades", "estimated-price", "public-block-trades"];
|
|
14
14
|
binance: readonly ["trade", "aggTrade", "ticker", "depth", "depthSnapshot", "bookTicker", "recentTrades", "borrowInterest"];
|
|
15
15
|
'binance-jersey': readonly ["trade", "aggTrade", "ticker", "depth", "depthSnapshot", "bookTicker", "recentTrades", "borrowInterest"];
|
|
16
16
|
'binance-dex': readonly ["trades", "marketDiff", "depthSnapshot", "ticker"];
|
|
17
17
|
'binance-us': readonly ["trade", "aggTrade", "ticker", "depth", "depthSnapshot", "bookTicker", "recentTrades", "borrowInterest"];
|
|
18
18
|
bitfinex: readonly ["trades", "book", "raw_book", "ticker"];
|
|
19
|
-
ftx: readonly ["orderbook", "trades", "instrument", "markets", "orderbookGrouped", "lendingRate", "borrowRate", "borrowSummary", "ticker", "leveragedTokenInfo"];
|
|
19
|
+
ftx: readonly ["orderbook", "trades", "instrument", "markets", "orderbookGrouped", "lendingRate", "borrowRate", "borrowSummary", "ticker", "leveragedTokenInfo", "busy"];
|
|
20
20
|
'ftx-us': readonly ["orderbook", "trades", "markets", "orderbookGrouped", "ticker"];
|
|
21
21
|
gemini: readonly ["trade", "l2_updates", "auction_open", "auction_indicative", "auction_result"];
|
|
22
22
|
bitflyer: readonly ["lightning_executions", "lightning_board_snapshot", "lightning_board", "lightning_ticker"];
|
|
23
|
-
'binance-futures': readonly ["trade", "aggTrade", "ticker", "depth", "markPrice", "depthSnapshot", "bookTicker", "forceOrder", "openInterest", "recentTrades", "compositeIndex", "topLongShortAccountRatio", "topLongShortPositionRatio", "globalLongShortAccountRatio", "takerlongshortRatio", "!contractInfo"];
|
|
23
|
+
'binance-futures': readonly ["trade", "aggTrade", "ticker", "depth", "markPrice", "depthSnapshot", "bookTicker", "forceOrder", "openInterest", "recentTrades", "compositeIndex", "topLongShortAccountRatio", "topLongShortPositionRatio", "globalLongShortAccountRatio", "takerlongshortRatio", "!contractInfo", "assetIndex"];
|
|
24
24
|
'binance-delivery': readonly ["trade", "aggTrade", "ticker", "depth", "markPrice", "indexPrice", "depthSnapshot", "bookTicker", "forceOrder", "openInterest", "recentTrades", "topLongShortAccountRatio", "topLongShortPositionRatio", "globalLongShortAccountRatio", "takerBuySellVol", "!contractInfo"];
|
|
25
25
|
'bitfinex-derivatives': readonly ["trades", "book", "raw_book", "status", "liquidations", "ticker"];
|
|
26
|
-
huobi: readonly ["depth", "detail", "trade", "bbo", "mbp", "etp"];
|
|
26
|
+
huobi: readonly ["depth", "detail", "trade", "bbo", "mbp", "etp", "mbp.20"];
|
|
27
27
|
'huobi-dm': readonly ["depth", "detail", "trade", "bbo", "basis", "liquidation_orders", "contract_info", "open_interest", "elite_account_ratio", "elite_position_ratio"];
|
|
28
28
|
'huobi-dm-swap': readonly ["depth", "detail", "trade", "bbo", "basis", "funding_rate", "liquidation_orders", "contract_info", "open_interest", "elite_account_ratio", "elite_position_ratio"];
|
|
29
29
|
'huobi-dm-linear-swap': readonly ["depth", "detail", "trade", "bbo", "basis", "funding_rate", "liquidation_orders", "contract_info", "open_interest", "elite_account_ratio", "elite_position_ratio"];
|
|
30
|
-
bybit: readonly ["trade", "instrument_info", "orderBookL2_25", "insurance", "orderBook_200", "liquidation", "trade", "instrument_info", "orderBookL2_25", "insurance", "orderBook_200", "liquidation", "long_short_ratio", "orderbook.1", "orderbook.50", "orderbook.500", "publicTrade", "tickers", "liquidation", "allLiquidation"];
|
|
30
|
+
bybit: readonly ["trade", "instrument_info", "orderBookL2_25", "insurance", "orderBook_200", "liquidation", "trade", "instrument_info", "orderBookL2_25", "insurance", "orderBook_200", "liquidation", "long_short_ratio", "orderbook.1", "orderbook.50", "orderbook.500", "publicTrade", "tickers", "liquidation", "allLiquidation", "orderbook.1000"];
|
|
31
31
|
'bybit-spot': string[];
|
|
32
32
|
'bybit-options': string[];
|
|
33
33
|
okcoin: readonly ["spot/trade", "spot/depth", "spot/depth_l2_tbt", "spot/ticker", "system/status", "trades", "books", "bbo-tbt", "tickers"];
|
|
@@ -38,7 +38,6 @@ export declare const EXCHANGE_CHANNELS_INFO: {
|
|
|
38
38
|
'gate-io': readonly ["trades", "depth", "ticker", "book_ticker", "order_book_update", "obu"];
|
|
39
39
|
'gate-io-futures': readonly ["trades", "order_book", "tickers", "book_ticker"];
|
|
40
40
|
poloniex: readonly ["price_aggregated_book", "trades", "ticker", "book_lv2"];
|
|
41
|
-
'binance-options': readonly ["TRADE", "TICKER", "DEPTH100", "INDEX"];
|
|
42
41
|
upbit: readonly ["trade", "orderbook", "ticker"];
|
|
43
42
|
ascendex: readonly ["trades", "depth-realtime", "depth-snapshot-realtime", "bbo", "futures-pricing-data"];
|
|
44
43
|
dydx: readonly ["v3_trades", "v3_orderbook", "v3_markets"];
|
|
@@ -48,7 +47,6 @@ export declare const EXCHANGE_CHANNELS_INFO: {
|
|
|
48
47
|
'huobi-dm-options': readonly ["trade", "detail", "depth", "bbo", "open_interest", "option_market_index", "option_index"];
|
|
49
48
|
mango: readonly ["recent_trades", "trade", "quote", "l2snapshot", "l2update", "l3snapshot", "open", "fill", "change", "done"];
|
|
50
49
|
'crypto-com': string[];
|
|
51
|
-
'crypto-com-derivatives': string[];
|
|
52
50
|
kucoin: string[];
|
|
53
51
|
bitnomial: string[];
|
|
54
52
|
'woo-x': string[];
|
package/dist/consts.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../src/consts.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../src/consts.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,yxBA0DZ,CAAA;AA0cV,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0DlC,CAAA"}
|
package/dist/consts.js
CHANGED
|
@@ -6,7 +6,6 @@ exports.EXCHANGES = [
|
|
|
6
6
|
'deribit',
|
|
7
7
|
'binance-futures',
|
|
8
8
|
'binance-delivery',
|
|
9
|
-
'binance-options',
|
|
10
9
|
'binance-european-options',
|
|
11
10
|
'binance',
|
|
12
11
|
'ftx',
|
|
@@ -52,7 +51,6 @@ exports.EXCHANGES = [
|
|
|
52
51
|
'huobi-dm-options',
|
|
53
52
|
'star-atlas',
|
|
54
53
|
'crypto-com',
|
|
55
|
-
'crypto-com-derivatives',
|
|
56
54
|
'kucoin',
|
|
57
55
|
'kucoin-futures',
|
|
58
56
|
'bitnomial',
|
|
@@ -101,7 +99,8 @@ const COINBASE_CHANNELS = [
|
|
|
101
99
|
'ticker',
|
|
102
100
|
'snapshot',
|
|
103
101
|
'last_match',
|
|
104
|
-
'full_snapshot'
|
|
102
|
+
'full_snapshot',
|
|
103
|
+
'rfq_matches'
|
|
105
104
|
];
|
|
106
105
|
const DERIBIT_CHANNELS = [
|
|
107
106
|
'book',
|
|
@@ -137,7 +136,10 @@ const OKEX_CHANNELS = [
|
|
|
137
136
|
'status',
|
|
138
137
|
'instruments',
|
|
139
138
|
'taker-volume',
|
|
140
|
-
'public-struc-block-trades'
|
|
139
|
+
'public-struc-block-trades',
|
|
140
|
+
'liquidations',
|
|
141
|
+
'loan-ratio',
|
|
142
|
+
'public-block-trades'
|
|
141
143
|
];
|
|
142
144
|
const OKCOIN_CHANNELS = [
|
|
143
145
|
'spot/trade',
|
|
@@ -179,7 +181,13 @@ const OKEX_FUTURES_CHANNELS = [
|
|
|
179
181
|
'taker-volume',
|
|
180
182
|
'liquidations',
|
|
181
183
|
'public-struc-block-trades',
|
|
182
|
-
'liquidation-orders'
|
|
184
|
+
'liquidation-orders',
|
|
185
|
+
'estimated-price',
|
|
186
|
+
'long-short-account-ratio-contract',
|
|
187
|
+
'long-short-account-ratio-contract-top-trader',
|
|
188
|
+
'long-short-position-ratio-contract-top-trader',
|
|
189
|
+
'public-block-trades',
|
|
190
|
+
'taker-volume-contract'
|
|
183
191
|
];
|
|
184
192
|
const OKEX_SWAP_CHANNELS = [
|
|
185
193
|
'swap/trade',
|
|
@@ -212,7 +220,12 @@ const OKEX_SWAP_CHANNELS = [
|
|
|
212
220
|
'taker-volume',
|
|
213
221
|
'liquidations',
|
|
214
222
|
'public-struc-block-trades',
|
|
215
|
-
'liquidation-orders'
|
|
223
|
+
'liquidation-orders',
|
|
224
|
+
'long-short-account-ratio-contract',
|
|
225
|
+
'long-short-account-ratio-contract-top-trader',
|
|
226
|
+
'long-short-position-ratio-contract-top-trader',
|
|
227
|
+
'public-block-trades',
|
|
228
|
+
'taker-volume-contract'
|
|
216
229
|
];
|
|
217
230
|
const OKEX_OPTIONS_CHANNELS = [
|
|
218
231
|
'option/trade',
|
|
@@ -239,7 +252,9 @@ const OKEX_OPTIONS_CHANNELS = [
|
|
|
239
252
|
'mark-price',
|
|
240
253
|
'price-limit',
|
|
241
254
|
'public-struc-block-trades',
|
|
242
|
-
'option-trades'
|
|
255
|
+
'option-trades',
|
|
256
|
+
'estimated-price',
|
|
257
|
+
'public-block-trades'
|
|
243
258
|
];
|
|
244
259
|
const COINFLEX_CHANNELS = ['futures/depth', 'trade', 'ticker'];
|
|
245
260
|
const CRYPTOFACILITIES_CHANNELS = ['trade', 'trade_snapshot', 'book', 'book_snapshot', 'ticker', 'heartbeat'];
|
|
@@ -253,7 +268,8 @@ const FTX_CHANNELS = [
|
|
|
253
268
|
'borrowRate',
|
|
254
269
|
'borrowSummary',
|
|
255
270
|
'ticker',
|
|
256
|
-
'leveragedTokenInfo'
|
|
271
|
+
'leveragedTokenInfo',
|
|
272
|
+
'busy'
|
|
257
273
|
];
|
|
258
274
|
const GEMINI_CHANNELS = ['trade', 'l2_updates', 'auction_open', 'auction_indicative', 'auction_result'];
|
|
259
275
|
const BITFLYER_CHANNELS = ['lightning_executions', 'lightning_board_snapshot', 'lightning_board', 'lightning_ticker'];
|
|
@@ -273,7 +289,8 @@ const BINANCE_FUTURES_CHANNELS = [
|
|
|
273
289
|
'topLongShortPositionRatio',
|
|
274
290
|
'globalLongShortAccountRatio',
|
|
275
291
|
'takerlongshortRatio',
|
|
276
|
-
'!contractInfo'
|
|
292
|
+
'!contractInfo',
|
|
293
|
+
'assetIndex'
|
|
277
294
|
];
|
|
278
295
|
const BINANCE_DELIVERY_CHANNELS = [
|
|
279
296
|
'trade',
|
|
@@ -294,7 +311,7 @@ const BINANCE_DELIVERY_CHANNELS = [
|
|
|
294
311
|
'!contractInfo'
|
|
295
312
|
];
|
|
296
313
|
const BITFINEX_DERIV_CHANNELS = ['trades', 'book', 'raw_book', 'status', 'liquidations', 'ticker'];
|
|
297
|
-
const HUOBI_CHANNELS = ['depth', 'detail', 'trade', 'bbo', 'mbp', 'etp'];
|
|
314
|
+
const HUOBI_CHANNELS = ['depth', 'detail', 'trade', 'bbo', 'mbp', 'etp', 'mbp.20'];
|
|
298
315
|
const HUOBI_DM_CHANNELS = [
|
|
299
316
|
'depth',
|
|
300
317
|
'detail',
|
|
@@ -333,7 +350,6 @@ const HUOBI_DM_LINEAR_SWAP_CHANNELS = [
|
|
|
333
350
|
'elite_account_ratio',
|
|
334
351
|
'elite_position_ratio'
|
|
335
352
|
];
|
|
336
|
-
const BINANCE_OPTIONS_CHANNELS = ['TRADE', 'TICKER', 'DEPTH100', 'INDEX'];
|
|
337
353
|
const PHEMEX_CHANNELS = ['book', 'orderbook_p', 'trades', 'trades_p', 'market24h', 'spot_market24h', 'perp_market24h_pack_p'];
|
|
338
354
|
const BYBIT_CHANNELS = [
|
|
339
355
|
'trade',
|
|
@@ -355,7 +371,8 @@ const BYBIT_CHANNELS = [
|
|
|
355
371
|
'publicTrade',
|
|
356
372
|
'tickers',
|
|
357
373
|
'liquidation',
|
|
358
|
-
'allLiquidation'
|
|
374
|
+
'allLiquidation',
|
|
375
|
+
'orderbook.1000'
|
|
359
376
|
];
|
|
360
377
|
const BYBIT_OPTIONS_CHANNELS = ['orderbook.25', 'orderbook.100', 'publicTrade', 'tickers'];
|
|
361
378
|
const HITBTC_CHANNELS = ['updateTrades', 'snapshotTrades', 'snapshotOrderbook', 'updateOrderbook'];
|
|
@@ -407,9 +424,8 @@ const MANGO_CHANNELS = [
|
|
|
407
424
|
'done'
|
|
408
425
|
];
|
|
409
426
|
const HUOBI_DM_OPTIONS_CHANNELS = ['trade', 'detail', 'depth', 'bbo', 'open_interest', 'option_market_index', 'option_index'];
|
|
410
|
-
const BYBIT_SPOT_CHANNELS = ['trade', 'bookTicker', 'depth', 'orderbook.1', 'orderbook.50', 'publicTrade', 'tickers', 'lt'];
|
|
427
|
+
const BYBIT_SPOT_CHANNELS = ['trade', 'bookTicker', 'depth', 'orderbook.1', 'orderbook.50', 'publicTrade', 'tickers', 'lt', 'orderbook.200'];
|
|
411
428
|
const CRYPTO_COM_CHANNELS = ['trade', 'book', 'ticker', 'settlement', 'index', 'mark', 'funding', 'estimatedfunding'];
|
|
412
|
-
const CRYPTO_COM_DERIVATIVES = ['trade', 'book', 'ticker', 'settlement', 'index', 'mark', 'funding'];
|
|
413
429
|
const KUCOIN_CHANNELS = ['market/ticker', 'market/snapshot', 'market/level2', 'market/match', 'market/level2Snapshot'];
|
|
414
430
|
const BITNOMIAL_CHANNELS = ['trade', 'level', 'book', 'block', 'status'];
|
|
415
431
|
const WOOX_CHANNELS = [
|
|
@@ -493,7 +509,6 @@ exports.EXCHANGE_CHANNELS_INFO = {
|
|
|
493
509
|
'gate-io': GATE_IO_CHANNELS,
|
|
494
510
|
'gate-io-futures': GATE_IO_FUTURES_CHANNELS,
|
|
495
511
|
poloniex: POLONIEX_CHANNELS,
|
|
496
|
-
'binance-options': BINANCE_OPTIONS_CHANNELS,
|
|
497
512
|
upbit: UPBIT_CHANNELS,
|
|
498
513
|
ascendex: ASCENDEX_CHANNELS,
|
|
499
514
|
dydx: DYDX_CHANNELS,
|
|
@@ -503,7 +518,6 @@ exports.EXCHANGE_CHANNELS_INFO = {
|
|
|
503
518
|
'huobi-dm-options': HUOBI_DM_OPTIONS_CHANNELS,
|
|
504
519
|
mango: MANGO_CHANNELS,
|
|
505
520
|
'crypto-com': CRYPTO_COM_CHANNELS,
|
|
506
|
-
'crypto-com-derivatives': CRYPTO_COM_DERIVATIVES,
|
|
507
521
|
kucoin: KUCOIN_CHANNELS,
|
|
508
522
|
bitnomial: BITNOMIAL_CHANNELS,
|
|
509
523
|
'woo-x': WOOX_CHANNELS,
|
package/dist/consts.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consts.js","sourceRoot":"","sources":["../src/consts.ts"],"names":[],"mappings":";;;AAAa,QAAA,SAAS,GAAG;IACvB,QAAQ;IACR,SAAS;IACT,iBAAiB;IACjB,kBAAkB;IAClB,
|
|
1
|
+
{"version":3,"file":"consts.js","sourceRoot":"","sources":["../src/consts.ts"],"names":[],"mappings":";;;AAAa,QAAA,SAAS,GAAG;IACvB,QAAQ;IACR,SAAS;IACT,iBAAiB;IACjB,kBAAkB;IAClB,0BAA0B;IAC1B,SAAS;IACT,KAAK;IACL,cAAc;IACd,cAAc;IACd,WAAW;IACX,MAAM;IACN,cAAc;IACd,UAAU;IACV,eAAe;IACf,sBAAsB;IACtB,OAAO;IACP,sBAAsB;IACtB,UAAU;IACV,UAAU;IACV,wBAAwB;IACxB,kBAAkB;IAClB,QAAQ;IACR,UAAU;IACV,QAAQ;IACR,UAAU;IACV,OAAO;IACP,YAAY;IACZ,eAAe;IACf,QAAQ;IACR,OAAO;IACP,QAAQ;IACR,YAAY;IACZ,iBAAiB;IACjB,SAAS;IACT,QAAQ;IACR,UAAU;IACV,QAAQ;IACR,UAAU;IACV,gBAAgB;IAChB,aAAa;IACb,OAAO;IACP,UAAU;IACV,MAAM;IACN,SAAS;IACT,OAAO;IACP,OAAO;IACP,kBAAkB;I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BAAgB,EAAE,uBAAuB;IACzC,WAAW,EAAE,oBAAoB;CAClC,CAAA"}
|
package/dist/mappers/bybit.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export declare class BybitV5BookChangeMapper implements Mapper<'bybit' | 'bybit-
|
|
|
22
22
|
map(message: BybitV5OrderBookMessage, localTimestamp: Date): Generator<{
|
|
23
23
|
readonly type: "book_change";
|
|
24
24
|
readonly symbol: string;
|
|
25
|
-
readonly exchange: "bitmex" | "deribit" | "binance-futures" | "binance-delivery" | "binance-
|
|
25
|
+
readonly exchange: "bitmex" | "deribit" | "binance-futures" | "binance-delivery" | "binance-european-options" | "binance" | "ftx" | "okex-futures" | "okex-options" | "okex-swap" | "okex" | "okex-spreads" | "huobi-dm" | "huobi-dm-swap" | "huobi-dm-linear-swap" | "huobi" | "bitfinex-derivatives" | "bitfinex" | "coinbase" | "coinbase-international" | "cryptofacilities" | "kraken" | "bitstamp" | "gemini" | "poloniex" | "bybit" | "bybit-spot" | "bybit-options" | "phemex" | "delta" | "ftx-us" | "binance-us" | "gate-io-futures" | "gate-io" | "okcoin" | "bitflyer" | "hitbtc" | "coinflex" | "binance-jersey" | "binance-dex" | "upbit" | "ascendex" | "dydx" | "dydx-v4" | "serum" | "mango" | "huobi-dm-options" | "star-atlas" | "crypto-com" | "kucoin" | "kucoin-futures" | "bitnomial" | "woo-x" | "blockchain-com" | "bitget" | "bitget-futures" | "hyperliquid";
|
|
26
26
|
readonly isSnapshot: boolean;
|
|
27
27
|
readonly bids: {
|
|
28
28
|
price: number;
|
|
@@ -110,7 +110,7 @@ export declare class BybitBookChangeMapper implements Mapper<'bybit', BookChange
|
|
|
110
110
|
map(message: BybitBookSnapshotDataMessage | BybitBookSnapshotUpdateMessage, localTimestamp: Date): Generator<{
|
|
111
111
|
readonly type: "book_change";
|
|
112
112
|
readonly symbol: string;
|
|
113
|
-
readonly exchange: "bitmex" | "deribit" | "binance-futures" | "binance-delivery" | "binance-
|
|
113
|
+
readonly exchange: "bitmex" | "deribit" | "binance-futures" | "binance-delivery" | "binance-european-options" | "binance" | "ftx" | "okex-futures" | "okex-options" | "okex-swap" | "okex" | "okex-spreads" | "huobi-dm" | "huobi-dm-swap" | "huobi-dm-linear-swap" | "huobi" | "bitfinex-derivatives" | "bitfinex" | "coinbase" | "coinbase-international" | "cryptofacilities" | "kraken" | "bitstamp" | "gemini" | "poloniex" | "bybit" | "bybit-spot" | "bybit-options" | "phemex" | "delta" | "ftx-us" | "binance-us" | "gate-io-futures" | "gate-io" | "okcoin" | "bitflyer" | "hitbtc" | "coinflex" | "binance-jersey" | "binance-dex" | "upbit" | "ascendex" | "dydx" | "dydx-v4" | "serum" | "mango" | "huobi-dm-options" | "star-atlas" | "crypto-com" | "kucoin" | "kucoin-futures" | "bitnomial" | "woo-x" | "blockchain-com" | "bitget" | "bitget-futures" | "hyperliquid";
|
|
114
114
|
readonly isSnapshot: boolean;
|
|
115
115
|
readonly bids: {
|
|
116
116
|
price: number;
|
|
@@ -21,7 +21,7 @@ export declare class BybitSpotBookChangeMapper implements Mapper<'bybit-spot', B
|
|
|
21
21
|
map(message: BybitSpotDepthMessage, localTimestamp: Date): Generator<{
|
|
22
22
|
readonly type: "book_change";
|
|
23
23
|
readonly symbol: "RENUSDT";
|
|
24
|
-
readonly exchange: "bitmex" | "deribit" | "binance-futures" | "binance-delivery" | "binance-
|
|
24
|
+
readonly exchange: "bitmex" | "deribit" | "binance-futures" | "binance-delivery" | "binance-european-options" | "binance" | "ftx" | "okex-futures" | "okex-options" | "okex-swap" | "okex" | "okex-spreads" | "huobi-dm" | "huobi-dm-swap" | "huobi-dm-linear-swap" | "huobi" | "bitfinex-derivatives" | "bitfinex" | "coinbase" | "coinbase-international" | "cryptofacilities" | "kraken" | "bitstamp" | "gemini" | "poloniex" | "bybit" | "bybit-spot" | "bybit-options" | "phemex" | "delta" | "ftx-us" | "binance-us" | "gate-io-futures" | "gate-io" | "okcoin" | "bitflyer" | "hitbtc" | "coinflex" | "binance-jersey" | "binance-dex" | "upbit" | "ascendex" | "dydx" | "dydx-v4" | "serum" | "mango" | "huobi-dm-options" | "star-atlas" | "crypto-com" | "kucoin" | "kucoin-futures" | "bitnomial" | "woo-x" | "blockchain-com" | "bitget" | "bitget-futures" | "hyperliquid";
|
|
25
25
|
readonly isSnapshot: true;
|
|
26
26
|
readonly bids: {
|
|
27
27
|
price: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BookChange, Exchange, BookTicker, Trade, DerivativeTicker } from '../types';
|
|
2
2
|
import { Mapper } from './mapper';
|
|
3
|
-
export declare class CryptoComTradesMapper implements Mapper<'crypto-com'
|
|
3
|
+
export declare class CryptoComTradesMapper implements Mapper<'crypto-com', Trade> {
|
|
4
4
|
private readonly _exchange;
|
|
5
5
|
constructor(_exchange: Exchange);
|
|
6
6
|
canHandle(message: CryptoComTradeMessage): boolean;
|
|
@@ -10,7 +10,7 @@ export declare class CryptoComTradesMapper implements Mapper<'crypto-com' | 'cry
|
|
|
10
10
|
}[];
|
|
11
11
|
map(message: CryptoComTradeMessage, localTimestamp: Date): IterableIterator<Trade>;
|
|
12
12
|
}
|
|
13
|
-
export declare class CryptoComBookChangeMapper implements Mapper<'crypto-com'
|
|
13
|
+
export declare class CryptoComBookChangeMapper implements Mapper<'crypto-com', BookChange> {
|
|
14
14
|
protected readonly _exchange: Exchange;
|
|
15
15
|
constructor(_exchange: Exchange);
|
|
16
16
|
canHandle(message: CryptoComBookMessage): boolean;
|
|
@@ -21,7 +21,7 @@ export declare class CryptoComBookChangeMapper implements Mapper<'crypto-com' |
|
|
|
21
21
|
map(message: CryptoComBookMessage, localTimestamp: Date): Generator<{
|
|
22
22
|
readonly type: "book_change";
|
|
23
23
|
readonly symbol: "ETH_CRO" | "BTCUSD-PERP" | "DOT_USDT";
|
|
24
|
-
readonly exchange: "bitmex" | "deribit" | "binance-futures" | "binance-delivery" | "binance-
|
|
24
|
+
readonly exchange: "bitmex" | "deribit" | "binance-futures" | "binance-delivery" | "binance-european-options" | "binance" | "ftx" | "okex-futures" | "okex-options" | "okex-swap" | "okex" | "okex-spreads" | "huobi-dm" | "huobi-dm-swap" | "huobi-dm-linear-swap" | "huobi" | "bitfinex-derivatives" | "bitfinex" | "coinbase" | "coinbase-international" | "cryptofacilities" | "kraken" | "bitstamp" | "gemini" | "poloniex" | "bybit" | "bybit-spot" | "bybit-options" | "phemex" | "delta" | "ftx-us" | "binance-us" | "gate-io-futures" | "gate-io" | "okcoin" | "bitflyer" | "hitbtc" | "coinflex" | "binance-jersey" | "binance-dex" | "upbit" | "ascendex" | "dydx" | "dydx-v4" | "serum" | "mango" | "huobi-dm-options" | "star-atlas" | "crypto-com" | "kucoin" | "kucoin-futures" | "bitnomial" | "woo-x" | "blockchain-com" | "bitget" | "bitget-futures" | "hyperliquid";
|
|
25
25
|
readonly isSnapshot: boolean;
|
|
26
26
|
readonly bids: {
|
|
27
27
|
price: number;
|
|
@@ -36,7 +36,7 @@ export declare class CryptoComBookChangeMapper implements Mapper<'crypto-com' |
|
|
|
36
36
|
}, void, unknown>;
|
|
37
37
|
private _mapBookLevel;
|
|
38
38
|
}
|
|
39
|
-
export declare class CryptoComBookTickerMapper implements Mapper<'crypto-com'
|
|
39
|
+
export declare class CryptoComBookTickerMapper implements Mapper<'crypto-com', BookTicker> {
|
|
40
40
|
protected readonly _exchange: Exchange;
|
|
41
41
|
constructor(_exchange: Exchange);
|
|
42
42
|
canHandle(message: CryptoComTickerMessage): boolean;
|
|
@@ -46,7 +46,7 @@ export declare class CryptoComBookTickerMapper implements Mapper<'crypto-com' |
|
|
|
46
46
|
}[];
|
|
47
47
|
map(message: CryptoComTickerMessage, localTimestamp: Date): Generator<BookTicker, void, unknown>;
|
|
48
48
|
}
|
|
49
|
-
export declare class CryptoComDerivativeTickerMapper implements Mapper<'crypto-com
|
|
49
|
+
export declare class CryptoComDerivativeTickerMapper implements Mapper<'crypto-com', DerivativeTicker> {
|
|
50
50
|
protected readonly exchange: Exchange;
|
|
51
51
|
private readonly pendingTickerInfoHelper;
|
|
52
52
|
private readonly _indexPrices;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cryptocom.d.ts","sourceRoot":"","sources":["../../src/mappers/cryptocom.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AACpF,OAAO,EAAE,MAAM,EAA2B,MAAM,UAAU,CAAA;AAE1D,qBAAa,qBAAsB,YAAW,MAAM,CAAC,YAAY,
|
|
1
|
+
{"version":3,"file":"cryptocom.d.ts","sourceRoot":"","sources":["../../src/mappers/cryptocom.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AACpF,OAAO,EAAE,MAAM,EAA2B,MAAM,UAAU,CAAA;AAE1D,qBAAa,qBAAsB,YAAW,MAAM,CAAC,YAAY,EAAE,KAAK,CAAC;IAC3D,OAAO,CAAC,QAAQ,CAAC,SAAS;gBAAT,SAAS,EAAE,QAAQ;IAChD,SAAS,CAAC,OAAO,EAAE,qBAAqB;IAIxC,UAAU,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE;;;;IAW5B,GAAG,CAAC,OAAO,EAAE,qBAAqB,EAAE,cAAc,EAAE,IAAI,GAAG,gBAAgB,CAAC,KAAK,CAAC;CAmBpF;AAED,qBAAa,yBAA0B,YAAW,MAAM,CAAC,YAAY,EAAE,UAAU,CAAC;IACpE,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,QAAQ;gBAAnB,SAAS,EAAE,QAAQ;IAElD,SAAS,CAAC,OAAO,EAAE,oBAAoB;IAIvC,UAAU,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE;;;;IAU5B,GAAG,CAAC,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAE,IAAI;;;;;;;;;;;;;;;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a,CAAC;YAAC,CAAC,EAAE,aAAa,CAAA;SAAE,CAAC,CAAA;KAC/C,CAAA;CACF,CAAA"}
|
package/dist/mappers/huobi.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export declare class HuobiBookChangeMapper implements Mapper<'huobi' | 'huobi-dm
|
|
|
22
22
|
map(message: HuobiDepthDataMessage, localTimestamp: Date): Generator<{
|
|
23
23
|
readonly type: "book_change";
|
|
24
24
|
readonly symbol: string;
|
|
25
|
-
readonly exchange: "bitmex" | "deribit" | "binance-futures" | "binance-delivery" | "binance-
|
|
25
|
+
readonly exchange: "bitmex" | "deribit" | "binance-futures" | "binance-delivery" | "binance-european-options" | "binance" | "ftx" | "okex-futures" | "okex-options" | "okex-swap" | "okex" | "okex-spreads" | "huobi-dm" | "huobi-dm-swap" | "huobi-dm-linear-swap" | "huobi" | "bitfinex-derivatives" | "bitfinex" | "coinbase" | "coinbase-international" | "cryptofacilities" | "kraken" | "bitstamp" | "gemini" | "poloniex" | "bybit" | "bybit-spot" | "bybit-options" | "phemex" | "delta" | "ftx-us" | "binance-us" | "gate-io-futures" | "gate-io" | "okcoin" | "bitflyer" | "hitbtc" | "coinflex" | "binance-jersey" | "binance-dex" | "upbit" | "ascendex" | "dydx" | "dydx-v4" | "serum" | "mango" | "huobi-dm-options" | "star-atlas" | "crypto-com" | "kucoin" | "kucoin-futures" | "bitnomial" | "woo-x" | "blockchain-com" | "bitget" | "bitget-futures" | "hyperliquid";
|
|
26
26
|
readonly isSnapshot: boolean;
|
|
27
27
|
readonly bids: {
|
|
28
28
|
price: number;
|
|
@@ -51,7 +51,7 @@ export declare class HuobiMBPBookChangeMapper implements Mapper<'huobi', BookCha
|
|
|
51
51
|
map(message: HuobiMBPDataMessage | HuobiMBPSnapshot, localTimestamp: Date): Generator<{
|
|
52
52
|
readonly type: "book_change";
|
|
53
53
|
readonly symbol: string;
|
|
54
|
-
readonly exchange: "bitmex" | "deribit" | "binance-futures" | "binance-delivery" | "binance-
|
|
54
|
+
readonly exchange: "bitmex" | "deribit" | "binance-futures" | "binance-delivery" | "binance-european-options" | "binance" | "ftx" | "okex-futures" | "okex-options" | "okex-swap" | "okex" | "okex-spreads" | "huobi-dm" | "huobi-dm-swap" | "huobi-dm-linear-swap" | "huobi" | "bitfinex-derivatives" | "bitfinex" | "coinbase" | "coinbase-international" | "cryptofacilities" | "kraken" | "bitstamp" | "gemini" | "poloniex" | "bybit" | "bybit-spot" | "bybit-options" | "phemex" | "delta" | "ftx-us" | "binance-us" | "gate-io-futures" | "gate-io" | "okcoin" | "bitflyer" | "hitbtc" | "coinflex" | "binance-jersey" | "binance-dex" | "upbit" | "ascendex" | "dydx" | "dydx-v4" | "serum" | "mango" | "huobi-dm-options" | "star-atlas" | "crypto-com" | "kucoin" | "kucoin-futures" | "bitnomial" | "woo-x" | "blockchain-com" | "bitget" | "bitget-futures" | "hyperliquid";
|
|
55
55
|
readonly isSnapshot: false;
|
|
56
56
|
readonly bids: {
|
|
57
57
|
price: number;
|
|
@@ -66,7 +66,7 @@ export declare class HuobiMBPBookChangeMapper implements Mapper<'huobi', BookCha
|
|
|
66
66
|
} | {
|
|
67
67
|
readonly type: "book_change";
|
|
68
68
|
readonly symbol: string;
|
|
69
|
-
readonly exchange: "bitmex" | "deribit" | "binance-futures" | "binance-delivery" | "binance-
|
|
69
|
+
readonly exchange: "bitmex" | "deribit" | "binance-futures" | "binance-delivery" | "binance-european-options" | "binance" | "ftx" | "okex-futures" | "okex-options" | "okex-swap" | "okex" | "okex-spreads" | "huobi-dm" | "huobi-dm-swap" | "huobi-dm-linear-swap" | "huobi" | "bitfinex-derivatives" | "bitfinex" | "coinbase" | "coinbase-international" | "cryptofacilities" | "kraken" | "bitstamp" | "gemini" | "poloniex" | "bybit" | "bybit-spot" | "bybit-options" | "phemex" | "delta" | "ftx-us" | "binance-us" | "gate-io-futures" | "gate-io" | "okcoin" | "bitflyer" | "hitbtc" | "coinflex" | "binance-jersey" | "binance-dex" | "upbit" | "ascendex" | "dydx" | "dydx-v4" | "serum" | "mango" | "huobi-dm-options" | "star-atlas" | "crypto-com" | "kucoin" | "kucoin-futures" | "bitnomial" | "woo-x" | "blockchain-com" | "bitget" | "bitget-futures" | "hyperliquid";
|
|
70
70
|
readonly isSnapshot: true;
|
|
71
71
|
readonly bids: {
|
|
72
72
|
price: number;
|
package/dist/mappers/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import { BookChange, DerivativeTicker, Liquidation, OptionSummary, BookTicker, T
|
|
|
2
2
|
import { AscendexBookChangeMapper, AscendexDerivativeTickerMapper, AscendexBookTickerMapper, AscendexTradesMapper } from './ascendex';
|
|
3
3
|
import { BinanceBookChangeMapper, BinanceFuturesBookChangeMapper, BinanceFuturesDerivativeTickerMapper, BinanceLiquidationsMapper, BinanceBookTickerMapper, BinanceTradesMapper } from './binance';
|
|
4
4
|
import { BinanceEuropeanOptionsBookChangeMapper, BinanceEuropeanOptionsBookChangeMapperV2, BinanceEuropeanOptionsBookTickerMapper, BinanceEuropeanOptionsTradesMapper, BinanceEuropeanOptionsTradesMapperV2, BinanceEuropeanOptionSummaryMapper, BinanceEuropeanOptionSummaryMapperV2 } from './binanceeuropeanoptions';
|
|
5
|
-
import { BinanceOptionsBookChangeMapper, BinanceOptionsTradesMapper, BinanceOptionSummaryMapper } from './binanceoptions';
|
|
6
5
|
import { BitfinexBookChangeMapper, BitfinexDerivativeTickerMapper, BitfinexLiquidationsMapper, BitfinexBookTickerMapper, BitfinexTradesMapper } from './bitfinex';
|
|
7
6
|
import { BitflyerBookChangeMapper } from './bitflyer';
|
|
8
7
|
import { BitgetBookChangeMapper, BitgetBookTickerMapper, BitgetDerivativeTickerMapper, BitgetTradesMapper } from './bitget';
|
|
@@ -74,7 +73,6 @@ declare const tradesMappers: {
|
|
|
74
73
|
'gate-io-futures': () => GateIOFuturesTradesMapper;
|
|
75
74
|
poloniex: (localTimestamp: Date) => PoloniexV2TradesMapper | PoloniexTradesMapper;
|
|
76
75
|
coinflex: () => Mapper<"coinflex", Trade>;
|
|
77
|
-
'binance-options': () => BinanceOptionsTradesMapper;
|
|
78
76
|
upbit: () => UpbitTradesMapper;
|
|
79
77
|
ascendex: () => AscendexTradesMapper;
|
|
80
78
|
dydx: () => DydxTradesMapper;
|
|
@@ -84,7 +82,6 @@ declare const tradesMappers: {
|
|
|
84
82
|
mango: () => SerumTradesMapper;
|
|
85
83
|
'bybit-spot': (localTimestamp: Date) => BybitV5TradesMapper | BybitSpotTradesMapper;
|
|
86
84
|
'crypto-com': () => CryptoComTradesMapper;
|
|
87
|
-
'crypto-com-derivatives': () => CryptoComTradesMapper;
|
|
88
85
|
kucoin: () => KucoinTradesMapper;
|
|
89
86
|
'kucoin-futures': () => KucoinFuturesTradesMapper;
|
|
90
87
|
bitnomial: () => Mapper<"bitnomial", Trade>;
|
|
@@ -136,7 +133,6 @@ declare const bookChangeMappers: {
|
|
|
136
133
|
'gate-io-futures': () => GateIOFuturesBookChangeMapper;
|
|
137
134
|
poloniex: (localTimestamp: Date) => PoloniexV2BookChangeMapper | PoloniexBookChangeMapper;
|
|
138
135
|
coinflex: () => Mapper<"coinflex", BookChange>;
|
|
139
|
-
'binance-options': () => BinanceOptionsBookChangeMapper;
|
|
140
136
|
upbit: () => UpbitBookChangeMapper;
|
|
141
137
|
ascendex: () => AscendexBookChangeMapper;
|
|
142
138
|
dydx: () => DydxBookChangeMapper;
|
|
@@ -145,7 +141,6 @@ declare const bookChangeMappers: {
|
|
|
145
141
|
'star-atlas': () => SerumBookChangeMapper;
|
|
146
142
|
mango: () => SerumBookChangeMapper;
|
|
147
143
|
'crypto-com': () => CryptoComBookChangeMapper;
|
|
148
|
-
'crypto-com-derivatives': () => CryptoComBookChangeMapper;
|
|
149
144
|
kucoin: (localTimestamp: Date) => KucoinBookChangeMapper;
|
|
150
145
|
'kucoin-futures': (localTimestamp: Date) => KucoinFuturesBookChangeMapper;
|
|
151
146
|
bitnomial: () => BitnomialBookChangMapper;
|
|
@@ -180,7 +175,6 @@ declare const derivativeTickersMappers: {
|
|
|
180
175
|
ascendex: () => AscendexDerivativeTickerMapper;
|
|
181
176
|
dydx: () => DydxDerivativeTickerMapper;
|
|
182
177
|
'dydx-v4': () => DydxV4DerivativeTickerMapper;
|
|
183
|
-
'crypto-com-derivatives': () => CryptoComDerivativeTickerMapper;
|
|
184
178
|
'crypto-com': () => CryptoComDerivativeTickerMapper;
|
|
185
179
|
'woo-x': () => WooxDerivativeTickerMapper;
|
|
186
180
|
'kucoin-futures': () => KucoinFuturesDerivativeTickerMapper;
|
|
@@ -191,7 +185,6 @@ declare const derivativeTickersMappers: {
|
|
|
191
185
|
declare const optionsSummaryMappers: {
|
|
192
186
|
deribit: () => DeribitOptionSummaryMapper;
|
|
193
187
|
'okex-options': (localTimestamp: Date) => OkexV5OptionSummaryMapper | OkexOptionSummaryMapper;
|
|
194
|
-
'binance-options': () => BinanceOptionSummaryMapper;
|
|
195
188
|
'huobi-dm-options': () => HuobiOptionsSummaryMapper;
|
|
196
189
|
'bybit-options': () => BybitV5OptionSummaryMapper;
|
|
197
190
|
'binance-european-options': (localTimestamp: Date) => BinanceEuropeanOptionSummaryMapper | BinanceEuropeanOptionSummaryMapperV2;
|
|
@@ -244,7 +237,6 @@ declare const bookTickersMappers: {
|
|
|
244
237
|
'gate-io-futures': () => GateIOFuturesBookTickerMapper;
|
|
245
238
|
'bybit-spot': (localTimestamp: Date) => BybitV5BookTickerMapper | BybitSpotBookTickerMapper;
|
|
246
239
|
'crypto-com': () => CryptoComBookTickerMapper;
|
|
247
|
-
'crypto-com-derivatives': () => CryptoComBookTickerMapper;
|
|
248
240
|
kucoin: () => KucoinBookTickerMapper;
|
|
249
241
|
'woo-x': () => WooxBookTickerMapper;
|
|
250
242
|
delta: () => DeltaBookTickerMapper;
|