I need a Python program that can handle both equity and F&O trading from a single code-base. The application must ingest real-time market data, process it on the fly, and place or modify orders instantly through the broker’s API. I already have live data access and broker credentials in place; what I am missing is the automation layer that ties everything together. Core expectations • Real-time market data stream is read, parsed, and kept in memory with minimal latency. • The same process initiates, tracks, and exits positions for stocks, futures, and options according to simple function calls or rule sets that I will supply. • Clear, modular Python code (no notebooks) with sensible logging and error handling so I can extend the logic later. • A short README that shows setup steps, required libraries, and a demo command that executes a sample trade in paper-trading mode first. I will test the solution on my machine with live credentials, so please keep the external dependencies minimal and well documented. If you have built similar trading automation before, sharing a brief code snippet or GitHub link will speed up our conversation.