profitability-service requires nodejs, npm and optionally pm2 to run.
git clone https://github.com/felixbrucker/profitability-service
cd profitability-service
npm install
npm install pm2 -g
pm2 start process.json
or
npm start
to startup on boot:
pm2 save
pm2 startup
run git pull
{
"algos": {
"x11": {"hashrate":150000000, "supportsSSL": false},
"x13": {"hashrate":150000000, "supportsSSL": false},
"x14": {"hashrate":150000000, "supportsSSL": false},
"x15": {"hashrate":150000000, "supportsSSL": false},
"quark": {"hashrate":150000000, "supportsSSL": false},
"qubit": {"hashrate":150000000, "supportsSSL": false}
},
"region": "eu",
"name": "Baikal Mini Miner",
"provider": ["nicehash"]
}
Hashrate is in Hash/sec, region can be one of these: ["eu","usa","hk","jp", "in", "br"] Provider is an array of valid providers: "nicehash", "miningpoolhub" or "minecryptonight"
{
"result":[
{
"algorithm":"x15",
"profitability":0.0001148145,
"stratum":"stratum+tcp://x15.eu.nicehash.com:3339",
"isSSL":false,
"provider":"nicehash"
},
{
"algorithm":"x13",
"profitability":0.000109995,
"stratum":"stratum+tcp://x13.eu.nicehash.com:3337",
"isSSL":false,
"provider":"nicehash"
},
{
"algorithm":"quark",
"profitability":0.0000602235,
"stratum":"stratum+tcp://quark.eu.nicehash.com:3345",
"isSSL":false,
"provider":"nicehash"
},
{
"algorithm":"qubit",
"profitability":0.000035963999999999997,
"stratum":"stratum+tcp://qubit.eu.nicehash.com:3344",
"isSSL":false,
"provider":"nicehash"
},
{
"algorithm":"qubit",
"profitability":0.0000244755,
"stratum":"stratum+tcp://hub.miningpoolhub.com:17014",
"isSSL":false,
"provider":"miningpoolhub"
},
{
"algorithm":"x11",
"profitability":0.0000057165,
"stratum":"stratum+tcp://x11.eu.nicehash.com:3336",
"isSSL":false,
"provider":"nicehash"
},
{
"algorithm":"x11",
"profitability":0.000003963,
"stratum":"stratum+tcp://hub.miningpoolhub.com:17007",
"isSSL":false,
"provider":"miningpoolhub"
}
]
}
in case something is wrong/missing in the query:
{
"result": false
}
- myriad-groestl
- blake2s
- cryptonight
- daggerhashimoto
- decred
- equihash
- groestl
- keccak
- lbry
- lyra2re
- lyra2rev2
- lyra2z
- neoscrypt
- nist5
- pascal
- quark
- qubit
- scrypt
- sha256
- sia
- skein
- skunk
- x11
- x11gost
- x13
- x15
- yescrypt
- Add Code Comments
- Write Tests
GNU GPLv3 (see LICENSE)