there is normally no huge different in both in just 24hour.... the exchange rate on the other hand will go up and down like crazy and make a big different. Wouldnt be more accurate if the script save every 3 minutes the exchange rate and calculate the profit based on that rate? So there will be like a snapshot every 3 minutes of how much profit you will have if you mine NOW and sell NOW.
Let say if I want to choose a coin to mine for the next couple of hours to sell directly on exchange, it would be more handy to know witch coin has been up for the last 3 hours and based on that start mining and selling directly.
I dont think anyone sells continuously while mining. At best once a day?
Also I would not start mining a coin that was pumping for last 3 hours and expect to sell at the same price in another 3 hours.
It also depends on coin and your hashpower. On some coins if you have enoght hashpower and the minimum payout pool is low and fast you can get you coins out very fast. Thats what I do for some coins and mining it directly to bittrex. Setting autoexchange on at bittrex and you get your btc in an hour after mining. It not 24/7 but sometimes you get a good coin for a couple of hours and make a huge profit.
The key is;
Your hashpower should be good.
Coin blocks should be mining fast
pool minimum payout should be low and directly after mining each block.
Low confirmation time.
I am currently working on a monitoring site for ethos rig management and coin switching etc... which I had made it first for my own use but now I am planning to make it maybe public.
For the data I use your .json every 3 minutes and store them in my own database for analysing and using it in my panel. Its updated every 3minutes only once, and saved in my own database, not overloading your site.
Is this ok with you? of course I will mention your site so the user know its from your website data.