Skip to content

Add docstrings to refresh_stock_metadata functions#3

Merged
DevDizzle merged 1 commit into
masterfrom
codex/add-docstrings-to-refresh_stock_metadata-functions
Jul 8, 2025
Merged

Add docstrings to refresh_stock_metadata functions#3
DevDizzle merged 1 commit into
masterfrom
codex/add-docstrings-to-refresh_stock_metadata-functions

Conversation

@DevDizzle

Copy link
Copy Markdown
Owner

Summary

  • document HTTP functions and helpers in refresh_stock_metadata

Testing

  • python -m py_compile $(git ls-files '*.py')

https://chatgpt.com/codex/tasks/task_e_686d58fc47dc8331a4e35bedd8e246db

@DevDizzle DevDizzle merged commit 72f7591 into master Jul 8, 2025
1 check passed
DevDizzle added a commit that referenced this pull request Sep 9, 2025
…stock_metadata-functions

Add docstrings to refresh_stock_metadata functions
@DevDizzle DevDizzle deleted the codex/add-docstrings-to-refresh_stock_metadata-functions branch December 9, 2025 00:29
DevDizzle added a commit that referenced this pull request Jun 4, 2026
Adversarial multi-agent audit (every finding re-verified vs code+BQ data) found
16 silent bugs. 13 fixed; 3 deferred (need PIT data/schema). Trigger: OKTA $127
untradeable-ghost pick.

CRITICAL #1 (root cause): polygon_client stopped substituting day low/high for a
missing bid/ask — that produced fake/0% spreads on ~43% of picks (718/1815 = 0.0),
defeating the spread gate and feeding the judge "0.5% spread" ghosts. Missing quote
-> NULL spread; chosen contract now carries a real spread. Enrichment spread gate
loosened 0.08->0.30 (was filtering fake 0s; real spreads are wider).

HIGH #2: divergence flip resolves BEFORE conviction sub-scores (was scoring flipped
names on the abandoned side -> ~87% suppressed below MIN_SCORE). #5: judge prompt
strips still-stale volume/OI/V-OI (keeps now-real spread). #8: technicals window
bounded to scan_date not date.today() (was leaking next-day bars = lookahead).
#6/#7/#10: signal-notifier fallback moneyness band restored + dead gates/docs cleaned.

MED #9/#12/#13: trader symmetric slippage + stale-TIMEOUT + late-fill guards (removed
EV-optimism). #11: empty judge batch re-queues instead of dropping 10 candidates.
#14: in_top_5 is a real top-5. LOW #15: overnight_score fail-safe default. #16:
greeks store raw with None preserved (delta no longer NULL->0.0).

Deferred (separate pass): #3 OI frozen-snapshot, #4 volume frozen-cumulative (need
Polygon flat files / day-bars), #15-full (schema add). See
docs/DECISIONS/2026-06-04-pipeline-bug-fixes.md.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant