APIVerve.API.TickerNews
1.2.3
Prefix Reserved
dotnet add package APIVerve.API.TickerNews --version 1.2.3
NuGet\Install-Package APIVerve.API.TickerNews -Version 1.2.3
<PackageReference Include="APIVerve.API.TickerNews" Version="1.2.3" />
<PackageVersion Include="APIVerve.API.TickerNews" Version="1.2.3" />
<PackageReference Include="APIVerve.API.TickerNews" />
paket add APIVerve.API.TickerNews --version 1.2.3
#r "nuget: APIVerve.API.TickerNews, 1.2.3"
#:package APIVerve.API.TickerNews@1.2.3
#addin nuget:?package=APIVerve.API.TickerNews&version=1.2.3
#tool nuget:?package=APIVerve.API.TickerNews&version=1.2.3
Ticker News API
Ticker News is a stock news API that returns the latest news stories about one ticker symbol: US stocks and ETFs, stocks on 18 international markets, cryptocurrencies, futures and currency pairs. Each story comes with its headline, link, source, publisher and publication time, and is tagged as directly about the company or as a related market story. Paid plans add story summaries, headline tone and more stories per call.
This is a .NET wrapper for the Ticker News API
Installation
Using the .NET CLI:
dotnet add package APIVerve.API.TickerNews
Using the Package Manager:
nuget install APIVerve.API.TickerNews
Using the Package Manager Console:
Install-Package APIVerve.API.TickerNews
From within Visual Studio:
- Open the Solution Explorer
- Right-click on a project within your solution
- Click on Manage NuGet Packages
- Click on the Browse tab and search for "APIVerve.API.TickerNews"
- Click on the APIVerve.API.TickerNews package, select the appropriate version in the right-tab and click Install
Configuration
Before using the Ticker News API client, you have to setup your account and obtain your API Key. You can get it by signing up at https://apiverve.com
Quick Start
Here's a simple example to get you started quickly:
using System;
using APIVerve.API.TickerNews;
class Program
{
static async Task Main(string[] args)
{
// Initialize the API client
var apiClient = new TickerNewsAPIClient("[YOUR_API_KEY]");
var queryOptions = new TickerNewsQueryOptions {
Ticker = "AAPL",
Market = "US",
Relevance = "direct",
Since = "2026-10-01"
};
// Make the API call
try
{
var response = await apiClient.ExecuteAsync(queryOptions);
if (response.Error != null)
{
Console.WriteLine($"API Error: {response.Error}");
}
else
{
Console.WriteLine("Success!");
// Access response data using the strongly-typed ResponseObj properties
Console.WriteLine(Newtonsoft.Json.JsonConvert.SerializeObject(response, Newtonsoft.Json.Formatting.Indented));
}
}
catch (Exception ex)
{
Console.WriteLine($"Exception: {ex.Message}");
}
}
}
Usage
The Ticker News API documentation is found here: https://docs.apiverve.com/ref/tickernews. You can find parameters, example responses, and status codes documented here.
Setup
Authentication
Ticker News API uses API Key-based authentication. When you create an instance of the API client, you can pass your API Key as a parameter.
// Create an instance of the API client
var apiClient = new TickerNewsAPIClient("[YOUR_API_KEY]");
Usage Examples
Basic Usage (Async/Await Pattern - Recommended)
The modern async/await pattern provides the best performance and code readability:
using System;
using System.Threading.Tasks;
using APIVerve.API.TickerNews;
public class Example
{
public static async Task Main(string[] args)
{
var apiClient = new TickerNewsAPIClient("[YOUR_API_KEY]");
var queryOptions = new TickerNewsQueryOptions {
Ticker = "AAPL",
Market = "US",
Relevance = "direct",
Since = "2026-10-01"
};
var response = await apiClient.ExecuteAsync(queryOptions);
if (response.Error != null)
{
Console.WriteLine($"Error: {response.Error}");
}
else
{
Console.WriteLine(Newtonsoft.Json.JsonConvert.SerializeObject(response, Newtonsoft.Json.Formatting.Indented));
}
}
}
Synchronous Usage
If you need to use synchronous code, you can use the Execute method:
using System;
using APIVerve.API.TickerNews;
public class Example
{
public static void Main(string[] args)
{
var apiClient = new TickerNewsAPIClient("[YOUR_API_KEY]");
var queryOptions = new TickerNewsQueryOptions {
Ticker = "AAPL",
Market = "US",
Relevance = "direct",
Since = "2026-10-01"
};
var response = apiClient.Execute(queryOptions);
if (response.Error != null)
{
Console.WriteLine($"Error: {response.Error}");
}
else
{
Console.WriteLine(Newtonsoft.Json.JsonConvert.SerializeObject(response, Newtonsoft.Json.Formatting.Indented));
}
}
}
Error Handling
The API client provides comprehensive error handling. Here are some examples:
Handling API Errors
using System;
using System.Threading.Tasks;
using APIVerve.API.TickerNews;
public class Example
{
public static async Task Main(string[] args)
{
var apiClient = new TickerNewsAPIClient("[YOUR_API_KEY]");
var queryOptions = new TickerNewsQueryOptions {
Ticker = "AAPL",
Market = "US",
Relevance = "direct",
Since = "2026-10-01"
};
try
{
var response = await apiClient.ExecuteAsync(queryOptions);
// Check for API-level errors
if (response.Error != null)
{
Console.WriteLine($"API Error: {response.Error}");
Console.WriteLine($"Status: {response.Status}");
return;
}
// Success - use the data
Console.WriteLine("Request successful!");
Console.WriteLine(Newtonsoft.Json.JsonConvert.SerializeObject(response, Newtonsoft.Json.Formatting.Indented));
}
catch (ArgumentException ex)
{
// Invalid API key or parameters
Console.WriteLine($"Invalid argument: {ex.Message}");
}
catch (System.Net.Http.HttpRequestException ex)
{
// Network or HTTP errors
Console.WriteLine($"Network error: {ex.Message}");
}
catch (Exception ex)
{
// Other errors
Console.WriteLine($"Unexpected error: {ex.Message}");
}
}
}
Comprehensive Error Handling with Retry Logic
using System;
using System.Threading.Tasks;
using APIVerve.API.TickerNews;
public class Example
{
public static async Task Main(string[] args)
{
var apiClient = new TickerNewsAPIClient("[YOUR_API_KEY]");
// Configure retry behavior (max 3 retries)
apiClient.SetMaxRetries(3); // Retry up to 3 times (default: 0, max: 3)
apiClient.SetRetryDelay(2000); // Wait 2 seconds between retries
var queryOptions = new TickerNewsQueryOptions {
Ticker = "AAPL",
Market = "US",
Relevance = "direct",
Since = "2026-10-01"
};
try
{
var response = await apiClient.ExecuteAsync(queryOptions);
if (response.Error != null)
{
Console.WriteLine($"API Error: {response.Error}");
}
else
{
Console.WriteLine("Success!");
Console.WriteLine(Newtonsoft.Json.JsonConvert.SerializeObject(response, Newtonsoft.Json.Formatting.Indented));
}
}
catch (Exception ex)
{
Console.WriteLine($"Failed after retries: {ex.Message}");
}
}
}
Advanced Features
Custom Headers
Add custom headers to your requests:
var apiClient = new TickerNewsAPIClient("[YOUR_API_KEY]");
// Add custom headers
apiClient.AddCustomHeader("X-Custom-Header", "custom-value");
apiClient.AddCustomHeader("X-Request-ID", Guid.NewGuid().ToString());
var queryOptions = new TickerNewsQueryOptions {
Ticker = "AAPL",
Market = "US",
Relevance = "direct",
Since = "2026-10-01"
};
var response = await apiClient.ExecuteAsync(queryOptions);
// Remove a header
apiClient.RemoveCustomHeader("X-Custom-Header");
// Clear all custom headers
apiClient.ClearCustomHeaders();
Request Logging
Enable logging for debugging:
var apiClient = new TickerNewsAPIClient("[YOUR_API_KEY]", isDebug: true);
// Or use a custom logger
apiClient.SetLogger(message =>
{
Console.WriteLine($"[LOG] {DateTime.Now:yyyy-MM-dd HH:mm:ss} - {message}");
});
var queryOptions = new TickerNewsQueryOptions {
Ticker = "AAPL",
Market = "US",
Relevance = "direct",
Since = "2026-10-01"
};
var response = await apiClient.ExecuteAsync(queryOptions);
Retry Configuration
Customize retry behavior for failed requests:
var apiClient = new TickerNewsAPIClient("[YOUR_API_KEY]");
// Set retry options
apiClient.SetMaxRetries(3); // Retry up to 3 times (default: 0, max: 3)
apiClient.SetRetryDelay(1500); // Wait 1.5 seconds between retries (default: 1000ms)
var queryOptions = new TickerNewsQueryOptions {
Ticker = "AAPL",
Market = "US",
Relevance = "direct",
Since = "2026-10-01"
};
var response = await apiClient.ExecuteAsync(queryOptions);
Dispose Pattern
The API client implements IDisposable for proper resource cleanup:
var queryOptions = new TickerNewsQueryOptions {
Ticker = "AAPL",
Market = "US",
Relevance = "direct",
Since = "2026-10-01"
};
using (var apiClient = new TickerNewsAPIClient("[YOUR_API_KEY]"))
{
var response = await apiClient.ExecuteAsync(queryOptions);
Console.WriteLine(Newtonsoft.Json.JsonConvert.SerializeObject(response, Newtonsoft.Json.Formatting.Indented));
}
// HttpClient is automatically disposed here
Example Response
{
"status": "ok",
"error": null,
"data": {
"ticker": "AAPL",
"name": "Apple Inc. Common Stock",
"market": "US",
"exchange": "XNAS",
"assetClass": "equity",
"relevance": "direct",
"lastUpdated": "2026-10-06T19:18:01.000Z",
"count": 3,
"articles": [
{
"title": "Scott Galloway: “Apple Wins by Showing Up Late” in AI, and Its New Home Hub Is the Test",
"link": "https://www.tikr.com/blog/scott-galloway-apple-wins-by-showing-up-late-in-ai-and-its-new-home-hub-is-the-test?ref=yahoofinance",
"source": "Yahoo Finance",
"publisher": "tikr.com",
"publishedAt": "2026-10-06T18:44:16.000Z",
"relevance": "direct",
"snippet": "Key TakeawaysApple is expected to launch its first smart home hub on Oct. 13, and Scott Galloway predicts it will be the top smart display by revenue within 18 months.",
"sentiment": "very positive",
"sentimentScore": 8
},
{
"title": "Only Four Trillion-Dollar Stocks Are Beating the S&P 500. What’s Next for the Megacaps?",
"link": "https://finance.yahoo.com/m/7003431f-36c8-336f-bf14-80d032b6a728/only-four-trillion-dollar.html",
"source": "Yahoo Finance",
"publisher": "finance.yahoo.com",
"publishedAt": "2026-10-06T18:22:00.000Z",
"relevance": "direct",
"snippet": "Only four trillion-dollar companies, including Nvidia and Apple, have beaten the S&P 500 this year, but recent rallies have left several looking overbought.",
"sentiment": "very negative",
"sentimentScore": -3
},
{
"title": "Apple's Market Value Grew From $350 Billion to $4.75 Trillion During Tim Cook's 15 Years as CEO. Here's What That Growth Curve Means for Betting on Apple's Next Chapter Under John Ternus.",
"link": "https://www.fool.com/investing/2026/10/06/apples-market-value-grew-from-350-billion-to-475-t/",
"source": "Yahoo Finance",
"publisher": "fool.com",
"publishedAt": "2026-10-06T17:12:00.000Z",
"relevance": "direct",
"snippet": "Ternus is inheriting a well-oiled machine, but Apple's growth may slow in the coming years.",
"sentiment": "very positive",
"sentimentScore": 4
}
]
}
}
Customer Support
Need any assistance? Get in touch with Customer Support.
Updates
Stay up to date by following @apiverveHQ on Twitter.
Legal
All usage of the APIVerve website, API, and services is subject to the APIVerve Terms of Service and all legal documents and agreements.
License
Licensed under the MIT License (MIT)
Copyright (©) 2026 APIVerve, and EvlarSoft LLC
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
| .NET Framework | net20 is compatible. net35 is compatible. net40 is compatible. net403 was computed. net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 2.0
- Newtonsoft.Json (>= 13.0.3)
-
.NETFramework 3.5
- Newtonsoft.Json (>= 13.0.3)
-
.NETFramework 4.0
- Newtonsoft.Json (>= 13.0.3)
-
.NETFramework 4.5
- Newtonsoft.Json (>= 13.0.3)
- System.Net.Http (>= 4.3.4)
-
.NETStandard 2.0
- Newtonsoft.Json (>= 13.0.3)
- System.Net.Http (>= 4.3.4)
-
.NETStandard 2.1
- Newtonsoft.Json (>= 13.0.3)
- System.Net.Http (>= 4.3.4)
-
net6.0
- Newtonsoft.Json (>= 13.0.3)
- System.Net.Http (>= 4.3.4)
-
net8.0
- Newtonsoft.Json (>= 13.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Ticker News API client for .NET, version 1.2.3. Features include async/await support, automatic retries, custom headers, request logging, and cancellation token support.