Stock Simulator banner

Stock Simulator

15 devlogs
23h 2m 18s

Its a stock paper trading app that you can use!!! it works!!! trust me its impressive for my skill level.

ALSO REMINDER: FEATURES LIKE LIMIT ORDERS AND THE WATCHLIST/LEADERBOARD MIGHT NOT WORK!! I WILL FIX THEM IN THE NEXT HACK CLUB EVENT IF TH…

Its a stock paper trading app that you can use!!! it works!!! trust me its impressive for my skill level.

ALSO REMINDER: FEATURES LIKE LIMIT ORDERS AND THE WATCHLIST/LEADERBOARD MIGHT NOT WORK!! I WILL FIX THEM IN THE NEXT HACK CLUB EVENT IF THEY DON’T!!! AND USE SYMBOLS!! SEARCH THE STOCK SYMBOL NOT THE COMPANY NAME!!! PLEASE DONT VOTE ME LOWER FOR THIS REMEMBER TO USE SYMBOLS I REALLY NEED NEW EARBUDS FOR MY DAD

This project uses AI

Used github copilot to create a better more comprehensive and readable readme

Demo Repository

Loading README...

idiotmethere

Shipped this project!

Hours: 23.04
Cookies: 🍪 198
Multiplier: 8.59 cookies/hr

I made a paper trading website, it uses html for frontend on java spring boot, using only java as the backend. It uses dockerfile to build the image, and netlify to deploy the site and firestore to store the data of the site. It features candlesticks, volume bars, line charts, every symbol, leaderboards, choosing your budget, and limit orders, and a list of trades made.

idiotmethere

no screenshots because i just realised that Ive been changing only backend, so same screenshots, I have updated security and changed it to render

Attachment
Attachment
Attachment
Attachment
Attachment
Attachment
0
idiotmethere

HA LOSERS NO SCREENSHOTS FOR YOU

(ill have some new ones when im done with the project, so very soon)

anyways more backend security and ease of use.

Attachment
Attachment
Attachment
Attachment
Attachment
Attachment
Attachment
0
idiotmethere

well I have a final tomorrow and its 11pm so no screenshots!!! other than that, I added a watchlist and finished the limit trading feature. BUT GUESS WHAT? IM A BUM SO I HAVENT TESTED!!!!

fr tho I barely paid attention in class and now I have a few hours to cram for my APHUG final. im crine son :(

Attachment
Attachment
Attachment
Attachment
Attachment
Attachment
Attachment
0
idiotmethere

Added limit orders and fixed leaderboard. this is a partial commit, meaning that it will probably not work until i finish it next commit i promise new images next time but my mom is calling me and i have to get this commit out

Attachment
Attachment
Attachment
Attachment
Attachment
Attachment
Attachment
Attachment
0
idiotmethere

added a semi functional leaderboard and removed email password. My database is not secure and could leak emails, which would be a minor inconvenience to users if advertisers got hold o fthe emails i guess. I also fixed some bugs.

Attachment
Attachment
Attachment
Attachment
Attachment
Attachment
Attachment
0
idiotmethere

Added firebase support and migrated from local to railway hosting. It now supports google and github auth (email password is still buggy) and allows you to store data.

You can choose how much cash to start with, and restart whenever. Force restart if you have overall -100 profit.

Did I mention accounts and sign in happy .

Also for some reason it tells me I vibe coded and lost 3 hours on this project, so devlogs look more spaced out or something all I know is that I didn’t vibecode.

Attachment
Attachment
Attachment
Attachment
Attachment
Attachment
4

Comments

idiotmethere
idiotmethere about 2 months ago

I found out its not that it thinks i’m vibe coding, It just requires you to submit a devlog before your project updates.

RespectableDot
RespectableDot about 2 months ago

how do i use this

RespectableDot
RespectableDot about 2 months ago

like where do i play

idiotmethere
idiotmethere 22 days ago

SNDFAOISVMFDIOSH
when I finish and ship the project, the demo link will contain the full project in a website. but because of hosting provider issues it might take a bit of time

idiotmethere
  • Added proper styling for candle sticks and good looking volume bars.
  • Added a purchase section where you can “buy” stocks.
  • Added a transaction history section where you can see all purchases and total profit accounting for changed prices, but to save API requests it only refreshes when you tell it to, this includes which stock, buy price of stock, amount bought, value of amount bought, and this data is also outputted to console that I used to debug.
    Next things to add:
  • FINALLY fix things like market cap and P/E
  • Not allow you to sell more than you have
  • Create a start screen with game mode (hard medium and easy, which change starting cash) or paper trading mode where you can set your wallet
Attachment
Attachment
Attachment
Attachment
Attachment
0
idiotmethere

fixed candlestick, made color of line change live depending on increase/decrease in price, added volume bars, added small buy/sell interface that, for now, just appends the data of when bought and what bought with how much to a portfolio array.

Next update will include:
a working portfolio that tracks how much stock you have including transaction history that also tracks overall net profit via searching every stock you have and doing price now-buy price.

I have an API limit right now, so I will include a NEW screenshot as soon as possible.

Attachment
0
idiotmethere

Working candlesticks! i tried to add a portfolio base, where you can buy or sell stocks, but I can’t test since my API key is buggy, but at least the candles work :)

because of the failing api key, I couldnt attach a picture of the current output, so here’s a buggy version of it that did have candlesticks but not pretty ones.
Next devlog will include a screenshot of its content and a screenshot of this ones content.

Attachment
0
idiotmethere

Added candle sticks, but it doesnt work yet. Next commit should include functional candlesticks and fix of parameters like market cap.

Attachment
0
idiotmethere

Made it more interactive, graph now has live stock price and gives more detail when you hover over a specific date, added timeframes but there still is a 5 per minute API limit. Extra details also not functional yet.

Attachment
Attachment
0
idiotmethere

Switched to a swing interface, I built a basic graph with a search bar in the top left. The graph for now is only ~2months, but I hope to add more customizability.

Sorry for the devlog being like 2 hours late, I’ll start adding more storytelling later.

Attachment
0
idiotmethere

Update #2:

Added a toolbar at the top, this changes time frame from intraday to daily to weekly to monthly. Thats all for today, I had a lot of other work.

Attachment
0
idiotmethere

GRADLE!!!!

I did some more research and found out that gradle is wayyyy better for my purpose so no more Maven!

This is the first non buggy version I’m uploading, seems like a lot of code, I know, but I used a library by crazzyghost. Check out and star their repo here, I really loved their tool to make alphavantage work with java: Java-AlphaVantage.

Added some more swing features in a SwingUtilities, along with jfreechart and the data from alphavantage to produce the product below.

Current functionality: Type exact stock symbol (will be changed to name and close matches in future updates) at the top bar and press go (default is NVDA). Your stock will be displayed at a weekly timeframe. you can zoom and edit properties using right click.

I’m Hoping to add basic styling before adding more functionality and info in the next update.

Attachment
0
idiotmethere

Added full JFrame and swing, thats what I’ll be using, converted to maven, using Jfreechart (still buggy). Got API key for alpha vantage and attempting to integrate it with Jfreechart but maven is still failing in vscode terminal.

No attachment because its just errors.

Attachment
0