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 fetch
2) Get one symbol (case-insensitive)
python3 {baseDir}/scripts/saffronai_etf.py get NIFTYBEES
3) Get multiple symbols
python3 {baseDir}/scripts/saffronai_etf.py get NIFTYBEES GOLDBEES SILVERBEES
4) Output as CSV (passthrough)
python3 {baseDir}/scripts/saffronai_etf.py fetch --format csv
Notes
- 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).