Class UnitPricesForMode
- Namespace
- DatabentoDotNet.Historical
- Assembly
- DatabentoDotNet.Historical.dll
The unit prices for a particular FeedMode.
public sealed record UnitPricesForMode : IEquatable<UnitPricesForMode>
- Inheritance
-
UnitPricesForMode
- Implements
- Inherited Members
Remarks
Port of upstream's UnitPricesForMode
(databento-rs/src/historical/metadata.rs:269-275). Returned by
metadata.list_unit_prices, one entry per feed mode Databento prices separately.
UnitPrices holds decimal, not double.
Upstream's field is f64 (metadata.rs:274) only because Rust's standard library has
no decimal type to reach for; a unit price here is multiplied by a record count before anyone
sees a dollar figure, which makes binary floating point a money bug waiting for a request large
enough to surface it.
Properties
Mode
The data feed mode.
public required FeedMode Mode { get; init; }
Property Value
UnitPrices
The unit prices in US dollars by data record schema.
public required IReadOnlyDictionary<Schema, decimal> UnitPrices { get; init; }