Table of Contents

Class DatabentoOptions

Namespace
DatabentoDotNet.Extensions.Hosting
Assembly
DatabentoDotNet.Extensions.Hosting.dll

Configuration common to every Databento client in the container.

public sealed class DatabentoOptions
Inheritance
DatabentoOptions
Inherited Members

Remarks

Bound from the section handed to AddDatabento, conventionally Databento.

Fields

DefaultSectionName

The conventional configuration section name: Databento.

public const string DefaultSectionName = "Databento"

Field Value

string

Properties

ApiKey

The API key every client uses unless it names its own, or null to fall back to the DATABENTO_API_KEY environment variable.

public string? ApiKey { get; set; }

Property Value

string

Remarks

A string here and an ApiKey everywhere else, and the asymmetry is the whole reason this type exists: ApiKey validates in its constructor and has no parameterless form, so a configuration binder cannot produce one. The crossing happens once, in LiveSessionResolver, where a bad key becomes a startup failure naming its configuration path rather than an exception from inside a binder.