Skip to content

Add read-only fund details command - #404

Open
TiloHeidasch wants to merge 3 commits into
pytr-org:masterfrom
TiloHeidasch:add-fund-details-command
Open

TiloHeidasch wants to merge 3 commits into
pytr-org:masterfrom
TiloHeidasch:add-fund-details-command

Conversation

@TiloHeidasch

Copy link
Copy Markdown
Contributor

Closes #403

Adds pytr fund_details <ISIN> [--exchange EXCHANGE] for a concise fund/ETF metadata and quote snapshot.

The command is deliberately bounded to two read-only WebSocket subscriptions: instrument metadata and one selected exchange ticker. It does not call account-wide, pre-trade, generic, or mutating APIs.

It validates ISINs before login, selects the first API-provided exchange by default, and returns metadata even if a ticker is unavailable. Output includes YTM, TER, NAV/date, duration, maturity, distribution policy, market cap, bid/ask/spread, raw quote timestamp, and quote status.

Verification:

  • 235 tests passed.
  • ruff check . passed.
  • mypy . passed.
  • Verified live read-only output for IE0000MR4GH9.

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.

Add read-only fund details command

1 participant