How nirubama12/stockit works
StockIt is a Flask stock-market and portfolio-trading web application. Users can register or log in, browse market data, and manage a simulated portfolio by buying and selling shares. The sampled app code retrieves stock prices from Yahoo Finance and uses MySQL for accounts, prices, holdings, and transaction summaries. The source excerpt confirms only some route-to-template links; other page relationships and capabilities are inferred from filenames and are shown as unverified rather than asserted.
Main entry points: app.py Flask routes · Stocks.html Stock list · movers.html Market movers · gainers.html Gainers
Components 17
Web application
- Flask routes
app.py - MySQL database
Market browsing
- Yahoo Finance
- Stock list
Stocks.html - Market movers
movers.html - Gainers
gainers.html - Losers
losers.html - Stock details
stockinfo.html - Price graph
graph.html
Accounts and portfolio
- Login
login.html - Registration
register.html - Profile
profile.html - Holdings
portfolio.html - Buy shares
buy.html - Sell shares
sell.html - Trade warning
insufficient.html
Other components
- Visitor
Connections 16
- Visitor → Flask routes: uses routes
- Flask routes → MySQL database: queries and updates
app.py - Flask routes → Yahoo Finance: downloads prices
app.py - Flask routes → Login: renders
app.py - Flask routes → Stock list: renders
app.py - Flask routes → Market movers: renders
app.py - Flask routes → Profile: renders
app.py - Flask routes → Registration: renders
- Flask routes → Gainers: renders
- Flask routes → Losers: renders
- Flask routes → Stock details: renders
- Flask routes → Price graph: renders
- Flask routes → Holdings: renders
- Flask routes → Buy shares: renders
- Flask routes → Sell shares: renders
- Flask routes → Trade warning: renders