0.14.0
Release notes
This release adds support for DBN v2.
DBN v2 delivers improvements to the Metadata header symbology, new stype_in and stype_out
fields for SymbolMappingMsg, and extends the symbol field length for SymbolMappingMsg and
InstrumentDefMsg. The entire change notes are available here.
Users who wish to convert DBN v1 files to v2 can use the dbn-cli tool available in the databento-dbn crate.
On a future date, the Databento live and historical APIs will stop serving DBN v1.
This release is fully compatible with both DBN v1 and v2, and so should be seamless for most users.
Enhancements
- Added support for DBN encoding version 2 (DBNv2), affecting
SymbolMappingMsg,
InstrumentDefMsg, andMetadata- Version 1 structs can be converted to version 2 structs with the
ToV2()method
- Version 1 structs can be converted to version 2 structs with the
- Added
symbol_cstr_lenfield toMetadatato indicate the length of fixed symbol
strings - Added
stype_inandstype_outfields toSymbolMappingMsgto provide more context
with live symbology updates - Added
IndexTsmethods to every record type which returns the primary timestamp - Added
VersionUpgradePolicyenum to allow specifying how to handle decoding records
from prior DBN versions - Added
InstrumentDefMsgV2andSymbolMappingMsgV2type aliases - Added
kDbnVersionconstant for current DBN version - Added
kSymbolCstrLen,kSymbolCstrLenV1, andkSymbolCstrLenV2constants for the
length of fixed-length symbol strings in different DBN versions - Added new publisher values in preparation for IFEU.IMPACT and NDEX.IMPACT datasets
- Added new publisher values for consolidated DBEQ.BASIC and DBEQ.PLUS
- Added
kMaxRecordLenconstant for the the length of the largest record type - Added ability to convert
FlagSetto underlying representation
Breaking changes
- The old
InstrumentDefMsgis nowInstrumentDefMsgV1incompat.hpp - The old
SymbolMappingMsgis nowSymbolMappingMsgV1incompat.hpp - Converted the following enums to enum classes to allow safely adding new variants:
SecurityUpdateActionandSType - Renamed
dummytoreservedinInstrumentDefMsg - Removed
reserved2,reserved3,reserved4, andreserved5fromInstrumentDefMsg - Moved position of
strike_pricewithinInstrumentDefMsg - Removed deprecated
SecurityUpdateAction::Invalidvariant