rooneyrulz/stock-research-agent-api ? reverse-engineered prompt
Reverse engineered prompt
Build me a stock research API that takes plain English questions like “should I buy TCS?” or “give me some momentum stocks” and returns a clean, validated JSON answer with a BUY, SELL, or HOLD recommendation.
I want it to focus on NSE stocks, use free market data and recent news from yfinance, and handle things like single stock analysis, comparing a couple of stocks, and screening for candidates when the user does not give a ticker. It should also be honest when someone asks something off topic, like weather or general chat, and just reply normally without pretending to know stock data.
Please make it reliable and predictable, with structured outputs, retries for flaky calls, and clear logs so I can tell what happened on each request. A simple FastAPI backend is enough, and if it makes sense, include a basic Streamlit page to try it out. Use current docs online if you need to.
Are you gonna build this?
make sure you review the code using coderabbit