From a805d125ade615fc509b3a455c52aac8eda4b83a Mon Sep 17 00:00:00 2001 From: Avraham Sakal Date: Fri, 3 Jan 2025 14:06:10 -0500 Subject: [PATCH] fix: `ts` data type as per clickhouse client docs --- ingest-option-quotes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ingest-option-quotes.ts b/ingest-option-quotes.ts index f33d826..29e8ed1 100644 --- a/ingest-option-quotes.ts +++ b/ingest-option-quotes.ts @@ -69,7 +69,7 @@ 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: Math.floor(sip_timestamp / 1000), + ts: new Date(Math.floor(sip_timestamp / 1000)), bid: bid_price, ask: ask_price, })