Unable to load image
Reported by:
  • Chapose : Open the exchange already reeeeeeee
  • SpaceMilk : REEEEEE I LOST ALL MY DRAMA COIN GOOMBLING I NEED TO TAKE OUT A LOAN

Drama Stock Exchange Take 2

https://hmse.cash

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

44
Jump in the discussion.

No email address required.

Reported by:

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!

:#marseywallst:


https://files.catbox.moe/y2zrro.png https://i.rdrama.net/images/172082001273549.webp

Jump in the discussion.

No email address required.

!slots100

Jump in the discussion.

No email address required.

rdrama has SSO

holly shit this place is more advanced than 99% of other sites

Jump in the discussion.

No email address required.

Reported by:

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.

rdrama doesn't even hash passwords

:marseyconfused:

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.

it looks like they are hashed.

routes/signup --> User(..., password=, ....)

classes/user:

	if "password" in kwargs:
		kwargs["passhash"] = self.hash_password(kwargs["password"])
		kwargs.pop("password")

def hash_password(self, password):
	return generate_password_hash(
		password, method='pbkdf2:sha512', salt_length=8)
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.

Move orderbook code to C++

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.

Become Crustacean

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.

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.

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.

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.

dramaphobeeeeeee :marseycrying: but heckin' nice job :marseythumbsup:

Jump in the discussion.

No email address required.

do you want more internal circlejerking :marseysleep: or incentives to stir shit up outside the site? :marseylovedrama:

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.

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


https://files.catbox.moe/ginbgb.jpg 学习雷锋好榜样忠于革命忠于党爱憎分明不忘本立场坚定斗志强立场坚定斗志强学习雷锋好榜样毛主席的教导记心上全心全意为人民共产主义品德多高尚共产主义品德多高尚

Jump in the discussion.

No email address required.

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.

click on my website

Give me your account and password

:#marseygigaretard:

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.

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 :marseymerchant:

![](/images/164785194224.webp)

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.

:#marseymeds:

Jump in the discussion.

No email address required.

how many :marseysingapore: :marlion: visit rdrama.gay besides you and me?

Jump in the discussion.

No email address required.

:#marseygrass::#!marseycrying:

/images/164786050.webp

pizzashill was right about Russian shills omg

There are Malaysians :marseyraging:

https://i.rdrama.net/images/1684137596637491.webp

Jump in the discussion.

No email address required.

no breakdown by individual ip addresses?

Jump in the discussion.

No email address required.

:#marseyglow2:

Jump in the discussion.

No email address required.

make some malaysian marseys for them as a welcome gift :marseywholesome:

Jump in the discussion.

No email address required.

There's already a Malaysian Marsey

:#marseypoor:

jk Malaysia bagus Malaysia boleh

Jump in the discussion.

No email address required.

:marseysmug2:

they have much bigger houses than mine though :marseysulk:

Jump in the discussion.

No email address required.

they have much bigger houses than mine though

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.

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.

:#marseymeds:

Jump in the discussion.

No email address required.

Ok now invent options trading

:marseygambling:

Jump in the discussion.

No email address required.

DISREGARD SANCTIONS, INVEST IN RUSSIA

:#marseysaluteussr:

Jump in the discussion.

No email address required.

I dont need no fancy stocks, I got gold in my safe and thats always going to appreciate! :marseyboomer:

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.

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.

Hoping to corner the market on racism.

Jump in the discussion.

No email address required.

Can I short stocks? :marseytroublemaker:

Jump in the discussion.

No email address required.

:marseybegging: I have work for the next 8 hours can I snag a share of $TRANS king? :marseypoor:


https://files.catbox.moe/ginbgb.jpg 学习雷锋好榜样忠于革命忠于党爱憎分明不忘本立场坚定斗志强立场坚定斗志强学习雷锋好榜样毛主席的教导记心上全心全意为人民共产主义品德多高尚共产主义品德多高尚

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.

In with 75% of my dramacoin. :D

Jump in the discussion.

No email address required.

“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.

So how tf do I do anything?

![](/images/164786413890.webp)

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.

:marseyclueless:

Jump in the discussion.

No email address required.

Thanks bby :marseyblowkiss:

Jump in the discussion.

No email address required.

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.

websocket real time order book when?

Jump in the discussion.

No email address required.

Add indexes

Jump in the discussion.

No email address required.

I'm gonna wait some hours

I'VE BEEN WAITING 11 HOURS. :marseyrage:

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.

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.


:#marseytwerking:

:marseycoin::marseycoin::marseycoin:
Jump in the discussion.

No email address required.

!slots100

Jump in the discussion.

No email address required.

Link copied to clipboard
Action successful!
Error, please refresh the page and try again.