Skip to content

atagle123/LV_project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About The Project

LV project to get macro and industry data from Bcentral API and from CMF chile

Getting Started

Installation

Conda Environment

To set up the project environment, create a Conda environment using the provided environment.yml file:

conda env create -f environment.yml
conda activate lv_project

Docker Setup

Build the container

docker buid -t LV_PROJECT . 

Run the container

docker run -it  --rm LV_PROJECT scripts/main_data.py 

Setup

  1. Get free API credentials at [https://si3.bcentral.cl/Siete/en/Siete/API?respuesta=](BANCO CENTRAL CHILE API)

  2. Enter your credentials in credentials.txt in the project folder

    USER
    PASSWORD
  3. Fill the configs/empresas.json file with this format: {empresa_name : rut,...} , example: {"industry1":"94321000",...}

Usage

File organization

LV_PROJECT/
│
├── data/
│   ├── industrydata/...
│   └── macrodata/...
│
├── configs/
│   └── empresas.json 
│
├── drivers/
│   └── driver1.exe
│ 
├── industry/
│   ├── data_manager.py
│   ├── html_parser.py
│   ├── industry_data.py
│   ├── parse_xbrl.py
│   ├── pdf_parser.py
│   └── scrapping.py
│
├── macro/
│   ├── get_data.py
│   ├── plots_data.py
│   └── serie.json
│
├── utils/
│   ├── cchc_preprocess.py
│   ├── download_data.py
│   ├── excel_downloads.py
│   └── json_utils.py
│  
├── scripts/
│   ├── main_data.py
│   └── reports_plots.py
│ 
├── .gitignore
├── README.md
├── credentials.txt
└── environment.yml
data/
├── industrydata/
│   ├── industry1/
│   │   ├── raw/
│   │   │   ├── html/...
│   │   │   ├── pdf_financials/...
│   │   │   ├── pdf_razonados/...
│   │   │   └── xbrl/...
│   │   │
│   │   └── results/
│   │       ├── excel/...
│   │       └── csv/...
│   │
│   └── industry2/...
│
└── macrodata/
    ├── excel/...
    └── plots/...

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published