How cia76/quikpy works
Main Components
a) Client Application Layer:
• Python Applications (represented by the Examples directory)
• QuikPy Wrapper (QuikPy.py)
b) Communication Layer:
• LUA Scripts (QUIK/lua directory)
• Socket Communication (QUIK/socket directory)
c) Trading Terminal:
• QUIK Trading Terminal
• Market Data Feeds
• Trading Infrastructure
Component Relationships
• Python application → QuikPy wrapper → LUA scripts → QUIK terminal → Market
• Market → QUIK terminal → LUA scripts → QuikPy wrapper → Python application
Detailed Component Breakdown
a) Python Layer (Top):
• Market Data (Ticker.py, Bars.py)
• Account Management (Accounts.py)
• Order Management (Transactions.py)
• Real-time Data (Stream.py)
b) Integration Layer (Middle):
• QuikPy Wrapper
• LUA Scripts:
• QuikSharp.lua (main script)
• qsfunctions.lua (core functions)
• qscallbacks.lua (event handling)
• qsutils.lua (utilities)
• socket.lua (communication)
c) Trading Infrastructure (Bottom):
• QUIK Terminal
• Market Connection
• Order Routing
• Market Data Distribution
Important Elements to Highlight
• Multi-script support capability
• Real-time data streaming paths
• Market data flow
• Order flow
• Event callback system
Technical Details
• Socket-based communication
• JSON configuration
• LUA 5.4.1 dependency
• Python requirements (pytz, pandas)