Git Product home page Git Product logo

forloopcodes / nse-oi-visualizer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from anshuthopsee/nse-oi-visualizer

1.0 0.0 0.0 2.57 MB

A simple real-time Open Interest Visualizer for Indian Benchmark Indices and F&O Stocks inspired by Sensibull. The app shows Change in Open Interest and Total Open Interest data, for the selected underlying. The app is built with React, Material UI, D3 and Node.

Home Page: https://nse-oi-visualizer.vercel.app

JavaScript 3.99% TypeScript 95.43% CSS 0.03% HTML 0.55%

nse-oi-visualizer's Introduction

NSE-OI-VISUALIZER

A simple React application inspired by Sensibull, that visualizes real-time Open Interest data of Indian Benchmark Indices and F&O stocks. The app fetches data from NSE API through a proxy server and plots the data as bar charts. The app shows Change in Open Interest and Total Open Interest for the selected instrument. The data is auto-updated at 3-minute intervals, precisely at times when the minutes are divisible by 3. Frontend is made with React, Material UI, Redux and D3. Backend is made with NodeJS. (Note: The app is work in progress).

Demo

Usage Demo

Features

  1. Fetches Real-time Open Interest data of Indian Benchmark Indices (NIFTY, BANKNIFTY, FINNIFTY and MIDCPNIFTY) and F&O stocks listed on NSE (185 stocks).
  2. Shows Change in Open Interest and Total Open Interest.
  3. Shows current and next expiry data.
  4. Has a Strike range selector to adjust the no. of strikes to be shown.
  5. Auto-updates data, using a web worker, precisely at times when the minutes are divisible by 3 (ex: 9:30, 9:33, 9:36,...,9:57, 10:00 etc).
  6. Charts have tooltips.
  7. Local storage persistence of the selected underlying.

How to run it locally

  1. Clone the repository.
  2. cd into backend directory and run npm install to install dependencies.
  3. Run 'npm run dev' to start the proxy server.
  4. cd into frontend directory and run npm install to install dependencies.
  5. Run 'npm run dev' to start the frontend app.
  6. Open http://localhost:5173/ in your browser.
  7. You are good to go.

To be added

  1. Timestamps showing last updated time.
  2. FII and DII data visualization.
  3. Option Payoff visualization? Maybe.

References

  1. https://www.sensibull.com/ tried to replicate the UI of this app.
  2. https://2019.wattenberger.com/blog/react-and-d3 this is an insightful blog on how to use D3 with React, while keeping things Reacty.

nse-oi-visualizer's People

Stargazers

 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.