Skip to content

Commit dff8cba

Browse files
committed
Removed top level values to match spec
1 parent f7aeff6 commit dff8cba

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

polygon/rest/models/financials.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -371,24 +371,4 @@ def from_dict(d):
371371
start_date=d.get("start_date"),
372372
)
373373

374-
# If we have an income_statement, try to pull out new fields
375-
if sf.financials and sf.financials.income_statement:
376-
income_stmt = sf.financials.income_statement
377-
net_income_dp = income_stmt.get("net_income_loss")
378-
if net_income_dp and net_income_dp.value is not None:
379-
sf.net_income_loss = net_income_dp.value
380-
381-
diluted_eps_dp = income_stmt.get("diluted_earnings_per_share")
382-
if diluted_eps_dp and diluted_eps_dp.value is not None:
383-
sf.diluted_earnings_per_share = diluted_eps_dp.value
384-
385-
# If we have a comprehensive_income, pull out net income (parent)
386-
if sf.financials and sf.financials.comprehensive_income:
387-
comp_inc = sf.financials.comprehensive_income
388-
net_income_parent_dp = comp_inc.get(
389-
"net_income_loss_attributable_to_parent"
390-
)
391-
if net_income_parent_dp and net_income_parent_dp.value is not None:
392-
sf.net_income_loss_attributable_to_parent = net_income_parent_dp.value
393-
394374
return sf

0 commit comments

Comments
 (0)