Code Monkey home page Code Monkey logo

anshuthopsee / nse-oi-visualizer Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 3.0 2.72 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.pages.dev

JavaScript 3.38% HTML 0.52% TypeScript 96.07% CSS 0.03%
bar-charts d3 data-visualization derivatives finance fno material-ui open-interest open-interest-api open-interest-chart

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. Has a multi expiry selector to see combined Open Interest. With 4 (2 weekly, 2 monthly) selectable expiries for indices and 2 (2 monthly) selectable expiries for stocks.
  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. Caches data with RTK Query for a maximum of 3 minutes.
  7. Charts have tooltips.
  8. 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. FII and DII data visualization.
  2. Option Chain table.
  3. Option Payoff visualization? Maybe.

References

  1. Tried to replicate the UI of https://www.sensibull.com/ 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.

Site link

nse-oi-visualizer's People

Contributors

anshuthopsee avatar forloopcodes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

nse-oi-visualizer's Issues

hi sir

Sir can we build a script which will have all tickers listed and we can select the ticker in another sheet and once we select it will pull the option chain data for the same

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.