- name
- saffronai-etf-data
- description
- Fetch Indian ETF tracker data (symbol, lastPrice, iNAV, timestamps) from SaffronAI (saffronai.in) and return it as JSON or filtered rows. Use when the user asks for ETF last price/iNAV for Indian ETFs (NSE symbols like NIFTYBEES, GOLDBEES, SILVERBEES) or wants the full ETF tracker snapshot.
SaffronAI ETF Data
Fetch ETF data from SaffronAI’s public endpoint:
- CSV:
https://www.saffronai.in/api/etf-data(no auth required; returnstext/csv)
Quick commands
1) Fetch the full snapshot (JSON)
python3 {baseDir}/scripts/saffronai_etf.py fetch2) Get one symbol (case-insensitive)
python3 {baseDir}/scripts/saffronai_etf.py get NIFTYBEES3) Get multiple symbols
python3 {baseDir}/scripts/saffronai_etf.py get NIFTYBEES GOLDBEES SILVERBEES4) Output as CSV (passthrough)
python3 {baseDir}/scripts/saffronai_etf.py fetch --format csvNotes
- The upstream response is CSV; the script converts to JSON for easy downstream use.
- Columns observed:
symbol, companyName, assets, lastPrice, inav, inav_source, lastUpdateTime, timestamp. - Treat fields as strings unless you explicitly coerce numbers (some rows may have blanks).