AM good service but it will be more better
.
Today is more new coin which isn't in coinwars or whattomine. I add new coin manually, but there is only static diff which I need change manually too.
All coins have API with dynamic diff changes. It is possible get dynamic diff via this
https://explorer.alqo.org/api/difficultyPlease add this features to coin properties.
Options
1)Coin Profit
ADD NEW Coin SAMPLE ALQO
Name ALQO
Short name ALQO
Algorithm Quark
AND OK
2)Rules
ADD new Rules
Add new triggers Time
Tiggers every 0 hour 10 minute 0 seconds
AND OK
Actions
ADD new Actions C# Script
Paste this code and ok
OK OK OK
every 10 minutes updates the price and the difficulty
I can not use bees would be much simpler but I can not I asked for help but no one answered me.
If you have other coins the important thing they are in coinmarketcap.com will change the data
//--------------------Change----------------------
string Str_name = "ALQO";//Name Coin sample = "ALQO"
double Str_Reward = 150; //Reward Coin sample = 10
string Str1 = this.getdati("
https://explorer.alqo.org/api/difficulty");//link difficulty
string Str2 = this.getdati("
https://api.coinmarketcap.com/v1/ticker/alqo/");//link coinmarketcap.com
//--------------------------------------------------
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
//Request library
using System.Net;
using System.IO;
public class ActionScript
{
private ContextProvider Context = ScriptManager.Context;
public bool Execute(List list)
{
try
{
//--------------------------------------------------
string Str_name = "ALQO";//Name Coin
double Str_Reward = 150; //Reward Coin
string Str1 = this.getdati("https://explorer.alqo.org/api/difficulty");//link difficulty
string Str2 = "https://api.coinmarketcap.com/v1/ticker/alqo/";//link coinmarketcap.com
//--------------------------------------------------
//MessageBox.Show(Str1);
Str1 = Str1.Replace(".", ",");
double dif = Convert.ToDouble(Str1);
Uri uri = new Uri(@Str2);
WebRequest webRequest = WebRequest.Create(uri);
WebResponse response = webRequest.GetResponse();
StreamReader streamReader = new StreamReader(response.GetResponseStream());
String responseData = streamReader.ReadToEnd();
string myString = responseData;
string[] subStrings = myString.Split(',');
string v = "";
foreach (string str in subStrings)
{
if (str.Contains("price_btc") == true)
{
v = str.Replace(@"""", "");
v = v.Replace("price_btc", "");
v = v.Replace(" ", "");
v = v.Replace(":", "");
v = v.Replace(".", ",");
}
}
double Price = Convert.ToDouble(v);
Context.CoinStat.SetProperties(Str_name, dif, Str_Reward, Price);
//----------------Exception------------------
}
catch(Exception exception)
{
}
//--------------End--Exception----------------
return true;
}
//--------------------------------------------
protected string getdati(string url)
{
try
{
string rt;
WebRequest request = WebRequest.Create(url);
WebResponse response = request.GetResponse();
Stream dataStream = response.GetResponseStream();
StreamReader reader = new StreamReader(dataStream);
rt = reader.ReadToEnd();
Console.WriteLine(rt);
reader.Close();
response.Close();
return rt;
}
catch(Exception ex)
{
return "Error: " + ex.Message;
}
}
}//end