tardis-dev
Advanced tools
Comparing version 13.13.2 to 13.14.0
@@ -9,6 +9,6 @@ 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", "kucoin", "bitnomial", "woo-x"]; | ||
kraken: readonly ["trade", "ticker", "book", "spread"]; | ||
okex: readonly ["spot/trade", "spot/depth", "spot/depth_l2_tbt", "spot/ticker", "system/status", "margin/interest_rate", "trades", "books-l2-tbt", "bbo-tbt", "tickers", "interest-rate-loan-quota", "vip-interest-rate-loan-quota", "status", "instruments", "taker-volume"]; | ||
'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", "books-l2-tbt", "bbo-tbt", "tickers", "open-interest", "mark-price", "price-limit", "funding-rate", "status", "instruments", "index-tickers", "long-short-account-ratio", "taker-volume", "liquidations"]; | ||
'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", "books-l2-tbt", "bbo-tbt", "tickers", "open-interest", "mark-price", "price-limit", "status", "instruments", "index-tickers", "long-short-account-ratio", "taker-volume", "liquidations"]; | ||
'okex-options': readonly ["option/trade", "option/depth", "option/depth_l2_tbt", "option/ticker", "option/summary", "option/instruments", "index/ticker", "system/status", "option/trades", "trades", "books-l2-tbt", "bbo-tbt", "tickers", "opt-summary", "status", "instruments", "index-tickers", "open-interest", "mark-price", "price-limit"]; | ||
okex: readonly ["spot/trade", "spot/depth", "spot/depth_l2_tbt", "spot/ticker", "system/status", "margin/interest_rate", "trades", "books-l2-tbt", "bbo-tbt", "books", "tickers", "interest-rate-loan-quota", "vip-interest-rate-loan-quota", "status", "instruments", "taker-volume"]; | ||
'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", "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"]; | ||
'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", "books-l2-tbt", "bbo-tbt", "books", "tickers", "open-interest", "mark-price", "price-limit", "status", "instruments", "index-tickers", "long-short-account-ratio", "taker-volume", "liquidations"]; | ||
'okex-options': readonly ["option/trade", "option/depth", "option/depth_l2_tbt", "option/ticker", "option/summary", "option/instruments", "index/ticker", "system/status", "option/trades", "trades", "books-l2-tbt", "bbo-tbt", "books", "tickers", "opt-summary", "status", "instruments", "index-tickers", "open-interest", "mark-price", "price-limit"]; | ||
binance: readonly ["trade", "aggTrade", "ticker", "depth", "depthSnapshot", "bookTicker", "recentTrades", "borrowInterest"]; | ||
@@ -15,0 +15,0 @@ 'binance-jersey': readonly ["trade", "aggTrade", "ticker", "depth", "depthSnapshot", "bookTicker", "recentTrades", "borrowInterest"]; |
@@ -121,2 +121,3 @@ "use strict"; | ||
'bbo-tbt', | ||
'books', | ||
'tickers', | ||
@@ -146,2 +147,3 @@ 'interest-rate-loan-quota', | ||
'bbo-tbt', | ||
'books', | ||
'tickers', | ||
@@ -175,2 +177,3 @@ 'open-interest', | ||
'bbo-tbt', | ||
'books', | ||
'tickers', | ||
@@ -202,2 +205,3 @@ 'open-interest', | ||
'bbo-tbt', | ||
'books', | ||
'tickers', | ||
@@ -204,0 +208,0 @@ 'opt-summary', |
@@ -71,2 +71,6 @@ "use strict"; | ||
}; | ||
// see https://status.tardis.dev/incidents/ryjyv8tgdgkj | ||
const shouldUseOKXPublicBooksChannel = (localTimestamp) => { | ||
return localTimestamp.valueOf() >= new Date('2023-02-25T00:00:00.000Z').valueOf(); | ||
}; | ||
const shouldIgnoreBookSnapshotOverlap = (date) => { | ||
@@ -149,12 +153,12 @@ if (process.env.IGNORE_BOOK_SNAPSHOT_OVERLAP_ERROR) { | ||
okex: (localTimestamp) => shouldUseOkexV5Mappers(localTimestamp) | ||
? new okex_1.OkexV5BookChangeMapper('okex', isRealTime(localTimestamp)) | ||
? new okex_1.OkexV5BookChangeMapper('okex', isRealTime(localTimestamp) || shouldUseOKXPublicBooksChannel(localTimestamp)) | ||
: new okex_1.OkexBookChangeMapper('okex', 'spot', localTimestamp.valueOf() >= new Date('2020-04-10').valueOf()), | ||
'okex-futures': (localTimestamp) => shouldUseOkexV5Mappers(localTimestamp) | ||
? new okex_1.OkexV5BookChangeMapper('okex-futures', isRealTime(localTimestamp)) | ||
? new okex_1.OkexV5BookChangeMapper('okex-futures', isRealTime(localTimestamp) || shouldUseOKXPublicBooksChannel(localTimestamp)) | ||
: new okex_1.OkexBookChangeMapper('okex-futures', 'futures', localTimestamp.valueOf() >= new Date('2019-12-05').valueOf()), | ||
'okex-swap': (localTimestamp) => shouldUseOkexV5Mappers(localTimestamp) | ||
? new okex_1.OkexV5BookChangeMapper('okex-swap', isRealTime(localTimestamp)) | ||
? new okex_1.OkexV5BookChangeMapper('okex-swap', isRealTime(localTimestamp) || shouldUseOKXPublicBooksChannel(localTimestamp)) | ||
: new okex_1.OkexBookChangeMapper('okex-swap', 'swap', localTimestamp.valueOf() >= new Date('2020-02-08').valueOf()), | ||
'okex-options': (localTimestamp) => shouldUseOkexV5Mappers(localTimestamp) | ||
? new okex_1.OkexV5BookChangeMapper('okex-options', isRealTime(localTimestamp)) | ||
? new okex_1.OkexV5BookChangeMapper('okex-options', isRealTime(localTimestamp) || shouldUseOKXPublicBooksChannel(localTimestamp)) | ||
: new okex_1.OkexBookChangeMapper('okex-options', 'option', localTimestamp.valueOf() >= new Date('2020-02-08').valueOf()), | ||
@@ -161,0 +165,0 @@ huobi: (localTimestamp) => localTimestamp.valueOf() >= new Date('2020-07-03').valueOf() |
{ | ||
"name": "tardis-dev", | ||
"version": "13.13.2", | ||
"version": "13.14.0", | ||
"engines": { | ||
@@ -5,0 +5,0 @@ "node": ">=12" |
@@ -126,2 +126,3 @@ export const EXCHANGES = [ | ||
'bbo-tbt', | ||
'books', | ||
'tickers', | ||
@@ -154,2 +155,3 @@ 'interest-rate-loan-quota', | ||
'bbo-tbt', | ||
'books', | ||
'tickers', | ||
@@ -185,2 +187,3 @@ 'open-interest', | ||
'bbo-tbt', | ||
'books', | ||
'tickers', | ||
@@ -214,2 +217,3 @@ 'open-interest', | ||
'bbo-tbt', | ||
'books', | ||
'tickers', | ||
@@ -216,0 +220,0 @@ 'opt-summary', |
@@ -122,2 +122,7 @@ import { ONE_SEC_IN_MS } from '../handy' | ||
// see https://status.tardis.dev/incidents/ryjyv8tgdgkj | ||
const shouldUseOKXPublicBooksChannel = (localTimestamp: Date) => { | ||
return localTimestamp.valueOf() >= new Date('2023-02-25T00:00:00.000Z').valueOf() | ||
} | ||
const shouldIgnoreBookSnapshotOverlap = (date: Date) => { | ||
@@ -216,7 +221,7 @@ if (process.env.IGNORE_BOOK_SNAPSHOT_OVERLAP_ERROR) { | ||
shouldUseOkexV5Mappers(localTimestamp) | ||
? new OkexV5BookChangeMapper('okex', isRealTime(localTimestamp)) | ||
? new OkexV5BookChangeMapper('okex', isRealTime(localTimestamp) || shouldUseOKXPublicBooksChannel(localTimestamp)) | ||
: new OkexBookChangeMapper('okex', 'spot', localTimestamp.valueOf() >= new Date('2020-04-10').valueOf()), | ||
'okex-futures': (localTimestamp: Date) => | ||
shouldUseOkexV5Mappers(localTimestamp) | ||
? new OkexV5BookChangeMapper('okex-futures', isRealTime(localTimestamp)) | ||
? new OkexV5BookChangeMapper('okex-futures', isRealTime(localTimestamp) || shouldUseOKXPublicBooksChannel(localTimestamp)) | ||
: new OkexBookChangeMapper('okex-futures', 'futures', localTimestamp.valueOf() >= new Date('2019-12-05').valueOf()), | ||
@@ -226,7 +231,7 @@ | ||
shouldUseOkexV5Mappers(localTimestamp) | ||
? new OkexV5BookChangeMapper('okex-swap', isRealTime(localTimestamp)) | ||
? new OkexV5BookChangeMapper('okex-swap', isRealTime(localTimestamp) || shouldUseOKXPublicBooksChannel(localTimestamp)) | ||
: new OkexBookChangeMapper('okex-swap', 'swap', localTimestamp.valueOf() >= new Date('2020-02-08').valueOf()), | ||
'okex-options': (localTimestamp: Date) => | ||
shouldUseOkexV5Mappers(localTimestamp) | ||
? new OkexV5BookChangeMapper('okex-options', isRealTime(localTimestamp)) | ||
? new OkexV5BookChangeMapper('okex-options', isRealTime(localTimestamp) || shouldUseOKXPublicBooksChannel(localTimestamp)) | ||
: new OkexBookChangeMapper('okex-options', 'option', localTimestamp.valueOf() >= new Date('2020-02-08').valueOf()), | ||
@@ -233,0 +238,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1653003
30492