Skip to content

acquire_account_hashrate

yangxing edited this page Jan 16, 2020 · 3 revisions

Acquire Account Hashrate

  • Description: Acquire account realtime hashrate

  • Request Method: GET

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

  • Signature Required: No

  • Request Parameter:

name type required description
coin string yes coin type
  • Response:
{
  "code": 0,
  "data": {
      "active_workers": 1,
      "coin": "BTC",
      "hashrate_10min": "747667906887",   # hashrate of last 10 minute, unit: hash/s
      "hashrate_1hour": "124611317814",   # hashrate of last 1 hour
      "hashrate_24hour": "0",             # hashrate of last 24 hour
      "unactive_workers": 0 
    },
  "message": "OK"
}