How bluedabadi/schwabautotrading works
Main Components
a) External Services Layer:
• Charles Schwab API (via schwabdev)
• APIcalls.io (for earnings data)
• ThinkOrSwim integration
b) Core Application Components:
• Configuration Management
• Options Trading Engine
• Data Management
• Trading Strategies
• Analysis Tools
Detailed Component Breakdown
Top Level (External Interfaces):
┌─ Charles Schwab API ─┐ ┌─ APIcalls.io ─┐
• ┘ └──────────────┘
Core Application Layer:
┌─ Configuration ─┐ ┌─ Trading Engine ─┐ ┌─ Analysis ─┐
• config.py │ │ trade_options.py│ │theta_analyzer│
• utils.py │ │ stock_screener │ └────────────┘
• ┘ │ earnings_calendar│
• ┘
Domain Layer:
┌─ Options Module ─┐
• options.py │
• option_chains.py│
• stocks.py │
• ┘
Data Layer:
┌─ Data Storage ─┐
• JSON Files │
• Price History │
• Option Chains │
• ┘
Key Relationships to Highlight
• Data flow from external APIs to the trading engine
• Configuration influence on trading strategies
• Trading engine interaction with options module
• Analysis tools' data consumption
• Data storage interactions
Earnings Calendar Trading (Step 3)
A special note for "The Wheel Strategy" implementation as it's a recent addition.
Process Flows to Highlight
• Option Trade Lifecycle
• Decision Flow for Trade Selection
• Theta Decay Analysis Process
Technical Details
• Python as the primary language
• JSON as the data storage format
• Required API credentials and configurations
• Testing framework integration