MassiveAPI 1.0.4

There is a newer version of this package available.
See the version list below for details.
dotnet add package MassiveAPI --version 1.0.4
                    
NuGet\Install-Package MassiveAPI -Version 1.0.4
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MassiveAPI" Version="1.0.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MassiveAPI" Version="1.0.4" />
                    
Directory.Packages.props
<PackageReference Include="MassiveAPI" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MassiveAPI --version 1.0.4
                    
#r "nuget: MassiveAPI, 1.0.4"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package MassiveAPI@1.0.4
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MassiveAPI&version=1.0.4
                    
Install as a Cake Addin
#tool nuget:?package=MassiveAPI&version=1.0.4
                    
Install as a Cake Tool

MassiveAPI

C# client implementation to access the Massive API

A typed C# client library for the Massive REST API. The library provides request/response models and a MassiveClient implementation (plus IMassiveClient) for interacting with the Massive endpoints using strongly-typed inputs and outputs.

Features

  • Typed request/response models organized under MassiveAPI.Requests and MassiveAPI.Responses.
  • Consistent error handling via MassiveApiException.
  • XML documentation across the public API for discoverability.

Installation

Install from NuGet:

dotnet add package MassiveAPI

Or via the NuGet Package Manager:

Install-Package MassiveAPI

Quick start

using MassiveAPI;
using MassiveAPI.Requests;

var client = new MassiveClient("YOUR_API_KEY");

// Ticker overview
var overview = await client.GetTickerOverviewAsync(new TickerOverviewRequest("AAPL"));

// All tickers
var allTickers = await client.GetAllTickersAsync(new AllTickersRequest
{
    Market = "stocks",
    Active = true,
    Limit = 50
});

// Stock custom bars
var customBars = await client.GetCustomBarsAsync(new CustomBarsRequest
{
    Ticker = "AAPL",
    Multiplier = 1,
    Timespan = "day",
    From = new DateTimeOffset(2024, 1, 1, 0, 0, 0, TimeSpan.Zero),
    To = new DateTimeOffset(2024, 2, 1, 0, 0, 0, TimeSpan.Zero),
    Adjusted = true
});

// Options custom bars
var optionsBars = await client.GetOptionsCustomBarsAsync(new OptionsCustomBarsRequest
{
    Ticker = "O:AAPL240621C00150000",
    Multiplier = 1,
    Timespan = "day",
    From = new DateTimeOffset(2024, 1, 1, 0, 0, 0, TimeSpan.Zero),
    To = new DateTimeOffset(2024, 2, 1, 0, 0, 0, TimeSpan.Zero)
});

// Options contract overview
var contractOverview = await client.GetOptionsContractOverviewAsync(
    new OptionsContractOverviewRequest("O:AAPL260102C00110000"));

Error handling

All Massive API failures and serialization issues are wrapped in MassiveApiException. Network cancellations still propagate OperationCanceledException for standard cancellation handling.

Test project

The test project lives under tests/MassiveAPI.UnitTests.csproj and uses xUnit. End-to-end tests require the MASSIVE_API_KEY environment variable to be set; otherwise those tests will return without executing API calls.

Run tests locally with:

dotnet test tests/MassiveAPI.UnitTests.csproj

Project structure

  • src/Requests: Request DTOs used for API calls.
  • src/Responses: Response DTOs returned by API calls.
  • src/MassiveClient.cs: MassiveClient implementation.
  • src/IMassiveClient.cs: Interface for the client.

Development

Build the project with:

dotnet build src/MassiveAPI.csproj
Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net9.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.6 125 12/29/2025
1.0.5 122 12/29/2025
1.0.4 115 12/27/2025
1.0.3 114 12/27/2025