From 0f37f3ebf0324061173f581b5fb9d8529a932ad7 Mon Sep 17 00:00:00 2001 From: Stuart Turner Date: Mon, 5 Feb 2024 12:47:17 -0600 Subject: [PATCH] Update sentiment scores to be `double` (#79) --- Source/AlphaVantage.Net/Sentiment/SentimentResponse.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/AlphaVantage.Net/Sentiment/SentimentResponse.cs b/Source/AlphaVantage.Net/Sentiment/SentimentResponse.cs index f61cd4e..c0c5c2f 100644 --- a/Source/AlphaVantage.Net/Sentiment/SentimentResponse.cs +++ b/Source/AlphaVantage.Net/Sentiment/SentimentResponse.cs @@ -49,7 +49,7 @@ public class SentimentFeedItem [JsonPropertyName("topics")] public required IReadOnlyList Topics { get; set; } [JsonPropertyName("overall_sentiment_score")] - public required float OverallSentimentScore { get; set; } + public required double OverallSentimentScore { get; set; } [JsonPropertyName("overall_sentiment_label")] public required string OverallSentimentLabel { get; set; } [JsonPropertyName("ticker_sentiment")] @@ -66,7 +66,7 @@ public class SentimentFeedTopic [JsonPropertyName("topic")] public required string Topic { get; set; } [JsonPropertyName("relevance_score")] - public required string RelevanceScore { get; set; } + public required double RelevanceScore { get; set; } #pragma warning restore CS1591 // Missing XML comment for publicly visible type or member } @@ -79,9 +79,9 @@ public class SentimentFeedTickerSentiment [JsonPropertyName("ticker")] public required string Ticker { get; set; } [JsonPropertyName("relevance_score")] - public required string RelevanceScore { get; set; } + public required double RelevanceScore { get; set; } [JsonPropertyName("ticker_sentiment_score")] - public required string TickerSentimentScore { get; set; } + public required double TickerSentimentScore { get; set; } [JsonPropertyName("ticker_sentiment_label")] public required string TickerSentimentLabel { get; set; } #pragma warning restore CS1591 // Missing XML comment for publicly visible type or member