Skip to content

feat(market): add UK equities (LSE .L) support - #1255

Open
lorenzozanee wants to merge 2 commits into
HKUDS:mainfrom
lorenzozanee:asset-02/uk-lse-support-1205
Open

feat(market): add UK equities (LSE .L) support#1255
lorenzozanee wants to merge 2 commits into
HKUDS:mainfrom
lorenzozanee:asset-02/uk-lse-support-1205

Conversation

@lorenzozanee

Copy link
Copy Markdown
Contributor

Fixes #1205

Summary

  • UK LSE .L symbols now route to Yahoo with source=auto instead of returning _unresolved.

Why

VOD.L with source=auto was classified as an A-share and never tried Yahoo, while explicit source=yahoo succeeded.

Changes

  • Add uk_equity market (GBP) with Yahoo-first fallback and .L/.IL Yahoo gate.

Test Plan

  • Existing tests pass (pytest --ignore=agent/tests/e2e_backtest --tb=short -q)
  • New tests added (if applicable)
  • Tested manually (describe below)

Checklist

  • No changes to protected areas (src/agent/, src/session/, src/providers/) without prior discussion
  • No hardcoded values (API keys, file paths, magic numbers)
  • Code follows CONTRIBUTING.md guidelines
  • Documentation updated (if user-facing change)

Reviewers: @warren618, @QCYTSN

- route .L symbols to yahoo via _SOURCE_PATTERNS (parity with Canada .TO/.V)
- allow .L/.IL in yahoo_loader _is_supported gate
- map LSE symbols to uk_equity market with GBP currency
- add uk_equity fallback chain yahoo -> yfinance -> local

Fixes HKUDS#1205

Signed-off-by: Worker <worker@example.com>
Signed-off-by: lorenzozanee <wyz0707@proton.me>
Update stale test expectations in registry, settings API and yahoo
loader to include the new `uk_equity` market introduced for LSE `.L`
support (parity with Canada `ca_equity`).

Fixes HKUDS#1205

Signed-off-by: Worker <worker@example.com>
Signed-off-by: lorenzozanee <wyz0707@proton.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] UK equities (LSE .L) market support in market data + backtest routing

1 participant