public void MPOSDataUpdate(string urlspeed, string urlbalance, string urlworker) { totalBalance = 0; totalPending = 0; foreach (PriceEntryBase entry in PriceEntries) { string urs = urlspeed; string urb = urlbalance; string urw = urlworker; if (!string.IsNullOrWhiteSpace(entry.ApiKey) && !string.IsNullOrWhiteSpace(entry.UserId) && !string.IsNullOrWhiteSpace(entry.Tag) && !string.IsNullOrWhiteSpace(entry.CoinName)) { urs = urs.Replace("TAG", entry.Tag); urs = urs.Replace("APIKEY", entry.ApiKey); urs = urs.Replace("COINNAME", entry.CoinName); urw = urw.Replace("TAG", entry.Tag); urw = urw.Replace("APIKEY", entry.ApiKey); urw = urw.Replace("USERID", entry.UserId); urw = urw.Replace("COINNAME", entry.CoinName); urb = urb.Replace("TAG", entry.Tag); urb = urb.Replace("APIKEY", entry.ApiKey); urb = urb.Replace("USERID", entry.UserId); urb = urb.Replace("COINNAME", entry.CoinName); if (_nospeed == false && !string.IsNullOrWhiteSpace(urs)) { WebUtil2.DownloadJson(urs, MPOSSpeed); } if (_nobalance == false && !string.IsNullOrWhiteSpace(urb)) { WebUtil5.DownloadJson(entry.CoinName, urb, MPOSBalances); } if (_nospeedworker == false && !string.IsNullOrWhiteSpace(urw)) { WebUtil5.DownloadJson(entry.CoinName, urw, MPOSSpeedWorker); } } } }
public override void CheckData() { if (_nobalance == false) { WebUtil2.DownloadJson("https://www.nicehash.com/api?method=stats.provider&addr=" + _account, ProcessBalances); } }
public void FeesUpdate(string url) { string ur = string.Empty; foreach (PriceEntryBase entry in PriceEntries) { if (!string.IsNullOrWhiteSpace(url)) { ur = url; if (!string.IsNullOrWhiteSpace(entry.Tag) && !string.IsNullOrWhiteSpace(entry.ApiKey)) { if (ur.Contains("TAG")) { ur = ur.Replace("TAG", entry.Tag); } if (ur.Contains("APIKEY")) { ur = ur.Replace("APIKEY", entry.ApiKey); } if (ur.Contains("COINNAME")) { ur = ur.Replace("COINNAME", entry.CoinName); } if (ur.Contains("USERID")) { ur = ur.Replace("USERID", entry.UserId); } WebUtil2.DownloadJson(ur.ToLower(), MPOSFee); } } } }
public override void CheckData() { foreach (CoinMinersPriceEntry entry in PriceEntries) { if (!string.IsNullOrWhiteSpace(entry.Wallet)) { WebUtil2.DownloadJson("http://pool.coin-miners.info/api/walletEx?address=" + entry.Wallet, Process); } } }
public override void CheckData() { foreach (YIIMPPriceEntry entry in PriceEntries) { if (!string.IsNullOrWhiteSpace(entry.Wallet)) { WebUtil2.DownloadJson("http://yiimp.ccminer.org/api/walletEx?address=" + entry.Wallet, Process); } } }
public override void CheckPrices() { if (PriceWTM == true) { WTMUpdate(); } else { WebUtil2.DownloadJson("https://miningpoolhub.com/index.php?page=api&action=getminingandprofitsstatistics", ProcessPrices); } }
public override void CheckData() { WebUtil2.DownloadJson("http://luckpool.org/api/stats", ProcessStat); foreach (LuckPoolPriceEntry entry in PriceEntries) { if (!string.IsNullOrWhiteSpace(entry.Wallet)) { WebUtil2.DownloadJson("http://luckpool.org/api/worker_stats?" + entry.Wallet, ProcessData); } } }
public override void CheckPrices() { if (PriceWTM == true) { WTMUpdate(); } else { WebUtil2.DownloadJson("http://pool.coin-miners.info/api/currencies", ProcessCurrencies); WebUtil2.DownloadJson("http://pool.coin-miners.info/api/status", ProcessPrices); } }
public override void CheckPrices() { if (PriceWTM == true) { WTMUpdate(); } else { WebUtil2.DownloadJson("http://yiimp.ccminer.org/api/currencies", ProcessCurrencies); WebUtil2.DownloadJson("http://yiimp.ccminer.org/api/status", ProcessPrices); } }
public override void CheckData() { string _yourMail = "*****@*****.**"; if (_param2 != null) { _yourMail = _param2; } foreach (DwarfpoolPriceEntry entry in PriceEntries) { if (!string.IsNullOrWhiteSpace(entry.Wallet) && !string.IsNullOrWhiteSpace(entry.Tag)) { WebUtil2.DownloadJson("http://dwarfpool.com/" + entry.Tag + "/api?wallet=" + entry.Wallet + "&email=" + _yourMail, ProcessData); } } }
private void ProcessBalances(object RawBalance) { //decimal _totalBalance = 0m; if (RawBalance != null) { JObject data = (JObject)RawBalance; JToken result = data["result"]; JToken stats = result["stats"]; foreach (JToken item in stats.Children()) { //_totalBalance += item["balance"].ExtractDecimal(); string algo = item["algo"].ToString(); NiceHashPriceEntry entry = GetEntry(algo); if (entry == null) { continue; } entry.BalanceBTC = item["balance"].ExtractDecimal(); switch (entry.AlgoName) { case "sha256": entry.AcceptSpeed = item["accepted_speed"].ExtractDecimal(); entry.RejectSpeed = item["rejected_speed"].ExtractDecimal(); break; default: entry.AcceptSpeed = item["accepted_speed"].ExtractDecimal() * 1000000; entry.RejectSpeed = item["rejected_speed"].ExtractDecimal() * 1000000; break; } if (_nospeed == false) { WebUtil2.DownloadJson("https://www.nicehash.com/api?method=stats.provider.workers&addr=" + _account + "&algo=" + entry.PriceId, ProcessSpeed); } } //ServiceBalance = _totalBalance; } }
public override void CheckData() { foreach (EtherminePriceEntry entry in PriceEntries) { if (!string.IsNullOrWhiteSpace(entry.Wallet)) { if (entry.CoinName.ToLower() == "ethereum") { WebUtil2.DownloadJson("https://ethermine.org/api/miner_new/" + entry.Wallet, ProcessData); } if (entry.CoinName.ToLower() == "ethereumclassic") { WebUtil2.DownloadJson("https://etc.ethermine.org/api/miner_new/" + entry.Wallet, ProcessData); } if (entry.CoinName.ToLower() == "zcash") { WebUtil2.DownloadJson("http://zcash.flypool.org/api/miner_new/" + entry.Wallet, ProcessData); } } } }
public override void CheckData() { string urs = string.Empty; string urb = string.Empty; string urw = "https://" + "COINNAME" + ".miningpoolhub.com/index.php?page=api&action=getuserworkers&api_key=" + "APIKEY" + "&id=" + "USERID"; if (_balancemode == 0) { urs = "https://" + "COINNAME" + ".miningpoolhub.com/index.php?page=api&action=getdashboarddata&api_key=" + "APIKEY"; urb = "https://" + "COINNAME" + ".miningpoolhub.com/index.php?page=api&action=getuserbalance&api_key=" + "APIKEY" + "&id=" + "USERID"; MPOSDataUpdate(urs, urb, urw); } else { MPOSDataUpdate(urs, urb, urw); foreach (MiningPoolHubPriceEntry entry in PriceEntries) { if (_nobalance == false) { WebUtil2.DownloadJson("http://" + entry.CoinName + ".miningpoolhub.com/index.php?page=api&action=getdashboarddata&api_key=" + _apikey + "&id=" + _userid, ProcessBalances); } } } }
public override void CheckPrices() { WebUtil2.DownloadJson(_url + "/api/status", ProcessPrices); }
public void WTMCheckSolo(string PriceId) { WebUtil2.DownloadJson(MiningEngine.WTMUrl.Replace(".json", "/" + PriceId + ".json"), WTMPricesSolo); }
public void WTMCheck() { WebUtil2.DownloadJson(MiningEngine.WTMUrl, WTMPrices); }
public override void CheckData() { WebUtil2.DownloadJson(_url + "/api/walletEx?address=" + _account, Process); }
public override void CheckPrices() { WebUtil2.DownloadJson("https://www.nicehash.com/api?method=stats.global.current", ProcessCurrentPrices); WebUtil2.DownloadJson("https://www.nicehash.com/api?method=stats.global.24h", ProcessDailyPrices); }