OoplesFinance.YahooFinanceAPI
1.2.2
Prefix Reserved
See the version list below for details.
dotnet add package OoplesFinance.YahooFinanceAPI --version 1.2.2
NuGet\Install-Package OoplesFinance.YahooFinanceAPI -Version 1.2.2
<PackageReference Include="OoplesFinance.YahooFinanceAPI" Version="1.2.2" />
paket add OoplesFinance.YahooFinanceAPI --version 1.2.2
#r "nuget: OoplesFinance.YahooFinanceAPI, 1.2.2"
// Install OoplesFinance.YahooFinanceAPI as a Cake Addin #addin nuget:?package=OoplesFinance.YahooFinanceAPI&version=1.2.2 // Install OoplesFinance.YahooFinanceAPI as a Cake Tool #tool nuget:?package=OoplesFinance.YahooFinanceAPI&version=1.2.2
.Net Yahoo Finance API Library
This is a library for downloading free data using Yahoo Finance that is completely open source (Apache 2.0 license) and very easy to use. This library currently supports downloading 39 different types of stock market data at the time of this writing: historical/daily prices, stock splits, dividends, capital gains, stock recommendations, insider holders, key stats, financial data, insider transactions, fund ownership, major direct holders, top trending stock information, and much much more! Instead of listing everything, I decided it would be easier to provide examples below of every possible data type and how to use them. We support getting daily, weekly, or monthly data as well as many other options.
How to use this library
Here is an example to show how easy it is to use this library to get various stock market info:
using OoplesFinance.YahooFinanceAPI;
using OoplesFinance.YahooFinanceAPI.Enums;
var startDate = DateTime.Now.AddYears(-1);
var symbol = "AAPL";
var fundSymbol = "VSMPX";
var symbols = new string[] { symbol, "MSFT", "NFLX", "TSLA", "YHOO", "SPY", "A", "AA", "GOOG", "F", "UBER", "LYFT" };
var yahooClient = new YahooClient();
var historicalDataList = await yahooClient.GetHistoricalDataAsync(symbol, DataFrequency.Daily, startDate);
var capitalGainList = await yahooClient.GetCapitalGainDataAsync(symbol, DataFrequency.Monthly, startDate);
var dividendList = await yahooClient.GetDividendDataAsync(symbol, DataFrequency.Weekly, startDate);
var stockSplitList = await yahooClient.GetStockSplitDataAsync(symbol, DataFrequency.Monthly, startDate);
var topTrendingList = await yahooClient.GetTopTrendingStocksAsync(Country.UnitedStates, 10);
var recommendedList = await yahooClient.GetStockRecommendationsAsync(symbol);
var keyStatsList = await yahooClient.GetKeyStatisticsAsync(symbol);
var summaryDetailsList = await yahooClient.GetSummaryDetailsAsync(symbol);
var insiderHoldersList = await yahooClient.GetInsiderHoldersAsync(symbol);
var insiderTransactionsList = await yahooClient.GetInsiderTransactionsAsync(symbol);
var financialDataList = await yahooClient.GetFinancialDataAsync(symbol);
var institutionOwnershipList = await yahooClient.GetInstitutionOwnershipAsync(symbol);
var fundOwnershipList = await yahooClient.GetFundOwnershipAsync(symbol);
var majorDirectHoldersList = await yahooClient.GetMajorDirectHoldersAsync(symbol);
var secFilingsList = await yahooClient.GetSecFilingsAsync(symbol);
var insightsList = await yahooClient.GetInsightsAsync(symbol);
var majorHoldersBreakdownList = await yahooClient.GetMajorHoldersBreakdownAsync(symbol);
var upgradeDowngradeHistoryList = await yahooClient.GetUpgradeDowngradeHistoryAsync(symbol);
var esgScoresList = await yahooClient.GetEsgScoresAsync(symbol);
var recommendationTrendList = await yahooClient.GetRecommendationTrendAsync(symbol);
var indexTrendList = await yahooClient.GetIndexTrendAsync(symbol);
var sectorTrendList = await yahooClient.GetSectorTrendAsync(symbol);
var earningsTrendList = await yahooClient.GetEarningsTrendAsync(symbol);
var assetProfileList = await yahooClient.GetAssetProfileAsync(symbol);
var fundProfileList = await yahooClient.GetFundProfileAsync(fundSymbol);
var calendarEventsList = await yahooClient.GetCalendarEventsAsync(symbol);
var earningsList = await yahooClient.GetEarningsAsync(symbol);
var balanceSheetHistoryList = await yahooClient.GetBalanceSheetHistoryAsync(symbol);
var cashflowStatementHistoryList = await yahooClient.GetCashflowStatementHistoryAsync(symbol);
var incomeStatementHistoryList = await yahooClient.GetIncomeStatementHistoryAsync(symbol);
var earningsHistoryList = await yahooClient.GetEarningsHistoryAsync(symbol);
var quoteTypeList = await yahooClient.GetQuoteTypeAsync(symbol);
var priceList = await yahooClient.GetPriceInfoAsync(symbol);
var netSharePurchaseActivityList = await yahooClient.GetNetSharePurchaseActivityAsync(symbol);
var incomeStatementHistoryQuarterlyList = await yahooClient.GetIncomeStatementHistoryQuarterlyAsync(symbol);
var cashflowStatementHistoryQuarterlyList = await yahooClient.GetCashflowStatementHistoryQuarterlyAsync(symbol);
var balanceSheetHistoryQuarterlyList = await yahooClient.GetBalanceSheetHistoryQuarterlyAsync(symbol);
var chartInfoList = await yahooClient.GetChartInfoAsync(symbol, TimeRange._1Day, TimeInterval._1Minute);
var sparkChartInfoList = await yahooClient.GetSparkChartInfoAsync(symbols, TimeRange._1Month, TimeInterval._1Day);
var realTimeQuoteList = await yahooClient.GetRealTimeQuotesAsync(symbol);
Support This Project
BTC: 36DRmZefJNW82q9pHY1kWYSZhLUWQkpgGq
ETH: 0x7D6e58754476189ffF736B63b6159D2647f74f34
DOGE: DF1nsK1nLASzmwHNAfNengBGS4w7bNyJ1e
SHIB: 0xCDe2355212764218355c9393FbE121Ae49B43382
Paypal: https://www.paypal.me/cheatcountry
Patreon: https://patreon.com/cheatcountry
Support or Contact
Email me at cheatcountry@gmail.com for any help or support or to let me know of ways to further improve this library.
Support or Contact
Email me at cheatcountry@gmail.com for any help or support or to let me know of ways to further improve this library.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 is compatible. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.8
- System.Net.Http (>= 4.3.4)
- System.Net.Http.Json (>= 7.0.0)
- System.Text.Json (>= 7.0.1)
-
.NETStandard 2.0
- System.Net.Http (>= 4.3.4)
- System.Net.Http.Json (>= 7.0.0)
- System.Text.Json (>= 7.0.1)
-
.NETStandard 2.1
- System.Net.Http (>= 4.3.4)
- System.Net.Http.Json (>= 7.0.0)
- System.Text.Json (>= 7.0.1)
-
net6.0
- System.Net.Http (>= 4.3.4)
- System.Net.Http.Json (>= 7.0.0)
- System.Text.Json (>= 7.0.1)
-
net7.0
- System.Net.Http (>= 4.3.4)
- System.Net.Http.Json (>= 7.0.0)
- System.Text.Json (>= 7.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.7.0 | 304 | 11/12/2024 |
1.6.10 | 523 | 10/15/2024 |
1.6.9 | 122 | 10/6/2024 |
1.6.8 | 136 | 9/30/2024 |
1.6.7 | 88 | 9/30/2024 |
1.6.6 | 103 | 9/30/2024 |
1.6.5 | 108 | 9/28/2024 |
1.6.4 | 2,722 | 3/23/2024 |
1.6.3 | 158 | 3/18/2024 |
1.6.2 | 143 | 3/16/2024 |
1.6.1 | 446 | 3/11/2024 |
1.6.0 | 514 | 3/1/2024 |
1.5.0 | 2,787 | 6/28/2023 |
1.4.0 | 1,043 | 2/17/2023 |
1.3.3 | 285 | 2/11/2023 |
1.3.2 | 269 | 2/10/2023 |
1.3.1 | 271 | 2/10/2023 |
1.3.0 | 268 | 2/10/2023 |
1.2.3 | 307 | 1/30/2023 |
1.2.2 | 276 | 1/30/2023 |
1.2.1 | 312 | 1/24/2023 |
1.2.0 | 311 | 1/23/2023 |
1.1.0 | 322 | 1/20/2023 |
1.0.4 | 312 | 1/13/2023 |
1.0.2 | 336 | 1/9/2023 |
1.0.1 | 329 | 1/6/2023 |
1.0.0 | 312 | 1/6/2023 |