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.
i literally don't understand but im going all in
Jump in the discussion.
No email address required.
stonks explained in a sentence
Jump in the discussion.
No email address required.
DIAMOND HANDS TO THE MOON APES!
Jump in the discussion.
No email address required.
More options
Context
More options
Context
!slots100
Jump in the discussion.
No email address required.
More options
Context
More options
Context
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
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.
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 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
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
hello, i clicked that link and i think it stole my password. i have just changed it. admins please help his website tried to connect to my compooter
Jump in the discussion.
No email address required.
coins for the hackers pockets
Jump in the discussion.
No email address required.
More options
Context
More options
Context
dramaphobeeeeeee but heckin' nice job
Jump in the discussion.
No email address required.
More options
Context
do you want more internal circlejerking or incentives to stir shit up outside the site?
you need contracts for difference for some external drama measures
eg. hourly number of tweets on #topic
at least somehow make the stocks pay dividends? they'd have to earn coin somehow
Jump in the discussion.
No email address required.
So the thing about about dividends is that I don't have a way to actually make more dramacoin lol. People are supposed to make coin just by everyone's estimation of how dramafull a certain stonk is.
But the contracts executed based on external factors idea is a good one, I'll think about how/if to do it.
Jump in the discussion.
No email address required.
I talked about this in Heymoon's original thread. Dividends would be a great idea, but it would require integration into the actual site. I suppose if you can prove that the HMSE works consistently, you can open a line with carp and Aevann and discuss integration so that they can generate DC for it.
Jump in the discussion.
No email address required.
More options
Context
I was was thinking of some program that checks how many times a related word is used on the site and adds a percentage of upmarseys to the value. But IDK I'm not a codecel
学习雷锋好榜样忠于革命忠于党爱憎分明不忘本立场坚定斗志强立场坚定斗志强学习雷锋好榜样毛主席的教导记心上全心全意为人民共产主义品德多高尚共产主义品德多高尚
Jump in the discussion.
No email address required.
More options
Context
More options
Context
More options
Context
All I ever wanted was to love women, but their behavior has only earned my hatred. I want to have s*x with them, and make them feel good, but they would be disgusted at the prospect. They have no sexual attraction towards me. It is such an injustice, and I vehemently questioned why things had to be this way. Why do women behave like vicious, stupid, cruel animals who take delight in my suffering and starvation? Why do they have a perverted sexual attraction for the most brutish of men instead of gentlemen of intelligence?
Snapshots:
https://hmse.cash.:
Jump in the discussion.
No email address required.
Jump in the discussion.
No email address required.
More options
Context
More options
Context
Jump in the discussion.
No email address required.
idk if you're being serious or not, but just in case, you're not giving me your username password, you're logging into rdrama which is giving my website a token for your account (like how u can use google to login to other sites).
Jump in the discussion.
No email address required.
I did not click because I'm not r-slurred
Jump in the discussion.
No email address required.
!slots100
Jump in the discussion.
No email address required.
More options
Context
More options
Context
More options
Context
More options
Context
enjoy my internet protocol address. it comes with a free city location, narrowing down many users to ~ 50k people total!
Jump in the discussion.
No email address required.
it's ok i've already got it if you used rdrama.gay
Jump in the discussion.
No email address required.
i'm behind -2 proxies. i'm actually at the cloudflare point-of-presence rn.
Jump in the discussion.
No email address required.
Jump in the discussion.
No email address required.
More options
Context
More options
Context
how many visit rdrama.gay besides you and me?
Jump in the discussion.
No email address required.
pizzashill was right about Russian shills omg
There are Malaysians
Jump in the discussion.
No email address required.
no breakdown by individual ip addresses?
Jump in the discussion.
No email address required.
Jump in the discussion.
No email address required.
More options
Context
More options
Context
make some malaysian marseys for them as a welcome gift
Jump in the discussion.
No email address required.
There's already a Malaysian Marsey
jk Malaysia bagus Malaysia boleh
Jump in the discussion.
No email address required.
they have much bigger houses than mine though
Jump in the discussion.
No email address required.
it's ok we can use california or something as cope because they have to live with that + rampant crime & wokery all around
Jump in the discussion.
No email address required.
More options
Context
More options
Context
More options
Context
More options
Context
More options
Context
More options
Context
More options
Context
When it's narrowed down that far i can still just drive through town and ask where the r-slur lives
Jump in the discussion.
No email address required.
More options
Context
Jump in the discussion.
No email address required.
More options
Context
More options
Context
Ok now invent options trading
Jump in the discussion.
No email address required.
More options
Context
DISREGARD SANCTIONS, INVEST IN RUSSIA
Jump in the discussion.
No email address required.
More options
Context
I dont need no fancy stocks, I got gold in my safe and thats always going to appreciate!
Anyways i dont know how any of this fancy walstreet malarkey works so ill just stick to the safest way to invest.
!blackjack500
Jump in the discussion.
No email address required.
More options
Context
Depositing cash now so im in before it inevitably breaks again when the ipo actually starts
Jump in the discussion.
No email address required.
oh god please don't jinx me
Jump in the discussion.
No email address required.
More options
Context
More options
Context
Hoping to corner the market on racism.
Jump in the discussion.
No email address required.
More options
Context
Can I short stocks?
Jump in the discussion.
No email address required.
More options
Context
I have work for the next 8 hours can I snag a share of $TRANS king?
学习雷锋好榜样忠于革命忠于党爱憎分明不忘本立场坚定斗志强立场坚定斗志强学习雷锋好榜样毛主席的教导记心上全心全意为人民共产主义品德多高尚共产主义品德多高尚
Jump in the discussion.
No email address required.
u can just place a buy order now in advance, it'll get filled when I do the ipo
Jump in the discussion.
No email address required.
How much will the shares be?
Jump in the discussion.
No email address required.
More options
Context
More options
Context
More options
Context
In with 75% of my dramacoin. :D
Jump in the discussion.
No email address required.
More options
Context
“Hey guys totally just use your login info here, don’t worry about it I’ve got norton”
Jump in the discussion.
No email address required.
It's SSO dumbass. It's just a token, you don't have to give your username and password.
Jump in the discussion.
No email address required.
More options
Context
More options
Context
So how tf do I do anything?
Jump in the discussion.
No email address required.
Top-right (just below the refresh circle button) there is an invisible button. click it and then click your nick. there will be "deposit dramacoin" option, where you put amount of how much DC you transfer from rdrama to the website. The mobile version is scuffed. it looks better on a wide screen. You found a bug and you can report it to @SocietyMoment. Maybe he will give you some DC for that.
Jump in the discussion.
No email address required.
Thanks bby
Jump in the discussion.
No email address required.
More options
Context
ah yeah lol, mobile is fricked. I opened it up on a phone once like halfway thru making it and gave up lol. That should prolly be the first thing I add.
Jump in the discussion.
No email address required.
More options
Context
More options
Context
More options
Context
websocket real time order book when?
Jump in the discussion.
No email address required.
More options
Context
Add indexes
Jump in the discussion.
No email address required.
More options
Context
I'VE BEEN WAITING 11 HOURS.
Jump in the discussion.
No email address required.
lmao, i was tryna give it 12 hrs. anyways, im doing it in an hour from now.
Jump in the discussion.
No email address required.
More options
Context
More options
Context
this should be on the block chain for decentralization(like I'm going to trust my hard earned DC to a centralized exchange) and should support my rdrama official NFTs.
Jump in the discussion.
No email address required.
More options
Context
!slots100
Jump in the discussion.
No email address required.
More options
Context