EDIT: I came across an error that I didn't account for If you buy a stock block increment that you already own one of the previous increments for, it doesn't actually acknowledge that you've bought it until the new stock block increment is active. I'll be working on this to correct it, but I'll have to wait out the week to see if it persists after the increment is active. Apparently the Torn API only counts increments that are currently active, and not those that you own but won't activate once the current blocks you own are paid out.
https://contextbedamned.com/torn.php
Huge thanks to xedx [2100735] for help with troubleshooting. logic, and suggestions.
[image: i.imgur.com]
So there are plenty of stock BB ROI references out there, and they are formatted in a much more pleasing way, but my main gripe with them is the hassle of having to cross reference to what I actually already own, flipping back and forth to figure out which one was the best one to get next, and made my own utility so that I can avoid that ordeal.
Basically, the main benefit of this is that it looks at the stock blocks you've already purchased, calculates the ROI for each that you haven't, and displays the relevant value. Another benefit is that each value is loaded as soon as you use it, so there's no delay to the update like with other tables that manually or periodically update. When you look at this, you're looking at the most up to date information, and you can simply buy the most profitable stock that you can afford by simply looking at the top of the list. It uses the current stock price as well as the current value of the item for stocks that give items. It also includes links that open directly to the "Buy" tab of the relevant stock.
You simply put your API key into the form, and select the utility you wish to use, and click submit. At the moment the default is this one, but as I add utilities to the site this may change, and you may have to use the dropdown menu. I'm considering changing the layout in the future, but for now this is the interface I'm using.
A few caveats:
1 - This only looks at the next increment of each stock, so if the 2 next most profitable blocks for you are the same stock, it won't indicate that. You'd have to buy the most profitable one first and then refresh the utility to see what the next most profitable is.
2 - I've tied the "value" of McSmoogle(MCS) to the market value of four 25 energy energy drinks(100 energy), this is a utility I made for myself, and that is how I value it, but if enough people disagree with that evaluation, I'm happy to change it. Currently, the valuation doesn't take faction perks into consideration, so this is most likely overvalued on the chart for most people. I may add logic to look at faction perks and adjust to value the amount of energy to an amount of cans that match the stock benefit.
3 - I've tried to use a similar valuation for Evil Ducks Candy Corp(EVD) as 40% of the value of an EDVD, however this shoots it right to the top of the chart. As I've been playing for some time, I personally don't value happy that highly, and considering the ROI if you use that valuation is around 100% for the first block and halving for each, I've just set it to 0. It's real value depends on whether you actually are below stat cap and how you're using it. I may add some logic to check if the player is still in happy jumping range if there is demand for it.
4 - I'm not sure how to value the other non-money/item dividends(and the clothing cache, which is a bit harder to script as the value of the dividends vary or don't have values), so they are set to $0, if anyone has any suggestions, I'd appreciate any input on this.
5 - The annual ROI is based on 52 payouts a year for 7 day increment stocks, and 12 payouts a year for 31 day stock benefits. 7 day increments actually pay out 52.14 times a year over , and 31 day increments pay out 11 77 times a year, so over the course of multiple years, 31 day increments may be slightly overvalued, and 7 day increments may be slightly overvalued.
6 - Because it needs to check your current stock portfolio, it requires a Limited Access API key.
Updates I'm considering:
1 - Use money on hand and funds in vault to determine what stocks I'm actually able to afford, and filter any that are too expensive.
2 - Use shares owned in excess of the current BB increment to determine the amount displayed for the next increment. Added
3 - A way to figure out if any stock blocks you currently own should be sold and replaced with a more profitable block.
As with all of my utilities, any and all feedback is welcome, and any error reporting is highly appreciated.
UPDATE: Added columns that look at excess shares owned and tell you how many more shares you need for the next block and how much those shares will cost.
Changed column name for the total shares of a BB block from "Shares Needed" to "BB Share Amount", and now "Shares Needed" is how many shares you need to buy to activate the next block, and "Money Needed" is how much it will cost to get the next block activated.
Update January 24th, 2022:
Added utility to see a list of all stocks, sorted by ROI where stock blocks you already own are highlighted, as seen below. To use this, just select "Get List of All Stocks Sorted by ROI" from the drop down menu. This currently goes up to 4 blocks, but more can be easily added. Once again, the value of McSmoogle is equal to the market price of 4x 25 energy can's, so this may be somewhat overvalued if you take faction perks into consideration, and as with the other utility, the dividend values of difficult to price BB's have been set to 0, such as HRG, EVL, BAG, and TCC, as I can't really figure a way to value them accurately. Any suggestions or insight into this is appreciated.
It goes up to the 4th increment, but can easily be changed to go higher if there is demand for it. Thanks again to xedx [2100735] for help with troubleshooting and suggestions!
Note: Stocks increments already owned are colored green, any increments you have partial shares towards are colored yellow.
[image: i.imgur.com]
Update January 25th:
Added highlighting to "What to buy next" function to highlight stock increments you are able to afford based on funds available in the wallet and in the property vault. The only issue that may come up with this is for those who own multiple properties with vaults and money spread across them, as I'm unaware of any way to look at the vaults of properties that you are not currently living in, and have no way to test this at the moment.
Also added keys to both tables for clarity on what the highlights are showing.
https://contextbedamned.com/torn.php
Huge thanks to xedx [2100735] for help with troubleshooting. logic, and suggestions.
[image: i.imgur.com]
So there are plenty of stock BB ROI references out there, and they are formatted in a much more pleasing way, but my main gripe with them is the hassle of having to cross reference to what I actually already own, flipping back and forth to figure out which one was the best one to get next, and made my own utility so that I can avoid that ordeal.
Basically, the main benefit of this is that it looks at the stock blocks you've already purchased, calculates the ROI for each that you haven't, and displays the relevant value. Another benefit is that each value is loaded as soon as you use it, so there's no delay to the update like with other tables that manually or periodically update. When you look at this, you're looking at the most up to date information, and you can simply buy the most profitable stock that you can afford by simply looking at the top of the list. It uses the current stock price as well as the current value of the item for stocks that give items. It also includes links that open directly to the "Buy" tab of the relevant stock.
You simply put your API key into the form, and select the utility you wish to use, and click submit. At the moment the default is this one, but as I add utilities to the site this may change, and you may have to use the dropdown menu. I'm considering changing the layout in the future, but for now this is the interface I'm using.
A few caveats:
1 - This only looks at the next increment of each stock, so if the 2 next most profitable blocks for you are the same stock, it won't indicate that. You'd have to buy the most profitable one first and then refresh the utility to see what the next most profitable is.
2 - I've tied the "value" of McSmoogle(MCS) to the market value of four 25 energy energy drinks(100 energy), this is a utility I made for myself, and that is how I value it, but if enough people disagree with that evaluation, I'm happy to change it. Currently, the valuation doesn't take faction perks into consideration, so this is most likely overvalued on the chart for most people. I may add logic to look at faction perks and adjust to value the amount of energy to an amount of cans that match the stock benefit.
3 - I've tried to use a similar valuation for Evil Ducks Candy Corp(EVD) as 40% of the value of an EDVD, however this shoots it right to the top of the chart. As I've been playing for some time, I personally don't value happy that highly, and considering the ROI if you use that valuation is around 100% for the first block and halving for each, I've just set it to 0. It's real value depends on whether you actually are below stat cap and how you're using it. I may add some logic to check if the player is still in happy jumping range if there is demand for it.
4 - I'm not sure how to value the other non-money/item dividends(and the clothing cache, which is a bit harder to script as the value of the dividends vary or don't have values), so they are set to $0, if anyone has any suggestions, I'd appreciate any input on this.
5 - The annual ROI is based on 52 payouts a year for 7 day increment stocks, and 12 payouts a year for 31 day stock benefits. 7 day increments actually pay out 52.14 times a year over , and 31 day increments pay out 11 77 times a year, so over the course of multiple years, 31 day increments may be slightly overvalued, and 7 day increments may be slightly overvalued.
6 - Because it needs to check your current stock portfolio, it requires a Limited Access API key.
Updates I'm considering:
1 - Use money on hand and funds in vault to determine what stocks I'm actually able to afford, and filter any that are too expensive.
2 - Use shares owned in excess of the current BB increment to determine the amount displayed for the next increment.
3 - A way to figure out if any stock blocks you currently own should be sold and replaced with a more profitable block.
As with all of my utilities, any and all feedback is welcome, and any error reporting is highly appreciated.
UPDATE: Added columns that look at excess shares owned and tell you how many more shares you need for the next block and how much those shares will cost.
Changed column name for the total shares of a BB block from "Shares Needed" to "BB Share Amount", and now "Shares Needed" is how many shares you need to buy to activate the next block, and "Money Needed" is how much it will cost to get the next block activated.
Update January 24th, 2022:
Added utility to see a list of all stocks, sorted by ROI where stock blocks you already own are highlighted, as seen below. To use this, just select "Get List of All Stocks Sorted by ROI" from the drop down menu. This currently goes up to 4 blocks, but more can be easily added. Once again, the value of McSmoogle is equal to the market price of 4x 25 energy can's, so this may be somewhat overvalued if you take faction perks into consideration, and as with the other utility, the dividend values of difficult to price BB's have been set to 0, such as HRG, EVL, BAG, and TCC, as I can't really figure a way to value them accurately. Any suggestions or insight into this is appreciated.
It goes up to the 4th increment, but can easily be changed to go higher if there is demand for it. Thanks again to xedx [2100735] for help with troubleshooting and suggestions!
Note: Stocks increments already owned are colored green, any increments you have partial shares towards are colored yellow.
[image: i.imgur.com]
Update January 25th:
Added highlighting to "What to buy next" function to highlight stock increments you are able to afford based on funds available in the wallet and in the property vault. The only issue that may come up with this is for those who own multiple properties with vaults and money spread across them, as I'm unaware of any way to look at the vaults of properties that you are not currently living in, and have no way to test this at the moment.
Also added keys to both tables for clarity on what the highlights are showing.
Mentions: xedx [2100735]