Giter Club home page Giter Club logo

stocktw's Introduction

TWSE data collecting 台股每日券商買賣資料排名

抓取每日個股券商買賣張數及價位,並按照買超數量排名

Basics

  • Authors: Paul Lo
  • Version: 1.0.0 of 2014/06/03
  • Python Version: Python 2.7
  • Docs: TBA

Requires

python 2.7

Report Issue or get involved

Web Demo

TBD

Quick Start

  • Specify stock id and date (R.O.C calendar in 7 numbers) as arguments:

example: python stock.py 3293 1030603

  • Specify stock id and date (4 numbers for month and year) as arguments

example: python stock.py 3293 0603

  • specify stock id as the only one argument (the current date will be automatically applied)

example: python stock.py 3293

Output example

:: 以3293 0603為例 (後半段省略, 完整請見 [example_output.txt] (https://github.com/paullo0106/stocktw/blob/master/example_output.txt) )

    Sum  |  Total Buy  |   Buy Cost  | Total Sell  |  Sell Cost  |   Avg Cost | Agent          
   96.0  |       96.0  |     135.84  |        0.0  |        0.0  |     135.84 | 5858  統一嘉義 
   95.0  |      331.0  |     135.99  |      236.0  |     133.02  |     134.76 | 9692  富邦嘉義 
  62.98  |       63.0  |     133.39  |       0.02  |      136.0  |     133.39 | 9659  富邦高雄 
   35.0  |       35.0  |      133.0  |        0.0  |        0.0  |      133.0 | 918W  群益金鼎忠孝 
   30.0  |       30.0  |      133.0  |        0.0  |        0.0  |      133.0 | 5690  豐興     
   23.0  |       30.0  |      133.0  |        7.0  |      133.0  |      133.0 | 9658  富邦建國 
   20.0  |       20.0  |      134.0  |        0.0  |        0.0  |      134.0 | 5600  永興   
   20.0  |       20.0  |      133.0  |        0.0  |        0.0  |      133.0 | 921S  凱基上新莊 
   19.0  |       19.0  |      133.0  |        0.0  |        0.0  |      133.0 | 8882  國泰台中 
   19.0  |       20.0  |      133.0  |        1.0  |      136.0  |     133.14 | 9852  元大大松山
   18.0  |       18.0  |      133.0  |        0.0  |        0.0  |      133.0 | 8880  國泰 
   16.0  |       16.0  |      133.0  |        0.0  |        0.0  |      133.0 | 9652  富邦世貿 
   16.0  |       16.0  |      133.5  |        0.0  |        0.0  |      133.5 | 1090  台灣工銀   
   15.0  |       15.0  |      133.0  |        0.0  |        0.0  |      133.0 | 6465  大昌桃園 
   14.0  |       14.0  |      133.0  |        0.0  |        0.0  |      133.0 | 585E  統一新營 
  (...omitted)

Change Logs

1.0.0 2014/06/03

  • Add python code with basic functions (only OTC stocks is available in this version)

stocktw's People

Contributors

paullo0106 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

stocktw's Issues

Implement a 'collect all' function

1.Build a list of OTC stocks and another list of TWSE stocks (depends on issue #1)
2.Iterate over the list of stock and invoke corresponding functions to collect data.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.