Skip to content
agentusehub
Sign in+ Submit
Build an Excel portfolio tracker from trade logs

Build an Excel portfolio tracker from trade logs

Claude Code reads a trade log, writes and runs Python, pulls live Yahoo Finance data and exports Robinhood trade history to build an Excel portfolio tracker.

Read the experience
Time saved
Not reported
Setup time
Not reported
Running cost
Not reported
Cost range
Not reported

Use case overview

“Build an Excel portfolio tracker from trade logs” is a Money, Bills & Benefits AI agent workflow from Any. It connects Claude Code in 3 steps.

Claude Code reads a trade log, writes and runs Python, pulls live Yahoo Finance data and exports Robinhood trade history to build an Excel portfolio tracker.

Reported experience

  1. What they did

    The author gives Claude Code the path to an Excel Trade_Log, the starting capital and the start date. He tells it to use Excel formulas rather than hardcoded values. Claude reads the log, pulls prices and company data through yfinance, and builds the workbook sheets. The user then checks that the formulas recalculate. Broker pulls (including Robinhood via robin_stocks) and a daily update script are follow-up prompts.

  2. How it went

    The guide describes a workbook with a dashboard, positions, equity curve, risk metrics and stress tests. It gives no measured results. It admits Claude will sometimes hardcode values or misunderstand, and the user then has to tell it to fix them.

  3. Worth knowing

    Claude Pro is $20/month, and heavy builds may hit usage limits (Max is $100). Write the output to a new file, and change a price to confirm the formulas update.

Example prompts

Try with Claude Code
I have a trade log at [file path, e.g. a CSV exported from my broker]. Write and run Python that reads it, pulls current prices from Yahoo Finance, and builds an Excel portfolio tracker showing each position's cost basis, current value, gain/loss, and allocation. Save it as [filename].xlsx in this folder and tell me how to refresh it. Don't log into any account or change anything; work only from the exported file.

Frequently asked questions

What does the “Build an Excel portfolio tracker from trade logs” workflow do?

Claude Code reads a trade log, writes and runs Python, pulls live Yahoo Finance data and exports Robinhood trade history to build an Excel portfolio tracker.

Which tools do I need?

You need Claude Code.

How long does it take to set up?

The guide walks through 3 steps, starting with “What they did”.

Coding · Advanced
  1. Write migration plan
  2. Agent edits in batches
  3. Tests per batch

Ship a 40-file refactor with a coding agent

Plan, execute and review a cross-cutting refactor in small batches, with Claude Code making the edits and GitHub Copilot reviewing each PR.

Claude Code · GitHub Copilot
Coding · Advanced
  1. Run coverage
  2. Pick 3 riskiest files
  3. Write + run tests

Generate missing unit tests for untested modules

Claude Code reads your coverage report, picks the riskiest untested modules and writes unit tests that pass, one small PR at a time.

Claude Code · GitHub Copilot · Slack
Add this badge to your site

Built this workflow? Show it is featured on AgentUseHub with a live upvote count that links back here. About badges

Featured on AgentUseHub