Enum InstrumentClass
- Namespace
- DatabentoDotNet.Dbn
- Assembly
- DatabentoDotNet.Dbn.dll
The class of instrument.
public enum InstrumentClass : byte
- Extension Methods
Fields
Bond = 66A bond.
Call = 67A call option.
CommoditySpot = 89A commodity being traded for immediate delivery.
Future = 70A future.
FutureSpread = 83A spread composed of futures.
FxSpot = 88A foreign exchange spot.
Index = 73An index.
MixedSpread = 77A spread composed of multiple instrument classes.
OptionSpread = 84A spread composed of options.
Put = 80A put option.
Stock = 75A stock.
Remarks
Char-valued: each variant's numeric value is its ASCII character code, and that character is
the only wire/text form this type has — there is no separate string representation. Use
ToChar(InstrumentClass) to read it as a char.
Upstream marks this type #[non_exhaustive]: Databento may add variants in a future
release without that being a breaking change. Do not treat an unrecognized byte as
necessarily invalid the way you would for e.g. Schema; it may simply be a
variant this port has not caught up to yet. This type has no upstream default variant.