tardis-dev
Advanced tools
Comparing version 12.0.1 to 12.0.2
@@ -122,3 +122,4 @@ "use strict"; | ||
'index/ticker', | ||
'system/status' | ||
'system/status', | ||
'option/trades' | ||
]; | ||
@@ -125,0 +126,0 @@ const COINFLEX_CHANNELS = ['futures/depth', 'trade', 'ticker']; |
@@ -89,2 +89,6 @@ "use strict"; | ||
} | ||
const timestamp = new Date(message.timestamp); | ||
if (timestamp.valueOf() === 0) { | ||
continue; | ||
} | ||
yield { | ||
@@ -97,3 +101,3 @@ type: 'book_change', | ||
asks: message.asks.map(mapBookLevel), | ||
timestamp: new Date(message.timestamp), | ||
timestamp, | ||
localTimestamp: localTimestamp | ||
@@ -100,0 +104,0 @@ }; |
@@ -42,3 +42,3 @@ "use strict"; | ||
exchange: 'poloniex', | ||
id, | ||
id: String(id), | ||
price: Number(price), | ||
@@ -45,0 +45,0 @@ amount: Number(size), |
{ | ||
"name": "tardis-dev", | ||
"version": "12.0.1", | ||
"version": "12.0.2", | ||
"engines": { | ||
@@ -5,0 +5,0 @@ "node": ">=12" |
@@ -130,3 +130,4 @@ export const EXCHANGES = [ | ||
'index/ticker', | ||
'system/status' | ||
'system/status', | ||
'option/trades' | ||
] | ||
@@ -133,0 +134,0 @@ |
@@ -100,2 +100,8 @@ import { BookChange, DerivativeTicker, Exchange, Trade, OptionSummary } from '../types' | ||
const timestamp = new Date(message.timestamp) | ||
if (timestamp.valueOf() === 0) { | ||
continue | ||
} | ||
yield { | ||
@@ -108,3 +114,3 @@ type: 'book_change', | ||
asks: message.asks.map(mapBookLevel), | ||
timestamp: new Date(message.timestamp), | ||
timestamp, | ||
localTimestamp: localTimestamp | ||
@@ -111,0 +117,0 @@ } |
@@ -49,3 +49,3 @@ import { BookChange, Trade } from '../types' | ||
exchange: 'poloniex', | ||
id, | ||
id: String(id), | ||
price: Number(price), | ||
@@ -52,0 +52,0 @@ amount: Number(size), |
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
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
956263
17088