Skip to content

Commit

Permalink
Update sentiment scores to be double (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
viceroypenguin authored Feb 5, 2024
1 parent b4cac69 commit 0f37f3e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Source/AlphaVantage.Net/Sentiment/SentimentResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public class SentimentFeedItem
[JsonPropertyName("topics")]
public required IReadOnlyList<SentimentFeedTopic> 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")]
Expand All @@ -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
}

Expand All @@ -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
Expand Down

0 comments on commit 0f37f3e

Please sign in to comment.