public Task <NewsEntry[]> GetNews(NewsCategory category, int minId)
        {
            if (minId < 0)
            {
                throw new ArgumentException(nameof(minId));
            }

            return(_finnhubClient.SendAsync <NewsEntry[]>("news", JsonDeserialiser.Default,
                                                          new Field(FieldKeys.Category, category.GetFieldValue()),
                                                          new Field(FieldKeys.MinId, minId.ToString())));
        }
 public Task <NewsEntry[]> GetNews(NewsCategory category)
 {
     return(_finnhubClient.SendAsync <NewsEntry[]>("news", JsonDeserialiser.Default,
                                                   new Field(FieldKeys.Category, category.GetFieldValue())));
 }