Skip to content

Update StockFinancial model (net income, EPS, and parent net income loss) #817

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 10 commits into from
Jan 9, 2025
9 changes: 8 additions & 1 deletion examples/rest/stocks-stock_financials.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@
client = RESTClient() # POLYGON_API_KEY environment variable is used

financials = []
for f in client.vx.list_stock_financials("AAPL"):
for f in client.vx.list_stock_financials("AAPL", filing_date="2024-11-01"):
financials.append(f)

# get diluted_earnings_per_share
# print(f.financials.income_statement.diluted_earnings_per_share)

# get net_income_loss
# print(f.financials.income_statement.net_income_loss)

print(financials)
Loading
Loading