- Python installed and in PATH
- LSEG Data Library installed:
pip install lseg-data - Batch file and Python script in same directory
cd C:\path\to\script
run_market_data.batPress Windows Key + R, type taskschd.msc, press Enter
- Right-click "Task Scheduler Library" → Create Task
- Name: Market Data Retrieval
- Check: Run with highest privileges
- Go to Triggers tab → New
- Begin: On a schedule
- Schedule: Weekly
- Days: Monday, Tuesday, Wednesday, Thursday, Friday (uncheck Saturday, Sunday)
- Time: 07:00:00
- Click OK
- Go to Actions tab → New
- Action: Start a program
- Program/script:
C:\path\to\run_market_data.bat - Start in:
C:\path\to\ - Click OK
- Check: Run task as soon as possible if missed
- Check: Allow task to be run on demand
- Click OK
- Find task in Task Scheduler
- Right-click → Run
- Verify script executes and creates CSV file
- Python not found: Add Python to PATH or use full path in batch file
- Task doesn't run: Check task is enabled; verify path is correct
- CSV not created: Check LSEG credentials; test script manually first