From 1a3cb933dc5d51d16a8c83b3a55758353d33eb5a Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 24 Nov 2026 14:09:37 +0000 Subject: [PATCH] chore: Unix times in milliseconds go on the roadmap To be done once recordings show the values of finnhub's and yahoo-finance's millisecond timestamps: a date-time-ms format, read as a time.Time. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_019QCb1AfnATvpBQCH3PrX7Y --- docs/roadmap.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/roadmap.md b/docs/roadmap.md index 769f250d..17dd1bc8 100644 --- a/docs/roadmap.md +++ b/docs/roadmap.md @@ -32,3 +32,15 @@ Query parameters are written in every style OpenAPI defines. A path parameter is still a single value, with no `label` or `matrix` style and no array or object, and a header parameter likewise; the server does not read header parameters at all, so a service sees them empty. + +## Unix times in milliseconds + +An integer `date-time` is read as Unix seconds. Some APIs write milliseconds: +go-api-libs/finnhub's tick, NBBO and bid-ask timestamps ("List of timestamp in +UNIX ms.") and the websocket's trade times, and go-api-libs/yahoo-finance's +`dateEpochMs` and `firstTradeDateMilliseconds`. They are integers until +recordings show their values, since a spec's types rest on recordings: then a +custom format, `date-time-ms`, like `date-basic`, makes them a `time.Time` in +milliseconds, written and read through jsonutil helpers beside +`TimeMarshalIntUnix`, in a body and a query parameter alike. openapi-enrich +must keep the format when a recording's integer meets it.