Skip to content

acquire_miner_hahrate

yangxing edited this page Nov 6, 2019 · 3 revisions

Acquire Miner Hahrate

  • Description: Acquire miners realtime hashrate

  • Request Method: GET

  • Request Path: /res/openapi/v1/hashrate/worker

  • Signature Required: No

  • Request Parameter:

name type required description
coin string yes coin type
group_id int no miner group id. The id of default group is null.
worker_status string no active/unactive miner status
page int no page number
limit int no return amount, default: 50
  • Response:
{
  "code": 0,
  "data": {
    "count": 2,
    "curr_page": 1,
    "data": [
      {
        "coin": "BTC",
        "group_id": 14,                     
        "group_name": "group1",             
        "hashrate_10min": "278542945703",
        "hashrate_1hour": "46423824283",
        "hashrate_24hour": "0",
        "last_active": 1545811200,          # last active time
        "reject_rate": "0",
        "worker_id": 369,                   # miner id
        "worker_name": "1x1",               # miner name
        "worker_status": "active"           # miner status
      },
      {
        "coin": "BTC",
        "group_id": null,
        "group_name": null,
        "hashrate_10min": "0",
        "hashrate_1hour": "0",
        "hashrate_24hour": "0",
        "last_active": 1545808266,
        "reject_rate": "0",
        "worker_id": 370,
        "worker_name": "1x1",
        "worker_status": "unactive"
      }
    ],
    "has_next": false,
    "total": 2,
    "total_page": 1
  },
  "message": "OK"
}