alfian777 / indonesia-stock-exchange

๐Ÿ’ธ Doing finance for fun ๐Ÿ’ธ Updated daily โœ… Investment advice โŒ

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CodeQL

About

This repository aims to get the financial data of publicly listed companies in Indonesia ๐Ÿ‡ฎ๐Ÿ‡ฉ for free. It includes reference data (e.g. company profiles, organization structures, etc), daily trading summary (e.g. high, low, bid, ask, foreign buy/sell, etc), and financial statements (balance sheet, profit/loss, and cash flow). This repository is automatically updated daily so you can just chill and relax ๐Ÿ˜Ž ๐Ÿ– ๐Ÿฅฅ ๐ŸŒด ๐Ÿป.

TL;DR: if you don't want to run this locally and just want to go straight to the data, which are located under data directory. You can proceed as follows:

file_name description
anakperusahaan.csv A list of subsidiaries for each listed company
bondsandsukuk.csv A list of bonds for each listed company
broker-summary-${YEAR}.csv Daily broker summary since January 4, 2016 (prior that the data is unavailable)
direktur.csv A list of directors for each listed company
dividen.csv Dividends information for each listed company
financial-statement${YEAR}${QUARTER}.csv Quarterly financial statement which comprises of balance sheet, profit and loss, and cash flow statements.
index-summary-${YEAR}.csv Daily trading summary for each industry since January 2, 2015 (prior that the data is unavailable)
issuedbond.csv Issued bonds for each listed company
kap.csv A list of auditors for each listed company
komisaris.csv A list of commissioners for each listed company
komiteaudit.csv A list of audit committees for each listed company
listed-company.csv Publicly listed companies in Indonesia Stock Exchange
pemegangsaham.csv A list of shareholders for each listed company
profiles.csv Company profiles
sekretaris.csv A list of secretaries for each listed companies
stock-summary-${YEAR}.csv Daily trading summary for individual stocks since January 2, 2015 (prior that the data is unavailable)

Plot Examples

Below are plot examples, which are automatically updated daily at 12 AM UTC+7 (Jakarta time).

1. Bar

  • Today

bar-today

  • Year to Date

bar-ytd

2. Density

density

3. Histogram

histogram

4. Trend lines

  • Highest YTD

trend-line-ascending-False

  • Lowest YTD

trend-line-ascending-True

5. Correlation matrix

correlation

Permission

How can we be sure that it's totally okay to get the data from the website? Open its robots.txt site and see the following result:

Server Error

404 - File or directory not found.
The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.

It doesn't seem that they care whether or not we scrape their data. ๐Ÿ˜ƒ

Clone

Cloning this repository to your local machine is as easy as A-B-C. Just do the following on terminal:

git clone https://github.com/ledwindra/indonesia-stock-exchange.git
cd indonesia-stock-exchange/

Virtual environment and dependencies

Run the following on terminal if you don't want to mess around with existing modules installed on your machine:

python -m venv [VIRTUAL-ENVIRONMENT-NAME] # can be anything. for example .venv
source [VIRTUAL-ENVIRONMENT-NAME]/bin/activate
python -m pip install -r requirements.txt

To exit from the virtual environment, run deactivate.

End

Hope you enjoy this. Thanks for reading! ๐Ÿ˜„

About

๐Ÿ’ธ Doing finance for fun ๐Ÿ’ธ Updated daily โœ… Investment advice โŒ

License:Do What The F*ck You Want To Public License


Languages

Language:Python 100.0%