Given a stock ticker calls external Polygon API to get statistics on stock in 2023
This is a single-page application (SPA) built with React.js and Ruby on Rails that allows users to input a stock ticker symbol and displays various metrics for the specified stock within the date range of 1/1/2023 to 12/31/2023. The app fetches data from the Polygon.io API to retrieve stock market data.
- Input field to enter a stock ticker symbol
- Display of average stock price for the specified date range
- Display of maximum and minimum volume for the specified date range
- Display of maximum and minimum stock price for the specified date range
- React.js
- Redux (for state management)
- Ruby on Rails (backend server)
- Polygon.io API (for stock market data)
- HTTParty gem (for making HTTP requests in Rails)
- SCSS (for styling)
- Clone the repository to your local machine.
- Navigate to the project directory.
- Install dependencies for both the frontend (React.js) and backend (Ruby on Rails) by running:
npm install
andbundle install
- Start the Rails server with
rails s
and React server withnpm start
- Enter a stock ticker symbol in the input field.
- Press the "Search" button to retrieve statistics for the specified stock.
- View the average stock price, maximum/minimum volume, and maximum/minimum stock price for the specified date range.