Skip to main content

C# / .NET SDK
New

Welcome to the Market Data C#/.NET SDK documentation. This SDK lets you integrate Market Data services into any .NET application. It ships typed, records-based responses, an async-first API where every endpoint returns a Task and accepts a CancellationToken, automatic retries and rate-limit tracking, and a focused exception hierarchy you can branch on.

The SDK multi-targets .NET 8 and .NET 10 (both LTS), integrates with Microsoft.Extensions.Configuration, Microsoft.Extensions.Logging, and dependency injection out of the box, and works equally well from a console app, a background service, or ASP.NET Core.

Quick Start

using MarketDataApp;

// With no HttpClient supplied, the SDK creates and owns one configured to its requirements.
// It reads MARKETDATA_TOKEN from the environment (or a .env file), validates the token on
// startup, and seeds the rate-limit snapshot before your first request.
using var client = await MarketDataClient.CreateAsync();

// A single quote — GetQuoteAsync returns a list; a single symbol is row 0.
var quote = (await client.Stocks.GetQuoteAsync("AAPL")).Values[0];
Console.WriteLine(quote); // AAPL mid=311.94 last=311.92

Open Source

The SDK is open source and available on GitHub. Feel free to contribute to the project, report bugs, or request new features.

Documentation

The best source for documentation on the SDK is right here. This documentation is the most up-to-date and accurate source of information on the SDK.

Using the SDK

This SDK is designed to help you get up and running with Market Data's APIs as quickly as possible, providing all the tools you need to access real-time stock and options prices, historical data, and much more.

Getting Started

  1. Install the SDK from NuGet.
  2. Set up your authentication token to access the API.
  3. Learn about the client and how to make your first API requests.
  4. Configure Settings to customize output format, date format, and other universal parameters.
  5. Explore the available endpoints for stocks, options, funds, markets, and utilities.

Support

  • If you have any questions or need further assistance, please don't hesitate to open a ticket at our helpdesk.
  • If you find a bug you may also open an issue in our GitHub repository. Please only open issues if you find a bug. Use our helpdesk for general questions or implementation assistance.