Skip to content
All library documents

CTP Account Balance Queries and Asynchronous Updates in VeighNa

Article vn.py community

Summary

This VeighNa forum exchange discusses how to obtain current account funds through the CTP trading interface. A user asks whether account balances can be retrieved synchronously, like an HTTP request, rather than through asynchronous updates. A reply points to the engine’s account retrieval method and explains that the interface uses queries rather than a push feed. The user then asks whether the method can return stale data between account events.

A further reply confirms that interpretation and suggests increasing the underlying query frequency to once per second. The thread offers a brief operational workaround but does not explain how to configure it, address API or exchange limits, or provide evidence about latency or reliability. It is a narrow discussion of account data freshness and event-driven interface behavior, rather than a trading strategy.

Key ideas

  • The CTP interface obtains account funds through queries rather than a continuous push feed.
  • The engine’s account retrieval method may reflect the latest received account event rather than trigger an immediate update.
  • The discussion suggests increasing the underlying query frequency to once per second.
  • The thread does not specify configuration steps or assess the operational limits of more frequent querying.

Tags

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