tardis-dev 18.10.1 → 18.10.2
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/handy.d.ts +2 -3
- package/dist/handy.d.ts.map +1 -1
- package/dist/handy.js +3 -12
- package/dist/handy.js.map +1 -1
- package/dist/mappers/ascendex.js +4 -4
- package/dist/mappers/ascendex.js.map +1 -1
- package/dist/mappers/aster.js +5 -5
- package/dist/mappers/aster.js.map +1 -1
- package/dist/mappers/backpack.d.ts.map +1 -1
- package/dist/mappers/backpack.js +7 -19
- package/dist/mappers/backpack.js.map +1 -1
- package/dist/mappers/binance.js +6 -6
- package/dist/mappers/binance.js.map +1 -1
- package/dist/mappers/binancedex.js +3 -3
- package/dist/mappers/binancedex.js.map +1 -1
- package/dist/mappers/binanceeuropeanoptions.js +11 -33
- package/dist/mappers/binanceeuropeanoptions.js.map +1 -1
- package/dist/mappers/bitfinex.js +5 -9
- package/dist/mappers/bitfinex.js.map +1 -1
- package/dist/mappers/bitflyer.js +3 -3
- package/dist/mappers/bitflyer.js.map +1 -1
- package/dist/mappers/bitget.js +9 -14
- package/dist/mappers/bitget.js.map +1 -1
- package/dist/mappers/bithumb.js +2 -2
- package/dist/mappers/bithumb.js.map +1 -1
- package/dist/mappers/bitmex.js +5 -5
- package/dist/mappers/bitmex.js.map +1 -1
- package/dist/mappers/bitnomial.js +2 -2
- package/dist/mappers/bitnomial.js.map +1 -1
- package/dist/mappers/bitstamp.js +3 -3
- package/dist/mappers/bitstamp.js.map +1 -1
- package/dist/mappers/bitvavo.js +3 -3
- package/dist/mappers/bitvavo.js.map +1 -1
- package/dist/mappers/blockchaincom.js +2 -2
- package/dist/mappers/blockchaincom.js.map +1 -1
- package/dist/mappers/bullish.js +7 -7
- package/dist/mappers/bullish.js.map +1 -1
- package/dist/mappers/bybit.js +11 -11
- package/dist/mappers/bybit.js.map +1 -1
- package/dist/mappers/bybitspot.d.ts +3 -3
- package/dist/mappers/bybitspot.d.ts.map +1 -1
- package/dist/mappers/bybitspot.js +3 -3
- package/dist/mappers/bybitspot.js.map +1 -1
- package/dist/mappers/coinbase.js +3 -3
- package/dist/mappers/coinbase.js.map +1 -1
- package/dist/mappers/coinbasederivatives.js +4 -4
- package/dist/mappers/coinbasederivatives.js.map +1 -1
- package/dist/mappers/coinbaseinternational.js +8 -8
- package/dist/mappers/coinbaseinternational.js.map +1 -1
- package/dist/mappers/coinflex.js +3 -3
- package/dist/mappers/coinflex.js.map +1 -1
- package/dist/mappers/cryptocom.js +5 -8
- package/dist/mappers/cryptocom.js.map +1 -1
- package/dist/mappers/cryptofacilities.js +6 -6
- package/dist/mappers/cryptofacilities.js.map +1 -1
- package/dist/mappers/delta.js +4 -4
- package/dist/mappers/delta.js.map +1 -1
- package/dist/mappers/delta_india.js +8 -14
- package/dist/mappers/delta_india.js.map +1 -1
- package/dist/mappers/deribit.js +17 -20
- package/dist/mappers/deribit.js.map +1 -1
- package/dist/mappers/dydx.js +3 -3
- package/dist/mappers/dydx.js.map +1 -1
- package/dist/mappers/dydxv4.js +4 -4
- package/dist/mappers/dydxv4.js.map +1 -1
- package/dist/mappers/ftx.js +5 -5
- package/dist/mappers/ftx.js.map +1 -1
- package/dist/mappers/gateio.js +6 -6
- package/dist/mappers/gateio.js.map +1 -1
- package/dist/mappers/gateiofutures.js +6 -6
- package/dist/mappers/gateiofutures.js.map +1 -1
- package/dist/mappers/gemini.js +5 -5
- package/dist/mappers/gemini.js.map +1 -1
- package/dist/mappers/hitbtc.js +2 -2
- package/dist/mappers/hitbtc.js.map +1 -1
- package/dist/mappers/huobi.js +20 -27
- package/dist/mappers/huobi.js.map +1 -1
- package/dist/mappers/hyperliquid.js +5 -8
- package/dist/mappers/hyperliquid.js.map +1 -1
- package/dist/mappers/kraken.js +6 -6
- package/dist/mappers/kraken.js.map +1 -1
- package/dist/mappers/kucoin.js +3 -3
- package/dist/mappers/kucoin.js.map +1 -1
- package/dist/mappers/kucoinfutures.js +4 -4
- package/dist/mappers/kucoinfutures.js.map +1 -1
- package/dist/mappers/lighter.js +5 -5
- package/dist/mappers/lighter.js.map +1 -1
- package/dist/mappers/mapper.d.ts +3 -3
- package/dist/mappers/mexc.d.ts +4 -4
- package/dist/mappers/mexc.d.ts.map +1 -1
- package/dist/mappers/mexc.js +3 -3
- package/dist/mappers/mexc.js.map +1 -1
- package/dist/mappers/mexcfutures.d.ts +5 -5
- package/dist/mappers/mexcfutures.d.ts.map +1 -1
- package/dist/mappers/mexcfutures.js +3 -3
- package/dist/mappers/mexcfutures.js.map +1 -1
- package/dist/mappers/okex.js +19 -21
- package/dist/mappers/okex.js.map +1 -1
- package/dist/mappers/okexspreads.d.ts +3 -3
- package/dist/mappers/okexspreads.d.ts.map +1 -1
- package/dist/mappers/okexspreads.js +3 -3
- package/dist/mappers/okexspreads.js.map +1 -1
- package/dist/mappers/phemex.js +18 -12
- package/dist/mappers/phemex.js.map +1 -1
- package/dist/mappers/poloniex.js +4 -4
- package/dist/mappers/poloniex.js.map +1 -1
- package/dist/mappers/polymarket.js +3 -3
- package/dist/mappers/polymarket.js.map +1 -1
- package/dist/mappers/serum.js +3 -3
- package/dist/mappers/serum.js.map +1 -1
- package/dist/mappers/upbit.js +2 -2
- package/dist/mappers/upbit.js.map +1 -1
- package/dist/mappers/whitebit.js +8 -12
- package/dist/mappers/whitebit.js.map +1 -1
- package/dist/mappers/woox.js +10 -12
- package/dist/mappers/woox.js.map +1 -1
- package/dist/realtimefeeds/delta.d.ts.map +1 -1
- package/dist/realtimefeeds/delta.js +3 -0
- package/dist/realtimefeeds/delta.js.map +1 -1
- package/dist/realtimefeeds/ftx.d.ts.map +1 -1
- package/dist/realtimefeeds/ftx.js +5 -4
- package/dist/realtimefeeds/ftx.js.map +1 -1
- package/dist/realtimefeeds/huobi.d.ts +3 -3
- package/dist/realtimefeeds/huobi.d.ts.map +1 -1
- package/dist/realtimefeeds/huobi.js +21 -12
- package/dist/realtimefeeds/huobi.js.map +1 -1
- package/dist/realtimefeeds/phemex.d.ts.map +1 -1
- package/dist/realtimefeeds/phemex.js +1 -0
- package/dist/realtimefeeds/phemex.js.map +1 -1
- package/dist/realtimefeeds/whitebit.d.ts.map +1 -1
- package/dist/realtimefeeds/whitebit.js +9 -4
- package/dist/realtimefeeds/whitebit.js.map +1 -1
- package/package.json +1 -1
- package/src/handy.ts +5 -15
- package/src/mappers/ascendex.ts +4 -4
- package/src/mappers/aster.ts +5 -5
- package/src/mappers/backpack.ts +7 -19
- package/src/mappers/binance.ts +6 -6
- package/src/mappers/binancedex.ts +3 -3
- package/src/mappers/binanceeuropeanoptions.ts +11 -39
- package/src/mappers/bitfinex.ts +5 -9
- package/src/mappers/bitflyer.ts +3 -3
- package/src/mappers/bitget.ts +9 -14
- package/src/mappers/bithumb.ts +2 -2
- package/src/mappers/bitmex.ts +5 -5
- package/src/mappers/bitnomial.ts +2 -2
- package/src/mappers/bitstamp.ts +3 -3
- package/src/mappers/bitvavo.ts +3 -3
- package/src/mappers/blockchaincom.ts +2 -2
- package/src/mappers/bullish.ts +7 -7
- package/src/mappers/bybit.ts +11 -11
- package/src/mappers/bybitspot.ts +3 -3
- package/src/mappers/coinbase.ts +3 -3
- package/src/mappers/coinbasederivatives.ts +4 -4
- package/src/mappers/coinbaseinternational.ts +9 -9
- package/src/mappers/coinflex.ts +3 -3
- package/src/mappers/cryptocom.ts +5 -8
- package/src/mappers/cryptofacilities.ts +6 -6
- package/src/mappers/delta.ts +4 -4
- package/src/mappers/delta_india.ts +8 -14
- package/src/mappers/deribit.ts +17 -21
- package/src/mappers/dydx.ts +3 -3
- package/src/mappers/dydxv4.ts +4 -4
- package/src/mappers/ftx.ts +5 -5
- package/src/mappers/gateio.ts +6 -6
- package/src/mappers/gateiofutures.ts +6 -6
- package/src/mappers/gemini.ts +5 -5
- package/src/mappers/hitbtc.ts +2 -2
- package/src/mappers/huobi.ts +21 -29
- package/src/mappers/hyperliquid.ts +6 -9
- package/src/mappers/kraken.ts +6 -6
- package/src/mappers/kucoin.ts +3 -3
- package/src/mappers/kucoinfutures.ts +4 -4
- package/src/mappers/lighter.ts +5 -5
- package/src/mappers/mapper.ts +3 -3
- package/src/mappers/mexc.ts +3 -3
- package/src/mappers/mexcfutures.ts +3 -3
- package/src/mappers/okex.ts +19 -25
- package/src/mappers/okexspreads.ts +3 -3
- package/src/mappers/phemex.ts +18 -12
- package/src/mappers/poloniex.ts +4 -4
- package/src/mappers/polymarket.ts +3 -3
- package/src/mappers/serum.ts +3 -3
- package/src/mappers/upbit.ts +2 -2
- package/src/mappers/whitebit.ts +8 -14
- package/src/mappers/woox.ts +10 -13
- package/src/realtimefeeds/delta.ts +4 -0
- package/src/realtimefeeds/ftx.ts +6 -4
- package/src/realtimefeeds/huobi.ts +27 -12
- package/src/realtimefeeds/phemex.ts +1 -0
- package/src/realtimefeeds/whitebit.ts +9 -4
package/src/mappers/bybit.ts
CHANGED
|
@@ -66,7 +66,7 @@ class BybitV5TradesMapper implements Mapper<'bybit' | 'bybit-spot' | 'bybit-opti
|
|
|
66
66
|
return message.topic.startsWith('publicTrade.')
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
getFilters(symbols
|
|
69
|
+
getFilters(symbols: string[] = []) {
|
|
70
70
|
symbols = upperCaseSymbols(symbols)
|
|
71
71
|
|
|
72
72
|
return [
|
|
@@ -111,7 +111,7 @@ class BybitV5BookChangeMapper implements Mapper<'bybit' | 'bybit-spot' | 'bybit-
|
|
|
111
111
|
return message.topic.startsWith(`orderbook.${this._depth}.`)
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
getFilters(symbols
|
|
114
|
+
getFilters(symbols: string[] = []) {
|
|
115
115
|
symbols = upperCaseSymbols(symbols)
|
|
116
116
|
return [
|
|
117
117
|
{
|
|
@@ -158,7 +158,7 @@ class BybitV5BookTickerMapper implements Mapper<'bybit' | 'bybit-spot', BookTick
|
|
|
158
158
|
return message.topic.startsWith(`orderbook.1.`)
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
getFilters(symbols
|
|
161
|
+
getFilters(symbols: string[] = []) {
|
|
162
162
|
symbols = upperCaseSymbols(symbols)
|
|
163
163
|
return [
|
|
164
164
|
{
|
|
@@ -220,7 +220,7 @@ class BybitV5DerivativeTickerMapper implements Mapper<'bybit', DerivativeTicker>
|
|
|
220
220
|
return message.topic.startsWith('tickers.')
|
|
221
221
|
}
|
|
222
222
|
|
|
223
|
-
getFilters(symbols
|
|
223
|
+
getFilters(symbols: string[] = []) {
|
|
224
224
|
symbols = upperCaseSymbols(symbols)
|
|
225
225
|
|
|
226
226
|
return [
|
|
@@ -278,7 +278,7 @@ class BybitV5LiquidationsMapper implements Mapper<'bybit', Liquidation> {
|
|
|
278
278
|
return message.topic.startsWith('liquidation.')
|
|
279
279
|
}
|
|
280
280
|
|
|
281
|
-
getFilters(symbols
|
|
281
|
+
getFilters(symbols: string[] = []) {
|
|
282
282
|
symbols = upperCaseSymbols(symbols)
|
|
283
283
|
|
|
284
284
|
return [
|
|
@@ -319,7 +319,7 @@ class BybitV5AllLiquidationsMapper implements Mapper<'bybit', Liquidation> {
|
|
|
319
319
|
return message.topic.startsWith('allLiquidation.')
|
|
320
320
|
}
|
|
321
321
|
|
|
322
|
-
getFilters(symbols
|
|
322
|
+
getFilters(symbols: string[] = []) {
|
|
323
323
|
symbols = upperCaseSymbols(symbols)
|
|
324
324
|
|
|
325
325
|
return [
|
|
@@ -358,7 +358,7 @@ class BybitV5OptionSummaryMapper implements Mapper<'bybit-options', OptionSummar
|
|
|
358
358
|
return message.topic.startsWith('tickers.')
|
|
359
359
|
}
|
|
360
360
|
|
|
361
|
-
getFilters(symbols
|
|
361
|
+
getFilters(symbols: string[] = []) {
|
|
362
362
|
symbols = upperCaseSymbols(symbols)
|
|
363
363
|
|
|
364
364
|
return [
|
|
@@ -429,7 +429,7 @@ class BybitTradesMapper implements Mapper<'bybit', Trade> {
|
|
|
429
429
|
return message.topic.startsWith('trade.')
|
|
430
430
|
}
|
|
431
431
|
|
|
432
|
-
getFilters(symbols
|
|
432
|
+
getFilters(symbols: string[] = []) {
|
|
433
433
|
symbols = upperCaseSymbols(symbols)
|
|
434
434
|
|
|
435
435
|
return [
|
|
@@ -486,7 +486,7 @@ class BybitBookChangeMapper implements Mapper<'bybit', BookChange> {
|
|
|
486
486
|
}
|
|
487
487
|
}
|
|
488
488
|
|
|
489
|
-
getFilters(symbols
|
|
489
|
+
getFilters(symbols: string[] = []) {
|
|
490
490
|
symbols = upperCaseSymbols(symbols)
|
|
491
491
|
|
|
492
492
|
if (this._canUseBook200Channel) {
|
|
@@ -550,7 +550,7 @@ class BybitDerivativeTickerMapper implements Mapper<'bybit', DerivativeTicker> {
|
|
|
550
550
|
return message.topic.startsWith('instrument_info.')
|
|
551
551
|
}
|
|
552
552
|
|
|
553
|
-
getFilters(symbols
|
|
553
|
+
getFilters(symbols: string[] = []) {
|
|
554
554
|
symbols = upperCaseSymbols(symbols)
|
|
555
555
|
|
|
556
556
|
return [
|
|
@@ -647,7 +647,7 @@ class BybitLiquidationsMapper implements Mapper<'bybit', Liquidation> {
|
|
|
647
647
|
return message.topic.startsWith('liquidation.')
|
|
648
648
|
}
|
|
649
649
|
|
|
650
|
-
getFilters(symbols
|
|
650
|
+
getFilters(symbols: string[] = []) {
|
|
651
651
|
symbols = upperCaseSymbols(symbols)
|
|
652
652
|
|
|
653
653
|
return [
|
package/src/mappers/bybitspot.ts
CHANGED
|
@@ -8,7 +8,7 @@ export class BybitSpotTradesMapper implements Mapper<'bybit-spot', Trade> {
|
|
|
8
8
|
return message.topic === 'trade' && message.data !== undefined
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
getFilters(symbols
|
|
11
|
+
getFilters(symbols: string[] = []) {
|
|
12
12
|
symbols = upperCaseSymbols(symbols)
|
|
13
13
|
|
|
14
14
|
return [
|
|
@@ -42,7 +42,7 @@ export class BybitSpotBookChangeMapper implements Mapper<'bybit-spot', BookChang
|
|
|
42
42
|
return message.topic === 'depth' && message.data !== undefined
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
getFilters(symbols
|
|
45
|
+
getFilters(symbols: string[] = []) {
|
|
46
46
|
symbols = upperCaseSymbols(symbols)
|
|
47
47
|
return [
|
|
48
48
|
{
|
|
@@ -77,7 +77,7 @@ export class BybitSpotBookTickerMapper implements Mapper<'bybit-spot', BookTicke
|
|
|
77
77
|
return message.topic === 'bookTicker' && message.data !== undefined
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
getFilters(symbols
|
|
80
|
+
getFilters(symbols: string[] = []) {
|
|
81
81
|
symbols = upperCaseSymbols(symbols)
|
|
82
82
|
return [
|
|
83
83
|
{
|
package/src/mappers/coinbase.ts
CHANGED
|
@@ -18,7 +18,7 @@ const coinbaseTradesMapper: Mapper<'coinbase', Trade> = {
|
|
|
18
18
|
return message.type === 'match'
|
|
19
19
|
},
|
|
20
20
|
|
|
21
|
-
getFilters(symbols
|
|
21
|
+
getFilters(symbols: string[] = []) {
|
|
22
22
|
symbols = upperCaseSymbols(symbols)
|
|
23
23
|
|
|
24
24
|
return [
|
|
@@ -79,7 +79,7 @@ class CoinbaseBookChangMapper implements Mapper<'coinbase', BookChange> {
|
|
|
79
79
|
return message.type === 'l2update' || message.type === 'snapshot'
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
getFilters(symbols
|
|
82
|
+
getFilters(symbols: string[] = []) {
|
|
83
83
|
symbols = upperCaseSymbols(symbols)
|
|
84
84
|
|
|
85
85
|
return [
|
|
@@ -163,7 +163,7 @@ const coinbaseBookTickerMapper: Mapper<'coinbase', BookTicker> = {
|
|
|
163
163
|
return message.type === 'ticker'
|
|
164
164
|
},
|
|
165
165
|
|
|
166
|
-
getFilters(symbols
|
|
166
|
+
getFilters(symbols: string[] = []) {
|
|
167
167
|
symbols = upperCaseSymbols(symbols)
|
|
168
168
|
|
|
169
169
|
return [
|
|
@@ -20,7 +20,7 @@ class CoinbaseDerivativesTradesMapper implements Mapper<'coinbase-derivatives',
|
|
|
20
20
|
return message.channel === 'market_trades'
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
getFilters(symbols
|
|
23
|
+
getFilters(symbols: string[] = []) {
|
|
24
24
|
return [{ channel: 'market_trades', symbols: upperCaseSymbols(symbols) } as const]
|
|
25
25
|
}
|
|
26
26
|
|
|
@@ -60,7 +60,7 @@ class CoinbaseDerivativesBookChangeMapper implements Mapper<'coinbase-derivative
|
|
|
60
60
|
return message.channel === 'l2_data'
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
getFilters(symbols
|
|
63
|
+
getFilters(symbols: string[] = []) {
|
|
64
64
|
return [{ channel: 'l2_data', symbols: upperCaseSymbols(symbols) } as const]
|
|
65
65
|
}
|
|
66
66
|
|
|
@@ -94,7 +94,7 @@ class CoinbaseDerivativesBookTickerMapper implements Mapper<'coinbase-derivative
|
|
|
94
94
|
return message.channel === 'ticker'
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
getFilters(symbols
|
|
97
|
+
getFilters(symbols: string[] = []) {
|
|
98
98
|
return [{ channel: 'ticker', symbols: upperCaseSymbols(symbols) } as const]
|
|
99
99
|
}
|
|
100
100
|
|
|
@@ -130,7 +130,7 @@ class CoinbaseDerivativesTickerMapper implements Mapper<'coinbase-derivatives',
|
|
|
130
130
|
return message.channel === 'products' || message.channel === 'ticker'
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
getFilters(symbols
|
|
133
|
+
getFilters(symbols: string[] = []) {
|
|
134
134
|
return [
|
|
135
135
|
{ channel: 'products', symbols: upperCaseSymbols(symbols) } as const,
|
|
136
136
|
{ channel: 'ticker', symbols: upperCaseSymbols(symbols) } as const
|
|
@@ -17,7 +17,7 @@ const coinbaseInternationalTradesMapper: Mapper<'coinbase-international', Trade>
|
|
|
17
17
|
return message.channel === 'MATCH' && message.type === 'UPDATE'
|
|
18
18
|
},
|
|
19
19
|
|
|
20
|
-
getFilters(symbols
|
|
20
|
+
getFilters(symbols: string[] = []) {
|
|
21
21
|
symbols = upperCaseSymbols(symbols)
|
|
22
22
|
|
|
23
23
|
return [
|
|
@@ -73,7 +73,7 @@ class CoinbaseInternationalBookChangMapper implements Mapper<'coinbase-internati
|
|
|
73
73
|
return message.channel === 'LEVEL2' && (message.type === 'SNAPSHOT' || message.type === 'UPDATE')
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
getFilters(symbols
|
|
76
|
+
getFilters(symbols: string[] = []) {
|
|
77
77
|
symbols = upperCaseSymbols(symbols)
|
|
78
78
|
|
|
79
79
|
return [
|
|
@@ -131,7 +131,7 @@ const coinbaseInternationalBookTickerMapper: Mapper<'coinbase-international', Bo
|
|
|
131
131
|
return message.channel === 'LEVEL1' && (message.type === 'SNAPSHOT' || message.type === 'UPDATE')
|
|
132
132
|
},
|
|
133
133
|
|
|
134
|
-
getFilters(symbols
|
|
134
|
+
getFilters(symbols: string[] = []) {
|
|
135
135
|
symbols = upperCaseSymbols(symbols)
|
|
136
136
|
|
|
137
137
|
return [
|
|
@@ -167,11 +167,6 @@ class CoinbaseInternationalDerivativeTickerMapper implements Mapper<'coinbase-in
|
|
|
167
167
|
private readonly pendingTickerInfoHelper = new PendingTickerInfoHelper()
|
|
168
168
|
|
|
169
169
|
canHandle(message: CoinbaseInternationalTradeMessage | CoinbaseInternationalRiskMessage | CoinbaseInternationalFundingMessage) {
|
|
170
|
-
// perps only
|
|
171
|
-
if (message.product_id === undefined || message.product_id.endsWith('-PERP') === false) {
|
|
172
|
-
return false
|
|
173
|
-
}
|
|
174
|
-
|
|
175
170
|
if (message.channel === 'MATCH' && message.type === 'UPDATE') {
|
|
176
171
|
return true
|
|
177
172
|
}
|
|
@@ -187,7 +182,7 @@ class CoinbaseInternationalDerivativeTickerMapper implements Mapper<'coinbase-in
|
|
|
187
182
|
return false
|
|
188
183
|
}
|
|
189
184
|
|
|
190
|
-
getFilters(symbols
|
|
185
|
+
getFilters(symbols: string[] = []) {
|
|
191
186
|
symbols = upperCaseSymbols(symbols)
|
|
192
187
|
|
|
193
188
|
return [
|
|
@@ -210,6 +205,11 @@ class CoinbaseInternationalDerivativeTickerMapper implements Mapper<'coinbase-in
|
|
|
210
205
|
message: CoinbaseInternationalTradeMessage | CoinbaseInternationalRiskMessage | CoinbaseInternationalFundingMessage,
|
|
211
206
|
localTimestamp: Date
|
|
212
207
|
): IterableIterator<DerivativeTicker> {
|
|
208
|
+
// RISK, FUNDING and MATCH also carry spot products.
|
|
209
|
+
if (message.product_id === undefined || message.product_id.endsWith('-PERP') === false) {
|
|
210
|
+
return
|
|
211
|
+
}
|
|
212
|
+
|
|
213
213
|
if (message.channel === 'MATCH') {
|
|
214
214
|
const pendingTickerInfo = this.pendingTickerInfoHelper.getPendingTickerInfo(message.product_id, 'coinbase-international')
|
|
215
215
|
pendingTickerInfo.updateLastPrice(Number(message.trade_price))
|
package/src/mappers/coinflex.ts
CHANGED
|
@@ -18,7 +18,7 @@ const coinflexTradesMapper: Mapper<'coinflex', Trade> = {
|
|
|
18
18
|
return message.table === 'trade'
|
|
19
19
|
},
|
|
20
20
|
|
|
21
|
-
getFilters(symbols
|
|
21
|
+
getFilters(symbols: string[] = []) {
|
|
22
22
|
symbols = upperCaseSymbols(symbols)
|
|
23
23
|
|
|
24
24
|
return [
|
|
@@ -58,7 +58,7 @@ const coinflexBookChangeMapper: Mapper<'coinflex', BookChange> = {
|
|
|
58
58
|
return message.table === 'futures/depth'
|
|
59
59
|
},
|
|
60
60
|
|
|
61
|
-
getFilters(symbols
|
|
61
|
+
getFilters(symbols: string[] = []) {
|
|
62
62
|
symbols = upperCaseSymbols(symbols)
|
|
63
63
|
|
|
64
64
|
return [
|
|
@@ -92,7 +92,7 @@ class CoinflexDerivativeTickerMapper implements Mapper<'coinflex', DerivativeTic
|
|
|
92
92
|
return message.table === 'ticker'
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
getFilters(symbols
|
|
95
|
+
getFilters(symbols: string[] = []) {
|
|
96
96
|
symbols = upperCaseSymbols(symbols)
|
|
97
97
|
|
|
98
98
|
return [
|
package/src/mappers/cryptocom.ts
CHANGED
|
@@ -18,7 +18,7 @@ class CryptoComTradesMapper implements Mapper<'crypto-com', Trade> {
|
|
|
18
18
|
return message.result !== undefined && message.result.channel === 'trade'
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
getFilters(symbols
|
|
21
|
+
getFilters(symbols: string[] = []) {
|
|
22
22
|
symbols = upperCaseSymbols(symbols)
|
|
23
23
|
|
|
24
24
|
return [
|
|
@@ -57,7 +57,7 @@ class CryptoComBookChangeMapper implements Mapper<'crypto-com', BookChange> {
|
|
|
57
57
|
return message.result !== undefined && message.result.channel.startsWith('book')
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
getFilters(symbols
|
|
60
|
+
getFilters(symbols: string[] = []) {
|
|
61
61
|
symbols = upperCaseSymbols(symbols)
|
|
62
62
|
return [
|
|
63
63
|
{
|
|
@@ -99,7 +99,7 @@ class CryptoComBookTickerMapper implements Mapper<'crypto-com', BookTicker> {
|
|
|
99
99
|
return message.result !== undefined && message.result.channel === 'ticker'
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
getFilters(symbols
|
|
102
|
+
getFilters(symbols: string[] = []) {
|
|
103
103
|
symbols = upperCaseSymbols(symbols)
|
|
104
104
|
return [
|
|
105
105
|
{
|
|
@@ -161,13 +161,10 @@ class CryptoComDerivativeTickerMapper implements Mapper<'crypto-com', Derivative
|
|
|
161
161
|
)
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
-
getFilters(symbols
|
|
164
|
+
getFilters(symbols: string[] = []) {
|
|
165
165
|
symbols = upperCaseSymbols(symbols)
|
|
166
166
|
|
|
167
|
-
|
|
168
|
-
if (symbols !== undefined) {
|
|
169
|
-
indexes = [...new Set(symbols.map((s) => `${s.split('-')[0]}-INDEX`))]
|
|
170
|
-
}
|
|
167
|
+
const indexes = [...new Set(symbols.map((s) => `${s.split('-')[0]}-INDEX`))]
|
|
171
168
|
const filters = [
|
|
172
169
|
{
|
|
173
170
|
channel: 'ticker',
|
|
@@ -29,7 +29,7 @@ const cryptofacilitiesTradesMapper: Mapper<'cryptofacilities', Trade> = {
|
|
|
29
29
|
return message.feed === 'trade' && message.event === undefined
|
|
30
30
|
},
|
|
31
31
|
|
|
32
|
-
getFilters(symbols
|
|
32
|
+
getFilters(symbols: string[] = []) {
|
|
33
33
|
symbols = upperCaseSymbols(symbols)
|
|
34
34
|
|
|
35
35
|
return [
|
|
@@ -64,7 +64,7 @@ const cryptofacilitiesBookChangeMapper: Mapper<'cryptofacilities', BookChange> =
|
|
|
64
64
|
return message.event === undefined && (message.feed === 'book' || message.feed === 'book_snapshot')
|
|
65
65
|
},
|
|
66
66
|
|
|
67
|
-
getFilters(symbols
|
|
67
|
+
getFilters(symbols: string[] = []) {
|
|
68
68
|
symbols = upperCaseSymbols(symbols)
|
|
69
69
|
|
|
70
70
|
return [
|
|
@@ -126,7 +126,7 @@ class CryptofacilitiesDerivativeTickerMapper implements Mapper<'cryptofacilities
|
|
|
126
126
|
return message.feed === 'ticker' && message.event === undefined && message.product_id.startsWith('OF_') === false
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
-
getFilters(symbols
|
|
129
|
+
getFilters(symbols: string[] = []) {
|
|
130
130
|
symbols = upperCaseSymbols(symbols)
|
|
131
131
|
|
|
132
132
|
return [
|
|
@@ -171,7 +171,7 @@ class CryptofacilitiesOptionsSummaryMapper implements Mapper<'cryptofacilities',
|
|
|
171
171
|
return message.feed === 'ticker' && message.event === undefined && message.product_id.startsWith('OF_')
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
-
getFilters(symbols
|
|
174
|
+
getFilters(symbols: string[] = []) {
|
|
175
175
|
return [
|
|
176
176
|
{
|
|
177
177
|
channel: 'ticker',
|
|
@@ -226,7 +226,7 @@ const cryptofacilitiesLiquidationsMapper: Mapper<'cryptofacilities', Liquidation
|
|
|
226
226
|
return message.feed === 'trade' && message.event === undefined && message.type === 'liquidation'
|
|
227
227
|
},
|
|
228
228
|
|
|
229
|
-
getFilters(symbols
|
|
229
|
+
getFilters(symbols: string[] = []) {
|
|
230
230
|
symbols = upperCaseSymbols(symbols)
|
|
231
231
|
|
|
232
232
|
return [
|
|
@@ -258,7 +258,7 @@ class CryptofacilitiesBookTickerMapper implements Mapper<'cryptofacilities', Boo
|
|
|
258
258
|
return message.feed === 'ticker' && message.event === undefined && message.product_id.startsWith('OF_') === false
|
|
259
259
|
}
|
|
260
260
|
|
|
261
|
-
getFilters(symbols
|
|
261
|
+
getFilters(symbols: string[] = []) {
|
|
262
262
|
return [
|
|
263
263
|
{
|
|
264
264
|
channel: 'ticker',
|
package/src/mappers/delta.ts
CHANGED
|
@@ -35,7 +35,7 @@ class DeltaTradesMapper implements Mapper<'delta', Trade> {
|
|
|
35
35
|
return message.type === (this._useV2Channels ? 'all_trades' : 'recent_trade')
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
getFilters(symbols
|
|
38
|
+
getFilters(symbols: string[] = []) {
|
|
39
39
|
symbols = upperCaseSymbols(symbols)
|
|
40
40
|
|
|
41
41
|
return [
|
|
@@ -89,7 +89,7 @@ class DeltaBookChangeMapper implements Mapper<'delta', BookChange> {
|
|
|
89
89
|
return message.type === 'l2_orderbook'
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
getFilters(symbols
|
|
92
|
+
getFilters(symbols: string[] = []) {
|
|
93
93
|
symbols = upperCaseSymbols(symbols)
|
|
94
94
|
|
|
95
95
|
if (this._useL2UpdatesChannel) {
|
|
@@ -156,7 +156,7 @@ class DeltaDerivativeTickerMapper implements Mapper<'delta', DerivativeTicker> {
|
|
|
156
156
|
)
|
|
157
157
|
}
|
|
158
158
|
|
|
159
|
-
getFilters(symbols
|
|
159
|
+
getFilters(symbols: string[] = []) {
|
|
160
160
|
symbols = upperCaseSymbols(symbols)
|
|
161
161
|
|
|
162
162
|
return [
|
|
@@ -212,7 +212,7 @@ class DeltaBookTickerMapper implements Mapper<'delta', BookTicker> {
|
|
|
212
212
|
return message.type === 'l1_orderbook'
|
|
213
213
|
}
|
|
214
214
|
|
|
215
|
-
getFilters(symbols
|
|
215
|
+
getFilters(symbols: string[] = []) {
|
|
216
216
|
symbols = upperCaseSymbols(symbols)
|
|
217
217
|
|
|
218
218
|
return [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { asNonZeroNumberOrUndefined, asNumberOrUndefined, fromMicroSecondsToDate,
|
|
1
|
+
import { asNonZeroNumberOrUndefined, asNumberOrUndefined, fromMicroSecondsToDate, upperCaseSymbols } from '../handy.ts'
|
|
2
2
|
import type { BookChange, BookTicker, DerivativeTicker, OptionSummary, Trade } from '../types.ts'
|
|
3
3
|
import { type Mapper, PendingTickerInfoHelper } from './mapper.ts'
|
|
4
4
|
import { exchangeMappers } from './registry.ts'
|
|
@@ -18,7 +18,7 @@ class DeltaIndiaTradesMapper implements Mapper<'delta-india', Trade> {
|
|
|
18
18
|
return message.type === 'trades'
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
getFilters(symbols
|
|
21
|
+
getFilters(symbols: string[] = []) {
|
|
22
22
|
return [{ channel: 'trades', symbols: upperCaseSymbols(symbols) } as const]
|
|
23
23
|
}
|
|
24
24
|
|
|
@@ -44,7 +44,7 @@ class DeltaIndiaBookChangeMapper implements Mapper<'delta-india', BookChange> {
|
|
|
44
44
|
return message.type === 'ob_updates' && (message.action === 'snapshot' || message.action === 'update')
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
getFilters(symbols
|
|
47
|
+
getFilters(symbols: string[] = []) {
|
|
48
48
|
return [{ channel: 'ob_updates', symbols: upperCaseSymbols(symbols) } as const]
|
|
49
49
|
}
|
|
50
50
|
|
|
@@ -79,7 +79,7 @@ class DeltaIndiaBookTickerMapper implements Mapper<'delta-india', BookTicker> {
|
|
|
79
79
|
return message.type === 'ob_l1'
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
getFilters(symbols
|
|
82
|
+
getFilters(symbols: string[] = []) {
|
|
83
83
|
return [{ channel: 'ob_l1', symbols: upperCaseSymbols(symbols) } as const]
|
|
84
84
|
}
|
|
85
85
|
|
|
@@ -105,18 +105,12 @@ class DeltaIndiaDerivativeTickerMapper implements Mapper<'delta-india', Derivati
|
|
|
105
105
|
return message.type === 'ticker' || message.type === 'mark_price' || message.type === 'funding_rate'
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
getFilters(symbols
|
|
108
|
+
getFilters(symbols: string[] = []) {
|
|
109
109
|
symbols = upperCaseSymbols(symbols)
|
|
110
|
-
const markPriceSymbols = symbols?.filter(isDerivative).map((symbol) => `MARK:${symbol}`) ?? []
|
|
111
|
-
const perpetualSymbols = symbols?.filter((symbol) => !symbol.includes('-') && !symbol.includes('_')) ?? []
|
|
112
110
|
return [
|
|
113
111
|
{ channel: 'ticker', symbols } as const,
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
: []),
|
|
117
|
-
...(isNullOrEmptyArray(symbols) || perpetualSymbols.length > 0
|
|
118
|
-
? [{ channel: 'funding_rate', symbols: perpetualSymbols } as const]
|
|
119
|
-
: [])
|
|
112
|
+
{ channel: 'mark_price', symbols: symbols.map((symbol) => `MARK:${symbol}`) } as const,
|
|
113
|
+
{ channel: 'funding_rate', symbols } as const
|
|
120
114
|
]
|
|
121
115
|
}
|
|
122
116
|
|
|
@@ -169,7 +163,7 @@ class DeltaIndiaOptionSummaryMapper implements Mapper<'delta-india', OptionSumma
|
|
|
169
163
|
return message.type === 'ticker'
|
|
170
164
|
}
|
|
171
165
|
|
|
172
|
-
getFilters(symbols
|
|
166
|
+
getFilters(symbols: string[] = []) {
|
|
173
167
|
return [{ channel: 'ticker', symbols: upperCaseSymbols(symbols) } as const]
|
|
174
168
|
}
|
|
175
169
|
|
package/src/mappers/deribit.ts
CHANGED
|
@@ -16,24 +16,20 @@ export const deribitMappers = exchangeMappers({
|
|
|
16
16
|
}
|
|
17
17
|
})
|
|
18
18
|
|
|
19
|
-
function deribitCasing(symbols
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
return parts.join('-')
|
|
27
|
-
} else {
|
|
28
|
-
return symbol.toUpperCase()
|
|
29
|
-
}
|
|
19
|
+
function deribitCasing(symbols: string[]) {
|
|
20
|
+
return symbols.map((symbol) => {
|
|
21
|
+
if (symbol.endsWith('-C') || symbol.endsWith('-P')) {
|
|
22
|
+
const parts = symbol.split('-')
|
|
23
|
+
if (parts[2] !== undefined && parts[2].toUpperCase().includes('D')) {
|
|
24
|
+
parts[2] = parts[2].replace('D', 'd')
|
|
25
|
+
return parts.join('-')
|
|
30
26
|
} else {
|
|
31
27
|
return symbol.toUpperCase()
|
|
32
28
|
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
29
|
+
} else {
|
|
30
|
+
return symbol.toUpperCase()
|
|
31
|
+
}
|
|
32
|
+
})
|
|
37
33
|
}
|
|
38
34
|
|
|
39
35
|
const deribitTradesMapper: Mapper<'deribit', Trade> = {
|
|
@@ -46,7 +42,7 @@ const deribitTradesMapper: Mapper<'deribit', Trade> = {
|
|
|
46
42
|
return channel.startsWith('trades')
|
|
47
43
|
},
|
|
48
44
|
|
|
49
|
-
getFilters(symbols
|
|
45
|
+
getFilters(symbols: string[] = []) {
|
|
50
46
|
symbols = deribitCasing(symbols)
|
|
51
47
|
|
|
52
48
|
return [
|
|
@@ -93,7 +89,7 @@ class DeribitBookChangeMapper implements Mapper<'deribit', BookChange> {
|
|
|
93
89
|
return channel.startsWith('book')
|
|
94
90
|
}
|
|
95
91
|
|
|
96
|
-
getFilters(symbols
|
|
92
|
+
getFilters(symbols: string[] = []) {
|
|
97
93
|
symbols = deribitCasing(symbols)
|
|
98
94
|
|
|
99
95
|
return [
|
|
@@ -147,7 +143,7 @@ class DeribitDerivativeTickerMapper implements Mapper<'deribit', DerivativeTicke
|
|
|
147
143
|
return channel.startsWith('ticker') && (message.params.data.greeks === undefined || message.params.data.combo_state === 'active')
|
|
148
144
|
}
|
|
149
145
|
|
|
150
|
-
getFilters(symbols
|
|
146
|
+
getFilters(symbols: string[] = []) {
|
|
151
147
|
symbols = deribitCasing(symbols)
|
|
152
148
|
|
|
153
149
|
return [
|
|
@@ -176,7 +172,7 @@ class DeribitDerivativeTickerMapper implements Mapper<'deribit', DerivativeTicke
|
|
|
176
172
|
}
|
|
177
173
|
|
|
178
174
|
class DeribitOptionSummaryMapper implements Mapper<'deribit', OptionSummary> {
|
|
179
|
-
getFilters(symbols
|
|
175
|
+
getFilters(symbols: string[] = []) {
|
|
180
176
|
symbols = deribitCasing(symbols)
|
|
181
177
|
|
|
182
178
|
return [
|
|
@@ -265,7 +261,7 @@ const deribitLiquidationsMapper: Mapper<'deribit', Liquidation> = {
|
|
|
265
261
|
return channel.startsWith('trades')
|
|
266
262
|
},
|
|
267
263
|
|
|
268
|
-
getFilters(symbols
|
|
264
|
+
getFilters(symbols: string[] = []) {
|
|
269
265
|
symbols = deribitCasing(symbols)
|
|
270
266
|
|
|
271
267
|
return [
|
|
@@ -313,7 +309,7 @@ const deribitBookTickerMapper: Mapper<'deribit', BookTicker> = {
|
|
|
313
309
|
return channel.startsWith('ticker')
|
|
314
310
|
},
|
|
315
311
|
|
|
316
|
-
getFilters(symbols
|
|
312
|
+
getFilters(symbols: string[] = []) {
|
|
317
313
|
symbols = deribitCasing(symbols)
|
|
318
314
|
|
|
319
315
|
return [
|
package/src/mappers/dydx.ts
CHANGED
|
@@ -16,7 +16,7 @@ class DydxTradesMapper implements Mapper<'dydx', Trade> {
|
|
|
16
16
|
return message.channel === 'v3_trades' && message.type === 'channel_data'
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
getFilters(symbols
|
|
19
|
+
getFilters(symbols: string[] = []) {
|
|
20
20
|
symbols = upperCaseSymbols(symbols)
|
|
21
21
|
|
|
22
22
|
return [
|
|
@@ -52,7 +52,7 @@ class DydxBookChangeMapper implements Mapper<'dydx', BookChange> {
|
|
|
52
52
|
return message.channel === 'v3_orderbook'
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
getFilters(symbols
|
|
55
|
+
getFilters(symbols: string[] = []) {
|
|
56
56
|
symbols = upperCaseSymbols(symbols)
|
|
57
57
|
|
|
58
58
|
return [
|
|
@@ -164,7 +164,7 @@ class DydxDerivativeTickerMapper implements Mapper<'dydx', DerivativeTicker> {
|
|
|
164
164
|
return message.channel === 'v3_markets' || (message.channel === 'v3_trades' && message.type === 'channel_data')
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
-
getFilters(symbols
|
|
167
|
+
getFilters(symbols: string[] = []) {
|
|
168
168
|
symbols = upperCaseSymbols(symbols)
|
|
169
169
|
|
|
170
170
|
return [
|
package/src/mappers/dydxv4.ts
CHANGED
|
@@ -17,7 +17,7 @@ class DydxV4TradesMapper implements Mapper<'dydx-v4', Trade> {
|
|
|
17
17
|
return message.channel === 'v4_trades' && message.type === 'channel_data'
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
getFilters(symbols
|
|
20
|
+
getFilters(symbols: string[] = []) {
|
|
21
21
|
symbols = upperCaseSymbols(symbols)
|
|
22
22
|
|
|
23
23
|
return [
|
|
@@ -63,7 +63,7 @@ class DydxV4BookChangeMapper implements Mapper<'dydx-v4', BookChange> {
|
|
|
63
63
|
return message.channel === 'v4_orderbook'
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
getFilters(symbols
|
|
66
|
+
getFilters(symbols: string[] = []) {
|
|
67
67
|
symbols = upperCaseSymbols(symbols)
|
|
68
68
|
|
|
69
69
|
return [
|
|
@@ -118,7 +118,7 @@ class DydxV4DerivativeTickerMapper implements Mapper<'dydx-v4', DerivativeTicker
|
|
|
118
118
|
return message.channel === 'v4_markets' || (message.channel === 'v4_trades' && message.type === 'channel_data')
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
getFilters(symbols
|
|
121
|
+
getFilters(symbols: string[] = []) {
|
|
122
122
|
symbols = upperCaseSymbols(symbols)
|
|
123
123
|
|
|
124
124
|
return [
|
|
@@ -209,7 +209,7 @@ class DydxV4LiquidationsMapper implements Mapper<'dydx-v4', Liquidation> {
|
|
|
209
209
|
return message.channel === 'v4_trades' && message.type === 'channel_data'
|
|
210
210
|
}
|
|
211
211
|
|
|
212
|
-
getFilters(symbols
|
|
212
|
+
getFilters(symbols: string[] = []) {
|
|
213
213
|
symbols = upperCaseSymbols(symbols)
|
|
214
214
|
|
|
215
215
|
return [
|
package/src/mappers/ftx.ts
CHANGED
|
@@ -31,7 +31,7 @@ class FTXTradesMapper implements Mapper<'ftx' | 'ftx-us', Trade> {
|
|
|
31
31
|
return message.channel === 'trades'
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
getFilters(symbols
|
|
34
|
+
getFilters(symbols: string[] = []) {
|
|
35
35
|
symbols = upperCaseSymbols(symbols)
|
|
36
36
|
|
|
37
37
|
return [
|
|
@@ -80,7 +80,7 @@ class FTXBookChangeMapper implements Mapper<'ftx' | 'ftx-us', BookChange> {
|
|
|
80
80
|
return message.channel === 'orderbook'
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
getFilters(symbols
|
|
83
|
+
getFilters(symbols: string[] = []) {
|
|
84
84
|
symbols = upperCaseSymbols(symbols)
|
|
85
85
|
|
|
86
86
|
return [
|
|
@@ -126,7 +126,7 @@ class FTXDerivativeTickerMapper implements Mapper<'ftx', DerivativeTicker> {
|
|
|
126
126
|
return message.channel === 'instrument'
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
-
getFilters(symbols
|
|
129
|
+
getFilters(symbols: string[] = []) {
|
|
130
130
|
symbols = upperCaseSymbols(symbols)
|
|
131
131
|
|
|
132
132
|
return [
|
|
@@ -181,7 +181,7 @@ class FTXLiquidationsMapper implements Mapper<'ftx', Liquidation> {
|
|
|
181
181
|
return message.channel === 'trades'
|
|
182
182
|
}
|
|
183
183
|
|
|
184
|
-
getFilters(symbols
|
|
184
|
+
getFilters(symbols: string[] = []) {
|
|
185
185
|
symbols = upperCaseSymbols(symbols)
|
|
186
186
|
|
|
187
187
|
return [
|
|
@@ -225,7 +225,7 @@ class FTXBookTickerMapper implements Mapper<'ftx' | 'ftx-us', BookTicker> {
|
|
|
225
225
|
return message.channel === 'ticker'
|
|
226
226
|
}
|
|
227
227
|
|
|
228
|
-
getFilters(symbols
|
|
228
|
+
getFilters(symbols: string[] = []) {
|
|
229
229
|
symbols = upperCaseSymbols(symbols)
|
|
230
230
|
|
|
231
231
|
return [
|