项目作者: ch-lai

项目描述 :
Taiwan Stock Market Screener (Search and Filter Stocks)
高级语言: Python
项目地址: git://github.com/ch-lai/TWStock-Screener.git
创建时间: 2019-09-13T14:33:56Z
项目社区:https://github.com/ch-lai/TWStock-Screener

开源协议:

下载


Taiwan Stock Market Screener (Search and Filter Stocks)

This repository is inspired by finlab Blog.

According to statistics, 80% of the people in the world don’t like their job. If you are one of them, you should know how to manage your finances. For whom are beginners, here are some guides you should read before you investigate your money in the stock market.

Disclaimers

This is only my personal research. I DO NOT recommend you to use it as your trading strategy, and I CAN NOT guarantee you any feasibility. You should make your own judgement and take it only as a reference. GOOD LUCK!

ToDo-List

  • Crawl monthly revenue from TWSE
  • Crawl seansonal financial reports from TWSE
  • Support six stock screener methods based on monthly revenue
  • Score and sort stock screener results according to revenue increment
  • Add more stock screener methods based on financial reports
  • Crawl ROE, ROA, EPS
  • Backtest

Getting Started

Implemented and tested on Ubuntu 18.04 with Python 3.6.

  1. Clone this repo
    1. $ git clone https://github.com/ch-lai/TWStock-Screener.git
    The folder should look something like the following:
    ```bash
    $ cd TWStock-Screener

├─ data
│ ├─ monthly
│ └─ seasonal
├─ README.md
├─ main.py
├─ crawl_report.py
├─ stock_screener.py
├─ 2019_9_19_stock_list_month.txt
├─ 2019_9_19_stock_list_season.txt
└─ requirements.txt

  1. 2. Install Python dependencies
  2. ```bash
  3. $ pip3 install -r requirements.txt
  1. Run the scripts

    1. $ python main.py
  2. You can also select screener methods based on your preference
    ```bash

    stock_screener.py

Select multiple screener methods based on monthly revenue

Select_screener(self,
_MoM_growth=True,
_YoY_growth=True,
_Total_YoY_growth=True,
_Highest_revenue=True,
_LongShortTerm_growth=True,
_Trend_growth=True)

Select multiple screener methods based on financial reports

Select_screener(self,
_GPM_growth=True,
_OPM_growth=True,
_NPM_growth=True)

  1. ## Viewing Results
  2. All results should be saved in `2019_9_19_stock_list_month.txt`. Here you can see Stock_ID and its corresponding Stock_Name. The more the ranking, the more recommended.
  3. ```bash
  4. # 2019_9_15_stock_list.txt
  5. 3557 嘉威
  6. 5607 遠雄港
  7. 3052 夆典
  8. 1229 聯華實業
  9. 3229 晟鈦
  10. ...

Report Issue

LICENSE

Copyright (c) 2019 Chao-Hsiang Lai