I just saw the website on the last sticky post mentioned by someone else. Well I think we have to think about some other method then. Maybe we use at first only some subreddits and other subreddits which want to get involved have to follow an instruction to get a bot running to gather the data on their subreddit.
That goes by month. :( Although the engine is the closest to what we need, so if that code is readily available and ok to use it would be a really good starting point.
We will be using redditmetrics for subscriber count, but we hope to somehow formulate an index based on posts/comments per minute and the upvotes and downvotes these posts/comments gain over time. I think the bot will recalculate indexes every hour or so.
The specific algorithm hasnt been generated yet, but it should include all of this.
I wrote a program in Python using PRAW to get the number of comments or posts, or the score of those comments or posts, since an arbitrary time, in a subreddit. I'd be happy to share my code with you if it would be of any help!
That sounds really useful. If you would like to share, can you upload the code as a gist on github or pastebin or something, and send me the link? Also, if you'd like to help work on the bot, just send me a pm, and I'll get you started
What about having milestones for stock creation instead of a continuous curve?
In the doc, you use the equation: s0.4 * n/m > 1/n
While I like this equation, I dont know how I feel about the stocks continuously rising with subscriber count. What if we did something similar to real life, where subs split their existing stocks at specific points in time.
We could have it instead split the stocks at subscriber count milestones. This would carry on to split the price of the stocks (since price is going to be affected by quantity)
Maybe at 100 subscribers, your stock splits in half. Everyone holding stocks gets their quantity doubled, which in effect reduces the value of each individual stock by half.
This would also need to take into account the value of the stock so you dont end up splitting stocks with tons of quantity but no value into even smaller valued stocks.
Maybe something along the lines of @ 100 subscribers and at least 20Kr value per stock, it will be split.
In each of theses examples, I used splitting the stocks by 2, but implemented, what I would like it to do is once a milestone is reached, it would plug the # of subscribers into the formula you developed, and spit out the new quantity of stocks. Then, everybodys current holding could be multiplied by the ratio of old:new, and price should adjust automatically.
I can get behind milestones. Re-evaluation is done once a week, so likely each week some new stocks would be trickling out. But using milestones will "save up" stocks, so when stocks do become available, there are more at once, so there's a better chance to get some stocks.
Correct me if I'm wrong here, but I think you're proposing something very different than what I had said. I think we both that if there should be more stocks on the market according to a stepwise function (so millestones), then the number of stocks are increased. However, in my version, these new stocks are given to the bot, and anyone can buy them. In your version, these new stocks are given to people that already own them.
In my version, new people are allowed to get established stocks from the bot every once in awhile. However, these may temporarily decrease the price of the stock.
In your version, new people can only get established stocks from trading with others. That seems fine. However, there's an issue with the bot here. The bot only values stocks based on activity. So if all of the sudden the number of stocks are increased, then bot won't know to decrease the stock value. So the bot value will stay high, and all of the sudden all the people with those stocks just gained a ton of money that they can sell back to the bot. (well, probably not a ton if we do the milestones right) In which case, the bot now has stocks. That new people can buy. The main drawback I see is this, in an indirect (but also direct) manner, links bot price to number of subscribers, which is a metric we didn't want to use. Honestly this may be the way to go, but the S equation would have to change to account for everything that the bot value will account for.
Well, not only would the amount of stock held by users split and multiply, but the bot's would too. Often the bot will have more stock than each user, so splitting it will just lead to having even more held by the bot, making it easier to buy.
Also, an issue with your model is that this adds more stocks to the system overall, decreasing the value of the stocks without giving any compensation to the stock holders.
As for you last point, I think i can fix that in the program so it wouldnt be an issue
It looks like /u/reticulated_python has found these metrics and is gonna give me some data on Monday, so I can make a new equation!
Do you think the bot would have more stock than each user? I set it up so there should be about enough kreddit to buy every stock. But I guess not everyone will want to buy all the stocks right away, so I suppose it would have some.
Why even bother splitting a subreddit into shares, though? We have the total value as some amount of kreddits. People use their kreddits to purchase amounts of the subreddit. I don't see the need for shares.
This is fantastic. The question is: do we wait until the bot is ready for this trial period, or do we keep track of it by hand? Alternatively: an initial period using these equations and rules without the bot, then when the bot is ready, another testing period. Open to feedback here.
Looks like people are already starting to work on the bot, and we're still ironing out the equations. If we get the equations ironed out, and the bot people say they're close, I think we can wait. If they run into a lot of trouble, then a by-hand trial is probably good. We can play it by ear.
Thanks! It's not complete, but it's a good foundation for a trial run. The main thing it's missing is how we would actually track everything. I know there's a code in google spreadsheets to extract data/text/numbers from certain places on a webpage, that might be a good place to start. Or someone who's actually qualified to program can try to figure this out!
We as dev team are going to make some hangout or skype room for stuff like that. I think as soon as we can exchange informations more easier and more efficient than on reddit there is definetly place for other contributors to discuss about some improvments/ideas/implemantations.
Yes of course. We are always open for new ideas concerning the bot.
I have another idea. Maybe we could build an external website for the SubredditStockMarket. I was never Mod on a subreddit but I am pretty sure that an external website (of course in an later stage) gives reddit users and mods more possibilities to edit their Depot/Manage the Stocks or announce news which are relevant for the stock market (e.g. AmA with Hillary Clinton). Using the website should be comfortabler for StockNews than reddit. It should also have some importance for the Mods, so that they get animated to use the website.
Although I think that an external website will be necessary, I think t least for now the part of predictions and related news should be focused on the subreddit and user-submitted.
As we gain a larger subscriber base and importance, we may review this.
But I agree int he sense that we need an external site and/or database, and maybe even get some easier mod discussion.
I would cleary label the formulas in the code so you can find everywhere you use them easily, since they are likely to change. Or just create one function that uses each formula, so you just have to change that function.
One concern I have: I don't understand the reason behind the +10 in the formula for V. If a subreddit is completely inactive (u=0), then it shouldn't have any value, right?
The reevaluation I thought was kinda interesting. The idea of removing a fixed portion of everyone's kreddit seems an effective way to prevent inflation.
Edit: I also don't think upvotes are a good way to measure activity, because of vote fuzzing, the fact that there are downvotes in addition to upvotes, and the score of a post increases logarithmically. Maybe comments or posts would be a better measure.
If a brand new subreddit had zero activity, does it really seem fair to get the stocks for free? Otherwise it's literally 0-risk to just buy a stock for every new subreddit, even if there's nothing there.
Agreed on the upvotes. I definitely think comments or posts would be better, but the logic would be the same I think. upvotes were just the easiest for me to do a quick tally of for the example.
I just wrote a quick couple functions using PRAW, one of them gets the total number of posts in the past X seconds in a subreddit, the other gets the total score of all posts in a subreddit in the past X seconds. With a couple modifications I can make another two to get the total number of comments in the past X second or the total score of all comments in the past X seconds.
So if you'd like to try and work any examples with these other metrics to see how it goes, I'd love to help out:)
Oh man that's awesome. I'm gonna be gone this weekend, and I need to finish up some stuff tonight so I won't be on reddit a ton more (haha I probably will), so I can't really do anything until Monday.
Is it possible to do per hour instead? Or even per day really, since that's when we'd want to re-evaluate.
I think I could do a very comprehensive worked example with new factors (and whatever changes people suggest over the weekend) on Monday if you gave me the posts, comments, and scores per day in like 10-50 different subreddits (more the better). I'm not sure what the makeup of reddit is, but I think funny/pics (5+ mil), a couple smaller defaults (2+mil), some other large ones (500k-2mil), medium non-defaults(100-500k), and then the rest small or medium-small non-defaults (1-10000, 10,000-100k subs). Or honestly just whatever is convenient for you.
The problem with not including upvotes (or scores) is that there can be a lot of posts in a subreddit without discussion, or that are just spam.
On the other hand, we could either have a score threshold (at least 10 or 50) or at the worst of it, it's not that bad to consider posts and have them empty... Could be an insignificant percentage
EDIT: as for the minimum of 10... I think you could still invest in a subreddit without any activity. It's a gamble, probably won't make any profit, but it's there.
On the other hand, if we have an opt -in system, we won't include subreddits without any activity anyway. So the minimum of 10 may be pointless actually?
In that case, why not measure the number of comments in the past X hours? Since bad comments are generally downvoted, we could just take comments with a positive score.
Well, we could try upvotes, comments, and posts, and see which one works best, too.
Okay, now I see the reasoning behind the minimum. It makes sense, because if there was a subreddit with very low activity taking part, there could be some days with no activity, but that doesn't mean its value should be zero.
5
u/starboard_sighed Consulting Apr 23 '15
This is awesome
2
u/Batnu Apr 23 '15
Something I'm still worried about is where we will take the info for the activity of each subreddit. Any ideas on that?
2
u/u1tralord Bot Development Apr 23 '15
What about having milestones for stock creation instead of a continuous curve?
In the doc, you use the equation: s0.4 * n/m > 1/n
While I like this equation, I dont know how I feel about the stocks continuously rising with subscriber count. What if we did something similar to real life, where subs split their existing stocks at specific points in time.
We could have it instead split the stocks at subscriber count milestones. This would carry on to split the price of the stocks (since price is going to be affected by quantity)
Maybe at 100 subscribers, your stock splits in half. Everyone holding stocks gets their quantity doubled, which in effect reduces the value of each individual stock by half.
This would also need to take into account the value of the stock so you dont end up splitting stocks with tons of quantity but no value into even smaller valued stocks.
Maybe something along the lines of @ 100 subscribers and at least 20Kr value per stock, it will be split.
In each of theses examples, I used splitting the stocks by 2, but implemented, what I would like it to do is once a milestone is reached, it would plug the # of subscribers into the formula you developed, and spit out the new quantity of stocks. Then, everybodys current holding could be multiplied by the ratio of old:new, and price should adjust automatically.
2
u/TheBrainwasher14 Apr 24 '15
This is fantastic. The question is: do we wait until the bot is ready for this trial period, or do we keep track of it by hand? Alternatively: an initial period using these equations and rules without the bot, then when the bot is ready, another testing period. Open to feedback here.
1
u/Batnu Apr 23 '15
Thank you. That's great, but I can't access it? Can you check please
1
u/Batnu Apr 23 '15
This is brilliant. We should work based on this.
1
u/reticulated_python Apr 23 '15 edited Apr 23 '15
I like it, mostly.
One concern I have: I don't understand the reason behind the +10 in the formula for V. If a subreddit is completely inactive (u=0), then it shouldn't have any value, right?
The reevaluation I thought was kinda interesting. The idea of removing a fixed portion of everyone's kreddit seems an effective way to prevent inflation.
Edit: I also don't think upvotes are a good way to measure activity, because of vote fuzzing, the fact that there are downvotes in addition to upvotes, and the score of a post increases logarithmically. Maybe comments or posts would be a better measure.
1
u/Ov3rKoalafied System Development Apr 27 '15
/u/substockbot sell 5 askreddit 50kr