Nicehash uses new API for the new platform. Old platform with v1 API does not work since 4 august 2019
I suppose you must change all difficulty check for all algorithms you use.
Here is the documentation for API v2:
https://docs.nicehash.com/
wget
https://api2.nicehash.com/main/api/v2/m ... lgorithms/
root@ubuntu:~/nicehash/_api$ ./api2.sh mining_algorithms
{
"miningAlgorithms": [
{
"algorithm": "SCRYPT",
"title": "Scrypt",
"enabled": true,
"order": 0,
"displayMiningFactor": "MH",
"miningFactor": "1000000",
"displayMarketFactor": "TH",
"marketFactor": "1000000000000",
"minimalOrderAmount": "0.005",
"minSpeedLimit": "0.01",
"maxSpeedLimit": "10000",
"priceDownStep": "-0.001",
"minimalPoolDifficulty": "500000",
"port": 3333,
"color": "#AFAFAF",
"ordersEnabled": true
},
{
"algorithm": "SHA256",
"title": "SHA256",
"enabled": true,
"order": 1,
"displayMiningFactor": "TH",
"miningFactor": "1000000000000",
"displayMarketFactor": "PH",
"marketFactor": "1000000000000000",
"minimalOrderAmount": "0.005",
"minSpeedLimit": "0.05",
"maxSpeedLimit": "50000",
"priceDownStep": "-0.0001",
"minimalPoolDifficulty": "500000",
"port": 3334,
"color": "#FBC342",
"ordersEnabled": true
},
{
"algorithm": "X11",
"title": "X11",
"enabled": true,
"order": 3,
"displayMiningFactor": "MH",
"miningFactor": "1000000",
"displayMarketFactor": "TH",
"marketFactor": "1000000000000",
"minimalOrderAmount": "0.005",
"minSpeedLimit": "0.1",
"maxSpeedLimit": "100000",
"priceDownStep": "-0.0001",
"minimalPoolDifficulty": "31",
"port": 3336,
"color": "#2CDB2C",
"ordersEnabled": true
},
{
"algorithm": "X13",
"title": "X13",
"enabled": true,
"order": 4,
"displayMiningFactor": "MH",
"miningFactor": "1000000",
"displayMarketFactor": "TH",
"marketFactor": "1000000000000",
"minimalOrderAmount": "0.005",
"minSpeedLimit": "0.01",
"maxSpeedLimit": "10000",
"priceDownStep": "-0.0001",
"minimalPoolDifficulty": "0.5",
"port": 3337,
"color": "#E36700",
"ordersEnabled": true
},
{
"algorithm": "KECCAK",
"title": "Keccak",
"enabled": true,
"order": 5,
"displayMiningFactor": "MH",
"miningFactor": "1000000",
"displayMarketFactor": "TH",
"marketFactor": "1000000000000",
"minimalOrderAmount": "0.005",
"minSpeedLimit": "0.01",
"maxSpeedLimit": "10000",
"priceDownStep": "-0.0001",
"minimalPoolDifficulty": "2047",
"port": 3338,
"color": "#C5B061",
"ordersEnabled": true
},
{
"algorithm": "NIST5",
"title": "Nist5",
"enabled": true,
"order": 7,
"displayMiningFactor": "MH",
"miningFactor": "1000000",
"displayMarketFactor": "TH",
"marketFactor": "1000000000000",
"minimalOrderAmount": "0.005",
"minSpeedLimit": "0.01",
"maxSpeedLimit": "10000",
"priceDownStep": "-0.0001",
"minimalPoolDifficulty": "2",
"port": 3340,
"color": "#D44498",
"ordersEnabled": true
},
{
"algorithm": "NEOSCRYPT",
"title": "NeoScrypt",
"enabled": true,
"order": 8,
"displayMiningFactor": "MH",
"miningFactor": "1000000",
"displayMarketFactor": "GH",
"marketFactor": "1000000000",
"minimalOrderAmount": "0.005",
"minSpeedLimit": "0.01",
"maxSpeedLimit": "10000",
"priceDownStep": "-0.0001",
"minimalPoolDifficulty": "16383",
"port": 3341,
"color": "#4F7B8A",
"ordersEnabled": true
},
{
"algorithm": "QUBIT",
"title": "Qubit",
"enabled": true,
"order": 11,
"displayMiningFactor": "MH",
"miningFactor": "1000000",
"displayMarketFactor": "TH",
"marketFactor": "1000000000000",
"minimalOrderAmount": "0.005",
"minSpeedLimit": "0.1",
"maxSpeedLimit": "10000",
"priceDownStep": "-0.0001",
"minimalPoolDifficulty": "4",
"port": 3344,
"color": "#0066CC",
"ordersEnabled": true
},
{
"algorithm": "QUARK",
"title": "Quark",
"enabled": true,
"order": 12,
"displayMiningFactor": "MH",
"miningFactor": "1000000",
"displayMarketFactor": "TH",
"marketFactor": "1000000000000",
"minimalOrderAmount": "0.005",
"minSpeedLimit": "0.01",
"maxSpeedLimit": "10000",
"priceDownStep": "-0.0001",
"minimalPoolDifficulty": "0.1",
"port": 3345,
"color": "#ca435c",
"ordersEnabled": true
},
{
"algorithm": "LYRA2REV2",
"title": "Lyra2REv2",
"enabled": true,
"order": 14,
"displayMiningFactor": "MH",
"miningFactor": "1000000",
"displayMarketFactor": "TH",
"marketFactor": "1000000000000",
"minimalOrderAmount": "0.005",
"minSpeedLimit": "0.1",
"maxSpeedLimit": "10000",
"priceDownStep": "-0.0001",
"minimalPoolDifficulty": "256",
"port": 3347,
"color": "#3A9A56",
"ordersEnabled": true
},
{
"algorithm": "DAGGERHASHIMOTO",
"title": "DaggerHashimoto",
"enabled": true,
"order": 20,
"displayMiningFactor": "MH",
"miningFactor": "1000000",
"displayMarketFactor": "TH",
"marketFactor": "1000000000000",
"minimalOrderAmount": "0.005",
"minSpeedLimit": "0.01",
"maxSpeedLimit": "10000",
"priceDownStep": "-0.0001",
"minimalPoolDifficulty": "1",
"port": 3353,
"color": "#786FA4",
"ordersEnabled": true
},
{
"algorithm": "DECRED",
"title": "Decred",
"enabled": true,
"order": 21,
"displayMiningFactor": "GH",
"miningFactor": "1000000000",
"displayMarketFactor": "PH",
"marketFactor": "1000000000000000",
"minimalOrderAmount": "0.005",
"minSpeedLimit": "0.01",
"maxSpeedLimit": "10000",
"priceDownStep": "-0.0001",
"minimalPoolDifficulty": "1",
"port": 3354,
"color": "#2971FF",
"ordersEnabled": true
},
{
"algorithm": "CRYPTONIGHT",
"title": "CryptoNight",
"enabled": true,
"order": 22,
"displayMiningFactor": "kH",
"miningFactor": "1000",
"displayMarketFactor": "GH",
"marketFactor": "1000000000",
"minimalOrderAmount": "0.005",
"minSpeedLimit": "0.01",
"maxSpeedLimit": "10000",
"priceDownStep": "-0.0001",
"minimalPoolDifficulty": "6400000",
"port": 3355,
"color": "#FF7D27",
"ordersEnabled": true
},
{
"algorithm": "LBRY",
"title": "Lbry",
"enabled": true,
"order": 23,
"displayMiningFactor": "GH",
"miningFactor": "1000000000",
"displayMarketFactor": "TH",
"marketFactor": "1000000000000",
"minimalOrderAmount": "0.005",
"minSpeedLimit": "10",
"maxSpeedLimit": "10000000",
"priceDownStep": "-0.0001",
"minimalPoolDifficulty": "4095",
"port": 3356,
"color": "#2B9178",
"ordersEnabled": true
},
{
"algorithm": "EQUIHASH",
"title": "Equihash",
"enabled": true,
"order": 24,
"displayMiningFactor": "Sol",
"miningFactor": "1",
"displayMarketFactor": "MSol",
"marketFactor": "1000000",
"minimalOrderAmount": "0.005",
"minSpeedLimit": "0.1",
"maxSpeedLimit": "100000",
"priceDownStep": "-0.0001",
"minimalPoolDifficulty": "65534",
"port": 3357,
"color": "#3B9FE3",
"ordersEnabled": true
},
{
"algorithm": "BLAKE2S",
"title": "Blake2s",
"enabled": true,
"order": 28,
"displayMiningFactor": "GH",
"miningFactor": "1000000000",
"displayMarketFactor": "TH",
"marketFactor": "1000000000000",
"minimalOrderAmount": "0.005",
"minSpeedLimit": "1",
"maxSpeedLimit": "1000000",
"priceDownStep": "-0.0001",
"minimalPoolDifficulty": "128",
"port": 3361,
"color": "#007F0E",
"ordersEnabled": true
},
{
"algorithm": "SKUNK",
"title": "Skunk",
"enabled": true,
"order": 29,
"displayMiningFactor": "MH",
"miningFactor": "1000000",
"displayMarketFactor": "GH",
"marketFactor": "1000000000",
"minimalOrderAmount": "0.005",
"minSpeedLimit": "0.2",
"maxSpeedLimit": "200000",
"priceDownStep": "-0.0001",
"minimalPoolDifficulty": "0.04",
"port": 3362,
"color": "#007888",
"ordersEnabled": true
},
{
"algorithm": "CRYPTONIGHTV7",
"title": "CryptoNightV7",
"enabled": true,
"order": 30,
"displayMiningFactor": "kH",
"miningFactor": "1000",
"displayMarketFactor": "MH",
"marketFactor": "1000000",
"minimalOrderAmount": "0.005",
"minSpeedLimit": "0.01",
"maxSpeedLimit": "10000",
"priceDownStep": "-0.0001",
"minimalPoolDifficulty": "400000",
"port": 3363,
"color": "#ff7519",
"ordersEnabled": true
},
{
"algorithm": "CRYPTONIGHTHEAVY",
"title": "CryptoNightHeavy",
"enabled": true,
"order": 31,
"displayMiningFactor": "kH",
"miningFactor": "1000",
"displayMarketFactor": "MH",
"marketFactor": "1000000",
"minimalOrderAmount": "0.005",
"minSpeedLimit": "0.01",
"maxSpeedLimit": "10000",
"priceDownStep": "-0.0001",
"minimalPoolDifficulty": "400000",
"port": 3364,
"color": "#FF2000",
"ordersEnabled": true
},
{
"algorithm": "LYRA2Z",
"title": "Lyra2Z",
"enabled": true,
"order": 32,
"displayMiningFactor": "MH",
"miningFactor": "1000000",
"displayMarketFactor": "GH",
"marketFactor": "1000000000",
"minimalOrderAmount": "0.005",
"minSpeedLimit": "1",
"maxSpeedLimit": "50000",
"priceDownStep": "-0.0001",
"minimalPoolDifficulty": "16",
"port": 3365,
"color": "#3A9A99",
"ordersEnabled": true
},
{
"algorithm": "X16R",
"title": "X16R",
"enabled": true,
"order": 33,
"displayMiningFactor": "MH",
"miningFactor": "1000000",
"displayMarketFactor": "GH",
"marketFactor": "1000000000",
"minimalOrderAmount": "0.005",
"minSpeedLimit": "0.1",
"maxSpeedLimit": "100000",
"priceDownStep": "-0.0001",
"minimalPoolDifficulty": "8",
"port": 3366,
"color": "#384182",
"ordersEnabled": true
},
{
"algorithm": "CRYPTONIGHTV8",
"title": "CryptoNightV8",
"enabled": true,
"order": 34,
"displayMiningFactor": "kH",
"miningFactor": "1000",
"displayMarketFactor": "MH",
"marketFactor": "1000000",
"minimalOrderAmount": "0.005",
"minSpeedLimit": "0.01",
"maxSpeedLimit": "10000",
"priceDownStep": "-0.0001",
"minimalPoolDifficulty": "400000",
"port": 3367,
"color": "#34435B",
"ordersEnabled": true
},
{
"algorithm": "SHA256ASICBOOST",
"title": "SHA256AsicBoost",
"enabled": true,
"order": 35,
"displayMiningFactor": "TH",
"miningFactor": "1000000000000",
"displayMarketFactor": "PH",
"marketFactor": "1000000000000000",
"minimalOrderAmount": "0.005",
"minSpeedLimit": "0.1",
"maxSpeedLimit": "100000",
"priceDownStep": "-0.0001",
"minimalPoolDifficulty": "500000",
"port": 3368,
"color": "#fbc342",
"ordersEnabled": true
},
{
"algorithm": "ZHASH",
"title": "ZHash",
"enabled": true,
"order": 36,
"displayMiningFactor": "Sol",
"miningFactor": "1",
"displayMarketFactor": "MSol",
"marketFactor": "1000000",
"minimalOrderAmount": "0.005",
"minSpeedLimit": "0.01",
"maxSpeedLimit": "10000",
"priceDownStep": "-0.0001",
"minimalPoolDifficulty": "1024",
"port": 3369,
"color": "#690BBB",
"ordersEnabled": true
},
{
"algorithm": "BEAM",
"title": "Beam",
"enabled": true,
"order": 37,
"displayMiningFactor": "Sol",
"miningFactor": "1",
"displayMarketFactor": "kSol",
"marketFactor": "1000",
"minimalOrderAmount": "0.005",
"minSpeedLimit": "1",
"maxSpeedLimit": "1000000",
"priceDownStep": "-0.0001",
"minimalPoolDifficulty": "1024",
"port": 3370,
"color": "#00ACAC",
"ordersEnabled": true
},
{
"algorithm": "GRINCUCKAROO29",
"title": "GrinCuckaroo29",
"enabled": true,
"order": 38,
"displayMiningFactor": "G",
"miningFactor": "1",
"displayMarketFactor": "kG",
"marketFactor": "1000",
"minimalOrderAmount": "0.005",
"minSpeedLimit": "0.1",
"maxSpeedLimit": "100000",
"priceDownStep": "-0.0001",
"minimalPoolDifficulty": "64",
"port": 3371,
"color": "#FEF102",
"ordersEnabled": true
},
{
"algorithm": "GRINCUCKATOO31",
"title": "GrinCuckatoo31",
"enabled": true,
"order": 39,
"displayMiningFactor": "G",
"miningFactor": "1",
"displayMarketFactor": "kG",
"marketFactor": "1000",
"minimalOrderAmount": "0.005",
"minSpeedLimit": "0.02",
"maxSpeedLimit": "20000",
"priceDownStep": "-0.0001",
"minimalPoolDifficulty": "64",
"port": 3372,
"color": "#FDF89D",
"ordersEnabled": true
},
{
"algorithm": "LYRA2REV3",
"title": "Lyra2REv3",
"enabled": true,
"order": 40,
"displayMiningFactor": "MH",
"miningFactor": "1000000",
"displayMarketFactor": "GH",
"marketFactor": "1000000000",
"minimalOrderAmount": "0.005",
"minSpeedLimit": "0.5",
"maxSpeedLimit": "500000",
"priceDownStep": "-0.0001",
"minimalPoolDifficulty": "64",
"port": 3373,
"color": "#3A9A56",
"ordersEnabled": true
},
{
"algorithm": "CRYPTONIGHTR",
"title": "CryptoNightR",
"enabled": true,
"order": 42,
"displayMiningFactor": "kH",
"miningFactor": "1000",
"displayMarketFactor": "MH",
"marketFactor": "1000000",
"minimalOrderAmount": "0.005",
"minSpeedLimit": "0.01",
"maxSpeedLimit": "10000",
"priceDownStep": "-0.0001",
"minimalPoolDifficulty": "800000",
"port": 3375,
"color": "#FF6100",
"ordersEnabled": true
},
{
"algorithm": "CUCKOOCYCLE",
"title": "CuckooCycle",
"enabled": true,
"order": 43,
"displayMiningFactor": "G",
"miningFactor": "1",
"displayMarketFactor": "kG",
"marketFactor": "1000",
"minimalOrderAmount": "0.005",
"minSpeedLimit": "0.1",
"maxSpeedLimit": "100000",
"priceDownStep": "-0.0001",
"minimalPoolDifficulty": "128",
"port": 3376,
"color": "#F72A6D",
"ordersEnabled": true
},
{
"algorithm": "GRINCUCKAROOD29",
"title": "GrinCuckarood29",
"enabled": true,
"order": 44,
"displayMiningFactor": "G",
"miningFactor": "1",
"displayMarketFactor": "kG",
"marketFactor": "1000",
"minimalOrderAmount": "0.005",
"minSpeedLimit": "0.1",
"maxSpeedLimit": "100000",
"priceDownStep": "-0.0001",
"minimalPoolDifficulty": "64",
"port": 3377,
"color": "#FEF102",
"ordersEnabled": true
},
{
"algorithm": "BEAMV2",
"title": "BeamV2",
"enabled": true,
"order": 45,
"displayMiningFactor": "Sol",
"miningFactor": "1",
"displayMarketFactor": "kSol",
"marketFactor": "1000",
"minimalOrderAmount": "0.005",
"minSpeedLimit": "1",
"maxSpeedLimit": "1000000",
"priceDownStep": "-0.0001",
"minimalPoolDifficulty": "2048",
"port": 3378,
"color": "#4CE0E0",
"ordersEnabled": true
},
{
"algorithm": "X16RV2",
"title": "X16Rv2",
"enabled": true,
"order": 46,
"displayMiningFactor": "MH",
"miningFactor": "1000000",
"displayMarketFactor": "GH",
"marketFactor": "1000000000",
"minimalOrderAmount": "0.005",
"minSpeedLimit": "0.1",
"maxSpeedLimit": "100000",
"priceDownStep": "-0.0001",
"minimalPoolDifficulty": "8",
"port": 3379,
"color": "#384182",
"ordersEnabled": true
}
]
}