I saw @HeyMoon's post earlier about his drama stonk exchange, and thought it was a really good idea. When it crashed, I was pretty sad, but it inspired me to try making my own.
So I made my version at https://hmse.cash.
How to use:
- Login with your rdrama account
- You can deposit and withdraw dramacoin
- You can place buy/sell orders for any stonk
IPO:
- I will have an IPO of the stocks at some cheap initial price
- I'm gonna wait some hours (I'll edit this post an hour before it) so that everyone has a fair chance to be part of the IPO.
Additional Notes:
- I used HeyMoon's original list of stocks for now, will probably add more later based on what the community wants
- I only have limit orders, I might add market orders later, but there isn't much point now until we have a lot of volume
- The trading form lets you put any values you want in case you wanna use some complex strategy, but if you don't have enough money/shares to execute the order when it gets matched it won't go through
- When I make changes to the code, which I prolly will be making a lot of right now, I will have to take the server down, so if it's down for a couple minutes, that's prolly what that is
Upcoming changes:
- mobile not completely r-slurred
- Cost basis algo so I can do profit/loss
- Graphs
- ajax everything
- Price ticker / latest trades
- maybe some way to see the top traders or something?
- Move orderbook code to C++
- Anything else you guys want
Code: https://github.com/SocietyMoment/hmse
Hope you guys enjoy
EDIT: I'm gonna do IPO at 4PM EST. More details here: https://rdrama.net/post/53910/stock-exchange-ipo-in-1-hr EDIT: IPO live, there are still stonks left to buy, go buy them
Jump in the discussion.
No email address required.
Why? Even elderly literal boomer programmers who were there when C++ was invented do this kind of thing in Java and C# now.
Jump in the discussion.
No email address required.
I also donβt see a reason why they have to change language anyways they should instead rewrite it in python properly cuz the current orderbook code makes no sense.
Or use elixir like any sane person would do in 2022
Jump in the discussion.
No email address required.
More options
Context
So the thing is that to be able to handle lots of users, I didn't want to lock the orderbook everytime someone placed an order to run the matching code cuz of race conditions. So instead, I made the orderbook its own single threaded program, that the webapp is a client of thru ipc message queue. But this means that its the one part of the code that needs to be fast (aka not python) cuz I can't just scale it.
As for why not Java, I fricking hate Java, C++ is so much better. C# looks to be a pretty ok language but I never learned it. Also modern C++ with RAII/templates is very different from the boomer version of 30 years ago, and is a usable language, esp for small programs.
Jump in the discussion.
No email address required.
Use elixir
Jump in the discussion.
No email address required.
>has a witch emoji in their flair
Jump in the discussion.
No email address required.
ummm erm gulp i can explain
Jump in the discussion.
No email address required.
More options
Context
More options
Context
More options
Context
Become Crustacean
Jump in the discussion.
No email address required.
More options
Context
More options
Context
I'm not aware of any sizeable exchange which doesn't currently use C++. I'm not a C++ shill by any means but for this sort of task it's kind of a no-brainer to use C++ if you want to hire dumb corpo code monkeys, with Rust being a decent forward-looking option and Ada being a good idea if you're really serious.
Jump in the discussion.
No email address required.
More options
Context
More options
Context