stock simulator

stock simulator Used AI

66 devlogs
111h 18m
Created by Cheung Chan

For people who want to try and invest.
People often want to invest but don't know where to start, well this is the solution to your problem 😊
THIS IS A SIMULATOR AND WHATEVER YOU DO WILL NOT BE TURNED INTO REAL MONEY.
I used ai to debug errors with js.

Timeline

Ship 4

1 payout of shell 66.0 shells

Cheung Chan

about 2 months ago

Cheung Chan β€’ Covers 2 devlogs and 3h 22m

Added a forum section but it has a few bugs. Each fetch makes it update the page which makes everything flicker.

Update attachment

Ive been trying to fix purchasePrice being 0 or being far from the stock price.

Update attachment

Ship 3

1 payout of shell 602.0 shells

Cheung Chan

2 months ago

Cheung Chan β€’ Covers 19 devlogs and 24h 59m

Added more technical indicators but im still getting this error.

Update attachment

Added Portfolio vs. Custom Benchmarks to benchmark how you are doing with your portfolio.

Update attachment

The chart is still a bit broken but i made it connect the 2 missing sides to fill in the gap.

Update attachment

Added indicators, but chart is broken again.

Update attachment

FIxed it so you can see the line that is being drawn and also fixed the problem of randomly clearing the drawing and it randomly saying All drawings cleared.

Update attachment

Added drawing on the chart, still some bugs to work out.

Update attachment

I tried to add the candle stick chart but it still didn't work after lots of debbugging. Instead i added Open High Low Close on the ui.

Update attachment

Im adding a candle stick feature on the chart but for some reason im getting this error Uncaught TypeError: String.prototype.toString requires that 'this' be a String
Zt @ chart.js:13
Qt @ chart.js:13
color @ chart.js:13
tick @ chart.js:13
(anonymous) @ chart.js:7
_update @ chart.js:7
(anonymous) @ chart.js:7
requestAnimationFrame
_refresh @ chart.js:7
(anonymous) @ chart.js:7
requestAnimationFrame
_refresh @ chart.js:7
(anonymous) @ chart.js:7
requestAnimationFrame
_refresh @ chart.js:7
(anonymous) @ chart.js:7
requestAnimationFrame
_refresh @ chart.js:7
(anonymous) @ chart.js:7
requestAnimationFrame
_refresh @ chart.js:7
(anonymous) @ chart.js:7
requestAnimationFrame
_refresh @ chart.js:7
(anonymous) @ chart.js:7
requestAnimationFrame
_refresh @ chart.js:7
(anonymous) @ chart.js:7
requestAnimationFrame
_refresh @ chart.js:7
(anonymous) @ chart.js:7
requestAnimationFrame
_refresh @ chart.js:7
(anonymous) @ chart.js:7
requestAnimationFrame
_refresh @ chart.js:7
(anonymous) @ chart.js:7
requestAnimationFrame
_refresh @ chart.js:7
(anonymous) @ chart.js:7
requestAnimationFrame
_refresh @ chart.js:7
(anonymous) @ chart.js:7
requestAnimationFrame
_refresh @ chart.js:7
(anonymous) @ chart.js:7
requestAnimationFrame
_refresh @ chart.js:7
(anonymous) @ chart.js:7
requestAnimationFrame
_refresh @ chart.js:7
(anonymous) @ chart.js:7
requestAnimationFrame
_refresh @ chart.js:7
(anonymous) @ chart.js:7
requestAnimationFrame
_refresh @ chart.js:7
(anonymous) @ chart.js:7
requestAnimationFrame
_refresh @ chart.js:7
(anonymous) @ chart.js:7
requestAnimationFrame
_refresh @ chart.js:7
(anonymous) @ chart.js:7
requestAnimationFrame
_refresh @ chart.js:7
(anonymous) @ chart.js:7
requestAnimationFrame
_refresh @ chart.js:7
(anonymous) @ chart.js:7
requestAnimationFrame
_refresh @ chart.js:7
(anonymous) @ chart.js:7
requestAnimationFrame
_refresh @ chart.js:7
(anonymous) @ chart.js:7
requestAnimationFrame
_refresh @ chart.js:7
(anonymous) @ chart.js:7
requestAnimationFrame
_refresh @ chart.js:7
(anonymous) @ chart.js:7
requestAnimationFrame
_refresh @ chart.js:7
(anonymous) @ chart.js:7
requestAnimationFrame
_refresh @ chart.js:7
(anonymous) @ chart.js:7
requestAnimationFrame
_refresh @ chart.js:7
(anonymous) @ chart.js:7
requestAnimationFrame
_refresh @ chart.js:7
(anonymous) @ chart.js:7
requestAnimationFrame
_refresh @ chart.js:7
(anonymous) @ chart.js:7
requestAnimationFrame
_refresh @ chart.js:7
(anonymous) @ chart.js:7
requestAnimationFrame
_refresh @ chart.js:7
(anonymous) @ chart.js:7

Update attachment

Ui looks good.

Update attachment

For limit and stop orders, i added a Order Expiry. Right now im still working on making the ui better.

Update attachment

Reworked main ui since the space usage was not optimized .

Update attachment

Live stock prices will now be cached for 5 seconds to prevent the rate limit.

Update attachment

I just saw this error, going to try and fix it now since the frontend doesn't tell you what went wrong.

Update attachment

Added Top Movers Today.

Update attachment

Added sortable owned stocks in the Transaction History

Update attachment

I have fixed the bug.

Update attachment

Tutorial is still a bit broken, after you click sell it doesn't let you move on to the next screen, still trying to fix

Update attachment

Solved the tutorial screen blank since the homepage was on top of the trade stock gui, i solved it by starting the user on the homepage.

Update attachment

MAJOR BUG I JUST FOUND. THE TUTORIAL DOESNT WORK. As for the rest of the dev log, I worked on not requesting news every second to overload my own API.

Update attachment

Ship 2

1 payout of shell 1057.0 shells

Cheung Chan

2 months ago

Cheung Chan β€’ Covers 21 devlogs and 46h 58m

the title might contain the other names of compaies also put those companies in the Caching without needing to call the api and it stores in a json file cachednews.json and gets removed in one month

Update attachment

The caching works but im going to add the title might contain the other names of compaies also put those companies in the caching without needing to call the api.

Update attachment

I added a news section using the https://newsapi.org api. You can see related news of your stocks on the watchlist. It only allows 100 requests per day, im going to add caching on the backend.

Update attachment

Added a preformance report for every user.

Update attachment

I added a data converter from the json to move to a new forma, there are check sum data and next im goiing to add a preformance report for every user.

Update attachment

Added cancel order and fixed the backend bug of sending the correct order.

Update attachment

So im trying to make a order cancel feature but the frontend keeps sending undefined, i coded the api path for cancel

Update attachment

Added a limit order function and also stop so you dont have to keep checking the website, you can just set a order.

Update attachment

In the leaderboard, everyone has a pfp even if they didn't set one. The picture is stored in the backend and sent to the frontend when loading the leaderboard.

Update attachment

So far, ive added a upload picture option in settings, this is just the frontend and i will work on the backend now

Update attachment

Added portfolio and also fix some bugs with the node backend, anti cheat was flagging everyone who had above +10k of money from start.

Update attachment

Added a compare stocks page.

Update attachment

Added a wishlist function.

Update attachment

I have made a stock auto complete feature, also added a auto system to check for cheaters by flagging them.

Update attachment

Fixed some bugs with the web browser api for notifications. And added a transactions page to the frontend.

Update attachment

Added a alert system and made the notifs work.

Update attachment

Had to push out a hotfix asap because there was a cheater who changed the currentStockPrice variable to sell at a higher price.

Update attachment

First i added a daily new users then i added a tutorial.

Update attachment

Added a Active Traders section with the users who made one or more traders and also a New/Default Users who didn't make a trade before.

Update attachment

Due to some people adding profanity onto their username i had to add https://github.com/jo3-l/obscenity into my backend.

Update attachment

Hot fix: in frontend when clicking the buttons for the first time, it always goes to AAPL.

Update attachment

Ship 1

1 payout of shell 541.0 shells

Cheung Chan

3 months ago

Cheung Chan β€’ Covers 24 devlogs and 35h 58m

Fixed breaks into data.

Update attachment

Added transactions to keep better record. There will be a page soon with all the transactions but first i need to fix the line break problem in the 1d and live.

Update attachment

Made a new stock trading ui, still having issues with the chart.

Update attachment

Api now works for both of them.

Update attachment

Fixed the username alr taken hidden and made it a alert and finished settings

Update attachment

Working !!!

Update attachment

There are still users with null as the username, i am still trying to generate a temp name and also name changing system is going to be in the next version. Anti cheat works quite well.

Update attachment

I fixed the backend so that null will not accept it and also fixed the anti cheat so that it does a check total money to see if its legit.

Update attachment

When in live mode, it fetches the past day and + current price.

Update attachment

I finally fixed the failed to fetch error with cors. I made a silly mistake fetching from localhost instead of stockapi.ronanapis.us.......

Update attachment

The dark mode has a bug with the login, Going to fix now. Also im adding anti cheat and recalc if your money is legit to cheat the leaderboard.

Update attachment

I added a dark mode too. Fixed the decimal bug in the leaderboard.

Update attachment

I added a leaderboard on the web ui. Also gotta fix a error display from the backend

Update attachment

I have added a user id gen on the frontend and it gets stored in local storage. Im going to code the nodejs backend to accept the id and write into json

Update attachment

Made the nodejs server display the frontend.html on localhost:5001 so that i dont have to use github pages and set up dns

Update attachment

Fixed the issue!!!

Update attachment

Cloudflare tunnel error... I'm gonna fix tomorrow.

Update attachment

I have made a working v1 website. My next step is going to be deploying this on github pages.

Update attachment

Ok i got cloudflared tunnel setup and its working😊😊😊

Update attachment

I added categories to the home page, my next step is working on nginx for the backend and port forwarding.

Update attachment

New ui!

Update attachment

I have fixed the issue, turns out the issue was due to mixing ES module import syntax with a CommonJS environment.

Update attachment

I have ran into some problems...

Update attachment

I have added more stocks onto the front of the page

Update attachment