MassiveAPI 1.0.3
See the version list below for details.
dotnet add package MassiveAPI --version 1.0.3
NuGet\Install-Package MassiveAPI -Version 1.0.3
<PackageReference Include="MassiveAPI" Version="1.0.3" />
<PackageVersion Include="MassiveAPI" Version="1.0.3" />
<PackageReference Include="MassiveAPI" />
paket add MassiveAPI --version 1.0.3
#r "nuget: MassiveAPI, 1.0.3"
#:package MassiveAPI@1.0.3
#addin nuget:?package=MassiveAPI&version=1.0.3
#tool nuget:?package=MassiveAPI&version=1.0.3
MassiveAPI
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.RequestsandMassiveAPI.Responses. - Consistent error handling via
MassiveApiException. - XML documentation across the public API for discoverability.
Installation
This project is currently a source-only library. Add the src project to your solution, or
reference the compiled assembly once you build it.
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.
Project structure
src/Requests: Request DTOs used for API calls.src/Responses: Response DTOs returned by API calls.src/MassiveClient.cs:MassiveClientimplementation.src/IMassiveClient.cs: Interface for the client.
Development
Build the project with:
dotnet build src/MassiveAPI.csproj
| Product | Versions 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. |
-
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.