Skip to content
All library documents

Loading Historical Bars from a Local Database in VeighNa

Article vn.py community

Summary

This forum exchange explains how to use a local MySQL database as a historical bar source in VeighNa when running a live trading strategy. If the database tables follow VeighNa’s expected schema, the built-in database source can load bars directly. If the schema differs, a custom datafeed module is needed to translate or import the data into the format the platform expects.

The reply also clarifies that the strategy’s bar-loading call must explicitly enable database use; otherwise, it will not load history from the database through that path. The discussion says the datafeed setting can be ignored for this setup. This is a narrowly scoped integration answer, not a trading strategy or evaluation of data quality. It does not cover schema migration, connectivity, synchronization, or how live and historical data are reconciled, so those details must be checked for a particular installation.

Key ideas

  • VeighNa can use a local MySQL database directly when its tables match the platform’s schema.
  • A database with a different schema requires a custom datafeed implementation.
  • The bar-loading call must enable database use to read historical bars from that source.
  • The exchange does not discuss data validation, synchronization, or trading performance.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.