Skip to content

Conversation

@shzhng
Copy link
Contributor

@shzhng shzhng commented Jan 27, 2026

Pull Request

NautilusTrader prioritizes correctness and reliability, please follow existing patterns for validation and testing.

  • I have reviewed the CONTRIBUTING.md and followed the established practices

Summary

This PR adds bulk subscription and historical request support for the Databento adapter, enabling efficient batch operations for multiple instruments. This improves performance when subscribing to or requesting historical data for many instruments at once.

Key changes:

  • Add bulk instrument_id support to historical requests (bars, quotes, trades)
  • Add batched definition subscriptions (_ensure_subscribed_for_instruments)
  • Add subscription acknowledgement handling with configurable timeout
  • Add consolidated schema support (OHLCV-1S, OHLCV-1M, OHLCV-1H, OHLCV-1D)
  • Add subscribe_order_book_snapshots and subscribe_quote_ticks bulk methods

Related Issues/PRs

N/A

Type of change

  • Bug fix (non-breaking)
  • New feature (non-breaking)
  • Improvement (non-breaking)
  • Breaking change (impacts existing behavior)
  • Documentation update
  • Maintenance / chore

Breaking change details (if applicable)

N/A - This is an additive feature that adds new bulk methods alongside existing single-instrument methods.

Documentation

  • Documentation changes follow the style guide (docs/developer_guide/docs.md)

Release notes

  • I added a concise entry to RELEASES.md that follows the existing conventions (when applicable)

Testing

  • Affected code paths are already covered by the test suite
  • I added/updated tests to cover new or changed logic

Tested in live trading environment with Databento data feed.

…apter

- Add bulk instrument_id support to historical requests (bars, quotes, trades)
- Add batched definition subscriptions (_ensure_subscribed_for_instruments)
- Add subscription acknowledgement handling with configurable timeout
- Add consolidated schema support (OHLCV-1S, OHLCV-1M, OHLCV-1H, OHLCV-1D)
- Fix zero-length interval edge case at dataset boundary
- Add subscribe_order_book_snapshots and subscribe_quote_ticks bulk methods
@shzhng shzhng marked this pull request as draft January 27, 2026 05:04
@shzhng shzhng changed the title Add bulk subscription and historical request support for Databento adapter [DRAFT] Add bulk subscription and historical request support for Databento adapter Jan 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant