This repo is initially forked from task 3 of JPMC's Forage program. It uses perspective to generate a live graph that displays the data feed in a clear and visually appealing way.
Requires node version 18.10.0
This project is built to display data for traders. It uses perspective to generate a live graph that displays the data feed in a clear and visually appealing way for traders to monitor.
The purpose of the graph is to monitor and determine when a trading opportunity may arise as a result of the temporary weakening of a correlation between two stock prices. Given this graph, the trader should be able to quickly and easily notice when the ratio moves too far from the average historical correlation. In the first instance, we'll assume that threshold is +/-10% of the 12-month historical average ratio.
The graph tracks the ratio between two stocks over time. Traders want to monitor the ratio of two stocks against a historical correlation with upper and lower bounds. This can help them determine a trading opportunity. Therefore the graph plots also the upper and lower bounds and show when they get crossed.
Below the instruction to set up this project.
- Install the necessary dependencies by running
npm install
from the project repo - Start the python server by running server3.py from the project repo like so:
python datafeed/server3.py
- Start the client by running
npm start
from the project repo - Start by clicking "Streaming Data" button
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/jpmc-swe
) - Commit your Changes (
git commit -m 'Add some jpmc-swe'
) - Push to the Branch (
git push origin feature/jpmc-swe
) - Open a Pull Request
See the initial repo for more information.