paulinakhew / web_trader Goto Github PK
View Code? Open in Web Editor NEW๐ Python Flask game that consolidates data from Nasdaq, allowing the user to practice buying and selling stocks.
License: MIT License
๐ Python Flask game that consolidates data from Nasdaq, allowing the user to practice buying and selling stocks.
License: MIT License
lq
and lookupandquote
with the new name"https://paulinakhew.me/"
In the functions that involve db work, a list is passed as a param:
return_list = (last_price, brokerage_fee, current_balance, trade_volume, agg_balance, username, ticker_symbol, current_number_shares)
this should be converted into its own class in a different file that is imported at the top of models. This would also help with testing as we can use an __eq__
function
https://docs.intrinio.com/documentation/api_v2/getting_started
this one also looks promising
The current API key has been revoked. I'll need to set up the new one as an env var
model.py
controller.py
This is what the dashboard currently looks like. Users should be able to see their current account balance at the very top.
if
and else
statements
The best way to double check to find all the links would be to CMD + F
on each page and search for href="/
After creating an account, the app does not redirect to the main menu page. Instead it stays on the same page with an alert that you should create a different account. The newly created account exists in the system.
https://www.alphavantage.co/documentation/
This seems like it could be a good substitute for the markitondemand API
Sandbox
API key, which is free and has limited informationthis looks like a really good resource
https://devcenter.heroku.com/articles/sqlite3
SQLite3 doesn't work with Heroku
https://nitratine.net/blog/post/how-to-hash-passwords-in-python/
I'll need to hash the passwords before inserting into the table for security.
/logout
page/login
page once the user has logged outbuy
and sell
functionsflask-login
extensionSeems like it's down, which breaks the whole app.
I should be using f strings since they're easier to read
it would be visually appealing if either the web trader menu or the dashboard had a graph of the price over time with respect to the stock they own the most quantity of
find out how to get the data for prices in real-time
learn how to visualize data
implement the feature ๐คฉ
https://blog.ruanbekker.com/blog/2017/12/14/graphing-pretty-charts-with-python-flask-and-chartjs/
this website shows you how to test your code
current user can be attained by calling the current_user()
function so passing the username in as a parameter is deprecated
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.