Bitcoin Forum
April 25, 2024, 12:20:22 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 [50] 51 52 53 54 55 56 57 58 59 60 61 »
  Print  
Author Topic: Whattomine - profitability website with basic json.  (Read 94751 times)
Mikanoshi
Sr. Member
****
Offline Offline

Activity: 798
Merit: 252


Insane In The Blockchain ⚠


View Profile WWW
July 18, 2018, 12:48:37 PM
Last edit: July 18, 2018, 02:35:01 PM by Mikanoshi
 #981

It's just how results are presented. At least there is a coin name Smiley Most services just return an array of objects (like coinwarz), because there are coins that have same names or same tickers, so you cannot use that as an unique field. You have to iterate through all the objects of an array (or in this case another object), no idea how it's done in PS. Example in PHP:
Code:
$wtms = json_decode($api_response);
if ($wtms !== NULL)
foreach ($wtms->coins as $coin_name => $wtm)
if ($coin_name == 'Cannabiscoin') {
$reward = 86400 * $wtm->block_reward24 * 1000000 / $wtm->difficulty24 / 4294967296;
break;
}

1714004422
Hero Member
*
Offline Offline

Posts: 1714004422

View Profile Personal Message (Offline)

Ignore
1714004422
Reply with quote  #2

1714004422
Report to moderator
1714004422
Hero Member
*
Offline Offline

Posts: 1714004422

View Profile Personal Message (Offline)

Ignore
1714004422
Reply with quote  #2

1714004422
Report to moderator
1714004422
Hero Member
*
Offline Offline

Posts: 1714004422

View Profile Personal Message (Offline)

Ignore
1714004422
Reply with quote  #2

1714004422
Report to moderator
The Bitcoin software, network, and concept is called "Bitcoin" with a capitalized "B". Bitcoin currency units are called "bitcoins" with a lowercase "b" -- this is often abbreviated BTC.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714004422
Hero Member
*
Offline Offline

Posts: 1714004422

View Profile Personal Message (Offline)

Ignore
1714004422
Reply with quote  #2

1714004422
Report to moderator
Raymond_B
Member
**
Offline Offline

Activity: 504
Merit: 71

Just Getting Started...


View Profile WWW
July 18, 2018, 03:52:04 PM
 #982

It's just how results are presented. At least there is a coin name Smiley Most services just return an array of objects (like coinwarz), because there are coins that have same names or same tickers, so you cannot use that as an unique field. You have to iterate through all the objects of an array (or in this case another object), no idea how it's done in PS. Example in PHP:
Code:
$wtms = json_decode($api_response);
if ($wtms !== NULL)
foreach ($wtms->coins as $coin_name => $wtm)
if ($coin_name == 'Cannabiscoin') {
$reward = 86400 * $wtm->block_reward24 * 1000000 / $wtm->difficulty24 / 4294967296;
break;
}

Thanks for the idea, yeah for now I am going to narrow my scope in filter like you said. Maybe in future updates the JSON will be changed up a bit, but no big deal. Still an awesome resource.

Raymond_B
Member
**
Offline Offline

Activity: 504
Merit: 71

Just Getting Started...


View Profile WWW
July 18, 2018, 11:12:22 PM
 #983

Well it took a while, but I now have what I wanted working. Hourly (so it goes easy on the WTM website) updates to my phone for SHA-256 profitability. I stood up a small MS SQL VM at home, use it pull down JSON with PowerShell and then use SQL to manipulate it and send me the update. Not pretty, but it gets the job done as all I wanted to know is what comes up as more profitable than BTC Smiley I can add more, but I think it's all I need for now.

https://imgur.com/a/dvoy2FT

fredeq (OP)
Legendary
*
Offline Offline

Activity: 1537
Merit: 1005


View Profile WWW
July 24, 2018, 01:09:50 PM
 #984

Hello, super noob SQL import question. I'd like to import the JSON output in to SQL, but I am struggling with the structure. I can select "coins", but none of the other headers seems available. Anyone done this that might have tips or pointers?  

Edit to be a bit more clear.

I am struggling with the structure of the JSON output. Coins is declared as the top level, but then it gets tough to find the fields and headers so I can properly import them in to columns. Coinwarz is easy to import, but your data and site is MUCH better Smiley Is this just the state of things or am I not referencing the JSON correctly?

As a reference https://www.coinwarz.com/content/images/profitability-api-output.png

Hey, this is based on ruby where you can have any json structure you want, cause its getting parsed as a simple nested hash with key => value pairs.
Unfortunately its not possible to change the json structure now, hope you are good with your workaround Smiley

@Mikanoshi
All json calls without params will use the same defaults as seen in the UI.
For coins and asic you can check those by pressing defaults and for single calcs - reset.

Rewards increase differently from hashrate increase which is best observed on small nethash coins.
"BTC", "LTC", "SC", "BCH" will use current diff for single calcs and the rest uses 24h average.

https://whattomine.com - Check what to mine Smiley
Mikanoshi
Sr. Member
****
Offline Offline

Activity: 798
Merit: 252


Insane In The Blockchain ⚠


View Profile WWW
July 24, 2018, 01:52:40 PM
 #985

Rewards increase differently from hashrate increase which is best observed on small nethash coins.
How do you calculate that? And why it should be different?

fredeq (OP)
Legendary
*
Offline Offline

Activity: 1537
Merit: 1005


View Profile WWW
July 24, 2018, 02:04:08 PM
 #986

Rewards increase differently from hashrate increase which is best observed on small nethash coins.
How do you calculate that? And why it should be different?

Imagine a low nethash coin of 100Mh/s, where 1Mh/s could be produced by just one card.
You have 100 cards and throw all onto that coin.

Nethash has just doubled to 200Mh/s, diff raised. You now have 50% of nethash, but before you did that it was a 100% of nethash.

https://whattomine.com - Check what to mine Smiley
Mikanoshi
Sr. Member
****
Offline Offline

Activity: 798
Merit: 252


Insane In The Blockchain ⚠


View Profile WWW
July 24, 2018, 02:10:33 PM
 #987

Imagine a low nethash coin of 100Mh/s, where 1Mh/s could be produced by just one card.
You have 100 cards and throw all onto that coin.

Nethash has just doubled to 200Mh/s, diff raised. You now have 50% of nethash, but before you did that it was a 100% of nethash.
No, all profit calcs use history to calculate rewards. Your hashrate is a part of the nethash which is immutable, because it already happened.
You cannot have hashrate more than the entire network had for the past 24h (if you calc for 24h), because then nethash would've been higher.

wh3n14mbo
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile WWW
July 25, 2018, 09:22:25 PM
Last edit: July 25, 2018, 09:51:25 PM by wh3n14mbo
 #988

I'm looking on profitability calculator.

When I put 1000000.0 Mh/s (1Th/s), it shows daily reward as 0.086373 BTC ($710.65).
But when I put x10 = 10000000.0 Mh/s (10Th/s), it shows daily reward as 0.741514 BTC ($6,100.95).

I expect x10 power gives x10 reward, but it isn't the case.

Could someone explain those calculations?

Thank you and appreciate your feedback!
Mikanoshi
Sr. Member
****
Offline Offline

Activity: 798
Merit: 252


Insane In The Blockchain ⚠


View Profile WWW
July 25, 2018, 09:35:09 PM
 #989

Could someone explain those calculations?
Can you read just a couple of posts above yours? Lips sealed
I also agree it should be linear, adding your hashrate to nethash is a try to predict future, it's not what profit calcs are about.

fredeq (OP)
Legendary
*
Offline Offline

Activity: 1537
Merit: 1005


View Profile WWW
July 25, 2018, 09:39:57 PM
 #990

I'm looking on DGB-Qubit (DGB) profitability calculator.

When I put 1000000.0 Mh/s (1Th/s), it shows daily reward as 0.086373 BTC ($710.65).
But when I put x10 = 10000000.0 Mh/s (10Th/s), it shows daily reward as 0.741514 BTC ($6,100.95).

I expect x10 power gives x10 reward, but it isn't the case.

Could someone explain those calculations?

Thank you and appreciate your feedback!

Same question as mikanoshi raised.
WTM treats the calculation as new hashrate added to the network.

@Mikanoshi
Vast majority of people is using it as a way to predict the future. (attempt at least)
Without this default, every calculation for a coin you are not already mining would be bogus.

https://whattomine.com - Check what to mine Smiley
wh3n14mbo
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile WWW
July 25, 2018, 09:50:07 PM
 #991

Mikanoshi, fredeq, thanks!

Didn't read above, because just found this thread and it's huge.

Have a nice day!
Mikanoshi
Sr. Member
****
Offline Offline

Activity: 798
Merit: 252


Insane In The Blockchain ⚠


View Profile WWW
July 25, 2018, 11:14:16 PM
Last edit: July 25, 2018, 11:31:46 PM by Mikanoshi
 #992

Vast majority of people is using it as a way to predict the future. (attempt at least)
Without this default, every calculation for a coin you are not already mining would be bogus.
Those people are stupid and doing things wrong Grin
Profit calc is for checking your rewards, not predicting future, because it's impossible.
Let's say I was mining with 50% of nethash for the last 24 hours and then went to WTM to check my rewards, WTM shows 1.5 times lower values. Encouraging, but totally incorrect.
There should be at least an option to disable that.
How do you even calculate average nethash? Based on average diff you are calculating using questionable mathematically-unverified time-weighted method? Roll Eyes
Nethash should be based on simple average diff (or sum of avg hashrates of ALL pools and somehow solo miners).

wh3n14mbo
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile WWW
July 25, 2018, 11:30:56 PM
 #993

Those people are stupid and doing things wrong Grin
Profit calc is for checking your rewards, not predicting future, because it's impossible.
Let's say I was mining with 50% of nethash for the last 24 hours and then went to WTM to check my rewards, WTM shows 1.5 times lower values. Encouraging, but totally incorrect.

From the other side, I would like to mine with my spare rigs which power amounts to +50% of nethash and WTM calculations are right for me Wink
whittle
Newbie
*
Offline Offline

Activity: 49
Merit: 0


View Profile
August 02, 2018, 08:24:48 PM
 #994


@whittle
Not sure if you are saying or asking, but yes the links in the api docs are not working. Still not working.
http://api.arabianchain.org/v1/dbix/main for example

https://api.arabianchain.org/v1/dbix/main/network - this works
akroma_io
Jr. Member
*
Offline Offline

Activity: 31
Merit: 2


View Profile
August 10, 2018, 10:23:52 PM
 #995

I believe this is the place to request a coin to be added. Please let me know if I am wrong or there is other information required:


Thanks,
Akroma Team.
fredeq (OP)
Legendary
*
Offline Offline

Activity: 1537
Merit: 1005


View Profile WWW
August 15, 2018, 06:50:24 PM
 #996

I believe this is the place to request a coin to be added. Please let me know if I am wrong or there is other information required:


Thanks,
Akroma Team.

Actually the contact form is the right place for it, but I have made it for you and placed it into research queue.

https://whattomine.com - Check what to mine Smiley
whittle
Newbie
*
Offline Offline

Activity: 49
Merit: 0


View Profile
August 27, 2018, 06:13:11 PM
 #997

@fredeq

I do not know what else to say. dbix is always in the top 3 of the best coins to mining and most days is the most profitable. just wanted all of Ethash miners to know this possibility of gaining more and of course increasing the community of miners in dbix.

APIs are working.
Is not this information you need? https://api.arabianchain.org/v1/dbix/main/network

Net Avg HashRate is 470.858 GH and dbix has not yet done marketing and is not known by most miners.

https://explorer.dbix.info/home

if you need more information, say that the dbix community or devs provide.
fredeq (OP)
Legendary
*
Offline Offline

Activity: 1537
Merit: 1005


View Profile WWW
August 27, 2018, 06:22:31 PM
 #998

@fredeq

I do not know what else to say. dbix is always in the top 3 of the best coins to mining and most days is the most profitable. just wanted all of Ethash miners to know this possibility of gaining more and of course increasing the community of miners in dbix.

APIs are working.
Is not this information you need? https://api.arabianchain.org/v1/dbix/main/network

Net Avg HashRate is 470.858 GH and dbix has not yet done marketing and is not known by most miners.

https://explorer.dbix.info/home

if you need more information, say that the dbix community or devs provide.


Thanks for the direct link, but the difficulty is missing from the response.
Maybe explorer has some api to provide it?

https://whattomine.com - Check what to mine Smiley
Mikanoshi
Sr. Member
****
Offline Offline

Activity: 798
Merit: 252


Insane In The Blockchain ⚠


View Profile WWW
August 28, 2018, 12:39:03 AM
 #999

GRLC lagging? Explorer problem?
https://www.reddit.com/r/garlicoin/comments/9af79q/garlicoin_explorer_api/

fredeq (OP)
Legendary
*
Offline Offline

Activity: 1537
Merit: 1005


View Profile WWW
August 28, 2018, 07:09:12 AM
 #1000


Saved me some time, thanks Smiley

https://whattomine.com - Check what to mine Smiley
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 [50] 51 52 53 54 55 56 57 58 59 60 61 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!