Coder Social home page Coder Social logo

equityinsights's Introduction

EquityInsights

EquityInsights is a Node.js project offering real-time stock data retrieval, storage in MongoDB, and RESTful API endpoints for stock analysis and management, with in-memory caching for optimized performance.

Features

  • Real-time stock data retrieval from the BSE website
  • Storage of stock data in MongoDB
  • Creation of a RESTful API using Express.js
  • Support for top 10 stocks retrieval, search by name, price history, favorites management (add, view, remove)
  • Refresh functionality to update data.
  • In-memory caching of stock data for optimized performance

Local Environment Setup:

For running this project locally, you need to set up and define the environment variables.

  • Create .env in the root directory with the following variables and add the connection string from MongoDB:
    • MONGO_URI=

Local Setup:

  • Clone the repo
  • cd EquityInsights/
  • npm install
  • npm start

API Endpoints

  • "localhost:3000/top10stocks" - GET

    image

  • "localhost:3000/stocksByName" - GET

    Sample Request Body:

    { "name": "ABB" }

    image

  • "localhost:3000/stockPriceHistory" - GET

    Sample Request Body:

    { "code": "500003" }

    image

  • "localhost:3000/addfavourites" - POST

    Sample Request Body:

    { "code": "500003" }

    image

  • "localhost:3000/getfavourites" - GET

    image

  • "localhost:3000/deletefavourites" - POST

    Sample Request Body:

    { "code": "500003" }

    image

equityinsights's People

Contributors

hawkeye201 avatar

Watchers

 avatar

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.