Note
This is an extension of the previous devlog, at in all it was too long to fit inside one ππππ
Watchlist
- This was again, fairly straightforward. I simply got the values from the Datapased and parsed it instead of the placeholder array
Current Bugs
- While the stock listed is itself part of the users wishlist, the pricing, change percent and sparkline are currently totally fake
- To fix this ill have to get the stock data update it in the database and create a function to do this every 10 miins or so
Recent Transactions
- Here too, the data is simple parsed from backend and sybstituted instead of the placeholder array.
- These values however in the database, are obviously made up. The purpose right now i to simply get the data, cause then if i upload it i am guaranteed to get it
Problems faced
- The
Buytag inside the transactions section was very uncooperative - I later realised that it was due to the capitalisation of the tag in the database wheras the JS reciever expected it in lowercase, and rejected it, hence printing it as sell
Everything I learnt
-
API selection. Oh man! Theres so many parameters to check for and so many pros and cons and ups and downs.
- I should have probably evaluated all of that before actually starting to build the endpoint; It would probably have saved me an hour or two
-
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
Role of AI
- During this time, AI did not write any code. ALl implementation is my own work; Ai merely acted as a debugger for some of my issues
- Moreover, it helped me progress though my plan in stages that actually made sense
- It also stored all of my past mistakes and issues and designs so i could easily refer them and write the code
Next Steps
-
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 !!
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.