How 2smt-ai/financial-etl-pipeline works
This repository is a scheduled financial-data ETL pipeline for GOOGL, with PostgreSQL storage and a Plotly Dash dashboard. The principal workflow is Airflow scheduling extraction and validation, KPI transformation, database loading, and verification; the dashboard separately reads transformed records for charts and summary cards. The README also documents CSV as an extraction fallback. The DAG and ETL code were excerpted; that fallback and the database schema are represented from README documentation, not inspected implementation.
Main entry points: financial_etl_dag.py Financial ETL DAG · extract.py Stock extraction · load.py Database loading · init.sql PostgreSQL
Components 12
Orchestration
- Financial ETL DAG
dags/financial_etl_dag.py
ETL stages
- Stock extraction
etl/extract.py - Data validation
etl/extract.py - KPI transformation
etl/transform.py - Database loading
etl/load.py - Load verification
etl/load.py
Data storage
- PostgreSQL
sql/init.sql
Dashboard
- Financial dashboard
dashboard/app.py
Other components
- Airflow scheduler
- Yahoo Finance
- CSV fallback
- Dashboard user
Connections 15
- Airflow scheduler → Financial ETL DAG: triggers
README.md - Financial ETL DAG → Stock extraction: dispatches
dags/financial_etl_dag.py - Financial ETL DAG → Data validation: dispatches
dags/financial_etl_dag.py - Financial ETL DAG → KPI transformation: dispatches
dags/financial_etl_dag.py - Financial ETL DAG → Database loading: dispatches
dags/financial_etl_dag.py - Financial ETL DAG → Load verification: dispatches
dags/financial_etl_dag.py - Stock extraction → Yahoo Finance: fetches prices
etl/extract.py - CSV fallback → Stock extraction: provides fallback
README.md - Stock extraction → Data validation: validates data
dags/financial_etl_dag.py - Financial ETL DAG → KPI transformation: passes raw data
dags/financial_etl_dag.py - Financial ETL DAG → Database loading: passes datasets
dags/financial_etl_dag.py - Database loading → PostgreSQL: upserts records
etl/load.py - Load verification → PostgreSQL: checks records
etl/load.py - Dashboard user → Financial dashboard: views charts
dashboard/app.py - Financial dashboard → PostgreSQL: queries transformed data
dashboard/app.py