Skip to content
All library documents

Reading Live Account Equity in VeighNa Backtests

Article vn.py community

Summary

This brief forum exchange addresses how to retrieve an account’s funds in VeighNa and whether the value can be used in a backtest or only in live trading. The response points to the engine’s account-retrieval method and states that this call is unsupported during backtesting. It therefore distinguishes access to account information in an active trading environment from historical simulation.

The discussion gives no alternative backtest method, code example, or detail about which account balance or equity fields are returned. Its practical lesson is limited: do not assume that the live account query is available to a backtest, and verify the framework’s simulated account interface when a strategy needs capital values during historical evaluation. The page is a narrow implementation note rather than a broader explanation of portfolio sizing or backtest accounting.

Key ideas

  • VeighNa exposes an engine method for retrieving account information.
  • The cited account query is not supported in backtesting.
  • A strategy that needs capital values in simulation must use an appropriate backtest interface instead.
  • The exchange does not explain returned fields or provide an alternative implementation.

Tags

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