Point-in-time, so backtests cannot peek
Without it, a 2015 backtest quietly uses numbers that were only published in 2016 (look-ahead bias), and the returns evaporate in live trading. Filtering on accepted_at hides every later filing and amendment, exactly as it would have been in real time.
- Eliminates look-ahead bias in walk-forward backtests
- Supports event studies around filing dates
- Reproduces any historical research state exactly
Show the SDK queryHide the SDK query
from valuein_sdk import ValueinClient, ValueinError # AAPL quarterly revenue rows exactly as known on 2023-05-01:# nothing the SEC accepted after that moment is visible.sql = """SELECT f.period_end, f.fiscal_period, f.numeric_value / 1e9 AS revenue_billions, f.accepted_at, fi.form_typeFROM fact fJOIN "references" r ON r.cik = f.entity_idJOIN filing fi ON fi.accession_id = f.accession_idWHERE r.symbol = 'AAPL' AND r.is_active AND f.standard_concept = 'TotalRevenue' AND fi.form_type IN ('10-Q', '10-Q/A') AND f.accepted_at <= TIMESTAMP '2023-05-01 00:00:00'ORDER BY f.period_end DESC, f.accepted_at DESCLIMIT 5;"""try: with ValueinClient() as client: df = client.run_query(sql) print(df)except ValueinError as e: print(f"Valuein error: {e}")