News for hackers. Stuff that matters.
Re:Show HN: RandomCoin – A cryptocurrency that changes its p... by dragontamer on Friday January 28, 2022 @01:06PM (#30118240)
I 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.

Re:Show HN: RandomCoin – A cryptocurrency that changes its p... by nojs on Friday January 28, 2022 @03:07PM (#30119661)
> 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, …)

Re:Show HN: RandomCoin – A cryptocurrency that changes its p... by eugenekudashev on Friday January 28, 2022 @01:15PM (#30118343)
thank 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!
Re:Show HN: RandomCoin – A cryptocurrency that changes its p... by vmception on Friday January 28, 2022 @03:00PM (#30119571)
Add 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

Re:Show HN: RandomCoin – A cryptocurrency that changes its p... by tardigr8 on Saturday January 29, 2022 @03:48PM (#30130260)
Also hook it up to the Twitter api and multiply any price movements by 5 for 2 hours after an Elon tweet.
Re:Show HN: RandomCoin – A cryptocurrency that changes its p... by eugenekudashev on Friday January 28, 2022 @03:01PM (#30119582)
oh my god YES
Re:Show HN: RandomCoin – A cryptocurrency that changes its p... by madix1 on Friday January 28, 2022 @11:19PM (#30123752)
This 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.
Re:Show HN: RandomCoin – A cryptocurrency that changes its p... by vivegi on Friday January 28, 2022 @02:19PM (#30119092)
:)

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.

Re:Show HN: RandomCoin – A cryptocurrency that changes its p... by eugenekudashev on Friday January 28, 2022 @02:28PM (#30119199)
looooooooooooool i love this
Re:Show HN: RandomCoin – A cryptocurrency that changes its p... by unlog on Saturday January 29, 2022 @10:19PM (#30133574)
Wrote 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);
    })();
Re:Show HN: RandomCoin – A cryptocurrency that changes its p... by mdrzn on Monday January 31, 2022 @04:51AM (#30146303)
OOC 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.
Re:Show HN: RandomCoin – A cryptocurrency that changes its p... by unlog on Thursday February 03, 2022 @07:29AM (#30191598)
Yes, 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
Re:Show HN: RandomCoin – A cryptocurrency that changes its p... by 2Gkashmiri on Sunday January 30, 2022 @12:20AM (#30134292)
also, why not set the buy to a "below 2000" and sell at "above 7000". ?
Re:Show HN: RandomCoin – A cryptocurrency that changes its p... by 2Gkashmiri on Sunday January 30, 2022 @12:18AM (#30134282)
are you not "mining" at this point?
Re:Show HN: RandomCoin – A cryptocurrency that changes its p... by a9h74j on Friday January 28, 2022 @03:37PM (#30120012)
Related 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.)

Re:Show HN: RandomCoin – A cryptocurrency that changes its p... by vmception on Friday January 28, 2022 @07:49PM (#30122568)
Black-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.
Re:Show HN: RandomCoin – A cryptocurrency that changes its p... by deepnotderp on Friday January 28, 2022 @04:20PM (#30120503)
Can you elaborate more? That sounds quite interesting!
Re:Show HN: RandomCoin – A cryptocurrency that changes its p... by vba616 on Saturday January 29, 2022 @09:38PM (#30133313)
Did you predict LTCM would blow up?
Re:Show HN: RandomCoin – A cryptocurrency that changes its p... by nullpilot on Friday January 28, 2022 @04:38PM (#30120715)
The 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.
Re:Show HN: RandomCoin – A cryptocurrency that changes its p... by 2Gkashmiri on Saturday January 29, 2022 @03:49AM (#30124852)
allow 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

Re:Show HN: RandomCoin – A cryptocurrency that changes its p... by eugenekudashev on Saturday January 29, 2022 @12:48PM (#30128486)
omg yes. adding this to my list of ideas: https://eugenekudashev.com/randomcoin/ideas.txt
Re:Show HN: RandomCoin – A cryptocurrency that changes its p... by 2Gkashmiri on Saturday January 29, 2022 @01:07PM (#30128701)
this 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
Re:Show HN: RandomCoin – A cryptocurrency that changes its p... by d--b on Monday January 31, 2022 @05:01AM (#30146380)
You 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.
Re:Show HN: RandomCoin – A cryptocurrency that changes its p... by lifthrasiir on Friday January 28, 2022 @01:06PM (#30118238)
Too uniformly distributed (between $0 to $10000), you should have make it online :-)
Re:Show HN: RandomCoin – A cryptocurrency that changes its p... by vmception on Friday January 28, 2022 @12:58PM (#30118114)
lol, could tie this into rebasing code and add a `payable` method that also triggers the rebase for everyone else
Re:Show HN: RandomCoin – A cryptocurrency that changes its p... by teejmya on Friday January 28, 2022 @12:09PM (#30117429)
This is quite fun, where do I cash out my six figure winnings?
Re:Show HN: RandomCoin – A cryptocurrency that changes its p... by eugenekudashev on Friday January 28, 2022 @01:14PM (#30118332)
i know a secret place. DMs open
Re:Show HN: RandomCoin – A cryptocurrency that changes its p... by bozhark on Saturday January 29, 2022 @04:36AM (#30125059)
send prince's info now please
Re:Show HN: RandomCoin – A cryptocurrency that changes its p... by pizza on Saturday January 29, 2022 @01:17PM (#30128831)
Maybe one could use shannon’s demon strategy?
Re:Show HN: RandomCoin – A cryptocurrency that changes its p... by dominik97 on Sunday January 30, 2022 @07:36AM (#30136624)
lol why are prices marked as going down more than 100%?