Welcome to the Volatility Calculator, a Django project that calculates daily and annualized volatility of financial data from CSV or Excel files.
-
Clone the repository:
open terminal. Run : git clone https://github.com/Jayeshdahiwale/finzom_assignment.git and run : cd finzom_assignment
-
Set up a virtual environment: python -m venv venv
source venv/bin/activate # For Linux/Mac
venv\Scripts\activate # For Windows
-
Install dependencies: pip install -r requirements.txt
-
Run migrations: python manage.py migrate
-
Start the development server: python manage.py runserver
Visit http://localhost:8000/ in your browser to see the application.
- Open your browser and go to http://localhost:8000/.
- You will see a form for uploading CSV or Excel files.
- Choose a file and click the "Submit" button.
- The calculated daily and annualized volatility will be displayed on the page.
You can use Postman to send API requests to calculate volatility programmatically.
-
Open Postman.
-
Set the request type to
POST
and enter the following URL: -
In the request body, select
form-data
and add a key-value pair:
- Key:
file
- Value: Choose a CSV or Excel file.
-
Click the "Send" button.
-
The API will respond with JSON containing daily and annualized volatility.
Thank You