chengshengchan / StockReturn

A dashboard to display the return of TW stock.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

StockReturn

A dashboard to display the return of TW stock.

image

Requirements

twstock
dash

Prepare

Prepare a csv file as following format. Cqn use Excel/Numbers then save as csv format, need to split by ,.

Date Id Share Price Paid Receive Note
2018/01/26 2454 30 9260
2018/02/06 2454 30 8660
2018/03/27 245 -60 20370

Notes:

  • The Price column can be empty.

Usage

# 1. Modify the `CSVPATH` in `constant,py`.
# 2. Run to parse data from TWSW website.

$ python prepare.py

# 3. Run the webpage
$ python index.py

About

A dashboard to display the return of TW stock.


Languages

Language:Python 100.0%