From 0d77b299a9c05839777cce424c5de6f992b3a3f8 Mon Sep 17 00:00:00 2001 From: ooples Date: Fri, 13 Jan 2023 15:49:08 -0500 Subject: [PATCH] Updated the readme to include the new top trending method --- README.md | 7 ++++--- TestConsoleApp/Program.cs | 7 +------ src/OoplesFinance.YahooFinanceAPI.csproj | 2 +- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 4ea4fbe..f7ec173 100644 --- a/README.md +++ b/README.md @@ -6,9 +6,9 @@ ## .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 4 different types of stock market data at the time of this writing: -historical/daily prices, stock splits, dividends, and capital gain information. -We support getting daily, weekly, or monthly data for any of the above options. +This library currently supports downloading 5 different types of stock market data at the time of this writing: +historical/daily prices, stock splits, dividends, capital gains, and top trending stock information. +We support getting daily, weekly, or monthly data as well as many other options. ### How to use this library @@ -26,6 +26,7 @@ var historicalDataList = await GetHistoricalDataAsync(symbol, DataFrequency.Dail var capitalGainList = await GetCapitalGainDataAsync(symbol, DataFrequency.Monthly, startDate); var dividendList = await GetDividendDataAsync(symbol, DataFrequency.Weekly, startDate); var stockSplitList = await GetStockSplitDataAsync(symbol, DataFrequency.Monthly, startDate); +var topTrendingList = await GetTopTrendingStocksAsync(Country.UnitedStates, 10); ``` diff --git a/TestConsoleApp/Program.cs b/TestConsoleApp/Program.cs index 8c7bb99..6073856 100644 --- a/TestConsoleApp/Program.cs +++ b/TestConsoleApp/Program.cs @@ -1,9 +1,5 @@ using OoplesFinance.YahooFinanceAPI.Enums; using static OoplesFinance.YahooFinanceAPI.YahooClient; -using System.Text.Json; -using OoplesFinance.YahooFinanceAPI.Models; -using System.Net.Http.Json; -using System.Net; var startDate = DateTime.Now.AddYears(-1); var symbol = "GOOG"; @@ -12,7 +8,6 @@ var capitalGainList = await GetCapitalGainDataAsync(symbol, DataFrequency.Monthly, startDate); var dividendList = await GetDividendDataAsync(symbol, DataFrequency.Weekly, startDate); var stockSplitList = await GetStockSplitDataAsync(symbol, DataFrequency.Monthly, startDate); - -var test2 = await GetTopTrendingStocksAsync(Country.UnitedStates, 0); +var topTrendingList = await GetTopTrendingStocksAsync(Country.UnitedStates, 10); Console.WriteLine(); \ No newline at end of file diff --git a/src/OoplesFinance.YahooFinanceAPI.csproj b/src/OoplesFinance.YahooFinanceAPI.csproj index 97f0c51..1399167 100644 --- a/src/OoplesFinance.YahooFinanceAPI.csproj +++ b/src/OoplesFinance.YahooFinanceAPI.csproj @@ -8,7 +8,7 @@ True True Ooples Finance Yahoo Finance API - 1.0.2 + 1.0.3 ooples Ooples Finance Ooples Finance LLC 2022-2023