Skip to content

gopythor/divident_yahoo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Develop an API service that provides US stock dividend information

📃 project introduction

  • Analyze web pages and use scraping techniques to extract and save necessary data
  • Can manage user-specific data and calculate expected dividend amount
  • Understand the need for caching in services and configure cache servers

📚 project stack

  • Spring boot, Java
  • H2 DB(memory DB Mode)
  • To access the DB, use Spring data jpa
  • Configuring the cache server utilizes Embedded redis
  • Each API has its own request and response object structure.

DB Company image Dividend image


⚫ Project function


1️⃣ API description

  1. GET - finance/dividen/{companyName}
  • Receives a company name as input and returns the company's meta information and dividend information
  • Returns 400 status code and error message when wrong company name is input

  1. GET - company/autocomplete
  • API for autocomplete functionality
  • Receives the prefix to be searched as an input and returns 10 of the list of company names searched for with the prefix.

  1. GET - company
  • Returns a list of all companies managed by the service
  • The return result is in the form of a Page interface.

  1. POST - company
  • Add new company information
  • Receive the ticker of the company you want to add as an input, scrape and save the information of the company
  • Returns a 400 status code and an appropriate error message if the company's information is already in your possession
  • Returns 400 status code and appropriate error message for non-existent company ticker

  1. DELETE - company/{ticker}
  • Delete the company information corresponding to the ticker
  • When deleting, the company's dividend information and cache must also be deleted.

  1. POST - auth/signup
  • Membership API
  • Duplicate IDs not allowed
  • Passwords must be stored in encrypted form

  1. POST - auth/signin
  • Login API
  • If registered as a member and the ID/password information is correct, JWT is issued

About

dividend Scrapping

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages