-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issue with spark charts not retrieving proper info
Added method to get real-time quotes Added options to get multiple symbols for real-time quotes and spark charts
- Loading branch information
Showing
10 changed files
with
433 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
namespace OoplesFinance.YahooFinanceAPI.Helpers; | ||
|
||
internal class RealTimeQuoteHelper : YahooJsonBase | ||
{ | ||
/// <summary> | ||
/// Parses the raw json data for the Real-time Quote data | ||
/// </summary> | ||
/// <typeparam name="T"></typeparam> | ||
/// <param name="jsonData"></param> | ||
/// <returns></returns> | ||
internal override IEnumerable<T> ParseYahooJsonData<T>(string jsonData) | ||
{ | ||
var realTimeQuoteData = JsonSerializer.Deserialize<RealTimeQuoteData>(jsonData); | ||
|
||
return realTimeQuoteData != null ? (IEnumerable<T>)realTimeQuoteData.QuoteResponse.Results : Enumerable.Empty<T>(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.