tardis-dev
Advanced tools
Comparing version 10.0.2 to 10.0.3
@@ -9,3 +9,3 @@ export declare const EXCHANGES: readonly ["bitmex", "deribit", "binance-futures", "binance", "ftx", "okex-futures", "okex-options", "okex-swap", "okex", "huobi-dm", "huobi-dm-swap", "huobi", "bitfinex-derivatives", "bitfinex", "bitfinex-alts", "bitflyer", "cryptofacilities", "kraken", "bitstamp", "coinbase", "gemini", "coinflex", "bybit", "phemex", "okcoin", "hitbtc", "binance-jersey", "binance-us", "binance-dex"]; | ||
kraken: readonly ["trade", "ticker", "book", "spread"]; | ||
okex: readonly ["spot/trade", "spot/depth", "spot/ticker"]; | ||
okex: readonly ["spot/trade", "spot/depth", "spot/depth_l2_tbt", "spot/ticker"]; | ||
'okex-swap': string[]; | ||
@@ -12,0 +12,0 @@ 'okex-futures': string[]; |
@@ -87,3 +87,3 @@ "use strict"; | ||
const KRAKEN_CHANNELS = ['trade', 'ticker', 'book', 'spread']; | ||
const OKEX_CHANNELS = ['spot/trade', 'spot/depth', 'spot/ticker']; | ||
const OKEX_CHANNELS = ['spot/trade', 'spot/depth', 'spot/depth_l2_tbt', 'spot/ticker']; | ||
const OKCOIN_CHANNELS = ['spot/trade', 'spot/depth', 'spot/depth_l2_tbt', 'spot/ticker']; | ||
@@ -90,0 +90,0 @@ const OKEX_FUTURES_CHANNELS = [ |
@@ -77,3 +77,3 @@ "use strict"; | ||
kraken: () => kraken_1.krakenBookChangeMapper, | ||
okex: () => new okex_1.OkexBookChangeMapper('okex', 'spot', false), | ||
okex: (localTimestamp) => new okex_1.OkexBookChangeMapper('okex', 'spot', localTimestamp.valueOf() >= new Date('2020-04-10').valueOf()), | ||
'okex-futures': (localTimestamp) => new okex_1.OkexBookChangeMapper('okex-futures', 'futures', localTimestamp.valueOf() >= new Date('2019-12-05').valueOf()), | ||
@@ -80,0 +80,0 @@ 'okex-swap': (localTimestamp) => new okex_1.OkexBookChangeMapper('okex-swap', 'swap', localTimestamp.valueOf() >= new Date('2020-02-08').valueOf()), |
@@ -62,11 +62,2 @@ "use strict"; | ||
} | ||
// spot market historical data doesn't currently provide tick by tick channel | ||
if (this._market === 'spot') { | ||
return [ | ||
{ | ||
channel: `${this._market}/depth`, | ||
symbols | ||
} | ||
]; | ||
} | ||
// subscribe to both book channels and in canHandle decide which one to use | ||
@@ -73,0 +64,0 @@ // as one can subscribe to date range period that overlaps both when only depth channel has been available |
{ | ||
"name": "tardis-dev", | ||
"version": "10.0.2", | ||
"version": "10.0.3", | ||
"engines": { | ||
@@ -5,0 +5,0 @@ "node": ">=12" |
@@ -92,3 +92,3 @@ export const EXCHANGES = [ | ||
const OKEX_CHANNELS = ['spot/trade', 'spot/depth', 'spot/ticker'] as const | ||
const OKEX_CHANNELS = ['spot/trade', 'spot/depth', 'spot/depth_l2_tbt', 'spot/ticker'] as const | ||
@@ -95,0 +95,0 @@ const OKCOIN_CHANNELS = ['spot/trade', 'spot/depth', 'spot/depth_l2_tbt', 'spot/ticker'] as const |
@@ -84,3 +84,3 @@ import { ONE_SEC_IN_MS } from '../handy' | ||
kraken: () => krakenBookChangeMapper, | ||
okex: () => new OkexBookChangeMapper('okex', 'spot', false), | ||
okex: (localTimestamp: Date) => new OkexBookChangeMapper('okex', 'spot', localTimestamp.valueOf() >= new Date('2020-04-10').valueOf()), | ||
'okex-futures': (localTimestamp: Date) => | ||
@@ -87,0 +87,0 @@ new OkexBookChangeMapper('okex-futures', 'futures', localTimestamp.valueOf() >= new Date('2019-12-05').valueOf()), |
@@ -69,12 +69,2 @@ import { BookChange, DerivativeTicker, Exchange, FilterForExchange, Trade } from '../types' | ||
// spot market historical data doesn't currently provide tick by tick channel | ||
if (this._market === 'spot') { | ||
return [ | ||
{ | ||
channel: `${this._market}/depth`, | ||
symbols | ||
} as const | ||
] | ||
} | ||
// subscribe to both book channels and in canHandle decide which one to use | ||
@@ -81,0 +71,0 @@ // as one can subscribe to date range period that overlaps both when only depth channel has been available |
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
649068
11484