Jump to content
Sign in to follow this  
RealOpty

Automatically mine most profitable coin

Auto Miner  

4 members have voted

  1. 1. Would you utilize auto mining software?

    • Yes
      4
    • 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?

Share this post


Link to post
Share on other sites

I would be interested...  

We would need some meta data up front to see how your projecting which pool to mine.

Share this post


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

Share this post


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

Share this post


Link to post
Share on other sites
Posted (edited)

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>

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  



  • HashVault Stats

    • Global Hashrate
      Loading..
    • Avg Hashrate
      Loading..
    • Total Miners
      Loading..
    • Miners Paid
      Loading..
    • Total Payments
      Loading..
    • Total Hashes
      Loading..
    • Blocks Found
      Loading..
  • Forum Statistics

    • Total Topics
      150
    • Total Posts
      374
×