Skip to content

Releases: databento/databento-python

databento 0.66.0

19 Nov 00:51
688bcad

Choose a tag to compare

Release notes

Enhancements

  • Added a property Live.session_id which returns the streaming session ID when the client is connected
  • Streams added with Live.add_stream() which do not define an exception handler will now emit a warning if an exception is raised while executing the callback
  • Callback functions added with Live.add_callback() which do not define an exception handler will now emit a warning if an exception is raised while executing the callback
  • Upgraded databento-dbn to 0.44.0
    • Added logic to set code when upgrading version 1 SystemMsg to newer versions

Bug fixes

  • Streams opened by Live.add_stream() will now close properly when the streaming session is closed

databento 0.65.0

11 Nov 23:45
65a6a8f

Choose a tag to compare

Release notes

Deprecations

  • Deprecated mode parameter in metadata.get_cost, which will be removed in a future release

Enhancements

  • Added export of CBBOMsg and BBOMsg from databento_dbn to the root databento package
  • Upgraded databento-dbn to 0.43.0
    • Added export of F_PUBLISHER_SPECIFIC constant to Python
    • Added explicit Unset variant for SystemCode and ErrorCode
    • 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

Breaking changes

  • Removed support for Python 3.9 due to end of life

databento 0.64.0

03 Oct 20:37
b41eedd

Choose a tag to compare

Release notes

Enhancements

  • Upgraded databento-dbn to 0.42.0
    • Added ts_index and pretty_ts_index properties for records in Python which provides the timestamp that is most appropriate for indexing
    • Fixed type stub for channel_id to allow None

Bug fixes

  • Fixed type hint for start parameter in Live.subscribe()

databento 0.63.0

03 Sep 19:29
c3557f6

Choose a tag to compare

Release notes

Enhancements

  • Upgraded databento-dbn to 0.41.0

Bug fixes

  • Fixed an issue where calling Live.stop() would not clean up the client state once the socket is closed

databento 0.62.0

19 Aug 22:19
ab1772b

Choose a tag to compare

Release notes

This release delivers a number of breaking changes to the Python interface for DBN records to provide a cleaner and more consistent API.

Breaking changes

  • Removed bill_id from the response of batch.list_jobs() and batch.submit_job()
  • Upgraded databento-dbn to 0.40.0
    • Removed hd property from records in Python. Header fields are accessible
      directly from the record
    • Removed ability to directly instantiate most enums from an int in Python and coercion
      from int in __eq__. They can still be instantitated with the from_int class method.
      Write Side.from_int(66) instead of Side(66) and Side.BID == Side.from_int(66)
      instead of Side.BID == 66. Affected enums:
      • Side
      • Action
      • InstrumentClass
      • MatchAlgorithm
      • UserDefinedInstrument
      • SecurityUpdateAction
      • SType
      • Schema
      • Encoding
      • Compression
      • TriState
    • Removed string coercion in __init__ and __eq__ for RType, SystemCode, and
      ErrorCode enums in Python. It can still be instantiated from a str with the
      from_str class method. Write RType.from_str("mbo") instead of RType("mbo")
      and RType.TRADES == RType.from_str("trades") instead of RType.TRADES == "trades"

Enhancements

  • Added END_OF_INTERVAL variant to SystemCode enum

databento 0.61.0

12 Aug 21:54
8e81195

Choose a tag to compare

Release notes

Breaking changes

  • Modified the states parameter in batch.list_jobs()

Enhancements

  • Added JobState enum
  • Added export of SystemCode and ErrorCode from databento_dbn to the root databento package
  • Added F_PUBLISHER_SPECIFIC flag to RecordFlags enum

Bug fixes

  • Bumped the minimum version requirement for requests to 0.27.0

databento 0.60.0

12 Aug 16:25
d94d864

Choose a tag to compare

Release notes

Enhancements

  • Added parquet_schema option to DBNStore.to_parquet() for overriding the pyarrow schema.
  • Upgraded databento-dbn to 0.39.0
    • Added side() and unpaired_side() methods to ImbalanceMsg that convert the fields
      of the same name to the Side enum
    • Added pretty_auction_time property in Python for ImbalanceMsg
    • Added action and ts_in_delta getters to BboMsg
    • Added ts_recv getter to StatusMsg
    • Added missing floating-point price getters to InstrumentDefMsg record types from all
      DBN versions
    • Added more floating-point price getters to ImbalanceMsg
    • Added floating-point price getter to StatMsg
    • Standardize Python __init__ type signatures
    • Changed auction_time field in ImbalanceMsg to be formatted as a timestamp
    • Fixed a regression where some enum constructors no longer raised a DBNError in
      Python

Bug fixes

  • Removed unused S3 and Disk variants from Delivery enum

databento 0.59.0

16 Jul 13:08
be8aadd

Choose a tag to compare

Release notes

Enhancements

  • Upgraded databento-dbn to 0.37.1
    • Fix buffer growth in DbnFsm::write_all(), which is used by DBNDecoder.write()

Breaking changes

  • Renamed the following Venue, Dataset, and Publishers:
    • XEER to XEEE
    • XEER.EOBI to XEEE.EOBI
    • XEER.EOBI.XEER to XEEE.EOBI.XEEE
    • XEER.EOBI.XOFF to XEEE.EOBI.XOFF

databento 0.58.0

08 Jul 19:50
40e8702

Choose a tag to compare

Release notes

Enhancements

  • Changed the tz parameter in DBNStore.to_df() to accept datetime.tzinfo instead of pytz.BaseTzInfo explicitly
  • Modified the dependency specification for databento_dbn to allow for compatible patch versions
  • Upgraded databento-dbn to 0.36.2
    • Fixed change in behavior where Python DBNDecoder.decode() wouldn't always decode all available data on the first call

databento 0.57.1

18 Jun 21:59
79b11b0

Choose a tag to compare

Release notes

Enhancements

  • Changed the following Venue, Publisher, and Dataset descriptions:
    • "ICE Futures Europe (Financials)" renamed to "ICE Europe Financials"
    • "ICE Futures Europe (Commodities)" renamed to "ICE Europe Commodities"
  • Upgraded databento-dbn to 0.36.1
    • Fixed setting of ts_out property of DbnFsm based on decoded metadata. This
      was preventing ts_out from being correctly decoded in the Python DBNDecoder
    • Fixed decoding of ts_out with first records in DBNDecoder

Bug fixes

  • Fixed an issue where DBN records from the Live client where not having their ts_out populated