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.
holly shit this place is more advanced than 99% of other sites
Jump in the discussion.
No email address required.
It kind of does. What it really has is ability for third party apps to request an auth token for a user. These aren't meant for sign on, as each third party app can only get one for a user (the app is meant to have its own account system, and then allow linking with rdrama). However, I don't think anyone cares that much about security here (<s>heck rdrama doesn't even hash passwords</s> nevermind it does i'm dumb check below) so I'm just using this as janky login thing (its also not actually insecure as long as the rest of my code isn't too dumb). I might submit a PR for Oauth2 for rdrama sometime in the future.
But yeah, even the ability to do third party apps really impressed me about drama.
Jump in the discussion.
No email address required.
they better hash and salt their passwords
Jump in the discussion.
No email address required.
And serve them alongside scrambled eggs
Jump in the discussion.
No email address required.
More options
Context
More options
Context
Jump in the discussion.
No email address required.
aren't you waiting for the drama when the AHS mole leaks all our information?
Jump in the discussion.
No email address required.
More options
Context
it looks like they are hashed.
routes/signup --> User(..., password=, ....)
classes/user:
Jump in the discussion.
No email address required.
oh lmao I'm dumb. I was checking the signup route to see if they hashed. Thanks for correcting me.
Jump in the discussion.
No email address required.
More options
Context
More options
Context
More options
Context
More options
Context
More options
Context