feat: option lab

This commit is contained in:
OpenSquared
2026-07-28 11:46:48 +02:00
parent d2c393b8e5
commit 06db653c46
2 changed files with 18 additions and 2 deletions

View File

@@ -35,6 +35,9 @@ def get_chain_slice(
really was on a position's entry_date, not today's. Every days-to-expiry figure is
computed relative to `as_of` in that case, not date.today() — using today's date to
size a historical chain would silently misdate every contract in it.
A bare date (no time component) in `as_of` is handled by get_snapshot_rows_asof itself
(treated as end-of-day, not start — see its docstring for why that matters).
"""
from services.database import get_latest_saxo_snapshot_rows, get_snapshot_rows_asof