Skip to content

Commit bbf0b29

Browse files
Update StockFinancial model (net income, EPS, and parent net income loss) (#817)
* Update StockFinancial model (net income, EPS, and parent net income loss) * Fix test * Patch json to remove other_than_fixed_noncurrent_assets * Removed top level values to match spec * Updated StockFinancial to remove nested values * Update comment * Remove vX experimental test * Refactored to use typed classes and explicit fields rather than raw dictionaries. * Fix lint
1 parent d89bcec commit bbf0b29

File tree

4 files changed

+456
-514
lines changed

4 files changed

+456
-514
lines changed

examples/rest/stocks-stock_financials.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@
88
client = RESTClient() # POLYGON_API_KEY environment variable is used
99

1010
financials = []
11-
for f in client.vx.list_stock_financials("AAPL"):
11+
for f in client.vx.list_stock_financials("AAPL", filing_date="2024-11-01"):
1212
financials.append(f)
13+
14+
# get diluted_earnings_per_share
15+
# print(f.financials.income_statement.diluted_earnings_per_share)
16+
17+
# get net_income_loss
18+
# print(f.financials.income_statement.net_income_loss)
19+
1320
print(financials)

0 commit comments

Comments
 (0)