TradeSims
- 9 Devlogs
- 41 Total hours
Django basec financial tracker
Django basec financial tracker
Hours: 9
Pages that now have live data:
- Landing page ( Markets page and moving section )
- Watchlist part
- Trending stocks ( With sparklines )
- Floating stock cards
All compoenents come together inside a stock page that will be displayed
This page is stil under development.
I am planning to only use fake data for now, the i will slowly progress to real data from API and database
There is very little js that i have written for this part till now, but there are more files planed
Its best to store all data from apis specially if multiple pages need to visit it, cause well then it doesnt reach limit.
Revised JS and how to put together animations
Again, I already listed everything I learnt and did in the bug fixes :)
Thats about it !! Thanks for the read
This is an extension of the previous devlog, at in all it was too long to fit inside one 😭😭😂😅
Buy tag inside the transactions section was very uncooperativeAPI selection. Oh man! Theres so many parameters to check for and so many pros and cons and ups and downs.
Capitalisation, i mean i knew it was important, but still. Spellings and capitalisation gave me a headache 😭😭😭
~ [ I really gotta improve my typing accuracy]
Data sttructuring designs matter a lot more than i thought. When creating the dashboard, all i thought was, what all do i want. BUt then i realised alter, that its more about what all will the backend send and i should have structured it accoring to that; It would also have saved me some time
Even tho i did plan everything well this time, i did slip out at a few places; like the 0 Change error in my main section is caused due to the way i made my backend
There is a lot more, but most of it has been covered in the problems sections, which obviously meant learning about everything that meant wrong, so im not going to repeat it all here
First, obiviously, just fix all the bugs in the Updated version
once thats done, i plan to create a way for users to actually quote and buy stocks.
I also want to create detailed amalysis pages for stocks dynamically, if possible ( I really hope i dont have to change APIs again 😭)
Thanks for the read !!
Hours: 10
The list includes:
- User data pulled form database instead of fake values
- Live market overview
- Daily gainers and losers with live data
- Sparklines and growth charts for all stocks
- Watchlist dynamically rendered from user’s database
- Transactions rendered from database
- Portfolio progression chart created from users previous net worths
These changes were meant to be distributed among two journals. But due to my absolutely amazing memory i forgot and created all these functions
Hence this devlong is gonna be a long one
dashboard_api function in views.py to dynamically fetch user dataS&P500, NASDAQ and Dow Jones ETFs.markets.py file inside servicesInitially, I thought of using finnhub as the provider due to its generous free tier and live data.
Next, i consider Alpha Vantage as my data provider. This idea was quickly scrapped due to its sparing free tier of 25 requests/day which would be exhausted in mere minutes
So finally, i went with a mix of Finnhub and YFinance, and i thought it was the best combination. However, again, it lagged, it would not render properly. And besider, apart from the 15 mins delay, which, lets face it, is not game changing for a simulator, YFinance offered everything i needed, and also it had good documentation i could refer to
My final data feed comes from YFinance and yahooquery, which I am quite proud of
Spellings mismatch with exact wording of the data the stock returned
Issues with perfectly parsing it in the exact format required by JavaScript [What can i say, my typing is just that good]
It was so bad that i did not even push my changes to github for this part
YFinance for me somehow made this quite simpler and i was able to get it running.
Thankfully, no errors presently
Hours: 4.5
Create Django Models for backend foundation of TradeSims and connect the Login and Register pages to the backend database.
GET and POST methodsLogin required decoratorsauthenticate
Hours: 3
Create and render the frontend part of login and register pages for website
Writing HTML code and creating a form to input the First Name, last name, user ID, email ID, and password.
After initial creation of HTML pages, it was broken into functional components to make code more readable andstructured
The HTML forms and components were created by me, with specific styling desicions inspired by Claude.
The Specific CSS and JavaScript used to stylise the webpage, and to check for password strength, and email validity was implimented by claude.
All AI generated code was cross checked and modified by me to fit the project’s coding style
Created multiple components for homepage(such as hero, markets etc.) , used CSS and JS to beautifully style landing page. Compiled all components into final home.html file to successfully run my django app for the first time
Completed initial layout with a navbar, and template indexing, ready to use as a base for all webfiles. Also added a new django software
Initial layout and template html file