6 ms·
Show HN: RandomCoin – A cryptocurrency that changes its price every second
- lifthrasiir 5y agoToo uniformly distributed (between $0 to $10000), you should have make it online :-)
- d--b 5y agoYou could make a real RandomCoin, but since you can't change the price, you could add random transactions to the chain. Jokes like this seems to make people billionaire these days.
- teejmya 5y agoThis is quite fun, where do I cash out my six figure winnings?
- eugenekudashev 5y agoi know a secret place. DMs open
- bozhark 5y agosend prince's info now please
- vmception 5y agolol, could tie this into rebasing code and add a `payable` method that also triggers the rebase for everyone else
- dragontamer 5y agoI realize that this is a tongue-in-cheek "game", and its good at that. But I would argue that the proper mechanism for the random-pattern is a random-walk of the %increase or %loss at each step, and not the uniformly-varying price that's rather easy to game. ---- Perhaps this "game" is more fun with a uniformly-varying price however.
- eugenekudashev 5y agothank you! agree completely. i have some ideas how to develop it further and add more randomness to it, but i really wanted to get something out as soon as possible, and if there's gonna be enough interest, i'm going to keep making it more complex, and, ultimately, more fun!
- nojs 5y ago> random-walk of the %increase or %loss If you randomly add or subtract x% at each step the price tends toward zero (100, 50, 75, 37.5, …)
- vivegi 5y ago:) If you add CALL and PUT options (American style ie., exercisable anytime before expiry), perhaps one can try buying both (ie., hedging) and profit from both the random upside as well as random downside without really HODLing the underlying RandomCoin.
- eugenekudashev 5y agolooooooooooooool i love this
- deleted 5y ago[deleted]
- vmception 5y agoAdd shorting on margin, borrowing against other users that currently hold Rand and being force liquidated if the other users sell Make this a disaster lol
- eugenekudashev 5y agooh my god YES
- tardigr8 5y agoAlso hook it up to the Twitter api and multiply any price movements by 5 for 2 hours after an Elon tweet.
- a9h74j 5y agoRelated story: I was almost kicked out of a fintech interview in the late 1980's, when I mentioned that there was room to question Black-Sholes. I was thinking of an article I had read about "variance noise" in a scientific publication. VIX is now a how many billion dollar industry? (Not that that defeats Black-Sholes.)
- deepnotderp 5y agoCan you elaborate more? That sounds quite interesting!
- deleted 5y ago[deleted]
- vmception 5y agoBlack-Scholes still is a dumb pricing model, I feel like an options pricing model should factor in the liquidity of the underlying asset and Black-Scholes and other pricing methods I have seen do not. Even though implied volatility is hand waiving away every variable not known, even that is not factoring in underlying liquidity.
- vba616 5y agoDid you predict LTCM would blow up?
- nullpilot 5y agoThe stock market in the X3 game works similarly I think, by moving the prices of the available assets within a given price range, making it very easy to abuse and grow your ingame wealth.
- madix1 5y agoThis is not possible to implement such idea. Every one buy it in minimum and then wait until a random high value accepted. The other users know this algorithm and the price is not based on computer price and a new market price will generate by the users.
- 2Gkashmiri 5y agoallow users to save their holdings to a "wallet". then ability to sell/transfer coins and we have ourselves a working crypto note. how about a total supply so limit number of coins in circulation and a coin burn mechanism to reduce supply slowly, maybe with each transaction, transfer
- eugenekudashev 5y agoomg yes. adding this to my list of ideas: https://eugenekudashev.com/randomcoin/ideas.txt https://eugenekudashev.com/randomcoin/ideas.txt
- 2Gkashmiri 5y agothis is interesting because "mining" these random coins by buying low and selling high is same as "calculating prime numbers" that go into bitcoin so we are doing something similar to that here. this looks like a fun experiment
- pizza 5y agoMaybe one could use shannon’s demon strategy?
- unlog 5y agoWrote a bot for it, very constructive experience. Something that I didn't expect is that is not that easy as "buy low" and "sell high". I had to cap the buying price for the bot to make money at all, else the "bought at" will get so high, that you won't have a chance to buy much. let bougthAt = 0; let fn = { click: () => {} }; let buy = document.querySelector("#buy"); let sell = document.querySelector("#sell"); (function work() { let founds = +document.querySelector("#funds-fiat").innerText; let coins = +document.querySelector("#funds-coin").innerText; let price = +document.querySelector("#price").innerText; if (founds > price && price < 5000) { fn = buy; bougthAt = price; console.log("bougthAt", bougthAt); } else if (price > bougthAt && coins > 0) { fn = sell; console.log("sellingAt", price); } fn.click(); requestAnimationFrame(work); })();
- mdrzn 5y agoOOC question regarding console scripts: unless it's specified by the code that the function will stop at a certain point, most functions like yours will loop forever. Is there a way to stop them, once pasted in the console, apart from refreshing the page? Is there no way to "stop" the loop of that specific function that was started? I googled around a bit but I think I'm out of my depth here.
- unlog 5y agoYes, but you have to code for it. I guess you mean you want to "kill the process" in some way, and that's not possible as far as I know. One easy way is to add a flag let working = true; (function work() { console.log("running"); if (working) requestAnimationFrame(work); else console.log("stopped"); })(); Programmatically, you have the function cancelAnimationFrame that you give as parameter what requestAnimationFrame returns. The same as setTimeout and clearTimeout
- 2Gkashmiri 5y agoare you not "mining" at this point?
- 5y ago
- dominik97 5y agolol why are prices marked as going down more than 100%?