Skip to content
All library documents

CTP Credentials and API Needs for Market Data-Only Connections

Article vn.py community

Summary

This brief forum exchange addresses whether a VN Py user connecting directly to market data, without placing trades, needs broker and account connection details. The reply says that with CTP, the trading API code can be commented out, but contract information in that setup is obtained through the trading API, requiring custom development if that dependency is removed. It also states that a market-data-only connection still needs the first four connection details mentioned in the question.

The exchange is practical integration guidance rather than a trading strategy or tested technical specification. It does not identify each required field individually, explain how requirements vary across brokers or CTP configurations, or provide a working implementation. Users can take away that removing trading functionality may not remove all dependencies on the trading API, and that a market-data connection still requires connection credentials and server information. The advice is limited to the described CTP context.

Key ideas

  • A CTP market-data-only connection still requires the first four connection details referenced in the question.
  • The described setup obtains contract information through the trading API.
  • Removing trading API code may require custom work to replace its contract-information role.
  • The exchange gives brief implementation guidance without a complete configuration list or code example.

Tags

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