Browse Source

add sectors for stock assets

Co-authored-by: Thomas Kaul <4159106+dtslvr@users.noreply.github.com>
pull/410/head
Valentin Zickner 4 years ago
parent
commit
944536437d
  1. 6
      apps/api/src/services/data-provider/yahoo-finance/yahoo-finance.service.ts

6
apps/api/src/services/data-provider/yahoo-finance/yahoo-finance.service.ts

@ -96,6 +96,12 @@ export class YahooFinanceService implements DataProviderInterface {
response[symbol].countries = [{ code, weight: 1 }]; response[symbol].countries = [{ code, weight: 1 }];
} }
} catch {} } catch {}
if (value.summaryProfile?.sector) {
response[symbol].sectors = [
{ name: value.summaryProfile?.sector, weight: 1 }
];
}
} }
// Add url if available // Add url if available

Loading…
Cancel
Save