SoftTraderBackend/Interface/INewsSentimentStore.cs
2026-03-20 10:42:48 -04:00

25 lines
614 B
C#

using Backend.DatabaseHandler;
namespace Backend.Interface
{
public interface INewsSentimentStore
{
Task<List<NewsSentimentRecord>> GetByKeywordAsync(
string keyword,
CancellationToken cancellationToken = default);
Task<List<NewsSentimentRecord>> GetFeedAsync(
IEnumerable<string> keywords,
int limit,
CancellationToken cancellationToken = default);
Task InsertAsync(
IEnumerable<NewsSentimentRecord> records,
CancellationToken cancellationToken = default);
Task<HashSet<string>> GetExistingHashesAsync(
string keyword,
CancellationToken cancellationToken = default);
}
}