Skip to content

fix: yahoo-finance2 v3 import and BSE ticker support - #232

Open
king007pin wants to merge 5 commits into
virattt:mainfrom
king007pin:main
Open

king007pin wants to merge 5 commits into
virattt:mainfrom
king007pin:main

Conversation

@king007pin

@king007pin king007pin commented Apr 22, 2026

Copy link
Copy Markdown

Summary

  • SOUL.md: Added India hedge fund persona (no hallucination, SEBI-level rigor)
  • settings.json: maxIterations: 20, requireSourceCitation: true
  • llm.ts: Added temperature: 0, topP: 1 for OpenRouter (eliminates hallucinated numbers)
  • DCF skill: Replaced US assumptions with India-specific (G-Sec risk-free rate, 7% India ERP, 7% terminal growth)
  • india-tax skill: Full STCG/LTCG/surcharge/cess/transaction cost framework for FY 2025-26
  • india-stock-price.ts: New Yahoo Finance NSE quote tool with proper .NS suffix handling
  • get-market-data.ts: Indian stock routing (prioritizes get_indian_stock_price for Indian tickers)

Test Plan

  • bun run test-indian-markets.js — all Indian tools working
  • RELIANCE.NS price: ₹1,362 (live from Yahoo Finance NSE)
  • Market status: working
  • Income statements: working
  • New getIndiaNsePrice tool: returns proper structure with PE ratio, 52W H/L

king007pin and others added 5 commits April 22, 2026 15:26
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Fix import: yahoo-finance2 v3 requires new YahooFinance() instantiation
- Add suppressNotices to reduce console noise
- Update ticker suffix handling: .NS for NSE, .BO for BSE
- Add Indian market tools: stocks, fundamentals, mutual funds, global markets
- Add India identity section to SOUL.md (India hedge fund persona)
- Update settings.json: maxIterations 20, requireSourceCitation true
- Add temperature=0, topP=1 to OpenRouter for deterministic financial output
- Create india-tax skill with full STCG/LTCG/surcharge/cess framework
- Update DCF skill with India-specific assumptions (risk-free rate, ERP, terminal growth 7%)
- Create india-stock-price.ts with Yahoo Finance NSE quote tool
- Register Indian tools in get-market-data router (prioritize for Indian tickers)
- Add Indian stock routing rules to market data prompt
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