Installation
This guide will help you install the Market Data C#/.NET SDK and configure it for your project.
| Package | MarketDataApp on NuGet.org |
| Target frameworks | net8.0, net10.0 |
| License | MIT |
| Source | MarketDataApp/sdk-csharp |
Prerequisites
- .NET 8.0 or newer. The package multi-targets
net8.0andnet10.0(both LTS releases), so projects on either runtime get a native build. - The .NET SDK command line, or an IDE such as Visual Studio, Rider, or VS Code with the C# Dev Kit.
Basic Installation
Add the SDK as a NuGet package reference. From your project directory:
dotnet add package MarketDataApp
dotnet add package resolves the newest stable version for you and writes it into your project file.
If you maintain the reference by hand, take the version number from the package's NuGet page or the releases list — versions are derived from git tags, so there is no fixed number to copy from the docs:
<ItemGroup>
<!-- Replace with the version shown on NuGet or the releases page. -->
<PackageReference Include="MarketDataApp" Version="1.0.0" />
</ItemGroup>
The NuGet package id, the assembly, and the root namespace are all MarketDataApp — you install MarketDataApp and then write using MarketDataApp;. Endpoint-specific types live under MarketDataApp.Stocks, MarketDataApp.Options, MarketDataApp.Funds, MarketDataApp.Markets, and MarketDataApp.Utilities.
Requirements & Dependencies
The SDK stays on the standard Microsoft stack, with one small helper:
- No third-party HTTP client. It uses the built-in
System.Net.Http.HttpClient, and can either create its own or use one your application manages (including clients fromIHttpClientFactory, viaMicrosoft.Extensions.Http). System.Text.Jsonfor JSON decoding — no Newtonsoft dependency.Microsoft.Extensions.Configuration(with the environment-variables and user-secrets providers),Microsoft.Extensions.Logging, andMicrosoft.Extensions.DependencyInjectionfor configuration binding, structured logging, and theAddMarketDataClientservice-collection extension.DotNetEnvto load an optional.envfile from the working directory.
Updating the SDK
To move to the latest stable version:
dotnet add package MarketDataApp
The SDK follows semantic versioning from 1.0.0, so a 1.x update never contains a breaking change. Review the release notes before moving to a new major version.
Next Steps
After installation, you'll need to:
- Set up your authentication token.
- Learn about the client and how to make your first API requests.
- Configure Settings to customize output format, date format, and other universal parameters.