Git Product home page Git Product logo

stockdb's Introduction

(Remark: Currently, this is a Work in progress)

Objective:

I wish to create a stock database that scrape the price and finanncial statement data to the MySQL database.

Metadata

Below is the ER Diagram of this database project:

image

Prerequisite:

  • python + mysql database

steps to run:

  1. rename .sample_env to .env, and then rep
  2. open terminal, and then type python -m app.database.db_controller
  3. check back your mysql gui to see if the database is created

Plans

  1. CSV file for FinancialStatementLineSequenceDB: https://github.com/leosmigel/analyzingalpha/tree/master/2020-02-28-financial-statement-database
  2. use intrinio as a baseline for database design of macro economics data: https://docs.intrinio.com/documentation/web_api/get_all_economic_indices_v2
  3. use schedule + threading to repeat scraping process at any interval: https://www.geeksforgeeks.org/python-schedule-library/ & https://schedule.readthedocs.io/en/stable/parallel-execution.html
  4. use numba + numpy to replace pandas for faster iteration
  5. learn pytest for unit testing and Integration testing:

Objective:

Build a MySQL database which scrape historical stock price data, news data, and macroeconomics data.

Challenges:

  1. Makefile to automate the mysql db creation... (+Github actions)

  2. Use financedatabase to get data: https://pypi.org/project/financedatabase/

Reminder

database migrations tool: alembic

  • Step 1: Type alembic init alembic at your working directory. It will create an folder named alembic. Skip this if alembic folder exists
  • Step 2: Type alembic revision --autogenerate
  • Step 3: Type alembic upgrade head

stockdb's People

Contributors

tan-yong-sheng avatar

Watchers

 avatar

Forkers

webclinic017

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.