@cTnko, you have all needed information in the nicehash api itself. There is no even a complicated math included you just need to fetch the current profitability for each algo and multiply it by the user hashrate. The only other thing is to maybe let user add watts and electricity price for each algo, but even without it its ok, the watts are close for each algos
Example:
here is the stats:
https://api.nicehash.com/api?method=stats.global.currentat this moment the eth profitability is: price":"0.0311 BTC/GH/Day
if the user have lets say 150mh that means 0.150GH * 0.0311 = 0.004665 btc per day ~ 11.23 usd/day
https://www.nicehash.com/?p=apiThanks, i will have a deeper look at the API.
Do you by any chance know, what does the "ltc" mean? Are the values compared to litecoin price?
The API documentation could certainly be more detailed.
profitability_above_ltc : "8.27" - profitability above what?
price : "0.1683" - price in what, for what?
profitability_ltc : "0.1554" - uhmm?
algo : 0 - yeah at least this one is clear as they provide a list of algorithm IDs
speed : "27.0678" - speed of what? total pool speed?
{"result":{"stats":[{"profitability_above_ltc":"34.30","price":"0.0482","profitability_ltc":"0.0359","algo":0,"speed":"929.51381496"},{"price":"0.4025","profitability_btc":"0.3548","profitability_above_btc":"13.42","algo":1,"speed":"53493928.62033118"},{"profitability_above_ltc":"-100.00","price":"0.0000","profitability_ltc":"0.0359","algo":2,"speed":"0.00000000"},{"profitability_above_ltc":"193.37","price":"0.0070","profitability_ltc":"0.0359","algo":3,"speed":"1187.48301215"},{"profitability_above_ltc":"-42.06","price":"0.0032","profitability_ltc":"0.0359","algo":4,"speed":"19.61202792"},{"profitability_above_ltc":"1489.36","price":"0.0011","profitability_ltc":"0.0359","algo":5,"speed":"77.67202709"},{"profitability_above_ltc":"-1.06","price":"0.0071","profitability_ltc":"0.0359","algo":6,"speed":"43.41975650"},{"profitability_above_ltc":"582.06","price":"0.0175","profitability_ltc":"0.0359","algo":7,"speed":"13.20372064"},{"profitability_above_ltc":"733.24","price":"0.6648","profitability_ltc":"0.0359","algo":8,"speed":"0.21202950"},{"profitability_above_ltc":"136.55","price":"0.0485","profitability_ltc":"0.0359","algo":9,"speed":"0.48081807"},{"profitability_above_ltc":"-100.00","price":"0.0000","profitability_ltc":"0.0359","algo":10,"speed":"0.00000000"},{"profitability_above_ltc":"169.71","price":"0.0061","profitability_ltc":"0.0359","algo":11,"speed":"109.88701219"},{"profitability_above_ltc":"169.85","price":"0.0046","profitability_ltc":"0.0359","algo":12,"speed":"17.64033086"},{"profitability_above_ltc":"-100.00","price":"0.0000","profitability_ltc":"0.0359","algo":13,"speed":"0.00000000"},{"profitability_above_ltc":"819.31","price":"0.0194","profitability_ltc":"0.0359","algo":14,"speed":"639.78940011"},{"profitability_above_ltc":"-100.00","price":"0.0000","profitability_ltc":"0.0359","algo":15,"speed":"0.00000000"},{"profitability_above_ltc":"662832.70","price":"0.0680","profitability_ltc":"0.0359","algo":16,"speed":"2.39433600"},{"profitability_above_ltc":"-100.00","price":"0.0000","profitability_ltc":"0.0359","algo":17,"speed":"0.00000000"},{"profitability_above_ltc":"-100.00","price":"0.0000","profitability_ltc":"0.0359","algo":18,"speed":"0.00000000"},{"profitability_above_ltc":"-100.00","price":"0.0003","profitability_ltc":"0.0359","algo":19,"speed":"0.00016870"},{"price":"0.0312","algo":20,"speed":"3377.46379927","profitability_eth":"0.0227","profitability_above_eth":"37.57"},{"profitability_above_ltc":"1437814.75","price":"0.2717","profitability_ltc":"0.0359","algo":21,"speed":"54613.64625313"},{"profitability_above_ltc":"-100.00","price":"0.6956","profitability_ltc":"0.0359","algo":22,"speed":"0.01264866"},{"profitability_above_ltc":"-100.00","price":"2.4919","profitability_ltc":"0.0359","algo":23,"speed":"1723.50315956"},{"profitability_above_ltc":"-100.00","price":"1.8703","profitability_ltc":"0.0359","algo":24,"speed":"0.02088755"},{"profitability_above_ltc":"-100.00","price":"0.3684","profitability_ltc":"0.0359","algo":25,"speed":"1446.59769438"},{"profitability_above_ltc":"-100.00","price":"0.0520","profitability_ltc":"0.0359","algo":26,"speed":"1.69908912"},{"profitability_above_ltc":"-100.00","price":"0.2536","profitability_ltc":"0.0359","algo":27,"speed":"1415.50665240"},{"profitability_above_ltc":"-100.00","price":"0.1681","profitability_ltc":"0.0359","algo":28,"speed":"238.40915660"}]},"method":"stats.global.current"}