Skip to content

luis-fnogueira/currency_etl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Currency ETL project

Summary

This project gets currency quotation data from the AwesomeAPI and stores them in a Redshift table.

image

The flow is the following: every minute a DAG in Airflow triggers the Lambda function on AWS to get the data from the API and just after store it on Redshift.

About the Lambda function

image

  • For better security the credentials of Redshift are stored in Secrets Manager, so first of all one needs to retrieve them.
  • Secondly, the class quotation_currency gets data from the API and then converts it to a Pandas DF, so it can be stored in the table.
  • The dataframe is passed to a function that stores the data.

Note

This project is intented to be used with one or a couple currencies. So it'd be simple to make a query with a WHERE clause. But if you want to use with a lot of currencies, I recommend creating a table for each quotation.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages