|
|
|
@ -24,20 +24,14 @@ import { DataSource, SymbolProfile } from '@prisma/client'; |
|
|
|
import { addDays, format, isSameDay } from 'date-fns'; |
|
|
|
import { uniqBy } from 'lodash'; |
|
|
|
import YahooFinance from 'yahoo-finance2'; |
|
|
|
import { ChartResultArray } from 'yahoo-finance2/esm/src/modules/chart'; |
|
|
|
import { ChartResultArray } from 'yahoo-finance2/modules/chart'; |
|
|
|
import { |
|
|
|
HistoricalDividendsResult, |
|
|
|
HistoricalHistoryResult |
|
|
|
} from 'yahoo-finance2/esm/src/modules/historical'; |
|
|
|
import { |
|
|
|
Quote, |
|
|
|
QuoteResponseArray |
|
|
|
} from 'yahoo-finance2/esm/src/modules/quote'; |
|
|
|
import { |
|
|
|
Price, |
|
|
|
QuoteSummaryResult |
|
|
|
} from 'yahoo-finance2/esm/src/modules/quoteSummary'; |
|
|
|
import { SearchQuoteNonYahoo } from 'yahoo-finance2/esm/src/modules/search'; |
|
|
|
} from 'yahoo-finance2/modules/historical'; |
|
|
|
import { Quote, QuoteResponseArray } from 'yahoo-finance2/modules/quote'; |
|
|
|
import { Price, QuoteSummaryResult } from 'yahoo-finance2/modules/quoteSummary'; |
|
|
|
import { SearchQuoteNonYahoo } from 'yahoo-finance2/modules/search'; |
|
|
|
|
|
|
|
@Injectable() |
|
|
|
export class YahooFinanceService implements DataProviderInterface { |
|
|
|
|