yahooAPI | R Documentation |
Yahoo Finance API class inherits 'TDIConnection' to implement API requests.
Yahoo Finance API provides a wide range of data that can be accessed via the below URL. The data returned is specified by the requested modules in the query string.
https://query2.finance.yahoo.com/v10/finance/quoteSummary/MSFT?modules=assetProfile
Available modules: - 'assetProfile', - 'summaryProfile', - 'summaryDetail', - 'esgScores', - 'price', - 'incomeStatementHistory', - 'incomeStatementHistoryQuarterly', - 'balanceSheetHistory', - 'balanceSheetHistoryQuarterly', - 'cashflowStatementHistory', - 'cashflowStatementHistoryQuarterly', - 'defaultKeyStatistics', - 'financialData', - 'calendarEvents', - 'secFilings', - 'recommendationTrend', - 'upgradeDowngradeHistory', - 'institutionOwnership', - 'fundOwnership', - 'majorDirectHolders', - 'majorHoldersBreakdown', - 'insiderTransactions', - 'insiderHolders', - 'netSharePurchaseActivity', - 'earnings', - 'earningsHistory', - 'earningsTrend', - 'industryTrend', - 'indexTrend', - 'sectorTrend'
TDI::baseTDI
-> TDI::TDIConnection
-> yahooAPI
getInstrument()
Retrieve instrument details for the symbol.
yahooAPI$getInstrument(...)
...
see TDIConnection
An object of class 'Instrument' with details.
getCashFlow()
Retrieve cash flow data for the symbol.
yahooAPI$getCashFlow(...)
...
see TDIConnection
An object of class 'Instrument' with details.
getChart()
Retrieve historical prices for the symbol.
yahooAPI$getChart(...)
...
see TDIConnection
An object of class 'Instrument' with historical prices.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.