A Streamlit web application for analyzing Chinese mutual funds with real-time net value estimation.
- Fund basic information display
- Top 10 holdings visualization
- Real-time net value estimation based on weighted holdings
- Configurable auto-refresh
- Graceful error handling with cached data
- Clone the repository
- Create
.streamlit/secrets.toml:[tushare] token = "your_tushare_token_here"
- Install dependencies:
pip install -r requirements.txt - Run:
streamlit run app.py
- Push code to GitHub (
.streamlit/is gitignored) - Connect repository to Streamlit Cloud
- Add secrets in App Settings → Secrets:
[tushare] token = "your_token_here"
- Deploy
- Enter fund code (e.g., 000001.OF)
- Click "查询" to fetch data
- View fund info, holdings, and estimated net value
- Configure auto-refresh in sidebar
app.py: Main Streamlit UIdata_fetcher.py: Data layer (Tushare + fallback)calculator.py: Business logic (net value estimation)