yahoo-finance-lite
v0.1.11
Published
A lightweight library for fetching historical financial data from Yahoo Finance, designed for TypeScript users.
Maintainers
Readme
yahoo-finance-lite
A lightweight library for fetching historical financial data from Yahoo Finance.
Installation
npm install yahoo-finance-liteUsage
import {YahooFinanceService} from "yahoo-finance-lite";
const yahooFinanceService = new YahooFinanceService(symbol);
yahooFinanceService.getHistorical("year", 40, "d", 1).then(data => console.log(data));Methods
getHistorical(periodType: string, period: number, frequencyType: string, frequency: number)
periodType: The type of period (e.g., "day", "month").
period: The length of the period.
frequencyType: The frequency of data (e.g., "d", "wk").
frequency: The number of intervals.License
MIT
