Add Indian market (NSE/BSE) 5-min data fetch and fine-tune pipeline#311
Open
chandewardnyanesh wants to merge 1 commit into
Open
Add Indian market (NSE/BSE) 5-min data fetch and fine-tune pipeline#311chandewardnyanesh wants to merge 1 commit into
chandewardnyanesh wants to merge 1 commit into
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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"