mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-30 13:13:59 +00:00
The options chains fetcher counted days to expiration from the machine's local calendar date, so one contract got a different DTE depending on where the machine was: five hours before it expires, a machine in America/Los_Angeles got 1 day where UTC and Tokyo got 0. It also disagreed with the provider's own analysis chain, which counts to the 08:00 UTC instant the exchange expires the contract at. Both now go through one helper, days_to_expiration(), which counts the whole days left to the expiration timestamp Deribit publishes. A contract listed without one falls back to 08:00 UTC on the date in its name. time-machine joins the dev group to freeze the clock and the local timezone in the tests. Refs #7611 Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: dlee-bq <dlee@brightquery.com>