Skip to content

tkiran/Kiran_Case_Study

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kiran_Case_Study

This repository contains two case-study apps:

  • Trading MTM valuation (in trading_case)

    image Screenshot 2026-02-02 185711
  • Weather precipitation assistant (in weather_case)

Screenshot 2026-02-02 183710 Screenshot 2026-02-02 183820 Screenshot 2026-02-02 183845

Quick start (Windows / cmd.exe)

  1. Clone and open the repo root
git clone <repo-url>
cd Kiran_Case_Study
  1. Create and activate a virtual environment
python -m venv .venv
.venv\Scripts\activate
  1. Install dependencies
pip install --upgrade pip
pip install -r requirements.txt
  1. Run the trading MTM report (CLI)
python trading_case\run_mtm_report.py -i "trading_case\Trading Case Example Data.xlsx" -o "MTM_valuation_report.xlsx"
  1. Run the Trading Streamlit UI
streamlit run trading_case\trading_app.py --server.port 8502
  • The UI looks for trading_case\Trading Case Example Data.xlsx by default. You can upload your own .xlsx with Price and Contracts sheets.
  1. Run the Weather Streamlit UI
streamlit run weather_case\weather_app.py --server.port 8503
  • Upload an Excel with Daily and Monthly sheets, then ask a natural-language question.

Troubleshooting

  • If Streamlit complains set_page_config must be first, ensure you run streamlit run from the project root; the repository's apps are configured correctly.
  • If a port is already used, pick another port (e.g., --server.port 8504).
  • If imports fail, confirm you are running commands from the repo root and your venv is activated.

Remove duplicate Streamlit entrypoint

  • A duplicate file trading_case/streamlit_app.py was neutralized to avoid confusion; the canonical entrypoint is trading_case/trading_app.py.

Contact / Next steps

If you want, I can:

  • Start both Streamlit servers for you and verify they load.
  • Add example screenshots or make small UI improvements.

About

Weather_Trade

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors