bugfixing eps from analyst-estimate endpoint
This commit is contained in:
parent
47805a7b6e
commit
75cbcd0b5d
@ -2173,11 +2173,10 @@ async def get_analyst_estimate(data:TickerData):
|
|||||||
income = ujson.loads(data['income'].iloc[0])
|
income = ujson.loads(data['income'].iloc[0])
|
||||||
combined_data = defaultdict(dict)
|
combined_data = defaultdict(dict)
|
||||||
|
|
||||||
|
|
||||||
for item_estimate in analyst_estimates:
|
for item_estimate in analyst_estimates:
|
||||||
for item_income in income:
|
for item_income in income:
|
||||||
year = item_estimate['date'][:4]
|
year = item_estimate['date'][:4]
|
||||||
if item_estimate['date'][:4] == item_income['calendarYear']:
|
if item_estimate['date'][:4] == item_income['calendarYear'] and item_income['period'] == 'Q4':
|
||||||
|
|
||||||
try:
|
try:
|
||||||
revenue = item_income['revenue']
|
revenue = item_income['revenue']
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user