diff --git a/src/Helpers/DayGainersLosersHelper.cs b/src/Helpers/DayGainersLosersHelper.cs
deleted file mode 100644
index 92b1b98..0000000
--- a/src/Helpers/DayGainersLosersHelper.cs
+++ /dev/null
@@ -1,17 +0,0 @@
-namespace OoplesFinance.YahooFinanceAPI.Helpers;
-
-internal class DayGainersLosersHelper : YahooJsonBase
-{
- ///
- /// Parses the raw json data for the Day Gainers data
- ///
- ///
- ///
- ///
- internal override IEnumerable ParseYahooJsonData(string jsonData)
- {
- var dayGainersLosers = JsonConvert.DeserializeObject(jsonData);
-
- return dayGainersLosers != null ? (IEnumerable)dayGainersLosers.Finance.Results : Enumerable.Empty();
- }
-}
diff --git a/src/Helpers/ScreenerHelper.cs b/src/Helpers/ScreenerHelper.cs
new file mode 100644
index 0000000..3d45df6
--- /dev/null
+++ b/src/Helpers/ScreenerHelper.cs
@@ -0,0 +1,17 @@
+namespace OoplesFinance.YahooFinanceAPI.Helpers;
+
+internal class ScreenerHelper : YahooJsonBase
+{
+ ///
+ /// Parses the raw json data for the Screener data
+ ///
+ ///
+ ///
+ ///
+ internal override IEnumerable ParseYahooJsonData(string jsonData)
+ {
+ var screener = JsonConvert.DeserializeObject(jsonData);
+
+ return screener != null ? (IEnumerable)screener.Finance.Results : Enumerable.Empty();
+ }
+}
diff --git a/src/Models/DayGainersLosersData.cs b/src/Models/DayGainersLosersData.cs
index 14c6485..d6291bb 100644
--- a/src/Models/DayGainersLosersData.cs
+++ b/src/Models/DayGainersLosersData.cs
@@ -1,132 +1,153 @@
namespace OoplesFinance.YahooFinanceAPI.Models;
public record CriteriaMeta(
- [property: JsonProperty("size")] int? Size,
- [property: JsonProperty("offset")] int? Offset,
- [property: JsonProperty("sortField")] string SortField,
- [property: JsonProperty("sortType")] string SortType,
- [property: JsonProperty("quoteType")] string QuoteType,
- [property: JsonProperty("criteria")] IReadOnlyList Criteria,
- [property: JsonProperty("topOperator")] string TopOperator
+ [property: JsonProperty("size", NullValueHandling = NullValueHandling.Ignore)] int? Size,
+ [property: JsonProperty("offset", NullValueHandling = NullValueHandling.Ignore)] int? Offset,
+ [property: JsonProperty("sortField", NullValueHandling = NullValueHandling.Ignore)] string SortField,
+ [property: JsonProperty("sortType", NullValueHandling = NullValueHandling.Ignore)] string SortType,
+ [property: JsonProperty("quoteType", NullValueHandling = NullValueHandling.Ignore)] string QuoteType,
+ [property: JsonProperty("criteria", NullValueHandling = NullValueHandling.Ignore)] IReadOnlyList Criteria,
+ [property: JsonProperty("topOperator", NullValueHandling = NullValueHandling.Ignore)] string TopOperator
);
public record Criterion(
- [property: JsonProperty("field")] string Field,
- [property: JsonProperty("operators")] IReadOnlyList Operators,
- [property: JsonProperty("values")] IReadOnlyList Values,
- [property: JsonProperty("labelsSelected")] IReadOnlyList LabelsSelected,
- [property: JsonProperty("dependentValues")] IReadOnlyList