Skip to content

fix: add market cap to v2 company facts#613

Open
huyua9 wants to merge 1 commit into
virattt:mainfrom
huyua9:huyua9/v2-company-facts-market-cap
Open

fix: add market cap to v2 company facts#613
huyua9 wants to merge 1 commit into
virattt:mainfrom
huyua9:huyua9/v2-company-facts-market-cap

Conversation

@huyua9

@huyua9 huyua9 commented May 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add the missing optional market_cap field to the v2 CompanyFacts model.
  • Cover FDClient.get_market_cap() so company facts are used first and financial metrics remain the fallback.
  • Keep the regression tests fully local without calling the Financial Datasets API.

Tests

  • python3 -m pytest tests/test_v2_fd_client.py -q
  • git diff --check

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