DatabentoDotNet.Historical 0.10.0

Prefix Reserved
dotnet add package DatabentoDotNet.Historical --version 0.10.0
                    
NuGet\Install-Package DatabentoDotNet.Historical -Version 0.10.0
                    
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="DatabentoDotNet.Historical" Version="0.10.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DatabentoDotNet.Historical" Version="0.10.0" />
                    
Directory.Packages.props
<PackageReference Include="DatabentoDotNet.Historical" />
                    
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 DatabentoDotNet.Historical --version 0.10.0
                    
#r "nuget: DatabentoDotNet.Historical, 0.10.0"
                    
#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 DatabentoDotNet.Historical@0.10.0
                    
#: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=DatabentoDotNet.Historical&version=0.10.0
                    
Install as a Cake Addin
#tool nuget:?package=DatabentoDotNet.Historical&version=0.10.0
                    
Install as a Cake Tool

DatabentoDotNet.Historical

The Databento historical HTTPS API for .NET: metadata, timeseries, batch jobs, and symbology. A port of databento-rs's historical client, all nineteen endpoints.

0.10.0 is a beta. The code is complete and tested; what is not yet settled is whether the public surface is the right shape. 1.0.0 undertakes not to break it, so the beta is when that undertaking is worth contesting — if something here is awkward to call, an issue now is much cheaper than a major version later.

Price the request before you send it

using DatabentoDotNet;
using DatabentoDotNet.Dbn;
using DatabentoDotNet.Historical;
using NodaTime;

await using var client = new HistoricalClient
{
    ApiKey = new ApiKey(Environment.GetEnvironmentVariable("DATABENTO_API_KEY")!),
};

var request = new MetadataQueryParams
{
    Dataset = "XNAS.ITCH",
    Symbols = Symbols.From(["AAPL", "MSFT"]),
    Schema = Schema.Trades,
    DateTimeRange = DateTimeRange.Between(
        Instant.FromUtc(2023, 7, 1, 0, 0, 0), Instant.FromUtc(2023, 8, 1, 0, 0, 0)),
};

decimal cost = await client.Metadata.GetCostAsync(request);
if (cost > 5.00m)
{
    Console.WriteLine($"${cost} for that range — narrowing it before pulling any data.");
    return;
}

GetCostAsync answers, in dollars, what pulling this exact range would cost — before any data moves. Deliberately not a second parameter set assembled by hand: GetRangeParams.ToQuery() renders the MetadataQueryParams for the very request you are about to send, so what was priced and what is sent cannot drift apart. SubmitJobParams carries the same conversion.

The cost comes back as decimal, not double. The API's own f64 is a Rust standard-library limitation rather than a choice, and a per-gigabyte unit price gets multiplied by a record count before a caller ever sees a figure.

Dependencies

NodaTime for every date range — DateRange and DateTimeRange, since the BCL date/time types are banned repo-wide — Microsoft.Extensions.Logging.Abstractions for the optional LoggerFactory that surfaces X-Warning, plus DatabentoDotNet.Dbn and ZstdSharp.Port.

Documentation

The API reference is the XML documentation shipped inside this package. Guides and troubleshooting are at jerbersoft.github.io/databentodotnet — start with Historical Data.

Source, issues, and roadmap: https://github.com/jerbersoft/databentodotnet.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on DatabentoDotNet.Historical:

Package Downloads
DatabentoDotNet.Reference

Databento reference data client for .NET: security master, corporate actions, and adjustment factors.

DatabentoDotNet.Extensions.Hosting

Databento for ASP.NET Core and the .NET generic host: IServiceCollection registration for the historical, reference and live clients, IConfiguration binding, and a hosted live-streaming service with bounded reconnection, health checks and metrics.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.10.0 120 9/1/2026
0.9.1 102 8/31/2026
0.9.0 110 8/30/2026
0.1.0-alpha 103 8/29/2026