Browse Source

Unlinted and added env file

pull/1692/head
Agustin Alexander 3 years ago
parent
commit
e0a8a8ff27
No known key found for this signature in database GPG Key ID: 8CE7A1BA5D60D7EF
  1. 3
      .env
  2. 5
      apps/api/src/services/data-provider/yahoo-finance/yahoo-finance.service.ts

3
.env

@ -14,3 +14,6 @@ ACCESS_TOKEN_SALT=<INSERT_RANDOM_STRING>
ALPHA_VANTAGE_API_KEY=
DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@localhost:5432/${POSTGRES_DB}?sslmode=prefer
JWT_SECRET_KEY=<INSERT_RANDOM_STRING>
# If TZ different than US change it so that Yahoo finance query does not fail
# TZ='America/New_York'

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

@ -140,8 +140,7 @@ export class YahooFinanceService implements DataProviderInterface {
if (code) {
response.countries = [{ code, weight: 1 }];
}
} catch {
}
} catch {}
if (assetProfile.summaryProfile?.sector) {
response.sectors = [
@ -563,8 +562,6 @@ export class YahooFinanceService implements DataProviderInterface {
case 'utilities':
sector = 'Utilities';
break;
default:
sector = aString;
}
return sector;

Loading…
Cancel
Save