Miningpool API

Basic Information

Interface Address

● Method for obtaining the key

a. Provide the email registered on the Spider official website, contact the Spider staff to activate the third-party API permission, after successful activation, log in to the official website and you can see the "API Key Retrieval Entrance" under the personal center

● Online Environment

a. Official website online:https://api.spiderpool.com/

Description

● H、KH、MH、GH、TH、PH、EH,Hashrate units differ by 1000

Attention

● All interfaces are requested using private key signing and public key verification

● Unified request format

{
    "dataJson": "", 
    "accessKey": "", 
    "timestamp": 1628381288000,
    "sign": ""
}

For example, when accessing the /v2/addUser interface

{
    "dataJson": "{"userName":"test001","password":"123456"}",
    "accessKey": "D1504708600B44B499489C16CE7C32A5",
    "timestamp": 1628381288000,
    "sign": "N0n0iqKLUtssteqhbsOHGv2N7UaJh+YnPio90fciAM4hn2L82jAhafG/ynxdgFnBf2ZJ2R2C1d0uRvSNSHnEJKA8rvMx6ytQa2E4gpD8LG0kkdzYwgv9pyEFOGsS4+cUdV+nF/WJiPDRqfx8Cb0gPjBuCj+HboVx5++HOe2v+sA="
}

● Unified return format

{
    "code": "",
    "msg": "",
    "data": object,
}

code="SUCCESS" indicates a successful operation; any other responses indicate failure.

● Request Example

    long timestamp = System.currentTimeMillis();
    String spiderUrl = "https://api.spiderpool.com/v2/subaccount/createSubaccount";
    JSONObject jsonObject = new JSONObject();
    jsonObject.put("coin", "eth");
    jsonObject.put("subaccount", "chizg101");
    jsonObject.put("walletAddress", "0x9ed670910a8e5895428bb85e600d7d388a904a22");

    Map<String, Object> param = new HashMap<>();
    String dataJsonStr = jsonObject.toJSONString() + "|" + timestamp;
    String sign = RSACoder.sign(dataJsonStr.getBytes(StandardCharsets.UTF_8), privateKey);

    param.put("dataJson", jsonObject.toJSONString());
    param.put("accessKey", "5A842DAA0B8A4746B362FBF382A04CD9");
    param.put("timestamp", timestamp);
    param.put("sign", sign);

    String jsonBody = JSON.toJSONString(param);

    String reslut = HttpclientUtil.postRequest(spiderUrl, jsonBody,null,true);

API

Create Subaccount

Request AUTH

POST /v2/subaccount/createSubaccount

Parameters

Name
Type
Required
Default
Description

coin

String

true

-

Currency, e.g. btc,fb

subaccount

String

true

-

Subaccount (5-20 lowercase alphanumeric characters)

walletAddress

String

false

-

Wallet address (please fill in the address that complies with the chain environment)

  • Successful Response:

{
    "code": "SUCCESS"
}
  • Error Response:

{
    "code": "......", // INVALID_SUBACCOUNT / SUBACCOUNT_EXIST / IVAILD_WALLETADDRESS
    "msg": "......"
}

Modify Subaccount

Request AUTH

POST /v2/subaccount/modifyWalletAddress

Parameters

Name
Type
Required
Default
Description

coin

String

true

-

Currency, e.g.,btc,eth,fb

subaccount

String

true

-

Subaccount name

newWalletAddress

String

true

-

New wallet address(please fill in the address that complies with the rules according to the chain environment))

  • Correct Response:

{
    "code": "SUCCESS"
}
  • Error response:

{
    "code": "......", // INVALID_SUBACCOUNT / SUBACCOUNT_EXIST / IVAILD_WALLETADDRESS
    "msg": "......"
}

Observer Pattern

Request AUTH

POST /v2/subaccount/subAccountObserverLink

Parameters

Name
Type
Required
Default
Description

coin

String

true

-

Currency abbreviation, e.g. btc,fb

subaccount

String

true

-

Subaccount name

type

String

true

-

Type:newSign for adding、resetSign for resetting、deleteSign deleting

  • Correct Response:

{
	"code":"SUCCESS",
	"data":{
		"subaccount":"btctestchizg002",
		"sign":"v92480670d100d4c67f9e22d6ae612fd3e78aebb6e1b1fcdba994ba454ade6482",
		"coin":"btc"
	}
}
  • Error Response:

{
    "code": "......", // INVALID_SUBACCOUNT / SUBACCOUNT_EXIST / IVAILD_WALLETADDRESS
    "msg": "......"
}

Get Subaccount list

Request AUTH

POST /v2/sp/subaccount/list

Parameters

Name
Type
Required
Default
Description

coin

String

true

-

Currency abbreviation, e.g.,btc

  • Correct Response:

{
    "code": 200,
    "msg": "Success",
    "t": 1748485449635,
    "data": [
        {
            "subaccount": "test",
            "coin": "btc",
            "withdrawAddress": "3CBZ7ayUBz8cUiGfA3F5Fcgo2RQdKYPk94"
        },
        ...
    ],
    "success": true
}

Get Subaccount pagination List - With hashrate

Request AUTH

POST /v2/sp/subaccount/pageWithHashRate

Parameters

Name
Type
Required
Default
Description

coin

String

false

-

Currency abbreviation, e.g.,btc

subaccount

String

false

-

Subaccount name,Supports fuzzy query

showStatus

Integer

false

1

0: Hide subaccounts,1: Show

pageNumber

Integer

false

1

Page number

pageSize

Integer

false

10

page Size

  • Correct Response:

{
    "code": 200,
    "msg": "Success",
    "t": 1748485522530,
    "data": {
        "total": 4,
        "list": [
            {
                "subaccount": "test",
                "coin": "btc",
                "walletAddress": "3CBZ7ayUBz8cUiGfA3F5Fcgo2RQdKYPk94",
                "realtimeHashrate": "3747113236364438.3",    // Realtime Hashrate(H/s)
                "avgHashrate1440": "3354490437959777.1",     // Average Hashrate over 24 hours
                "activeWorkerNum": 882,     //The number of online workers
                "inactiveWorkerNum": 118    //The number of offline workers
            },
            ...
        ]
    },
    "success": true
}

Get Subaccount Profit Detail Information

Request AUTH

(The scheduled task starts at 4:30, it is recommended to fetch data after 5:30)

POST /v2/subaccount/getSubaccountProfitDetailInfo

Parameters

Name
Type
Required
Default
Description

coin

String

true

-

Currency abbreviation, e.g.,btc

subaccount

String

true

-

Subaccount name

startTimestamp

Integer

false

0

Query start timestamp (seconds)

endTimestamp

Integer

false

Current time Query end timestamp (seconds)

pageNumber

Integer

false

1

Page number

pageSize

Integer

false

10

Number of entries per page

bizType

String

false

alone_mining

Business type (used by FB coin). alone_mining: single mining; join_mining: joint mining

  • Correct Response:

{
    "code": "SUCCESS",
    "data": {
        "total": 35,
        "dayProfitList": [
            {
                "dayDate": 1569600000000,
                "avgHashrate": "90057979829",
                "dayProfit": 0.647981779,
            },
            ......
        ]
    }
}

Get Subaccount Payment Record

Request AUTH

POST /v2/subaccount/getSubaccountPaymentRecord

Parameters

Name
Type
Required
Default
Description

coin

String

true

-

Currency abbreviation, e.g., btc

subaccount

String

true

-

Subaccount name

startTimestamp

Integer

false

0

Query start timestamp (milliseconds)

endTimestamp

Integer

false

currentTime

Query end timestamp (milliseconds)

pageNumber

Integer

false

1

Page number

pageSize

Integer

false

10

Number of entries per page

  • Correct Response:

{
    "code": "SUCCESS",
        "data": {
        "list": [
            {
                "paymentDate": 1564531200000, // Payment time
                "paymentAddress": "mv8W2k7UMkqbHbfbvRXcEzaehPGvZCmkV5" // Payment address
                "paymentMoney": 0.0666348000, // Payment amount
                "txId": "097a39595c261f141de2174d8639fd9c18122236b14f9d08c91e82aea2a87e61", // Transaction Id
            }
        ],
            "total": 1 // Total number of records
    }
}

Get Subaccount Profit Information

Request AUTH

POST /v2/subaccount/getSubaccountProfitInfo

Parameters

Name
Type
Required
Default
Description

coin

String

true

-

Currency abbreviation, e.g.,btc

subaccount

String

true

-

Subaccount name

bizType

String

false

alone_mining

Business type (used by FB coin). alone_mining: single mining; join_mining: joint mining

  • Successful Response:

{
    "code": "SUCCESS",
    "data": {
            "yesterdayProfit": 0.61505330, // 24-hour profit
            "unpaidProfit": 0.57536600,    // Unpaid profit
            "totalProfit": 26.026078521,   // Total profit
            "dayEstimateProfit": 0.57536600 //profit for today. fb not support
    }
}

Get Subaccount Day Profit Information

Request AUTH

POST /v2/sp/subaccount/getDayProfitDetailInfo

Parameters

Name
Type
Required
Default
Description

coin

String

true

-

Currency abbreviation, e.g.,btc

subaccount

String

true

-

Subaccount name

timeStamp

int

true

UTC+0

bizType

String

false

alone_mining

Business type (used by FB coin). alone_mining: single mining; join_mining: joint mining

  • Successful Response:

{
    "code": 200,
    "msg": "Success",
    "t": 1717677079167,
    "data": {
        "day": 1716854400,
        "coin": "btc",
        "userName": "test",
        "avgShareAccept": 6792538500482.84,
        "dayProfit": 0.0000052632731696429,
        "ppsDayProfit": 0.00000505032710936514,
        "pplnsDayProfit": 0.00000021294606027776,
        "difficult": "84381461788831" //fb coin not support
    }
}

Get Subaccount Hour Profit Information

Request AUTH

POST /v2/sp/subaccount/getHourProfitDetailInfo

Parameters

Name
Type
Required
Default
Description

coin

String

true

-

Currency abbreviation, e.g.,btc

subaccount

String

true

-

Subaccount name

timeStamp

int

true

UTC+0

  • Successful Response:

{
    "code": 200,
    "msg": "Success",
    "t": 1717677390714,
    "data": {
        "day": 1716861600,
        "coin": "btc",
        "userName": "test",
        "ppsDayProfit": 0.00000021294606027776
    }
}

Get Main Account Realtime Hashrate

Request

POST /v2/sp/hashrate/user/realHashRate

Parameters

Name
Type
Required
Default
Description

coin

String

true

-

Currency abbreviation, e.g.,btc

  • Successful Response:

{
	"code": 200,
        "msg": "Success",
        "t": 1748487057257,
	"data":{
                "hashRate": "4120389144707508.906",    // H/s
                "staleRate": "0.00189",                
                "rejectRate": "0.001716",              
                "secondTimestamp": 1748484576
        },
        "success": true
}

Get Subaccount Realtime Hashrate

Request

POST /v2/sp/hashrate/subaccount/realHashRate

Parameters

Name
Type
Required
Default
Description

coin

String

true

-

Currency abbreviation, e.g.,btc

subaccount

String

true

-

Subaccount Name

  • Successful Response:

{
    "code": 200,
    "msg": "Success",
    "t": 1748485059326,
    "data": {
        "subaccount": "test",
        "hashRate": "3764743203804501.3",    // H/s
        "staleRate": "0.003499",             
        "rejectRate": "0.007297",            
        "secondTimestamp": 1748485059,
        "lastShareTime": 1748484468
    },
    "success": true
}

Get Subaccount Full Hashrate

Request

POST /v2/sp/hashrate/subaccount/fullHashRate

Parameters

Name
Type
Required
Default
Description

coin

String

true

-

Currency abbreviation, e.g.,btc

subaccount

String

true

-

Subaccount Name

  • Successful Response:

{
    "code": 200,
    "msg": "Success",
    "t": 1748487379592,
    "data": {
        "subaccount": "test",
        "hashRate10": "3832641468476948.48",        //Average hashrate in 10 minutes(H/s)
        "staleRate10": "0.00303",                   
        "rejectRate10": "0.008857",                 
        "hashRateHour": "3438555662139319.18",      //Average hashrate in 1 hour(H/s)
        "staleRateHour": "0.002197",                
        "rejectRateHour": "0.007173",               
        "hashRateDay": "3356108141020665.17",       //Average hashrate in 24 hour(H/s)
        "staleRateDay": "0.002946",                 
        "rejectRateDay": "0.005107",               
        "lastShareTime": 1748486880
    },
    "success": true
}

Get Subaccount Hashrate chart

Request

POST /v2/sp/hashrate/subaccount/hashRateChart

Parameters

Name
Type
Required
Default
Description

coin

String

true

-

Currency abbreviation, e.g.,btc

subaccount

String

true

-

Subaccount name

timeLevel

String

false

day_30

hour_24:24 hour for 10-minute data day_7:7 day for 1-hour data day_30:30 day for 1-day data day_90:90 day for 1-day data

  • Successful Response:

{
    "code": 200,
    "msg": "Success",
    "t": 1748487567538,
    "data": [
        {
            "subaccount": "test",
            "hashRate": "3340571201268661.6",             // H/s
            "staleRate": "0.003044",                      
            "rejectRate": "0.005074",                    
            "secondTimestamp": 1745884800,             
            "lastShareTime": 1745971190
        },
        ...
    ],
    "success": true
}

Get Subaccount historical Hashrate chart

Request

POST /v2/sp/hashrate/subaccount/timeRangeHashRateChart

Parameters

Name
Type
Required
Default
Description

coin

String

true

-

Currency abbreviation, e.g.,btc

subaccount

String

true

-

Subaccount name

timeLevel

String

false

day

day:Day-level data,Data for the past year hour:Hourly level data,Data for the past 30 days

startTimestamp

Long

true

start timestamp

endTimestamp

Long

true

end timestamp

  • Successful Response:

{
    "code": 200,
    "msg": "Success",
    "t": 1748487891624,
    "data": [
        {
            "subaccount": "test",
            "hashRate": "2385258781180243.8",        // H/s
            "staleRate": "0.00299",                  
            "rejectRate": "0.00494",                
            "secondTimestamp": 1748304000,
            "lastShareTime": 1748390397
        },
        ...
    ],
    "success": true
}

Get Subaccount online/offline workers count

Request

POST /v2/sp/hashrate/subaccount/onOffLineWorkerCount

Parameters

Name
Type
Required
Default
Description

coin

String

true

-

Currency abbreviation, e.g.,btc

subaccount

String

true

-

Subaccount name

  • Successful Response:

{
    "code": 200,
    "msg": "Success",
    "t": 1748488319658,
    "data": {
        "subaccount": "test",
        "totalWorkerCount": 1000,    
        "onlineWorkerCount": 903,    
        "offlineWorkerCount": 97     
    },
    "success": true
}

Get Subaccount workers list

Request

POST /v2/sp/hashrate/work/list

Parameters

Name
Type
Required
Default
Description

coin

String

true

-

Currency abbreviation, e.g.,btc

subaccount

String

true

-

Subaccount name

workerName

String

false

-

worker name, supporting fuzzy query

sortField

String

false

worker_name

worker_name minute_hash_rate day_hash_rate day_stale_rate day_reject_rate share_time

sortRule

String

false

asc

asc desc

status

String

false

-

online offline

pageNum

Integer

false

1

page number

pageSize

Integer

false

10

page size

  • Successful Response:

{
    "code": 200,
    "msg": "Success",
    "t": 1748490725324,
    "data": {
        "total": 1000,   
        "pageNum": 1,         
        "pageSize": 10,      
        "pages": 100,       
        "records": [
            {
                "subaccount": "test",  
                "workerName": "w-1",   
                "minuteHashRate": "3182613716008.96",    
                "minuteStaleRate": "0",    
                "minuteRejectRate": "0",    
                "hourHashRate": "3178790002069.04",
                "hourStaleRate": "0",
                "hourRejectRate": "0",
                "dayHashRate": "3352794785964.9",
                "dayStaleRate": "0.007917",
                "dayRejectRate": "0.009978",
                "lastShareTime": 1748490153,
                "status": "online"
            },
            ...
        ]
    },
    "success": true
}

Get Subaccount Worker Hashrate Chart

Request

POST /v2/sp/hashrate/worker/hashRateChart

Parameters

Name
Type
Required
Default
Description

coin

String

true

-

Currency abbreviation, e.g.,btc

subaccount

String

true

-

Subaccount name

workerName

String

true

worker name

timeLevel

String

false

day_30

hour_24:24 hour for 10-minute data day_7:7 day for 1-hour data day_30:30 day for 1-day data day_90:90 day for 1-day data

  • Successful Response:

{
    "code": 200,
    "msg": "Success",
    "t": 1748492183299,
    "data": [
        {
            "subaccount": "test",    
            "workerName": "w-1",     
            "hashRate": "3517727395943.1",   
            "staleRate": "0.007917",    
            "rejectRate": "0",          
            "secondTimestamp": 1745884800, 
            "lastShareTime": 1745970909  
        },
        ...
    ],
    "success": true
}

Get Priority on-chain Fees

Request

POST /v2/sp/txPriorityChain/getChainingFee

Parameters

Name
Type
Required
Default
Description

txHash

String

true

tx hash

informEmail

String

true

User email

coin

String

true

btc fb

  • Successful Response:

{
	"code": 200,
	"msg": "Success",
	"t": 1718250294397,
	"data": {
		"coin": "btc", //coin
		"curTxSize": 110, //tx size
		"unconfirmedPreTxSize": 110,
		"unit": "btc", //fee currency
		"totalFee": 0.00009721, //Actual fees paid
		"theoreticalPayAmount": 0.00003584, //Theoretical fees paid
		"txHash": "d0b0c82931c5c34fccb1f4acd42cadc999450921a1a3925ba6dce20ce10598f9", //tx hash
		"informEmail": "[email protected]", //User email
		"timeout": 6000 //Order expiration time seconds
	},
	"success": true
}

Priority on-chain

Request

POST /v2/sp/txPriorityChain/submit

Parameters

Name
Type
Required
Default
Description

coin

String

true

btc fb

txHash

String

true

tx hash

informEmail

String

true

User email

curTxSize

Integer

true

tx size

totalFee

BigDecimal

true

Actual fees paid

  • Successful Response:

{
	"code": 200,
	"msg": "Success",
	"t": 1718253030928,
	"data": {
		"coin": "btc", //coin
		"txHash": "d0b0c82931c5c34fccb1f4acd42cadc999450921a1a3925ba6dce20ce10598f9", //tx hash
		"curTxSize": 110, //tx size
		"unconfirmedPreTxSize": 110,
		"currency": "btc", //fee currency
		"totalFee": 0.00009721, //Actual fees paid
		"theoreticalPayAmount": 0.00003584, //Theoretical fees paid
		"informEmail": "[email protected]", //User email
		"status": 3, //Order status 3: Paid 4: Accelerating 5: Already on the chain
		"createTime": 1718253029277 //order time
	},
	"success": true
}

Get Priority on-chain Order List

Request

POST /v2/sp/txPriorityChain/queryOrderPage

Parameters

Name
Type
Required
Default
Description

pageNumber

Integer

true

pageNumber

pageSize

Integer

true

pageSize

  • Successful Response:

{
	"code": 200,
	"msg": "Success",
	"t": 1718254361407,
	"data": {
		"total": 3,
		"list": [
			{
				"coin": "BTC",
				"txHash": "d0b0c82931c5c34fccb1f4acd42cadc999450921a1a3925ba6dce20ce10598f9",
				"curTxSize": 110,
				"unconfirmedPreTxSize": 110,
				"currency": "BTC",
				"totalFee": 0.00009721,
				"theoreticalPayAmount": 0.00003584,
				"informEmail": "[email protected]",
				"status": 5, //Order status 3: Paid 4: Accelerating 5: Already on the chain
				"blockHeight": 847608,
				"blockTime": 1718185820,
				"createTime": 1718253029000
			}
		]
	},
	"success": true
}

Get Priority on-chain Order Detail

Request

POST /v2/sp/txPriorityChain/orderDetail

Parameters

Name
Type
Required
Default
Description

txHash

String

true

tx hash

  • Successful Response:

{
	"code": 200,
	"msg": "Success",
	"t": 1718253030928,
	"data": {
		"coin": "BTC",
		"txHash": "d0b0c82931c5c34fccb1f4acd42cadc999450921a1a3925ba6dce20ce10598f9",
		"curTxSize": 110,
		"unconfirmedPreTxSize": 110,
		"currency": "BTC",
		"totalFee": 0.00009721,
		"theoreticalPayAmount": 0.00003584,
		"informEmail": "[email protected]",
		"status": 3,		
		"blockHeight": 847608,
		"blockTime": 1718185820,
		"createTime": 1718253029277
	},
	"success": true
}

Get Priority on-chain Account Info

Request

POST /v2/sp/txPriorityChain/accountInfo

Parameters

Name
Type
Required
Default
Description

  • Successful Response:

{
	"code": 200,
	"msg": "Success",
	"t": 1718254872915,
	"data": [
		{
			"currency": "BTC",
			"availableBalance": 4.99882903,
			"totalConsumeAmount": 0.00117097
		}
	],
	"success": true
}

updateUserMinimumPayment

Request

POST /v2/subaccount/updateUserMinimumPayment

Parameters

Name
Type
Required
Default
Description

coin

String

true

coin

subaccount

String

true

subaccount

minimumPay

BigDecimal

true

minimumPay

  • Successful Response:

{
    "code": "SUCCESS"
}

getUserMinimumPayment

Request

POST /v2/subaccount/getUserMinimumPayment

Parameters

Name
Type
Required
Default
Description

coin

String

true

coin

subaccount

String

true

subaccount

  • Successful Response:

{ 
    "code": "SUCCESS", 
    "data": { 
        "minimumPayment":0.001 
    } 
}

IncomeDistributeUserList

Request

POST /v2/sp/incomeDistribute/userList

Parameters

Name
Type
Required
Default
Description

coin

String

true

coin

subaccount

String

true

subaccount

  • Successful Response:

{
	"code":200,
	"msg":"Success",
	"t":1740535004319,
	"data":[
		{
			"toSubAccount":"ceshi1",
			"percentage":"50",
			"remark":"ceshi"
		},
		{
			"toSubAccount":"ceshi23",
			"percentage":"15",
			"remark":"15"
		}
	],
	"success":true
}

IncomeDistributeDelete

Request

POST /v2/sp/incomeDistribute/delete

Parameters

Name
Type
Required
Default
Description

coin

String

true

coin

subaccount

String

true

subaccount

toSubAccount

String

true

subaccount that accept income

  • Successful Response:

{
	"code":200,
	"msg":"Success",
	"t":1740535239034,
	"data":null,
	"success":true
}

AddOrUpdateIncomeDistribute

Request

POST /v2/sp/incomeDistribute/upsert

Parameters

Name
Type
Required
Default
Description

coin

String

true

coin

subaccount

String

true

subaccount

toSubAccount

String

true

subaccount that accept income

percentage

String

true

percentage: 0.01-100

remark

String

false

max length: 20

  • Successful Response:

{
	"code":200,
	"msg":"Success",
	"t":1740535239034,
	"data":null,
	"success":true
}

IncomeDistribute-RemainingPercent

Request

POST /v2/sp/incomeDistribute/remainingPercent

Parameters

Name
Type
Required
Default
Description

coin

String

true

coin

subaccount

String

true

subaccount

  • Successful Response:

{
	"code":200,
	"msg":"Success",
	"t":1740536889868,
	"data":7E+1,
	"success":true
}

Deprecate API

The following AP ls are to be deprecated.If you are still using them, please follow the instructions to switch to the corresponding new interfaces.

Get Subaccount Information

Deprecated. Please use Get Subaccount pagination List - With hashrate

Request AUTH

POST /v2/subaccount/getSubaccountInfo

Parameters

Name
Type
Required
Default
Description

coin

String

false

-

Currency abbreviation, e.g.,btc,eth,fb

subaccount

String

false

-

Subaccount name

isGetSubaccountDetailInfo

Boolean

false

-

Whether to get details

  • Successful Response:

{
    "code": "SUCCESS", 
    "data": [
      {
        "coin": "btc",
        "subaccount": "test001",
        "walletAddress": "33Vxq5DN4vAXkv7swDp4zNZJWkazsDgwLq",
        "realtimeHashrate": "9789798686766", // Real-time hashrate
        "avgHashrate1440": "88667987952", // 24-hour average hashrate
        "activeWorkerNum": 100,//Number of active miners
        "inactiveWorkerNum": 10,//Number of inactive miners
     
      },
    ......
]
}

Get subaccount hashrate detailed information

Deprecated. Please use Get Subaccount Hashrate chart

REQUEST AUTH

POST /v2/subaccount/getSubaccountHashrateDetailInfo

PARAMETERS

Name
Type
Required
Default
Description

coin

String

true

-

Abbreviation of the cryptocurrency, e.g.,btc,eth,fb

subaccount

String

true

-

Subaccount name

mode

String

false

hourly

mode=hourly indicates a 24-hour chart, mode=daily indicates a 30-day chart

  • Correct response:

{
    "code": "SUCCESS",
    "data": {
         "coin": "btc",
         "subaccount": "btc_test001",
         "startTime": 1569674700000,
         "timeInterval": 3600, // 
         "hashrates": ["86989808092", "87758098015", "88708080889", "87167897971", ......],
    }
}

Get Subaccount Worker Information

Deprecated. Please use Get Subaccount workers list

Request AUTH

POST /v2/worker/getSubaccountWorkerDetailInfo

Parameters

Name
Type
Required
Default
Description

coin

String

true

-

Currency abbreviation, e.g.,btc,eth,fb

subaccount

String

true

-

Subaccount name

  • Successful Response:

{
  "code": "SUCCESS", 
  "data": [
    {
      "workerName": "test001",
      "realtimeHashrate": "2079080822",
      "avgHashrate1440": "20979879837",
      "avgRejectrate1440": 0.001,
      "status": "active", // Status: active: online; inactive: offline; lost: lost connection
      "lastShareTime": 1578653368,
    },
    ......
]
}

Get Subaccount Worker Hashrate Detailed Information

Deprecated. Please use Get Subaccount Worker Hashrate Chart

Request

POST /v2/worker/getSubaccountWorkerHashrateDetailInfo

Parameters

Name
Type
Required
Default
Description

coin

String

true

-

Currency abbreviation, e.g.,btc,eth,fb

subaccount

String

true

-

Subaccount name

worker

String

true

-

Miner name

mode

String

false

hourly mode=hourlyfor 24-hour chart, mode=daily for 30-day chart (BTC only)

  • Successful Response:

{
    "code": "SUCCESS",
    "data": {
        "startTime": 1581742800000,
		"timeInterval": 3600,
		"hashrates": [
			"32369622321725",
			"30336747489926"
		]
	}
}

getHashrate

Deprecated. Please use Get Subaccount historical Hashrate chart

Request

POST /v2/subaccount/getHashrate

Parameters

Name
Type
Required
Default
Description

coin

String

true

coin

subaccount

String

true

subaccount

mode

String

true

day/hour

startTimestamp

Integer

true

endTimestamp

Integer

false

  • Successful Response:

{ 
    "code": "SUCCESS", 
    "data": [ 
        { 
            "coin": "btc", 
            "userName": "test01", 
            "timestamp": 1709078400, 
            "shareAcceptDiff": 47710208,
            "shareRejectDiff": 47710208,
            "shareAcceptHashRate": 683045943484525.2, // H/s
            "shareRejectHashRate": 683045943484525.2, // H/s
            "rejectRate": 1,
        }, 
        ...... 
    ] 
}

Last updated