fix: that's why Date for ts failed
This commit is contained in:
@@ -15,6 +15,7 @@ export const client = createClient({
|
|||||||
async_insert: 1,
|
async_insert: 1,
|
||||||
output_format_json_quote_64bit_integers: 0,
|
output_format_json_quote_64bit_integers: 0,
|
||||||
output_format_json_quote_64bit_floats: 0,
|
output_format_json_quote_64bit_floats: 0,
|
||||||
|
date_time_input_format: "best_effort",
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -69,9 +69,7 @@ for (const date of dateRange("2024-05-02", "2024-05-03")) {
|
|||||||
symbol: contract.underlying_ticker,
|
symbol: contract.underlying_ticker,
|
||||||
expiration_date: contract.expiration_date,
|
expiration_date: contract.expiration_date,
|
||||||
strike: contract.strike_price,
|
strike: contract.strike_price,
|
||||||
ts: new Date(
|
ts: new Date(Math.floor(sip_timestamp / 1000)),
|
||||||
Math.floor(sip_timestamp / 1000)
|
|
||||||
).toISOString(),
|
|
||||||
bid: bid_price,
|
bid: bid_price,
|
||||||
ask: ask_price,
|
ask: ask_price,
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user