Trading_Sim banner

Trading_Sim

7 devlogs
69h 57m 17s

Intended to be a Django-based website which simulates real-time stock market trading using both actual and fictional assets.

This project uses AI

I used AI (Codex) for help in bootstrapping, creating frameworks, and answering my questions.

Demo Repository

Loading README...

tigerjdengflavortown

For this devlog, I worked mainly on the system which is used by my school to host sites (Director4), which is where this site is hosted on, so I logged that time under this project. Mainly, I upgraded dependencies that haven’t really been touched in 5-6 years - Python from 3.8 to 3.13, Ubuntu from 20.04 to 24.04, and Django from Django 2 to Django 5.2.

Attachment
0
tigerjdengflavortown

Shipped this project!

Hours: 54.92
Cookies: 🍪 823
Multiplier: 14.99 cookies/hr

This is a powerful, online trading simulation which accurately simulates market order books in its internal assets, but also allows players to buy into popular real-world stocks. It also has a functional implementation of user-issued bonds and bond redemption, allowing the simulation of market interest rates.

Planning and building the model and service structures for the core trading infrastructure was hard, but it really paid off in the end.

tigerjdengflavortown

Finished up implementing a new asset type for Bonds and all the relevant trading, redemption, ui display, etc. mechanics.

Attachment
1

Comments

Arlo
Arlo 21 days ago

AMAZING project!!
Smol improvement: when preparing a trade and changing to for example account, the values should stay saved.

tigerjdengflavortown

Created a specific version of the simulator for public-facing usage.

Attachment
0
tigerjdengflavortown

Was tested and deployed in my school’s math club meeting. Also fixed lots of random bugs which popped up during this attempt.

Attachment
0
tigerjdengflavortown

Refined a lot of things about the website, including user interface, external asset ratio limits, superuser monitoring, etc.

Attachment
0
tigerjdengflavortown

Finished developing trading features such as order executors and flushed everything out.

Deployed to a web hosting service.

Attachment
0
tigerjdengflavortown

Built the whole framework for the website and fixed some random path-based 404 errors.

Attachment
0