Skip to content

Latest commit

 

History

History
52 lines (42 loc) · 1.45 KB

File metadata and controls

52 lines (42 loc) · 1.45 KB

Quick Task Scheduler Setup

Prerequisites

  • Python installed and in PATH
  • LSEG Data Library installed: pip install lseg-data
  • Batch file and Python script in same directory

Setup Steps

1. Test Manually

cd C:\path\to\script
run_market_data.bat

2. Open Task Scheduler

Press Windows Key + R, type taskschd.msc, press Enter

3. Create Task

  • Right-click "Task Scheduler Library" → Create Task
  • Name: Market Data Retrieval
  • Check: Run with highest privileges

4. Set Trigger (Schedule)

  • 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

5. Set Action (Run Script)

  • 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

6. Settings Tab

  • Check: Run task as soon as possible if missed
  • Check: Allow task to be run on demand
  • Click OK

7. Test

  • Find task in Task Scheduler
  • Right-click → Run
  • Verify script executes and creates CSV file

Troubleshooting

  • 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