An open API service indexing awesome lists of open source software.

https://github.com/lit26/market_watch

A full-stack platform that tracks personal stock and option trading
https://github.com/lit26/market_watch

option-trading python-flask reactjs stock-trading

Last synced: 9 months ago
JSON representation

A full-stack platform that tracks personal stock and option trading

Awesome Lists containing this project

README

          

# Market_Watch

## Website

Front-end React.js website for display personal portfolio (stock & option).

## API

Back-end Python Flask API for storing stock and option portfolio.

| HTTP Method | URI | Action|
| ------------- | ------------- | ------------- |
| GET | http://[hostname]/api/history/all | get all the stock transactions |
| GET | http://[hostname]/api/history/[transaction_id] | get a stock transaction |
| POST | http://[hostname]/api/history/transaction | Create a new stock transaction |
| POST | http://[hostname]/api/history/transaction/[transaction_id] | Update an existing stock transaction
| GET | http://[hostname]/api/option/all | get all the option transactions |
| GET | http://[hostname]/api/option/[transaction_id] | get a option transaction |
| POST | http://[hostname]/api/option/transaction | Create a new option transaction |
| POST | http://[hostname]/api/option/transaction/[transaction_id] | Update an existing option transaction |
| GET | http://[hostname]/api/tickercategory/ | Getting ticker list of charts |
| GET | http://[hostname]/api/rehreshcharts | Refreshing charts |
| POST | http://[hostname]/api/delete_chart | Deleting chart at the backend |

## Running

For local run, React.js website normally run on http://localhost:3000 and Python Flask API run on http://localhost:5000 which will cause CORS errors, the project has already handle this by adding proxy in React.js package.json.

## Screenshot

![stock](asset/stock.png)
![option](asset/option.png)

## Watchlist
Watchlist will download charts from finvizfinance package. This will include personal watchlist and stock signal charts.

![watchlist](asset/watchlist.png)