GithubHelp home page GithubHelp logo

stocky's Introduction

Stock Market Game Simulation

The aim of our website is to monitor and update the stock prices of several companies in real time or with every refresh (with a maximum lag <1 minute), and using this data to simulate a Stock Market Game where a user can use virtual currency to invest and get a hands on experience on the working of the market.

Software and Libraries used

  • For Web Scraping-

    • Pymongo: The PyMongo distribution contains tools for interacting with MongoDB databases from Python.
    • Beautiful Soup: Beautiful Soup is a Python package for parsing HTML and XML documents.
    • Requests: Requests is a Python HTTP library. It makes HTTP requests simpler and more human-friendly.
    • Mongoose, Morgan, Lodash
  • For DBMS

    • GCP
    • MONGODB
    • ATLAS (To host the MongoDB server)
  • Languages Used

    • Python
    • Javascript
  • For creating the website

    • NODEJS, Javascript, HTML CSS, Embedded Javascript

Features-

  • Virtual Money
  • Real Time Refreshes
  • Fully functional User Login system

Methodology

graph LR;
    A(SHORTLISTING TOP </br> 50 COMPANIES)-->B(SCRAPING THEIR </br> MARKET PRICES </br> FROM NSE);
    B-->C(USER JOINS </br> THE GAME AND </br> LOGS IN);
    C-->D(THE PRICES </br> ARE DISPLAYED IN </br> THE MARKETPLACE);
    D-->E(USER USES </br> VIRTUAL MONEY </br> TO BUY STOCKS);
    E-->F(MARKET </br> REFRESHES);
    F-->G(USER INCURS </br> EITHER A PROFIT </br> OR A LOSS);
Loading

User Sign In process

flowchart LR
    A(User lands on </br> the home page) ==> B[Users chooses to </br> create or joun a game]
    B ==> C[A unique ID is </br> generated for the user]
    C ==> D{User's entered </br> credentials are right?}
    D -->|No| E[The ID already </br> redistered, but one of </br> the entered credentials </br> isn't correct]
    E ==> A
    D -->|Yes| F[User Sign In </br> is succesfull]
Loading

Game process

flowchart LR
    A(User </br> Sign In is </br>  succesfull) ==> B{Balance is 0}
    B -->|Yes| C[Bring back </br> to main menu]
    B -->|No| D[Take input of </br> the company name, </br> amount and operation]
    D ==> E{Does user </br> want to buy or </br> sell that amount}
    E -->|Sell| F[Decrease the </br> amount of stocks user </br> has for that company, </br> add the amount to </br>  user's balance]
    E -->|Buy| G[Increase the amount </br> of stocks user has for that </br> company and decrease the </br> amount spent from </br> user's balance]
    G ==> H[Stock market </br>  updates and the </br>  game starts again]
    F ==> H
    H ==> B
Loading

User Interface (Screenshots)

Landing Page

User Sign In Page

Market Place

Buying Selling


  • Some features of the website are still in work. (Ranklist etc.)

stocky's People

Contributors

namanctrvd 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.