Skip to content

Add Indian market (NSE/BSE) 5-min data fetch and fine-tune pipeline#311

Open
chandewardnyanesh wants to merge 1 commit into
shiyu-coder:masterfrom
chandewardnyanesh:india-market-data-finetune
Open

Add Indian market (NSE/BSE) 5-min data fetch and fine-tune pipeline#311
chandewardnyanesh wants to merge 1 commit into
shiyu-coder:masterfrom
chandewardnyanesh:india-market-data-finetune

Conversation

@chandewardnyanesh
Copy link
Copy Markdown

Adds two scripts modelled on the US stock PR (#310):

  • finetune_csv/fetch_india_data.py
    Fetches 5-min OHLCV via yfinance for NSE/BSE instruments.
    Filters to market hours 09:15-15:30 IST (Asia/Kolkata).
    Auto-maps friendly names: NIFTY50->^NSEI, BANKNIFTY->^NSEBANK,
    RELIANCE->RELIANCE.NS, etc.
    Computes amount = volume * avg(OHLC) as turnover proxy.

  • finetune_csv/run_india_finetune.py
    End-to-end pipeline: fetch -> finetune tokenizer -> finetune predictor.
    Auto-generates a minimal YAML config if none exists.
    Supports --skip_tokenizer / --skip_predictor flags.

Usage:
python run_india_finetune.py --tickers NIFTY50 RELIANCE TCS INFY
python fetch_india_data.py --tickers NIFTY50 BANKNIFTY --output data/india_5min.csv"

Adds two scripts modelled on the US stock PR (shiyu-coder#310):

- finetune_csv/fetch_india_data.py
  Fetches 5-min OHLCV via yfinance for NSE/BSE instruments.
  Filters to market hours 09:15-15:30 IST (Asia/Kolkata).
  Auto-maps friendly names: NIFTY50->^NSEI, BANKNIFTY->^NSEBANK,
  RELIANCE->RELIANCE.NS, etc.
  Computes amount = volume * avg(OHLC) as turnover proxy.

- finetune_csv/run_india_finetune.py
  End-to-end pipeline: fetch -> finetune tokenizer -> finetune predictor.
  Auto-generates a minimal YAML config if none exists.
  Supports --skip_tokenizer / --skip_predictor flags.

Usage:
  python run_india_finetune.py --tickers NIFTY50 RELIANCE TCS INFY
  python fetch_india_data.py --tickers NIFTY50 BANKNIFTY --output data/india_5min.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant