Browse Source

Update yahoo-finance.service.ts

pull/1692/head
Agustin Alexander 3 years ago
committed by GitHub
parent
commit
d4b84402e2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 26
      apps/api/src/services/data-provider/yahoo-finance/yahoo-finance.service.ts

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

@ -161,11 +161,11 @@ export class YahooFinanceService implements DataProviderInterface {
} }
public async getDividends({ public async getDividends({
from, from,
granularity = 'day', granularity = 'day',
symbol, symbol,
to to
}: { }: {
from: Date; from: Date;
granularity: Granularity; granularity: Granularity;
symbol: string; symbol: string;
@ -428,11 +428,11 @@ export class YahooFinanceService implements DataProviderInterface {
} }
private formatName({ private formatName({
longName, longName,
quoteType, quoteType,
shortName, shortName,
symbol symbol
}: { }: {
longName: Price['longName']; longName: Price['longName'];
quoteType: Price['quoteType']; quoteType: Price['quoteType'];
shortName: Price['shortName']; shortName: Price['shortName'];
@ -462,9 +462,9 @@ export class YahooFinanceService implements DataProviderInterface {
} }
private getConvertedValue({ private getConvertedValue({
symbol, symbol,
value value
}: { }: {
symbol: string; symbol: string;
value: number; value: number;
}) { }) {

Loading…
Cancel
Save