Skip to content

Instantly share code, notes, and snippets.

@Bilaboz
Bilaboz / profit_calculator.py
Last active September 18, 2021 16:33
Rollercoin profit calculator
import json
import urllib.request
current_hashrate = float(input("Your hashrate (TH/s): "))
network_powers = [float(input("BTC network power (EH/s): ")), float(input("DOGE network power (EH/s): ")), float(input("ETH network power (EH/s): "))]
rewards = [0.00009, 240, 0.0017]
names = ["BTC", "DOGE", "ETH"]
r = urllib.request.urlopen("https://api.coingecko.com/api/v3/simple/price?ids=bitcoin%2Cdogecoin%2Cethereum&vs_currencies=usd")