Earnings List(USER_DATA)
API Description
Query Earnings List
HTTP Request
GET /sapi/v1/mining/payment/list
Request Weight(IP)
5
Request Parameters
Name | Type | Mandatory | Description | Example |
---|---|---|---|---|
algo | STRING | YES | Transfer algorithm(sha256) | sha256 |
userName | STRING | YES | Mining account | test |
coin | STRING | NO | Coin name | |
startDate | Long | NO | Search date, millisecond timestamp, while empty query all | |
endDate | Long | NO | Search date, millisecond timestamp, while empty query all | |
pageIndex | INTEGER | NO | Page number, empty default first page, starting from 1 | |
pageSize | INTEGER | NO | Number of pages, minimum 10, maximum 200 | |
recvWindow | LONG | NO | ||
timestamp | LONG | YES |
Response Example
{
"code": 0,
"msg": "",
"data": {
"accountProfits": [
{
"time": 1586188800000, // Mining date
"type": 31, // 0:Mining Wallet,5:Mining Address,7:Pool Savings,8:Transferred,31:Income Transfer ,32:Hashrate Resale-Mining Wallet 33:Hashrate Resale-Pool Savings
"hashTransfer": null, // Transferred Hashrate
"transferAmount": null, // Transferred Income
"dayHashRate": 129129903378244, // Daily Hashrate
"profitAmount": 8.6083060304, //Earnings Amount
"coinName":"BTC", // Coin Type
"status": 2 //Status:0:Unpaid, 1:Paying 2:Paid
},
{
"time": 1607529600000,
"coinName": "BTC",
"type": 0,
"dayHashRate": 9942053925926,
"profitAmount": 0.85426469,
"hashTransfer": 200000000000,
"transferAmount": 0.02180958,
"status": 2
},
{
"time": 1607443200000,
"coinName": "BTC",
"type": 31,
"dayHashRate": 200000000000,
"profitAmount": 0.02905916,
"hashTransfer": null,
"transferAmount": null,
"status": 2
}
],
"totalNum": 3, // Total Rows
"pageSize": 20 // Rows per page
}
}