stock_simulator's People
stock_simulator's Issues
Captcha
We need to find a way so that bots cannot spam creating accounts. Probably can use reCAPTCHA: https://www.google.com/recaptcha/intro/index.html
May need to find a way to stop bots from spamming other APIs too. Might do that later or keep it in as a stock bot is pretty cool.
Python Code Styling
Remove/Refactor old code
After bringing in DataTables, we do not need a lot of old code. They should be removed from the code base.
Design and style stock info page
Firefox, Safari stock symbols map
Some reason Firefox and Safari keep doing API calls to get the stock symbol map - thus making the application SUPER slow and unusable.
How to get server statistics
Such as how many requests in a day or week or of all time. Or how many users logged in in a day. Probably would have to use logs.
Error message styling on log in page
Error message is not styled. Should have an icon or background to denote there has been an error.
Logging
Stock Meister Logo
Cannot change tabs when loading profile page
The Ajax call should not hang the page..
Test/Development Server
Possibly use pythonanywhere.com
Sorting bug
When searching then sorting columns, the sorting will display all stock rows, not just the searched rows
Updating client cache will make stock table reinitialize
Reinitializing the table is ok if it does not reset the table to page 1. It should only change the values that the user sees..
We may have to make it not reinitialize the table at all. Will need to think of better solutions
Provide Datatable data using AJAX (json format)
https://datatables.net/reference/option/initComplete
The server should build the table for the user, not rely on giving information to the client and having the client build the table.
Add the appropriate errors when AJAX calls fail
Errors should be shown to the user when an error occurs.
Table reload issue
When a table is updated, the whole table is reloaded - we should find a way to update the table without doing so. By just updating the numbers, the user experience is better as the table/pagination won't get reset
Logout issue
When a user tries to logout before the calls for the stock symbol map or user data finishes, the user will be redirected back to the application and the user is not logged out.
Commission
When buying (and maybe selling?) stock
Flash of Unstyled Content
https://en.wikipedia.org/wiki/Flash_of_unstyled_content
When we load the web page, the content is not styled for an instance. We should get rid of this for a better customer experience. (The page should only display once it is styled, not before).
Change URL/route names
Currently using things like "theApp". This should be changed to be more fitting
Delays are not correct in Chrome
When getting the timeout delays for the stock symbol map, chrome always calculates a negative delay. Probably due to the lastUpdatedDate not containing the time zone.
Table styling
I already got rid of letting the user choose number of records per page. We basically just want the search bar and the table. We need to make it look good.
Stock Searching Bug
When searching using numbers, we get results that should not be there. Probably has something to do with the regular expressions used in the search.
Selling all of a single stock
Selling all the stocks you have of a particular company will still keep a record in the database - thus still showing up in the profile table with "0" as the quantity. It should not be in the database or table at all.
StocksSymbolMap and UserInfo loading separately
When the userInfo loads before the stocksSymbolMap, we will get a javascript error trying to load the user's profile table since we have not gotten the stocksSymbolMap yet (which would be undefined).
Navigation Shortcuts
Stuff like Control + Tab to switch tabs
Sending user emails to reset password
Password reset needs to be implemented
Buying new stock will not update profile table
Buy a new stock from the stocks table. The new stock will not be added to the profile table unless you refresh the page. This is because the profile table only updates the symbols that already exist in it. This should be fixed.
Get up to date stock symbols in NASDAQ
Currently, we just use a static list of stock symbols in parsed_symbols.json. We should set up a CRON job to grab a list of stock symbols daily. This is low priority though.
Restrict number of tries to login
To help prevent brute force attacks
DataTables plugin too big
The entire DataTables plugin is in the code base right now. Including all of it is increasing the latency a lot. Will need to only import what is needed.
Unit tests
Login error message
Login error message should be displayed on the login page. Currently brings the user to another page.
Show prices bought in profile table
https://datatables.net/reference/api/row().child()
Users may want to know what prices they bought their stocks at. If they bought the stock at more than 1 price, we would need a way to display all of the different prices they bought it as.
Forgot your password link required
Needs to be added to login page. Should be toggled/not shown when the user clicks "Don't have an account? Create one here." and should reappear when the user clicks "Already have an account? Login here."
New users cannot buy stocks
userInfo.stocks_owned is returning undefined when the user doesn't own any stocks.
Style navigation bar
Email verification
Remember me functionality
Find real time stock information
Yahoo has a delay on stock information from NASDAQ (15 minutes). It may be better to find another source of information for real time data. Also, finding historic data would be very useful too.
last_updated_date - if format is wrong, server will not start
Prod Server
Possibly use https://www.digitalocean.com/pricing/
Password encryption
Required.
Use HTTPS
Installation/Uninstallation script
Component Spinners
While loading the tables, the client should show spinners to indicate they are loading.
Mutually Exclusive Container for Components
Update Stock Info Page
When the user info or stock map is updated, update the stock info page too
Where to show Cash
Create Account password and retype password validation check
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.