Giter Site home page Giter Site logo

stock-split-calendar's Introduction

Stock Split Calendar (Python API)

Python interface to www.investing.com/stock-split-calendar/

Pregenerated file containing stock split from 1982 to 2017/12/20

  • stock-splits-1982-2017_12_20.tsv [Click on the link and hit the download button on the right]
  • ~59943 records
  • Given for convenience (generate yours by running the script)!

The API

  • investing.get_stock_split_calendar(date='2017-04-10', debug=True)
    • date: The day on which to execute the query.
    • debug: Print some information to the console (default is True).
    • returns: Returns the list of the stock split records (name, symbol, country, factor, date)

Example of output


Stock split calendar for 2017/12/15.

This translates to:

2017-12-15
-      C&S Asset Management                      032040                south_korea           1:5
-      Cayman Golden Century                     900280                south_korea           1.152:1
-      STX                                       011810                south_korea           1:10
-      Sumeet Industries Ltd                     SUIN                  india                 1.08:1
-      Marindi Metals                            MZN                   australia             1.011:1
-      Transurban Group                          TCL                   australia             1.005:1
-      Faes Farma                                FAE                   spain                 1.034:1
-      Think Smart SA                            THK                   spain                 1.026:1
-      Feedback Tech                             8091                  taiwan                1:1.43
-      Concierge Tech                            CNCGD                 usa                   1:30
-      Indata                                    IDTA                  poland                1:10
-      Nordic Mining                             NOMIN                 norway                1.004:1

Usage

git clone https://github.com/philipperemy/stock-split-calendar.git
cd stock-split-calendar
pip3 install -r requirements.txt
pip3 install . # install it as a package!

# will connect to investing.com and start fetching the stock splits between 2018-03-01 and 2018-04-01 in output.tsv
python3 stock_splits_to_file.py --end_date 2018-04-01 --start_date 2018-03-01 --output_tsv_filename output.tsv

# Same as above, but between now (today) and 2000-01-01.
python3 stock_splits_to_file.py --end_date now --start_date 2000-01-01 --output_tsv_filename output.tsv

You can see the progression by opening another terminal and running this command:

cd stock-split-calendar
tail -f output.tsv

stock-split-calendar's People

Watchers

James Cloos avatar Oleksandr Anufriyev avatar

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.