Skip to content

Commit

Permalink
Add Ben Graham agent
Browse files Browse the repository at this point in the history
  • Loading branch information
virattt committed Feb 15, 2025
1 parent 394ac73 commit 185aa5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/agents/ben_graham.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ def ben_graham_agent(state: AgentState):

for ticker in tickers:
progress.update_status("ben_graham_agent", ticker, "Fetching financial metrics")
metrics = get_financial_metrics(ticker, end_date, period="annual", limit=5)
metrics = get_financial_metrics(ticker, end_date, period="annual", limit=10)

progress.update_status("ben_graham_agent", ticker, "Gathering financial line items")
financial_line_items = search_line_items(ticker, ["earnings_per_share", "revenue", "net_income", "book_value_per_share", "total_assets", "total_liabilities", "current_assets", "current_liabilities", "dividends_and_other_cash_distributions", "outstanding_shares"], end_date, period="annual", limit=5)
financial_line_items = search_line_items(ticker, ["earnings_per_share", "revenue", "net_income", "book_value_per_share", "total_assets", "total_liabilities", "current_assets", "current_liabilities", "dividends_and_other_cash_distributions", "outstanding_shares"], end_date, period="annual", limit=10)

progress.update_status("ben_graham_agent", ticker, "Getting market cap")
market_cap = get_market_cap(ticker, end_date)
Expand Down

0 comments on commit 185aa5a

Please sign in to comment.