Skip to content

Utilizes third party stock APIs to gather information and saves it to local PostgreSQL database

Notifications You must be signed in to change notification settings

AndrewBaik/stocks_api

Repository files navigation

Stock API Application

Author: Andrew Baik Version: 1.0.0

Overview

It's an AWS deployed backend web application with pyramid framework. Retrieves information from third-party API, saves into a database with POSTGRES.

API

This application utilizes IEX TRADING API to retrieve public company stock information.

Change Log

Aug 29, 2018

  • Refactor Account model for bcrypt

  • Create Check_credential for Account model

  • Created auth.py handles register and login, providing web token per POST request

  • Certain directory requires register/login, requiring web token.

  • Using the diagram below as a guide update your models/ directory with the new account.py, role.py, and associations.py files, and create each of the tables

  • Ensure that your model relationships are functional

  • Ensure that you’ve taken advantage of the SQLAlchemy relationship method to create additional functionality within your code base for accessing those new relationships

  • Add your new models to the Initialization Script, drop and recreate your DB, and initialize again with your new tables

Aug 27, 2018

  • Created a Portfolio class with id, name, date_created, date_updated
  • Defined two class methods on your Portfolio class: one() and new()
  • In model/stock.py, created a Stock class with mirroring the data of 3rd party API
  • Define three class methods on your Stock class: one(), new(), and destroy()
  • Created Schema serializer
  • Created Portfolio, Stock, and Company View Controllers
  • Successfully interact with 3rd party API

Aug 23, 2018

  • Deployed the web application to AWS EC2
  • Added company and portfolio apis

Aug 22, 2018

  • Disable the unnecessary functionality of your scaffold, by commenting out the include() statements in your init.py:main() function.
  • Delete the templates/ directory
  • Remove the contents of default.py and notfound.py
  • GET / - the base API route
  • GET /api/v1/stock/ responds status code 200
  • POST /api/v1/stock/ responds status code 200

About

Utilizes third party stock APIs to gather information and saves it to local PostgreSQL database

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published