Skip to content

feat(weekly): Saturday P&L CSV export via Telegram#98

Open
diana-jydai wants to merge 1 commit into
mainfrom
feat/weekly-csv-report
Open

feat(weekly): Saturday P&L CSV export via Telegram#98
diana-jydai wants to merge 1 commit into
mainfrom
feat/weekly-csv-report

Conversation

@diana-jydai
Copy link
Copy Markdown
Collaborator

  • broker: get_full_portfolio_history() — full 1D equity history from Alpaca portfolio_history (5-year lookback, skips pre-funding rows)
  • notifier: send_document() — sends CSV file via Telegram sendDocument API
  • notifier: build_weekly_csv() — Date/NAV/Daily P&L/Return%/Drawdown%/SPY columns; SPY data from yfinance; degrades gracefully on failure
  • pipeline: run_weekly() — orchestrates fetch → CSV → Telegram send
  • main: --mode weekly added to choices

- broker: get_full_portfolio_history() — full 1D equity history from
  Alpaca portfolio_history (5-year lookback, skips pre-funding rows)
- notifier: send_document() — sends CSV file via Telegram sendDocument API
- notifier: build_weekly_csv() — Date/NAV/Daily P&L/Return%/Drawdown%/SPY
  columns; SPY data from yfinance; degrades gracefully on failure
- pipeline: run_weekly() — orchestrates fetch → CSV → Telegram send
- main: --mode weekly added to choices

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@diana-jydai diana-jydai requested a review from yebof May 30, 2026 05:27
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.

1 participant