From 764e5aeba6dc3230174153e9ae998fa8fd12fccd Mon Sep 17 00:00:00 2001 From: Avraham Sakal Date: Fri, 3 Jan 2025 14:07:17 -0500 Subject: [PATCH] fix: previous commit failed, falling back to string --- ingest-option-quotes.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ingest-option-quotes.ts b/ingest-option-quotes.ts index 29e8ed1..01d1e8e 100644 --- a/ingest-option-quotes.ts +++ b/ingest-option-quotes.ts @@ -69,7 +69,9 @@ for (const date of dateRange("2024-05-02", "2024-05-03")) { symbol: contract.underlying_ticker, expiration_date: contract.expiration_date, strike: contract.strike_price, - ts: new Date(Math.floor(sip_timestamp / 1000)), + ts: new Date( + Math.floor(sip_timestamp / 1000) + ).toISOString(), bid: bid_price, ask: ask_price, })