On-prem · Freelance · Market data · Batch record

NSE end-of-day data automation

Staff downloaded end-of-day data one stock at a time. A 7 p.m. job now does it, and one CSV is ready each evening.

NSE data 7 p.m. daily ACCEPTED

Challenge faced by client

The challenge

Each stock's end-of-day data had to be downloaded by hand, one ticker at a time. Saving a single stock's CSV takes about 3–4 minutes, and the trading rules were then applied by hand on top of that.

What I built

How it works

A 7 p.m. Windows job downloads end-of-day data for every NSE ticker with nselib, cleans and combines them into one CSV for the whole market, and applies the client's strategy rules.

  • Python
  • nselib
  • Windows
  • CSV

Pipeline

Follow the batch

  1. Fetch at 7 p.m.The Windows job retrieves the day's available stock records.
  2. Clean & transformThe raw response becomes a consistent table.
  3. Apply strategy rulesThe client's rules keep only the rows they need.
  4. Export CSVThe client opens the final file for next-day analysis.

Stages describe the process. Sample data only.

Impact

Outcome & effort reduced

All tickersdownloaded automatically into one CSV, in minutes
3–4 minsaved per stock: the manual download the system replaces
5–7 hrssaved per 100 stocks of manual downloading (example: 100 × 3–4 min)
7 p.m.automated daily run, with no manual steps

A day's worth of per-stock downloads became one scheduled run that finishes in minutes, leaving one combined CSV for next-day analysis.