Releases: databento/databento-python
Releases · databento/databento-python
databento 0.25.0
Release notes
Breaking changes
- Removed deprecated pretty_pxparameter forDBNStore.to_df;price_typecan be used instead
Bug fixes
- Fixed an issue where the Liveclient would not raise an exception when reading an incompatible DBN version
- Fixed an issue where sending lots of subscriptions could cause a BufferError
- Fixed an issue where Historical.batch.downloadwas slow
- Fixed an issue where Historical.timeseries.get_rangewas slow
- Fixed an issue where reading a DBN file with non-empty metadata symbol mappings and mixed STypewould cause an error when mapping symbols (credit: Jakob Lövhall)
databento 0.24.1
Release notes
Enhancements
- Added new publisher value for OPRA MIAX Sapphire
Bug fixes
- Fixed issue where a large unreadable symbol subscription message could be sent
- Fixed issue where calling Live.stopcould cause a truncated DBN record to be written to a stream
databento 0.24.0
Release notes
This release adds support for DBN v2 as well as Python v3.12.
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 of databento-python is fully compatible with both DBN v1 and v2, so this upgrade should be seamless for most users.
In some cases, DBN v1 records will be converted to their v2 counterparts:
- When iterating a DBNStoreand withDBNStore.replay
- When iterating a Liveclient and records dispatched to callbacks
Enhancements
- Added support for Python 3.12
- Improved the performance for stream writes in the Liveclient
- Upgraded databento-dbnto 0.14.2
- Added databento.common.typesmodule to hold common type annotations
Bug fixes
- Fixed an issue where specifying an OHLCV schema in DBNStore.to_ndarrayorDBNStore.to_dfwould not properly filter records by their interval
- Fixed an issue where DBNStore.to_ndarrayandDBNStore.to_dfwith a non-zero count could get stuck in a loop if the DBN data did not contain any records
Breaking Changes
- DBNStoreiteration and- DBNStore.replaywill upgrade DBN version 1 messages to version 2
- Liveclient iteration and callbacks upgrade DBN version 1 messages to version 2
- Moved DBNRecord,RecordCallback, andExceptionCallbacktypes to themdatabento.common.typesmodule
- Moved AUTH_TIMEOUT_SECONDSandCONNECT_TIMEOUT_SECONDSconstants from thedatabento.livemodule todatabento.live.session
- Moved INT64_NULLfrom thedatabento.common.dbnstoremodule todatabento.common.constants
- Moved SCHEMA_STRUCT_MAPfrom thedatabento.common.datamodule todatabento.common.constants
- Removed schemaparameter fromDataFrameIteratorconstructor,struct_typeis to be used instead
- Removed NON_SCHEMA_RECORD_TYPESconstant as it is no longer used
- Removed DERIV_SCHEMASconstant as it is no longer used
- Removed SCHEMA_COLUMNSconstant as it is no longer used
- Removed SCHEMA_DTYPES_MAPconstant as it is no longer used
- Removed empty databento.common.datamodule
databento 0.23.1
Release notes
Enhancements
- Added new publishers for consolidated DBEQ.BASIC and DBEQ.PLUS
Bug fixes
- Fixed an issue where Live.block_for_closeandLive.wait_for_closewould not flush streams if the timeout was reached
- Fixed a performance regression when reading a historical DBN file into a numpy array
databento 0.23.0
Release notes
Enhancements
- Added map_symbols_csvfunction to thedatabentomodule for usingsymbology.jsonfiles to map a symbol column onto a CSV file
- Added map_symbols_jsonfunction to thedatabentomodule for usingsymbology.jsonfiles to add a symbol key to a file of JSON records
- Added new publisher values in preparation for IFEU.IMPACT and NDEX.IMPACT datasets
Bug fixes
- Fixed issue where a large unreadable symbol subscription message could be sent
- Fixed an issue where DBNStore.to_dfwithpretty_ts=Truewas very slow
databento 0.22.1
Release notes
Bug fixes
- Fixed an issue where DBNStore.to_csvandDBNStore.to_jsonwere mapping symbols even whenmap_symbolswas set toFalse
- Fixed an issue where empty symbology mappings caused a ValueErrorwhen loading symbols into theDBNStoreinstrument map
databento 0.22.0
Release notes
Enhancements
- Added price_typeargument forDBNStore.to_dfto specify if price fields should befixed,floatordecimal.Decimal
- Added py.typedmarker file
- Upgraded databento-dbnto 0.13.0
Breaking Changes
- Changed outputs of DBNStore.to_csvandDBNStore.to_jsonto match the encoding formats from the Databento API
Deprecations
- Deprecated pretty_pxargument forDBNStore.to_dfto be removed in a future release; the defaultpretty_px=Trueis now equivalent toprice_type="float"andpretty_px=Falseis now equivalent toprice_type="fixed"
databento 0.21.0
Release notes
Enhancements
- Added map_symbolssupport for DBN data generated by theLiveclient
- Added support for file paths in Live.add_stream
- Added new publisher values in preparation for DBEQ.PLUS
- Upgraded databento-dbnto 0.11.1
Bug fixes
- Fixed an issue where DBNStore.from_bytesdid not rewind seekable buffers
- Fixed an issue where the DBNStorewould not map symbols with input symbology ofSType.INSTRUMENT_ID
- Fixed an issue with DBNStore.request_symbologywhen the DBN metadata's start date and end date were the same
- Fixed an issue where closed streams were not removed from a Liveclient on shutdown.
databento 0.20.0
Release notes
Enhancements
- Added ARCX.PILLAR.ARCXpublisher
- Added pretty_pxoption forbatch.submit_job, which formats prices to the correct scale using the fixed-precision scalar 1e-9 (available for CSV and JSON text encodings)
- Added pretty_tsoption forbatch.submit_job, which formats timestamps as ISO 8601 strings (available for CSV and JSON text encodings)
- Added map_symbolsoption forbatch.submit_job, which appends a symbol field to each text-encoded record (available for CSV and JSON text encodings)
- Added split_symbolsoption forbatch.submit_job, which will split files by raw symbol
- Upgraded databento-dbnto 0.10.2
Bug fixes
- Fixed an issue where no disconnection exception were raised when iterating the Liveclient
- Fixed an issue where calling DBNStore.to_df,DBNStore.to_json, orDBNStore.to_csvwithmap_symbols=Truewould cause aTypeError
Breaking changes
- Removed default_valueparameter fromHistorical.symbology.resolve
- Swapped the ordering for the pretty_pxandpretty_tsboolean parameters
databento 0.19.1
Release notes
Bug fixes
- Fixed an issue where the index column was not serialized with DBNStore.to_json
- Fixed an issue where timestamps serialized by DBNStore.to_jsonhad reduced precision