Agustin Alexander
3 years ago
No known key found for this signature in database
GPG Key ID: 8CE7A1BA5D60D7EF
1 changed files with
37 additions and
34 deletions
-
apps/api/src/services/data-provider/yahoo-finance/yahoo-finance.service.ts
|
@ -140,7 +140,8 @@ export class YahooFinanceService implements DataProviderInterface { |
|
|
if (code) { |
|
|
if (code) { |
|
|
response.countries = [{code, weight: 1}]; |
|
|
response.countries = [{code, weight: 1}]; |
|
|
} |
|
|
} |
|
|
} catch {} |
|
|
} catch { |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if (assetProfile.summaryProfile?.sector) { |
|
|
if (assetProfile.summaryProfile?.sector) { |
|
|
response.sectors = [ |
|
|
response.sectors = [ |
|
@ -562,6 +563,8 @@ export class YahooFinanceService implements DataProviderInterface { |
|
|
case 'utilities': |
|
|
case 'utilities': |
|
|
sector = 'Utilities'; |
|
|
sector = 'Utilities'; |
|
|
break; |
|
|
break; |
|
|
|
|
|
default: |
|
|
|
|
|
sector = aString; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
return sector; |
|
|
return sector; |
|
|