Releases: databento/dbn
Releases · databento/dbn
0.43.0
Release notes
Enhancements
- Added export of
F_PUBLISHER_SPECIFICconstant to Python - Removed support for Python 3.9 in
databento-dbndue to end of life - Added explicit
Unsetvariant forSystemCodeandErrorCode - Changed Python getters for enum fields to return the underlying type when no known
variant can be found. As a result, these getters no longer raise an exception - Added
Defaultimplementation forSystemCodeandErrorCode
Bug fixes
- Added missing Python type stubs for other flag constants
0.42.0
Release notes
Enhancements
- Added
ts_indexandpretty_ts_indexproperties for records in Python which provides
the timestamp that is most appropriate for indexing - Upgraded
pyo3version to 0.26.0
Bug fixes
- Fixed type stub for
channel_idin Python to allowNone - Fixed missing re-export for
record::TcbboMsg
0.41.0
Release notes
Enhancements
- Added
intervalmethodRTypeandSchemato get the duration for subsample schemas
likeOhlcv1HandCbbo1S
Breaking changes
- Changed the default value for
channel_idto beu8::MAXinMboMsgandu16::MAX
elsewhere since 0 is a valid channel ID
Bug fixes
- Changed default
inst_attrib_valuevalue from 0 toi32::MAXto match Rust
0.40.0
Release notes
Enhancements
- Added
instrument_idandpublisher_idsetters to all records in Python - Added
DbnVersionnew type
Breaking changes
- Removed
hdproperty from records in Python. Header fields are accessible
directly from the record - Removed ability to directly instantiate most enums from an
intin Python and coercion
fromintin__eq__. They can still be instantitated with thefrom_intclass method.
WriteSide.from_int(66)instead ofSide(66)andSide.BID == Side.from_int(66)
instead ofSide.BID == 66. Affected enums:SideActionInstrumentClassMatchAlgorithmUserDefinedInstrumentSecurityUpdateActionSTypeSchemaEncodingCompressionTriState
- Removed string coercion in
__init__and__eq__forRType,SystemCode, and
ErrorCodeenums in Python. It can still be instantiated from astrwith the
from_strclass method. WriteRType.from_str("mbo")instead ofRType("mbo")
andRType.TRADES == RType.from_str("trades")instead ofRType.TRADES == "trades"
Bug fixes
- Fixed
__init__type signatures forErrorMsgandSystemMsgin Python - Added missing types to record
__init__type signatures in Python - Added
__init__type stub for enums in Python - Fixed
__hash__implementation for Python enums to match that of theircharorint
representation
Breaking changes
- Marked
ErrorCodeandSystemCodenon-exhaustive to allow adding future variants
without a breaking change - Added
EndOfIntervalvariant toSystemCodeto notify when all OHLCV bars and
subsampled BBO records have been published for a time interval
0.39.1
Release notes
Enhancements
- Added
PUBLISHER_SPECIFICflag - Improved JSON encoding performance
- Added a
Defaultimplementation forSecurityUpdateAction
0.39.0
Release notes
Enhancements
- Added
side()andunpaired_side()methods toImbalanceMsgthat convert the fields
of the same name to theSideenum - Added
pretty_auction_timeproperty in Python forImbalanceMsg - Added
Defaultimplementation forStatUpdateAction - Added warnings to the floating-point getter methods' docstrings
- Added
actionandts_in_deltagetters toBboMsg - Added
ts_recvgetter toStatusMsg - Added missing floating-point price getters to
InstrumentDefMsgrecord types from all
DBN versions - Added more floating-point price getters to
ImbalanceMsg - Added floating-point price getter to
StatMsgandv1::StatMsg - Standardize Python
__init__type signatures - Upgraded
async-compressiondependency version to 0.4.27
Breaking changes
- Changed
SystemMsg::code()andErrorMsg::code()methods to return aResult
instead of anOptionto be consistent with other enum conversion methods - Changed
auction_timefield inImbalanceMsgto be formatted as a timestamp
Bug fixes
- Fixed a regression where some enum constructors no longer raised a
DBNErrorin
Python - Fixed typo in
RecordHeader'srtypedocstring - Removed error documentation from
ErrorMsg::newbecause the function never returns an
error
0.38.0
Release notes
Breaking changes
- Renamed
Compression::ZStdtoZstdfor consistency - Removed duplicated
flagsconstants inenumsmodule. Use the top-levelflags
constants instead - Renamed to
SCHEMA_COUNTtoSchema::COUNT
Bug fixes
- Relaxed requirement of
input_versionparameter to the PythonTranscoderto only
be required when transcoding to CSV withoutMetadata, where previously it was always
required when transcoding data withoutMetadata - Added missing methods to Python for
StatUpdateActionenum
0.37.1
Release notes
Bug fixes
- Fixed issue where
RecordHeaderfields weren't accessible from Python
0.37.0
Release notes
Breaking changes
- Renamed the following Venue, Dataset, and Publishers:
XEERtoXEEEXEER.EOBItoXEEE.EOBIXEER.EOBI.XEERtoXEEE.EOBI.XEEEXEER.EOBI.XOFFtoXEEE.EOBI.XOFF
- Renamed
CMBP1constant toCMBP_1for consistency withMBP_1andMBP_10
Bug fixes
- Fix buffer growth in
DbnFsm::write_all(), which is used by Python
DBNDecoder.write()
0.36.2
Release notes
Enhancements
- Upgraded
async-compressionversion to 0.4.25 - Upgraded
pyo3version to 0.25.1
Bug fixes
- Fixed change in behavior where Python
DBNDecoder.decode()wouldn't always decode all
available data on the first call