tardis-dev 13.4.10 → 13.4.13

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.
Files changed (87) hide show
  1. package/dist/consts.d.ts +6 -2
  2. package/dist/consts.d.ts.map +1 -1
  3. package/dist/consts.js +26 -3
  4. package/dist/consts.js.map +1 -1
  5. package/dist/mappers/bybit.d.ts +1 -1
  6. package/dist/mappers/bybitspot.d.ts +96 -0
  7. package/dist/mappers/bybitspot.d.ts.map +1 -0
  8. package/dist/mappers/bybitspot.js +102 -0
  9. package/dist/mappers/bybitspot.js.map +1 -0
  10. package/dist/mappers/cryptocom.d.ts +257 -0
  11. package/dist/mappers/cryptocom.d.ts.map +1 -0
  12. package/dist/mappers/cryptocom.js +193 -0
  13. package/dist/mappers/cryptocom.js.map +1 -0
  14. package/dist/mappers/huobi.d.ts +3 -3
  15. package/dist/mappers/index.d.ts +4 -4
  16. package/dist/mappers/index.d.ts.map +1 -1
  17. package/dist/mappers/index.js +25 -6
  18. package/dist/mappers/index.js.map +1 -1
  19. package/dist/mappers/poloniex.d.ts +60 -0
  20. package/dist/mappers/poloniex.d.ts.map +1 -1
  21. package/dist/mappers/poloniex.js +73 -2
  22. package/dist/mappers/poloniex.js.map +1 -1
  23. package/dist/mappers/serum.d.ts +12 -0
  24. package/dist/mappers/serum.d.ts.map +1 -1
  25. package/dist/mappers/serum.js +2 -2
  26. package/dist/mappers/serum.js.map +1 -1
  27. package/dist/realtimefeeds/ascendex.d.ts +2 -0
  28. package/dist/realtimefeeds/ascendex.d.ts.map +1 -1
  29. package/dist/realtimefeeds/ascendex.js +6 -0
  30. package/dist/realtimefeeds/ascendex.js.map +1 -1
  31. package/dist/realtimefeeds/bybit.d.ts +2 -0
  32. package/dist/realtimefeeds/bybit.d.ts.map +1 -1
  33. package/dist/realtimefeeds/bybit.js +6 -0
  34. package/dist/realtimefeeds/bybit.js.map +1 -1
  35. package/dist/realtimefeeds/bybitspot.d.ts +10 -0
  36. package/dist/realtimefeeds/bybitspot.d.ts.map +1 -0
  37. package/dist/realtimefeeds/bybitspot.js +40 -0
  38. package/dist/realtimefeeds/bybitspot.js.map +1 -0
  39. package/dist/realtimefeeds/cryptocom.d.ts +10 -0
  40. package/dist/realtimefeeds/cryptocom.d.ts.map +1 -0
  41. package/dist/realtimefeeds/cryptocom.js +49 -0
  42. package/dist/realtimefeeds/cryptocom.js.map +1 -0
  43. package/dist/realtimefeeds/cryptocomderivatives.d.ts +10 -0
  44. package/dist/realtimefeeds/cryptocomderivatives.d.ts.map +1 -0
  45. package/dist/realtimefeeds/cryptocomderivatives.js +51 -0
  46. package/dist/realtimefeeds/cryptocomderivatives.js.map +1 -0
  47. package/dist/realtimefeeds/delta.d.ts +2 -0
  48. package/dist/realtimefeeds/delta.d.ts.map +1 -1
  49. package/dist/realtimefeeds/delta.js +6 -0
  50. package/dist/realtimefeeds/delta.js.map +1 -1
  51. package/dist/realtimefeeds/ftx.d.ts +2 -0
  52. package/dist/realtimefeeds/ftx.d.ts.map +1 -1
  53. package/dist/realtimefeeds/ftx.js +6 -0
  54. package/dist/realtimefeeds/ftx.js.map +1 -1
  55. package/dist/realtimefeeds/index.d.ts.map +1 -1
  56. package/dist/realtimefeeds/index.js +9 -1
  57. package/dist/realtimefeeds/index.js.map +1 -1
  58. package/dist/realtimefeeds/mango.d.ts +5 -0
  59. package/dist/realtimefeeds/mango.d.ts.map +1 -0
  60. package/dist/realtimefeeds/mango.js +12 -0
  61. package/dist/realtimefeeds/mango.js.map +1 -0
  62. package/dist/realtimefeeds/poloniex.d.ts +6 -3
  63. package/dist/realtimefeeds/poloniex.d.ts.map +1 -1
  64. package/dist/realtimefeeds/poloniex.js +14 -9
  65. package/dist/realtimefeeds/poloniex.js.map +1 -1
  66. package/dist/realtimefeeds/realtimefeed.d.ts +1 -0
  67. package/dist/realtimefeeds/realtimefeed.d.ts.map +1 -1
  68. package/dist/realtimefeeds/realtimefeed.js +7 -1
  69. package/dist/realtimefeeds/realtimefeed.js.map +1 -1
  70. package/package.json +1 -1
  71. package/src/consts.ts +30 -3
  72. package/src/mappers/bybitspot.ts +129 -0
  73. package/src/mappers/cryptocom.ts +395 -0
  74. package/src/mappers/index.ts +30 -8
  75. package/src/mappers/poloniex.ts +134 -1
  76. package/src/mappers/serum.ts +27 -13
  77. package/src/realtimefeeds/ascendex.ts +8 -0
  78. package/src/realtimefeeds/bybit.ts +8 -0
  79. package/src/realtimefeeds/bybitspot.ts +39 -0
  80. package/src/realtimefeeds/cryptocom.ts +48 -0
  81. package/src/realtimefeeds/cryptocomderivatives.ts +50 -0
  82. package/src/realtimefeeds/delta.ts +8 -0
  83. package/src/realtimefeeds/ftx.ts +8 -0
  84. package/src/realtimefeeds/index.ts +9 -1
  85. package/src/realtimefeeds/mango.ts +5 -0
  86. package/src/realtimefeeds/poloniex.ts +16 -10
  87. package/src/realtimefeeds/realtimefeed.ts +7 -1
package/dist/consts.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare const EXCHANGES: readonly ["bitmex", "deribit", "binance-futures", "binance-delivery", "binance-options", "binance", "ftx", "okex-futures", "okex-options", "okex-swap", "okex", "huobi-dm", "huobi-dm-swap", "huobi-dm-linear-swap", "huobi", "bitfinex-derivatives", "bitfinex", "coinbase", "cryptofacilities", "kraken", "bitstamp", "gemini", "poloniex", "bybit", "phemex", "delta", "ftx-us", "binance-us", "gate-io-futures", "gate-io", "okcoin", "bitflyer", "hitbtc", "coinflex", "binance-jersey", "binance-dex", "upbit", "ascendex", "dydx", "serum", "huobi-dm-options", "star-atlas"];
1
+ export declare const EXCHANGES: readonly ["bitmex", "deribit", "binance-futures", "binance-delivery", "binance-options", "binance", "ftx", "okex-futures", "okex-options", "okex-swap", "okex", "huobi-dm", "huobi-dm-swap", "huobi-dm-linear-swap", "huobi", "bitfinex-derivatives", "bitfinex", "coinbase", "cryptofacilities", "kraken", "bitstamp", "gemini", "poloniex", "bybit", "bybit-spot", "phemex", "delta", "ftx-us", "binance-us", "gate-io-futures", "gate-io", "okcoin", "bitflyer", "hitbtc", "coinflex", "binance-jersey", "binance-dex", "upbit", "ascendex", "dydx", "serum", "mango", "huobi-dm-options", "star-atlas", "crypto-com", "crypto-com-derivatives"];
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
4
  coinbase: readonly ["match", "subscriptions", "received", "open", "done", "change", "l2update", "ticker", "snapshot", "last_match", "full_snapshot"];
@@ -27,6 +27,7 @@ export declare const EXCHANGE_CHANNELS_INFO: {
27
27
  'huobi-dm-swap': readonly ["depth", "detail", "trade", "bbo", "basis", "funding_rate", "liquidation_orders", "contract_info", "open_interest", "elite_account_ratio", "elite_position_ratio"];
28
28
  'huobi-dm-linear-swap': readonly ["depth", "detail", "trade", "bbo", "basis", "funding_rate", "liquidation_orders", "contract_info", "open_interest", "elite_account_ratio", "elite_position_ratio"];
29
29
  bybit: readonly ["trade", "instrument_info", "orderBookL2_25", "insurance", "orderBook_200", "liquidation"];
30
+ 'bybit-spot': string[];
30
31
  okcoin: readonly ["spot/trade", "spot/depth", "spot/depth_l2_tbt", "spot/ticker", "system/status"];
31
32
  hitbtc: readonly ["updateTrades", "snapshotTrades", "snapshotOrderbook", "updateOrderbook"];
32
33
  coinflex: readonly ["futures/depth", "trade", "ticker"];
@@ -34,7 +35,7 @@ export declare const EXCHANGE_CHANNELS_INFO: {
34
35
  delta: readonly ["l2_orderbook", "recent_trade", "recent_trade_snapshot", "mark_price", "spot_price", "funding_rate", "product_updates", "announcements", "all_trades", "v2/ticker"];
35
36
  'gate-io': readonly ["trades", "depth", "ticker"];
36
37
  'gate-io-futures': readonly ["trades", "order_book", "tickers", "book_ticker"];
37
- poloniex: readonly ["price_aggregated_book"];
38
+ poloniex: readonly ["price_aggregated_book", "trades", "ticker", "book_lv2"];
38
39
  'binance-options': readonly ["TRADE", "TICKER", "DEPTH100", "INDEX"];
39
40
  upbit: readonly ["trade", "orderbook", "ticker"];
40
41
  ascendex: readonly ["trades", "depth-realtime", "depth-snapshot-realtime", "bbo", "futures-pricing-data"];
@@ -42,5 +43,8 @@ export declare const EXCHANGE_CHANNELS_INFO: {
42
43
  serum: readonly ["recent_trades", "trade", "quote", "l2snapshot", "l2update", "l3snapshot", "open", "fill", "change", "done"];
43
44
  'star-atlas': readonly ["recent_trades", "trade", "quote", "l2snapshot", "l2update", "l3snapshot", "open", "fill", "change", "done"];
44
45
  'huobi-dm-options': readonly ["trade", "detail", "depth", "bbo", "open_interest", "option_market_index", "option_index"];
46
+ mango: readonly ["recent_trades", "trade", "quote", "l2snapshot", "l2update", "l3snapshot", "open", "fill", "change", "done"];
47
+ 'crypto-com': string[];
48
+ 'crypto-com-derivatives': string[];
45
49
  };
46
50
  //# sourceMappingURL=consts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../src/consts.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,sjBA2CZ,CAAA;AA4TV,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2ClC,CAAA"}
1
+ {"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../src/consts.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,qnBA+CZ,CAAA;AA+UV,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+ClC,CAAA"}
package/dist/consts.js CHANGED
@@ -26,6 +26,7 @@ exports.EXCHANGES = [
26
26
  'gemini',
27
27
  'poloniex',
28
28
  'bybit',
29
+ 'bybit-spot',
29
30
  'phemex',
30
31
  'delta',
31
32
  'ftx-us',
@@ -42,8 +43,11 @@ exports.EXCHANGES = [
42
43
  'ascendex',
43
44
  'dydx',
44
45
  'serum',
46
+ 'mango',
45
47
  'huobi-dm-options',
46
- 'star-atlas'
48
+ 'star-atlas',
49
+ 'crypto-com',
50
+ 'crypto-com-derivatives'
47
51
  ];
48
52
  const BINANCE_CHANNELS = ['trade', 'aggTrade', 'ticker', 'depth', 'depthSnapshot', 'bookTicker', 'recentTrades', 'borrowInterest'];
49
53
  const BINANCE_DEX_CHANNELS = ['trades', 'marketDiff', 'depthSnapshot', 'ticker'];
@@ -307,7 +311,7 @@ const DELTA_CHANNELS = [
307
311
  ];
308
312
  const GATE_IO_CHANNELS = ['trades', 'depth', 'ticker'];
309
313
  const GATE_IO_FUTURES_CHANNELS = ['trades', 'order_book', 'tickers', 'book_ticker'];
310
- const POLONIEX_CHANNELS = ['price_aggregated_book'];
314
+ const POLONIEX_CHANNELS = ['price_aggregated_book', 'trades', 'ticker', 'book_lv2'];
311
315
  const UPBIT_CHANNELS = ['trade', 'orderbook', 'ticker'];
312
316
  const ASCENDEX_CHANNELS = ['trades', 'depth-realtime', 'depth-snapshot-realtime', 'bbo', 'futures-pricing-data'];
313
317
  const DYDX_CHANNELS = ['v3_trades', 'v3_orderbook', 'v3_markets'];
@@ -323,7 +327,22 @@ const SERUM_CHANNELS = [
323
327
  'change',
324
328
  'done'
325
329
  ];
330
+ const MANGO_CHANNELS = [
331
+ 'recent_trades',
332
+ 'trade',
333
+ 'quote',
334
+ 'l2snapshot',
335
+ 'l2update',
336
+ 'l3snapshot',
337
+ 'open',
338
+ 'fill',
339
+ 'change',
340
+ 'done'
341
+ ];
326
342
  const HUOBI_DM_OPTIONS_CHANNELS = ['trade', 'detail', 'depth', 'bbo', 'open_interest', 'option_market_index', 'option_index'];
343
+ const BYBIT_SPOT_CHANNELS = ['trade', 'bookTicker', 'depth'];
344
+ const CRYPTO_COM_CHANNELS = ['trade', 'book', 'ticker'];
345
+ const CRYPTO_COM_DERIVATIVES = ['trade', 'book', 'ticker', 'settlement', 'index', 'mark', 'funding'];
327
346
  exports.EXCHANGE_CHANNELS_INFO = {
328
347
  bitmex: BITMEX_CHANNELS,
329
348
  coinbase: COINBASE_CHANNELS,
@@ -352,6 +371,7 @@ exports.EXCHANGE_CHANNELS_INFO = {
352
371
  'huobi-dm-swap': HUOBI_DM_SWAP_CHANNELS,
353
372
  'huobi-dm-linear-swap': HUOBI_DM_LINEAR_SWAP_CHANNELS,
354
373
  bybit: BYBIT_CHANNELS,
374
+ 'bybit-spot': BYBIT_SPOT_CHANNELS,
355
375
  okcoin: OKCOIN_CHANNELS,
356
376
  hitbtc: HITBTC_CHANNELS,
357
377
  coinflex: COINFLEX_CHANNELS,
@@ -366,6 +386,9 @@ exports.EXCHANGE_CHANNELS_INFO = {
366
386
  dydx: DYDX_CHANNELS,
367
387
  serum: SERUM_CHANNELS,
368
388
  'star-atlas': SERUM_CHANNELS,
369
- 'huobi-dm-options': HUOBI_DM_OPTIONS_CHANNELS
389
+ 'huobi-dm-options': HUOBI_DM_OPTIONS_CHANNELS,
390
+ mango: MANGO_CHANNELS,
391
+ 'crypto-com': CRYPTO_COM_CHANNELS,
392
+ 'crypto-com-derivatives': CRYPTO_COM_DERIVATIVES
370
393
  };
371
394
  //# sourceMappingURL=consts.js.map
@@ -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,iBAAiB;IACjB,SAAS;IACT,KAAK;IACL,cAAc;IACd,cAAc;IACd,WAAW;IACX,MAAM;IACN,UAAU;IACV,eAAe;IACf,sBAAsB;IACtB,OAAO;IACP,sBAAsB;IACtB,UAAU;IACV,UAAU;IACV,kBAAkB;IAClB,QAAQ;IACR,UAAU;IACV,QAAQ;IACR,UAAU;IACV,OAAO;IACP,QAAQ;IACR,OAAO;IACP,QAAQ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C7C,KAAK,EAAE,cAAc;IACrB,YAAY,EAAE,mBAAmB;IACjC,wBAAwB,EAAE,sBAAsB;CACjD,CAAA"}
@@ -25,7 +25,7 @@ export declare class BybitBookChangeMapper implements Mapper<'bybit', BookChange
25
25
  map(message: BybitBookSnapshotDataMessage | BybitBookSnapshotUpdateMessage, localTimestamp: Date): Generator<{
26
26
  readonly type: "book_change";
27
27
  readonly symbol: string;
28
- readonly exchange: "bitmex" | "deribit" | "binance-futures" | "binance-delivery" | "binance-options" | "binance" | "ftx" | "okex-futures" | "okex-options" | "okex-swap" | "okex" | "huobi-dm" | "huobi-dm-swap" | "huobi-dm-linear-swap" | "huobi" | "bitfinex-derivatives" | "bitfinex" | "coinbase" | "cryptofacilities" | "kraken" | "bitstamp" | "gemini" | "poloniex" | "bybit" | "phemex" | "delta" | "ftx-us" | "binance-us" | "gate-io-futures" | "gate-io" | "okcoin" | "bitflyer" | "hitbtc" | "coinflex" | "binance-jersey" | "binance-dex" | "upbit" | "ascendex" | "dydx" | "serum" | "huobi-dm-options" | "star-atlas";
28
+ readonly exchange: "bitmex" | "deribit" | "binance-futures" | "binance-delivery" | "binance-options" | "binance" | "ftx" | "okex-futures" | "okex-options" | "okex-swap" | "okex" | "huobi-dm" | "huobi-dm-swap" | "huobi-dm-linear-swap" | "huobi" | "bitfinex-derivatives" | "bitfinex" | "coinbase" | "cryptofacilities" | "kraken" | "bitstamp" | "gemini" | "poloniex" | "bybit" | "bybit-spot" | "phemex" | "delta" | "ftx-us" | "binance-us" | "gate-io-futures" | "gate-io" | "okcoin" | "bitflyer" | "hitbtc" | "coinflex" | "binance-jersey" | "binance-dex" | "upbit" | "ascendex" | "dydx" | "serum" | "mango" | "huobi-dm-options" | "star-atlas" | "crypto-com" | "crypto-com-derivatives";
29
29
  readonly isSnapshot: boolean;
30
30
  readonly bids: {
31
31
  price: number;
@@ -0,0 +1,96 @@
1
+ import { BookChange, Exchange, BookTicker, Trade } from '../types';
2
+ import { Mapper } from './mapper';
3
+ export declare class BybitSpotTradesMapper implements Mapper<'bybit-spot', Trade> {
4
+ private readonly _exchange;
5
+ constructor(_exchange: Exchange);
6
+ canHandle(message: BybitSpotTradeMessage): boolean;
7
+ getFilters(symbols?: string[]): {
8
+ readonly channel: "trade";
9
+ readonly symbols: string[] | undefined;
10
+ }[];
11
+ map(message: BybitSpotTradeMessage, localTimestamp: Date): IterableIterator<Trade>;
12
+ }
13
+ export declare class BybitSpotBookChangeMapper implements Mapper<'bybit-spot', BookChange> {
14
+ protected readonly _exchange: Exchange;
15
+ constructor(_exchange: Exchange);
16
+ canHandle(message: BybitSpotDepthMessage): boolean;
17
+ getFilters(symbols?: string[]): {
18
+ readonly channel: "depth";
19
+ readonly symbols: string[] | undefined;
20
+ }[];
21
+ map(message: BybitSpotDepthMessage, localTimestamp: Date): Generator<{
22
+ readonly type: "book_change";
23
+ readonly symbol: "RENUSDT";
24
+ readonly exchange: "bitmex" | "deribit" | "binance-futures" | "binance-delivery" | "binance-options" | "binance" | "ftx" | "okex-futures" | "okex-options" | "okex-swap" | "okex" | "huobi-dm" | "huobi-dm-swap" | "huobi-dm-linear-swap" | "huobi" | "bitfinex-derivatives" | "bitfinex" | "coinbase" | "cryptofacilities" | "kraken" | "bitstamp" | "gemini" | "poloniex" | "bybit" | "bybit-spot" | "phemex" | "delta" | "ftx-us" | "binance-us" | "gate-io-futures" | "gate-io" | "okcoin" | "bitflyer" | "hitbtc" | "coinflex" | "binance-jersey" | "binance-dex" | "upbit" | "ascendex" | "dydx" | "serum" | "mango" | "huobi-dm-options" | "star-atlas" | "crypto-com" | "crypto-com-derivatives";
25
+ readonly isSnapshot: true;
26
+ readonly bids: {
27
+ price: number;
28
+ amount: number;
29
+ }[];
30
+ readonly asks: {
31
+ price: number;
32
+ amount: number;
33
+ }[];
34
+ readonly timestamp: Date;
35
+ readonly localTimestamp: Date;
36
+ }, void, unknown>;
37
+ private _mapBookLevel;
38
+ }
39
+ export declare class BybitSpotBookTickerMapper implements Mapper<'bybit-spot', BookTicker> {
40
+ protected readonly _exchange: Exchange;
41
+ constructor(_exchange: Exchange);
42
+ canHandle(message: BybitSpotBookTickerMessage): boolean;
43
+ getFilters(symbols?: string[]): {
44
+ readonly channel: "bookTicker";
45
+ readonly symbols: string[] | undefined;
46
+ }[];
47
+ map(message: BybitSpotBookTickerMessage, localTimestamp: Date): Generator<BookTicker, void, unknown>;
48
+ }
49
+ declare type BybitSpotBookTickerMessage = {
50
+ topic: 'bookTicker';
51
+ params: {
52
+ symbol: 'BATUSDT';
53
+ binary: 'false';
54
+ symbolName: 'BATUSDT';
55
+ };
56
+ data: {
57
+ symbol: 'BATUSDT';
58
+ bidPrice: '0.3985';
59
+ bidQty: '1919.99';
60
+ askPrice: '0.3997';
61
+ askQty: '3747.68';
62
+ time: 1659311999973;
63
+ };
64
+ };
65
+ declare type BybitSpotTradeMessage = {
66
+ topic: 'trade';
67
+ params: {
68
+ symbol: 'XRP3SUSDT';
69
+ binary: 'false';
70
+ symbolName: 'XRP3SUSDT';
71
+ };
72
+ data: {
73
+ v: '2220000000006443832';
74
+ t: 1659312000387;
75
+ p: '6.3957';
76
+ q: '3.5962';
77
+ m: boolean;
78
+ };
79
+ };
80
+ declare type BybitSpotDepthMessage = {
81
+ topic: 'depth';
82
+ params: {
83
+ symbol: 'RENUSDT';
84
+ binary: 'false';
85
+ symbolName: 'RENUSDT';
86
+ };
87
+ data: {
88
+ s: 'RENUSDT';
89
+ t: 1659312000390;
90
+ v: '170667316_8244371_5';
91
+ b: [['0.14348', '3249.63']];
92
+ a: [['0.14457', '95.23']];
93
+ };
94
+ };
95
+ export {};
96
+ //# sourceMappingURL=bybitspot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bybitspot.d.ts","sourceRoot":"","sources":["../../src/mappers/bybitspot.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AAClE,OAAO,E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QAAC,QAAQ,EAAE,QAAQ,CAAC;QAAC,MAAM,EAAE,SAAS,CAAC;QAAC,QAAQ,EAAE,QAAQ,CAAC;QAAC,MAAM,EAAE,SAAS,CAAC;QAAC,IAAI,EAAE,aAAa,CAAA;KAAE,CAAA;CAC/H,CAAA;AAED,aAAK,qBAAqB,GAAG;IAC3B,KAAK,EAAE,OAAO,CAAA;IACd,MAAM,EAAE;QAAE,MAAM,EAAE,WAAW,CAAC;QAAC,MAAM,EAAE,OAAO,CAAC;QAAC,UAAU,EAAE,WAAW,CAAA;KAAE,CAAA;IACzE,IAAI,EAAE;QAAE,CAAC,EAAE,qBAAqB,CAAC;QAAC,CAAC,EAAE,aAAa,CAAC;QAAC,CAAC,EAAE,QAAQ,CAAC;QAAC,CAAC,EAAE,QAAQ,CAAC;QAAC,CAAC,EAAE,OAAO,CAAA;KAAE,CAAA;CAC3F,CAAA;AAED,aAAK,qBAAqB,GAAG;IAC3B,KAAK,EAAE,OAAO,CAAA;IACd,MAAM,EAAE;QAAE,MAAM,EAAE,SAAS,CAAC;QAAC,MAAM,EAAE,OAAO,CAAC;QAAC,UAAU,EAAE,SAAS,CAAA;KAAE,CAAA;IACrE,IAAI,EAAE;QACJ,CAAC,EAAE,SAAS,CAAA;QACZ,CAAC,EAAE,aAAa,CAAA;QAChB,CAAC,EAAE,qBAAqB,CAAA;QACxB,CAAC,EAAE,CAAC,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,CAAA;QAC3B,CAAC,EAAE,CAAC,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAA;KAC1B,CAAA;CACF,CAAA"}
@@ -0,0 +1,102 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BybitSpotBookTickerMapper = exports.BybitSpotBookChangeMapper = exports.BybitSpotTradesMapper = void 0;
4
+ const handy_1 = require("../handy");
5
+ class BybitSpotTradesMapper {
6
+ constructor(_exchange) {
7
+ this._exchange = _exchange;
8
+ }
9
+ canHandle(message) {
10
+ return message.topic === 'trade' && message.data !== undefined;
11
+ }
12
+ getFilters(symbols) {
13
+ symbols = (0, handy_1.upperCaseSymbols)(symbols);
14
+ return [
15
+ {
16
+ channel: 'trade',
17
+ symbols
18
+ }
19
+ ];
20
+ }
21
+ *map(message, localTimestamp) {
22
+ const bybitTrade = message.data;
23
+ yield {
24
+ type: 'trade',
25
+ symbol: message.params.symbol,
26
+ exchange: this._exchange,
27
+ id: bybitTrade.v,
28
+ price: Number(bybitTrade.p),
29
+ amount: Number(bybitTrade.q),
30
+ side: bybitTrade.m === true ? 'buy' : 'sell',
31
+ timestamp: new Date(bybitTrade.t),
32
+ localTimestamp
33
+ };
34
+ }
35
+ }
36
+ exports.BybitSpotTradesMapper = BybitSpotTradesMapper;
37
+ class BybitSpotBookChangeMapper {
38
+ constructor(_exchange) {
39
+ this._exchange = _exchange;
40
+ }
41
+ canHandle(message) {
42
+ return message.topic === 'depth' && message.data !== undefined;
43
+ }
44
+ getFilters(symbols) {
45
+ symbols = (0, handy_1.upperCaseSymbols)(symbols);
46
+ return [
47
+ {
48
+ channel: 'depth',
49
+ symbols
50
+ }
51
+ ];
52
+ }
53
+ *map(message, localTimestamp) {
54
+ yield {
55
+ type: 'book_change',
56
+ symbol: message.params.symbol,
57
+ exchange: this._exchange,
58
+ isSnapshot: true,
59
+ bids: message.data.b.map(this._mapBookLevel),
60
+ asks: message.data.a.map(this._mapBookLevel),
61
+ timestamp: new Date(message.data.t),
62
+ localTimestamp
63
+ };
64
+ }
65
+ _mapBookLevel(level) {
66
+ return { price: Number(level[0]), amount: Number(level[1]) };
67
+ }
68
+ }
69
+ exports.BybitSpotBookChangeMapper = BybitSpotBookChangeMapper;
70
+ class BybitSpotBookTickerMapper {
71
+ constructor(_exchange) {
72
+ this._exchange = _exchange;
73
+ }
74
+ canHandle(message) {
75
+ return message.topic === 'bookTicker' && message.data !== undefined;
76
+ }
77
+ getFilters(symbols) {
78
+ symbols = (0, handy_1.upperCaseSymbols)(symbols);
79
+ return [
80
+ {
81
+ channel: 'bookTicker',
82
+ symbols
83
+ }
84
+ ];
85
+ }
86
+ *map(message, localTimestamp) {
87
+ const bookTicker = {
88
+ type: 'book_ticker',
89
+ symbol: message.params.symbol,
90
+ exchange: this._exchange,
91
+ askAmount: message.data.askQty !== undefined ? Number(message.data.askQty) : undefined,
92
+ askPrice: message.data.askPrice !== undefined ? Number(message.data.askPrice) : undefined,
93
+ bidPrice: message.data.bidPrice !== undefined ? Number(message.data.bidPrice) : undefined,
94
+ bidAmount: message.data.bidQty !== undefined ? Number(message.data.bidQty) : undefined,
95
+ timestamp: new Date(message.data.time),
96
+ localTimestamp: localTimestamp
97
+ };
98
+ yield bookTicker;
99
+ }
100
+ }
101
+ exports.BybitSpotBookTickerMapper = BybitSpotBookTickerMapper;
102
+ //# sourceMappingURL=bybitspot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bybitspot.js","sourceRoot":"","sources":["../../src/mappers/bybitspot.ts"],"names":[],"mappings":";;;AAAA,oCAA2C;AAI3C,MAAa,qBAAqB;IAChC,YAA6B,SAAmB;QAAnB,cAAS,GAAT,SAAS,CAAU;IAAG,CAAC;IACpD,SAAS,CAAC,OAA8B;QACtC,OAAO,OAAO,CAAC,KAAK,KAAK,OAAO,IAAI,OAAO,CAAC,IAAI,KAAK,SAAS,CAAA;IAChE,CAAC;IAED,UAAU,CAAC,OAAkB;QAC3B,OAAO,GAAG,IAAA,wBAAgB,EAAC,OAAO,CAAC,CAAA;QAEnC,OAAO;YACL;gBACE,OAAO,EAAE,OAAO;gBAChB,OAAO;aACC;SACX,CAAA;IACH,CAAC;IAED,CAAC,GAAG,CAAC,OAA8B,EAAE,cAAoB;QACvD,MAAM,UAAU,GAAG,OAAO,CAAC,IAAI,CAAA;QAC/B,MAAM;YACJ,IAAI,EAAE,OAAO;YACb,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM;YAC7B,QAAQ,EAAE,IAAI,CAAC,SAAS;YAC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,KAAK,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS;YACtF,SAAS,EAAE,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC;YACtC,cAAc,EAAE,cAAc;SAC/B,CAAA;QAED,MAAM,UAAU,CAAA;IAClB,CAAC;CACF;AAhCD,8DAgCC"}
@@ -0,0 +1,257 @@
1
+ import { BookChange, Exchange, BookTicker, Trade, DerivativeTicker } from '../types';
2
+ import { Mapper } from './mapper';
3
+ export declare class CryptoComTradesMapper implements Mapper<'crypto-com' | 'crypto-com-derivatives', Trade> {
4
+ private readonly _exchange;
5
+ constructor(_exchange: Exchange);
6
+ canHandle(message: CryptoComTradeMessage): boolean;
7
+ getFilters(symbols?: string[]): {
8
+ readonly channel: "trade";
9
+ readonly symbols: string[] | undefined;
10
+ }[];
11
+ map(message: CryptoComTradeMessage, localTimestamp: Date): IterableIterator<Trade>;
12
+ }
13
+ export declare class CryptoComBookChangeMapper implements Mapper<'crypto-com' | 'crypto-com-derivatives', BookChange> {
14
+ protected readonly _exchange: Exchange;
15
+ constructor(_exchange: Exchange);
16
+ canHandle(message: CryptoComBookMessage): boolean;
17
+ getFilters(symbols?: string[]): {
18
+ readonly channel: "book";
19
+ readonly symbols: string[] | undefined;
20
+ }[];
21
+ map(message: CryptoComBookMessage, localTimestamp: Date): Generator<{
22
+ readonly type: "book_change";
23
+ readonly symbol: "ETH_CRO" | "BTCUSD-PERP" | "DOT_USDT";
24
+ readonly exchange: "bitmex" | "deribit" | "binance-futures" | "binance-delivery" | "binance-options" | "binance" | "ftx" | "okex-futures" | "okex-options" | "okex-swap" | "okex" | "huobi-dm" | "huobi-dm-swap" | "huobi-dm-linear-swap" | "huobi" | "bitfinex-derivatives" | "bitfinex" | "coinbase" | "cryptofacilities" | "kraken" | "bitstamp" | "gemini" | "poloniex" | "bybit" | "bybit-spot" | "phemex" | "delta" | "ftx-us" | "binance-us" | "gate-io-futures" | "gate-io" | "okcoin" | "bitflyer" | "hitbtc" | "coinflex" | "binance-jersey" | "binance-dex" | "upbit" | "ascendex" | "dydx" | "serum" | "mango" | "huobi-dm-options" | "star-atlas" | "crypto-com" | "crypto-com-derivatives";
25
+ readonly isSnapshot: boolean;
26
+ readonly bids: {
27
+ price: number;
28
+ amount: number;
29
+ }[];
30
+ readonly asks: {
31
+ price: number;
32
+ amount: number;
33
+ }[];
34
+ readonly timestamp: Date;
35
+ readonly localTimestamp: Date;
36
+ }, void, unknown>;
37
+ private _mapBookLevel;
38
+ }
39
+ export declare class CryptoComBookTickerMapper implements Mapper<'crypto-com' | 'crypto-com-derivatives', BookTicker> {
40
+ protected readonly _exchange: Exchange;
41
+ constructor(_exchange: Exchange);
42
+ canHandle(message: CryptoComTickerMessage): boolean;
43
+ getFilters(symbols?: string[]): {
44
+ readonly channel: "ticker";
45
+ readonly symbols: string[] | undefined;
46
+ }[];
47
+ map(message: CryptoComTickerMessage, localTimestamp: Date): Generator<BookTicker, void, unknown>;
48
+ }
49
+ export declare class CryptoComDerivativeTickerMapper implements Mapper<'crypto-com-derivatives', DerivativeTicker> {
50
+ protected readonly exchange: Exchange;
51
+ private readonly pendingTickerInfoHelper;
52
+ private readonly _indexPrices;
53
+ constructor(exchange: Exchange);
54
+ canHandle(message: CryptoComDerivativesTickerMessage | CryptoComIndexMessage | CryptoComMarkPriceMessage | CryptoComFundingMessage): boolean;
55
+ getFilters(symbols?: string[]): ({
56
+ readonly channel: "ticker";
57
+ readonly symbols: string[] | undefined;
58
+ } | {
59
+ readonly channel: "index";
60
+ readonly symbols: string[];
61
+ } | {
62
+ readonly channel: "mark";
63
+ readonly symbols: string[] | undefined;
64
+ } | {
65
+ readonly channel: "funding";
66
+ readonly symbols: string[] | undefined;
67
+ })[];
68
+ map(message: CryptoComDerivativesTickerMessage | CryptoComIndexMessage | CryptoComMarkPriceMessage | CryptoComFundingMessage, localTimestamp: Date): IterableIterator<DerivativeTicker>;
69
+ }
70
+ declare type CryptoComTradeMessage = {
71
+ method: 'subscribe';
72
+ result: {
73
+ instrument_name: 'ETH_CRO';
74
+ subscription: 'trade.ETH_CRO';
75
+ channel: 'trade';
76
+ data: [
77
+ {
78
+ p: 162.12;
79
+ q: 11.085;
80
+ s: 'BUY';
81
+ d: 1210447366;
82
+ t: 1587523078844;
83
+ dataTime: 0;
84
+ }
85
+ ];
86
+ };
87
+ } | {
88
+ id: -1;
89
+ code: 0;
90
+ method: 'subscribe';
91
+ result: {
92
+ channel: 'trade';
93
+ subscription: 'trade.BTCUSD-PERP';
94
+ instrument_name: 'BTCUSD-PERP';
95
+ data: [{
96
+ d: '4611686018439397540';
97
+ t: 1653992578435;
98
+ p: '31603.5';
99
+ q: '0.1000';
100
+ s: 'BUY';
101
+ i: 'BTCUSD-PERP';
102
+ }];
103
+ };
104
+ };
105
+ declare type CryptoComBookMessage = {
106
+ code: 0;
107
+ method: 'subscribe';
108
+ result: {
109
+ instrument_name: 'ETH_CRO';
110
+ subscription: 'book.ETH_CRO.150';
111
+ channel: 'book';
112
+ depth: 150;
113
+ data: [
114
+ {
115
+ bids: [number, number][];
116
+ asks: [number, number][];
117
+ t: 1659311999933;
118
+ s: 788293808;
119
+ }
120
+ ];
121
+ };
122
+ } | {
123
+ code: 0;
124
+ method: 'subscribe';
125
+ result: {
126
+ instrument_name: 'DOT_USDT';
127
+ subscription: 'book.DOT_USDT.150';
128
+ channel: 'book.update';
129
+ depth: 150;
130
+ data: [
131
+ {
132
+ update: {
133
+ bids: [number, number][];
134
+ asks: [number, number][];
135
+ };
136
+ t: 1659312000046;
137
+ s: 763793123;
138
+ }
139
+ ];
140
+ };
141
+ } | {
142
+ id: -1;
143
+ code: 0;
144
+ method: 'subscribe';
145
+ result: {
146
+ channel: 'book.update';
147
+ subscription: 'book.BTCUSD-PERP.50';
148
+ instrument_name: 'BTCUSD-PERP';
149
+ depth: 50;
150
+ data: [
151
+ {
152
+ update: {
153
+ asks: [string, string][];
154
+ bids: [string, string][];
155
+ };
156
+ t: 1653992578436;
157
+ tt: 1653992578428;
158
+ u: 72560693920;
159
+ pu: 72560688000;
160
+ cs: 380529173;
161
+ }
162
+ ];
163
+ };
164
+ };
165
+ declare type CryptoComTickerMessage = {
166
+ code: 0;
167
+ method: 'subscribe';
168
+ result: {
169
+ instrument_name: 'GODS_USDT';
170
+ subscription: 'ticker.GODS_USDT';
171
+ channel: 'ticker';
172
+ data: [
173
+ {
174
+ i: 'GODS_USDT';
175
+ b: 0.4262;
176
+ k: 0.4272;
177
+ a: 0.4272;
178
+ t: 1659311999946;
179
+ v: 100623.01;
180
+ vv: 42986.1541;
181
+ h: 0.4624;
182
+ l: 0.4229;
183
+ c: -0.0062;
184
+ pc: -1.4302;
185
+ }
186
+ ];
187
+ };
188
+ } | CryptoComDerivativesTickerMessage;
189
+ declare type CryptoComDerivativesTickerMessage = {
190
+ id: -1;
191
+ code: 0;
192
+ method: 'subscribe';
193
+ result: {
194
+ channel: 'ticker';
195
+ instrument_name: 'BTCUSD-PERP';
196
+ subscription: 'ticker.BTCUSD-PERP';
197
+ data: [
198
+ {
199
+ h: '32222.5';
200
+ l: '30240.0';
201
+ a: '31611.0';
202
+ c: '0.0320';
203
+ b: '31613.0';
204
+ k: '31613.5';
205
+ i: 'BTCUSD-PERP';
206
+ v: '13206.4884';
207
+ vv: '433945264.39';
208
+ oi: '318.5162';
209
+ t: 1653992543383;
210
+ }
211
+ ];
212
+ };
213
+ };
214
+ declare type CryptoComIndexMessage = {
215
+ id: -1;
216
+ method: 'subscribe';
217
+ code: 0;
218
+ result: {
219
+ instrument_name: 'BTCUSD-INDEX';
220
+ subscription: 'index.BTCUSD-INDEX';
221
+ channel: 'index';
222
+ data: [{
223
+ v: '31601.35';
224
+ t: 1653992545000;
225
+ }];
226
+ };
227
+ };
228
+ declare type CryptoComMarkPriceMessage = {
229
+ id: 1;
230
+ method: 'subscribe';
231
+ code: 0;
232
+ result: {
233
+ instrument_name: 'BTCUSD-PERP';
234
+ subscription: 'mark.BTCUSD-PERP';
235
+ channel: 'mark';
236
+ data: [{
237
+ v: '31606.3';
238
+ t: 1653992543000;
239
+ }];
240
+ };
241
+ };
242
+ declare type CryptoComFundingMessage = {
243
+ id: -1;
244
+ method: 'subscribe';
245
+ code: 0;
246
+ result: {
247
+ instrument_name: 'BTCUSD-PERP';
248
+ subscription: 'funding.BTCUSD-PERP';
249
+ channel: 'funding';
250
+ data: [{
251
+ v: '0.00000700';
252
+ t: 1653992579000;
253
+ }];
254
+ };
255
+ };
256
+ export {};
257
+ //# sourceMappingURL=cryptocom.d.ts.map
@@ -0,0 +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,GAAG,wBAAwB,EAAE,KAAK,CAAC;IACtF,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,GAAG,wBAAwB,EAAE,UAAU,CAAC;IAC/F,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,G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