Skip to content

Commit

Permalink
Updated the readme to include the new top trending method
Browse files Browse the repository at this point in the history
  • Loading branch information
ooples committed Jan 13, 2023
1 parent a426627 commit 0d77b29
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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);
```


Expand Down
7 changes: 1 addition & 6 deletions TestConsoleApp/Program.cs
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -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();
2 changes: 1 addition & 1 deletion src/OoplesFinance.YahooFinanceAPI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<AutoGenerateBindingRedirects>True</AutoGenerateBindingRedirects>
<Title>Ooples Finance Yahoo Finance API</Title>
<Version>1.0.2</Version>
<Version>1.0.3</Version>
<Authors>ooples</Authors>
<Company>Ooples Finance</Company>
<Copyright>Ooples Finance LLC 2022-2023</Copyright>
Expand Down

0 comments on commit 0d77b29

Please sign in to comment.