Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Stock Market Emulator Web-app

NotificationsYou must be signed in to change notification settings

PalAditya/DBMSProject2019

Repository files navigation

Inspired byPset7,CS50-2018

The Flask app is configured to run on a CS50 IDE.
To run it locally, there are a few steps.

  • Usepip install -r requirements.txt
  • Useset FLASK_APP=application.py (Windows) andexport FLASK_APP=application.py (Linux/MAC)
  • Change the linedb = SQL("sqlite:///finance.db") to make it use your own local/online sqlite instance (Usesqlite_setup.py for a local instance, which can be downloaded fromhere)
  • Set your gmail settings to allowless secure apps (only if you want to test the email feature-Explained later)

Now, you're good to go 😄

The live demo is hosted atheroku 😀

The various features of the webapp are:

  • Profile creation
  • Querying the current price of some share
  • Buying and selling the shares directly
  • Seeing a graphical overview of the fluctuation in share prices over time
  • Predicted prices of shares held by the user
  • History of transactions
  • Tabular representation of current shares
  • Adding friends to maintain a trusted list and sending mails to them
  • Viewing the most trending shares on that particular day
  • Companies can place ads for their shares on the platform for a price
URLFunction
loginAllows user to log in
registerUser Registration
downloadDownloads history of transactions in PDF format
indexShows curren shares
addFriend, deleteFriend and messageFriendAdds, removes and messages a user to/from/on the friend list
quoteSee current price of a share
buy, sellBuy or sell n particular shares
liveSee updates of user's most important shares graphically
adsAllows companies to place ads
funds/addAllows users to add money to their account
change_passwordPassword change facilitated

Here are a few images to explain the flow in more detail 😄

  • The user is greeted with a list of his/her available stocks on logging in

portfolio_1

  • Buying a stock

Buying

  • You can see that a share of NetFlix was bought on the updated interface

portfolio_2

  • Did I mention that we can getlist of all transactions? The history tab supports it, alongside providing facility for downloading the report in PDF format

portfolio_with_pdf_download

  • The interface for companies to upload ads

interface

  • The share prices for a company over the past 10 minutes (can be configured) via Pygal.

live_updates

  • The share prices of companies the user holds most shares of over past 10 minutes (can be cofigured) via Bokeh. Can add AjaxDataSource to make it auto-updating

live_stream

  • Finlly, the error page (classic cat for theCS50 touch)

Error

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp