Hey @ek, Thanks for sharing!
I'm the co-founder of Predyx and I'm here to answer any questions SN folks might have.
117 sats \ 3 replies \ @ken 27 Sep
Hi! Not sure where to report a bug:
I had 500 sats in my cash balance, and when I tried to buy a position, it debited the sats from my cash but didn't add the position to my portfolio.
Otherwise, great concept!
reply
Thanks for reporting the bug - I've noted it down, it seems payment from internal wallet is failing for some users. Our developers just went to sleep after a long day. We will fix it as soon as they wake up. Meanwhile if you want to continue playing, please use external wallets to pay for the bets. Please let me know which market was this for, and we will either refund you or issue shares of that market.
reply
23 sats \ 1 reply \ @ken 27 Sep
Awesome, thanks for looking into it! I was trying to buy 450 sats on the yes side of "Bitcoin above $60,000 on October 25?"
Shares are fine, since we both know that bitcoin is going to be above $60,000 on October 25th :D
reply
Great, we will promptly issue you 450 shares of "Bitcoin above $60,000 on October 25?" as soon as any of the devs wake up.
Yes its an easy market we created so that people can have fun in the early days :)
reply
Hey why do you call them predict instead of bet? It’s essentially betting on these outcomes? Is it to distance yourself from the betting world or ? Or regulations associated with gambling?
reply
Yes, actually predictions are not betting. And betting has wrong association. In reality you're just trading. We also plan to change "Bet YES/NO" to "Trade YES/NO".
The key difference between betting and predicting is that in Betting you need to wait for the event to complete, whereas in Predictions you can sell your shares early, thus minimizing your loss or maximizing your profits. And that's a very big difference, in reality you're only trading your shares, with the catch that your shares value could go to zero.
Hope this helps!
reply
It does thanks. Does each time sell your share you need someone willing to buy that share? And does this make a tax event like shares buy and sell would?
It’s interesting hope it goes well
reply
We use LMSR for pricing and cost calculation, thus there is no need to wait for someone to buy. The LMSR model offers a spot price. Predyx is still considered a play money market due to the micro bets nature, not sure if that will be a taxable event, but our legal team is actively looking into any kinda regulations that we need to follow.
Our twitter post on LMSR:
reply
100 sats \ 3 replies \ @ek OP 16h
Thanks for the credit! I assume @itsTomekK mentioned it to you?
Do you have plans to add an order book? My first MVP had one but now I think an automated market maker is more important at the beginning. But with an order book anyone can add liquidity so ideally one would have both just like exchanges with their market vs limit orders.
Do you have plans to add ecash? I’ve been thinking about using ecash to avoid the problem of the price becoming stale between invoice generation and invoice payment. You could use HODL invoices but I suspect the UX would suck.
reply
Yes @itsTomekK mentioned about you and delphi.market in early January I guess.
Yes, we'll be adding order book in releases 2. Actually we did plan to launch the beta with order book, but after some internal testing, we realized that it was not ready for the release yet (our order book is slightly different and still based on lmsr pricing, it just gives you the ability to limit buy/sell at certain price point). Yes I agree in the early stage with thinly traded markets AMM is a better choice I guess. I'm pretty sure manifold uses LMSR, we compared our dynamic pricing with manifold and the results were same. With due respect to Kalshi, I've also heard that their orderbook/liquidity is not up-to the mark at least for some traders.
Enough said about our order book, I'm very curious to learn about how you built your orderbook. Would love to see the code snippet, I promise I won't steal :)
I don't have much idea about ecash. Perhaps you can teach me more about it and I would love to explore. And yes, we've thought about the same (stale price) problem too. In such events our approach has been to create a limit order for the price that was quoted. Don't try it out but it does happens now, Its shows as "Active Orders" which never gets fulfilled. And if you can cancel the order, the sats go back to your internal wallet, however there is still a major bug and doesn't work at all :)
reply
100 sats \ 1 reply \ @ek OP 3h
I'm pretty sure manifold uses LMSR, we compared our dynamic pricing with manifold and the results were same.
Oh, interesting!
I'm very curious to learn about how you built your orderbook. Would love to see the code snippet, I promise I won't steal :)
No worries, happy to share! The matchmaking is in this commit. I linked to the query that I think you'll be the most interested in.
The main problem with that code was that orders required a 1:1 match. So it wasn't possible to match orders partially. If you wanted to sell X shares, another user had to buy all of them at once, it couldn't be multiple users with smaller orders. I wanted to add that later.
Don't try it out but it does happens now, Its shows as "Active Orders" which never gets fulfilled.
Oh, so that's what these active orders are about. I must admit, I did try to see if and how you handled this problem. You have to trust me that I would have reported it if I saw some way for infinite arbitrage 👀
reply
Just checked your SQL query, very complex 🤓 and you wrote everything in GO, that's really dope. I will explore your code in more details. Thank you sharing! Very helpful. We will definitely need independent order match at some point of time if we grow big. So we better start thinking about it now.
Yes please do report any infinite arbitrage, I would very much expect that from you :) BTW if you or anyone lost sats due to "Active Orders" issue, please me know. Happy to refund it.
100 sats \ 1 reply \ @ek OP 27 Sep
How long have you been working on this and with how many devs?
When and how did you get the initial idea for Predyx?
reply
We've been working on Predyx since December last year, just 2 devs including me. I do DevOps and a CEO. Just three of us.
reply
Site looks great but I was only able to bet 100 sats on any outcome. Anytime I tried to bet more I got an error message saying "could not find event outcome" or something to that effect.
reply
Yes duly noted, and we're working on the fix.
reply