Skip to content

SuperOxigen/CanDev-Finance-Canada

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CanDev-Finance-Canada

Realtime economic monitoring.

This project was broken down into three components:

  1. Data Gathering
  2. Forcasting and Data Smoothing
  3. Data Visualization

Data Gathering

Data gathering was broken into several components:

  1. Get raw tables from Statcan
  2. Structuring the data into fixed tables
  3. Storing resulting tables

The code for data gathering can be found under gathernomics (gather -ing eco- nomics data).

Output File Format

The current output format of data gatherer is a CSV file with the following attributes.

Field Type Description
value Integer CAD value of datum
indicator String Economic indicator of Value
category String Broader category of economic indicator
frequency String Frequency which new data is recorded
date ISO Date Date of the datum (YYYY-mm-DD)

Config File

There is a sample config file provided in the project as config.json. The files provide an ability to add new tables and indicate the source of the data.

How to Run

Download Python requirements.

$ pip3 install psycopg --user
$ pip3 install psycopg-binary --user
$ pip3 install urllib3

Setup environment

$ # From project root director
$ export PYTHONPATH=`pwd`:$PYTHONPATH

Run Program:

$ # From project root director
$ python3 gathernomics

Future Work

Remaining works with Data Gathering:

  1. Store results of the table dumps in a Postgresql DB
  2. Add filters to gather more granualized capital economic data
  3. Read from Statcan's daily Delta File to more efficiently grab data

The Postgresql database back-end could not be fully implemented, though a significant amount of the modeling work has been complete.

About

Realtime economic monitoring

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published