This repository was archived by the owner on Nov 15, 2026. It is now read-only.
Repository navigation
fix(market-datasets): remove stooq — unreachable for agents; Polish data via EODHD, WSE indices EODHD-only - #112
Merged
Merged
Conversation
…ata via EODHD, indices EODHD-only stooq blocks datacenter IPs (Hetzner, since 2026-04-21) and answers anything non-browser with a JavaScript challenge, so no agent session can fetch from it (Tom, 2026-09-30). Moving means moving: its three fetchers are deleted. - Routing: Polish stocks/ETFs (`pko`, `.WA`, `.WAR`) -> EODHD `.WAR` when EODHD_API_KEY is set, else Yahoo `.WA`. WSE INDICES (`wig20`, `^WIG`, `WIG20.INDX`) -> EODHD `.INDX` only; without the key they RAISE, because Yahoo serves no history for them (probed: ^WIG20 / ^MWIG40 0 rows). PLN FX -> NBP, then Yahoo. `source='stooq'` raises ValueError naming why and what replaces it. - references/eodhd.md: coverage and licensing verified 2026-09-30 on the Historian plan (WIG / WIG20 / mWIG40 .INDX, GPW Beta ETFs .WAR, XAUUSD from 1990; 403 on GBOND, MONEY, fundamentals, macro; pricing-page plans are personal-use only). - dividend_treatment.md rewritten around the chain-returns trap (an incrementally appended adjusted series loses dividends). - security_master.csv columns unchanged; `ticker_stooq` round-trips as a legacy column no fetcher reads. Bare registry names that only resolved via that column (xtb, ccc, ing) now fall through to Yahoo — noted, not aliased. - Playbooks no longer recommend stooq. The tracked copies in dm-evo-core and dm-evo-lab (.claude/skills/market-datasets, PROVENANCE.yaml) need a re-sync after merge. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JidPXNWK2SDcuqn8Wd83GD
…AR, any case) normalises before the index check (review round 2) One helper, _polish_index_key, feeds both the router and the EODHD symbol builder, so no spelling reaches the ^ or .WA branches and Yahoo. Checked over 14 spellings, with and without an EODHD key. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JidPXNWK2SDcuqn8Wd83GD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
stooq blocks datacenter IPs (Hetzner, since 2026-04-21) and answers anything non-browser with a JavaScript challenge. No agent session can fetch from it (Tom, 2026-09-30). The
market-datasetsskill still routed Polish data there first. Found in the dm-evo-core market-data source review (dm-evo Linear epic TOM-1318).What
source='stooq'raises aValueErrorthat says why and what replaces it..WARwhenEODHD_API_KEYis set, else Yahoo.WA..INDXonly. Without the key they raise, because Yahoo serves no history for them (probed:^WIG20and^MWIG40return 0 rows;WIG20.WAandWIG.WAreturn 1 row). Every spelling (^X,X.INDX,X.WA,X.WAR, any case) is normalised by one helper.references/eodhd.md: coverage and licensing verified 2026-09-30 on the Historian plan, using our key read-only:.INDX, GPW Beta ETFs.WAR,XAUUSD.FOREXfrom 1990;dividend_treatment.mdis rewritten around the chain-returns trap: an incrementally appended adjusted series loses dividends. It happened in dm-evo-core, fixed by TOM-1310.security_master.csvcolumns are unchanged;ticker_stooqround-trips as a legacy column.Known, not changed
xtb,ccc,ing) now fall through to Yahoo as bare US tickers.source='eodhd'passes identifiers untranslated. That predates this PR.^{up}index branch in_ticker_for_sourceis now unreachable, and_polish_index_keyrepeats astrip().lower()..claude/skills/market-datasets/PROVENANCE.yaml).Review
Three rounds, run as subagents of the authoring session:
.WAindex spellings.The skill has no tests. Routing was checked with no network over 14 index spellings, with and without a key.
🤖 Generated with Claude Code
https://claude.ai/code/session_01JidPXNWK2SDcuqn8Wd83GD
Review provenance
The in-session review axes, and the commit each one actually read. A verdict against a branch NAME has no referent — the name moves. Check freshness with
qute_review_freshness.py <owner/repo> <pr#>; it exits 1 when an axis is stale and 2 when it cannot tell.SHIP, reviewed at6e2b63d8f90948a63e38b96c311414dbe7caae65, rangemain...HEAD, at2026-09-30T17:10:18+02:00