RepositoryJavaScriptUSUnited States
RA

rahuljoshi44/GraphVega

Open Source Options Analytics Platform.

296stars
41forks
2issues
1views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: options-trading

#1 Repository of the month

1
TINIX TRENDING·Topic: options

#1 Repository of the month

1
TINIX TRENDING·Topic: options-pricing

#1 Repository of the month

GraphVega

:gem: About The Project

GraphVega is an open sourced options analytics platform that analyses and projects the P/L of a multi-legged options position with variation of the stock price under changes in volatility and days till expiration, using a black-scholes simulation.

It is designed with a goal to provide a simple and intuitive interface to analyze options, while also providing developers with the flexibility to add their own custom features.

:rocket: Getting Started

Note: You will need to have NodeJS installed on your machine to run this app. If you don't have it on your machine already, you can install it here for free.

To get GraphVega up and running on your local machine, follow these steps:

  1. Clone the repository

    $ git clone  https://github.com/rahuljoshi44/GraphVega.git
    
  2. Switch to the root directory of the project (main folder where all the files are stored) and install the dependencies. This process might take a couple minutes depending on your download speed, so please wait!

    $ npm install
    
  3. Get a free API Key (for sandbox) from Tradier here. This project uses Tradier’s market data API for options and stock prices.

  4. In the root directory create a .env file and enter your API key and the API url as follows:

    TRADIER_API_KEY=YOUR_API_KEY_HERE
    API_BASE_URL=https://sandbox.tradier.com/v1/
    

    Replace YOUR_API_KEY_HERE with the API key you obtained from step 3. NOTE: You can also change the variable API_BASE_URL to the brokerage API url if you'd like to use the brokerage API endpoint.

  5. Run the application in either of two ways: Locally or via Docker (explained below):

Locally

In the root directory, run the following command:

$ npm start

Note that the front end react app runs on http://localhost:3000 while the server runs on http://localhost:8000 so make sure you don’t have anything running on those ports. If you want to run the server on a different port, change the port variable in server/app.js, and change theSERVER_URL variable in src/utils/url.js to the new server url.

Docker

Make sure to create the .env file from step 4 above before building the image, otherwise it won't be included.

Building:

$ docker build -t local/gv:latest -t local/gv:0.1.0 .

Running:

$ docker run -d --rm -p 3000:3000 --name graphvega local/gv

Stopping:

$ docker stop graphvega

Docker-Compose

Make sure to create the .env file from step 4 above before building the image, otherwise it won't be included.

Running:

$ docker-compose up

or 

$ docker-compose run

Stopping:

$ docker-compose down

:zap: Usage

  1. After launching the app, type in the name of a company in the search bar and select the appropriate suggestion.
  2. Select an expiration date for the options chain
  3. After the option chain loads, add your options positions by clicking on the rows of the table.
  4. Switch to the analysis tab.
  5. Observe the P/L chart and adjust the implied volatility and days till expiry with the sliders as you like.

:palm_tree: Code Structure

Broadly, the project is divided into the front end and the back end.

  • All frontend files are stored in the src directory.
  • Backend files are stored in server. These are used primarily for making API calls for market data.

There are three main front end components

  • src/components/main.jsx is the root component that uses optionChain.jsx and analysis.jsx
  • src/components/chain/optionChain.jsx is the base component for the ‘Option Chain’ tab
    • All files related to the option chain tab is stored under src/components/chain
  • src/components/analysis/analysis.jsx is the base component for the ‘Analysis’ tab
    • All files related to the analysis tab are stored under src/components/analysis

:heart: Contributing

Your contributions make the platform better and more useful to everyone! The contributions you make will be greatly appreciated.

To do so:

  1. Fork the project
  2. Create a branch
  3. Add your changes
  4. Push to the branch
  5. Open a Pull Request.

:pencil2: Built With

:clipboard: License

GraphVega is distributed under the MIT license. See LICENSE.md for more information.

:mailbox_with_mail: Contact

Rahul Joshi - rjoshi9@umd.edu

Feel free to contact me regarding any concerns about the app.

:punch: Acknowledgements

Thanks to Tradier for the market data used on the platform.

Similar Projects

Discover other similar projects and AI models.

RepositoryPython
jasonstrimpel/volatility-trading

A complete set of volatility estimators based on Euan Sinclair's Volatility Trading

2.0k
Oct 21, 2024
RepositoryGo
achannarasappa/ticker

Track stocks, crypto, and derivatives prices and positions in real time from your terminal

6.3k
Jun 28, 2026
RepositoryPython
shashankvemuri/Finance

Python toolkit for quantitative finance: stock analysis, technical indicators, strategy backtesting, portfolio optimization, and financial modeling.

4.4k
Sep 12, 2026
RepositoryGo
mop-tracker/mop

Stock market tracker for hackers.

2.2k
Oct 22, 2026
RepositoryPython
goldspanlabs/optopsy

A nimble options research and backtesting library for Python

1.5k
Dec 1, 2026
RepositoryJupyter Notebook
AlgoTraders/stock-analysis-engine

Backtest 1000s of minute-by-minute trading algorithms for training AI with automated pricing data from: IEX, Tradier and FinViz. Datasets and trading performance automatically published to S3 for building AI training datasets for teaching DNNs how to trade. Runs on Kubernetes and docker-compose. >150 million trading history rows generated from +5000 algorithms. Heads up: Yahoo's Finance API was disabled on 2019-01-03 https://developer.yahoo.com/yql/

1.3k
Sep 5, 2020
RepositoryPython
alpacahq/alpaca-mcp-server

Alpaca’s official MCP Server lets you trade stocks, ETFs, crypto, and options, run data analysis, and build strategies in plain English directly from your favorite LLM tools and IDEs

1.1k
Nov 24, 2026
RepositoryGo
piquette/finance-go

:bar_chart: Financial markets data library implemented in go.

791
Aug 7, 2023
RepositoryPython
rgaveiga/optionlab

A Python library for evaluating option trading strategies.

599
Nov 26, 2026