Reading 2022-01-21
Metadata
- Ref:: PythonForFinance
- Title:: Build a Financial Data Database with Python
- Author:: Stuart Jamieson
- Year of publication:: 2020
- Category:: Blog
- Topic::
Notes from reading
data pipeline mindmap
Entity-Relation diagram
idea:
- create a simple local database using SQLite
- use pandas-datareader to scrape price historical data from Yahoo Finance then, clean and write the collected data into the local database
thoughts:
- the author agree that relational database is possibly not suitable for security prices. He accepts that time-series DBs have certain benefits over SQL DBs when it comes to large amounts of financial time-series data.
- He explained his reason of choice. Sqlite comes pre-packaged with Python, it exists in a single .db file and is accessible without faffing around with setting up SQL servers
- However, I am not aiming this blog at those who would have their own SQL servers and who are looking to build an enterprise grade financial DB here. This whole blog is aimed at individuals, many of whom are in the learning phase of their journey…so I stand by my choice of an SQL database for this article. Sqlite comes pre-packaged with Python, it exists in a single .db file and is accessible without faffing around with setting up SQL servers and the like. For the amounts of data they are likely to be scraping (end of day in my example) then, again an SQL DB is more than sufficient for that. I can assure you at many smaller funds and CTAs you will often find their data held in SQL DBs. It all comes down to use case
Backlinks