Git Product home page Git Product logo

finzom_assignment's Introduction

Volatility Calculator

Welcome to the Volatility Calculator, a Django project that calculates daily and annualized volatility of financial data from CSV or Excel files.

Table of Contents

Installation

  1. Clone the repository:

    open terminal.
    Run : git clone https://github.com/Jayeshdahiwale/finzom_assignment.git
    
    and run : cd finzom_assignment
  2. Set up a virtual environment: python -m venv venv

    source venv/bin/activate # For Linux/Mac

    or

    venv\Scripts\activate # For Windows

  3. Install dependencies: pip install -r requirements.txt

  4. Run migrations: python manage.py migrate

  5. Start the development server: python manage.py runserver

Visit http://localhost:8000/ in your browser to see the application.

Usage

Using the UI

  1. Open your browser and go to http://localhost:8000/.
  2. You will see a form for uploading CSV or Excel files.
  3. Choose a file and click the "Submit" button.
  4. The calculated daily and annualized volatility will be displayed on the page.

Sending API Requests

You can use Postman to send API requests to calculate volatility programmatically.

  1. Open Postman.

  2. Set the request type to POST and enter the following URL:

    http://localhost:8000/api/calculate_volatility/

  3. In the request body, select form-data and add a key-value pair:

  • Key: file
  • Value: Choose a CSV or Excel file.
  1. Click the "Send" button.

  2. The API will respond with JSON containing daily and annualized volatility.

Thank You

finzom_assignment's People

Watchers

Jayesh Dahiwale avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.