Jump to content

Automatically mine most profitable coin


Auto Miner  

5 members have voted

  1. 1. Would you utilize auto mining software?

    • Yes
      5
    • No Thanks
      0


Recommended Posts

I was thinking of developing a service that automatically switches your miners to the most profitable coin on a daily (or other intervals) basis. The miners would connect to an xmr-node-proxy or xmrig-proxy. All settings would be controlled though a web interface.  As a hosted service would require payment for services (flat rate / or 5 minutes out of 100 minutes of mining). Would anyone be interested in such product?

Link to post
Share on other sites

Interesting idea but I did  it for free.
Took me 10 hours to program it in PHP.
You just need to read the API from the pools to get the difficulty, for example http://monero.hashvault.pro/api/pool/blocks, or the blockchains.
After that read  the API from the exchanges (tradeogre, stocks.exchange) or some general site (coinmarketcap, cryptocompare) to get the crypto price
Here's a snapshot from my system

 

2018-05-08 18_53_54-LA MINE.png

  • Thanks 2
Link to post
Share on other sites
On 5/8/2018 at 9:56 AM, MetallianFR68 said:

Interesting idea but I did  it for free.
Took me 10 hours to program it in PHP.
You just need to read the API from the pools to get the difficulty, for example http://monero.hashvault.pro/api/pool/blocks, or the blockchains.
After that read  the API from the exchanges (tradeogre, stocks.exchange) or some general site (coinmarketcap, cryptocompare) to get the crypto price
Here's a snapshot from my system

 

2018-05-08 18_53_54-LA MINE.png

Link to the source code?

Ive decided to not develop the product but im interested in your source code for personal reference

Link to post
Share on other sites

I didn't publish the source on GITHUB or something and I'm not a professionnal developper but here's the code that collects the required data and stores it in a MYSQL DATABASE

For example MONERO data extracted from the hashvault pool

<?php

$network_stats = file_get_contents('https://monero.hashvault.pro/api/network/stats');

$network_stats = json_decode($network_stats);

if ($network_stats->value)
        $mysql_query = "UPDATE mining.cryptos SET block_reward='" . $network_stats->value/1000000000000 . "', difficulty='" . $network_stats->difficulty . "' WHERE token = 'XMR'";

?>

and here's another code to get the current market value of  MONERO in EUROS using cryptocompare as reference

<?php

$xmr_value = file_get_contents('https://min-api.cryptocompare.com/data/histoday?fsym=XMR&tsym=EUR&limit=30&e=CCCAGG');
$xmr_value = json_decode($xmr_value);
$xmr_value = $xmr_value->Data[sizeof($xmr_value->Data)-1]->close;

?>

 

Edited by Wor3d
Formatting <code>
Link to post
Share on other sites
  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...