Files
OpenBB/openbb_platform/providers/deribit/openbb_deribit/utils/options
José Felipe 7660a177b3 Count Deribit options DTE to the exchange expiry (#7820)
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>
2026-11-13 01:45:53 +00:00
..
2026-09-29 14:45:53 +00:00
2026-09-29 14:45:53 +00:00
2026-09-29 14:45:53 +00:00
2026-09-29 14:45:53 +00:00
2026-09-29 14:45:53 +00:00
2026-09-29 14:45:53 +00:00
2026-09-29 14:45:53 +00:00
2026-09-29 14:45:53 +00:00
2026-09-29 14:45:53 +00:00
2026-09-29 14:45:53 +00:00
2026-09-29 14:45:53 +00:00
2026-09-29 14:45:53 +00:00