tardis-dev
Advanced tools
Comparing version 13.29.14 to 13.29.15
@@ -100,2 +100,6 @@ "use strict"; | ||
for (const tbtTicker of message.data) { | ||
const timestamp = new Date(Number(tbtTicker.ts)); | ||
if (timestamp.valueOf() === 0) { | ||
continue; | ||
} | ||
const bestAsk = tbtTicker.asks !== undefined && tbtTicker.asks[0] ? mapBookLevel(tbtTicker.asks[0]) : undefined; | ||
@@ -111,3 +115,3 @@ const bestBid = tbtTicker.bids !== undefined && tbtTicker.bids[0] ? mapBookLevel(tbtTicker.bids[0]) : undefined; | ||
bidAmount: bestBid === null || bestBid === void 0 ? void 0 : bestBid.amount, | ||
timestamp: new Date(Number(tbtTicker.ts)), | ||
timestamp, | ||
localTimestamp: localTimestamp | ||
@@ -114,0 +118,0 @@ }; |
{ | ||
"name": "tardis-dev", | ||
"version": "13.29.14", | ||
"version": "13.29.15", | ||
"engines": { | ||
@@ -5,0 +5,0 @@ "node": ">=12" |
@@ -115,2 +115,8 @@ import { upperCaseSymbols } from '../handy' | ||
for (const tbtTicker of message.data) { | ||
const timestamp = new Date(Number(tbtTicker.ts)) | ||
if (timestamp.valueOf() === 0) { | ||
continue | ||
} | ||
const bestAsk = tbtTicker.asks !== undefined && tbtTicker.asks[0] ? mapBookLevel(tbtTicker.asks[0]) : undefined | ||
@@ -128,3 +134,3 @@ const bestBid = tbtTicker.bids !== undefined && tbtTicker.bids[0] ? mapBookLevel(tbtTicker.bids[0]) : undefined | ||
bidAmount: bestBid?.amount, | ||
timestamp: new Date(Number(tbtTicker.ts)), | ||
timestamp, | ||
localTimestamp: localTimestamp | ||
@@ -131,0 +137,0 @@ } |
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
1933970
35733