API Docs
Revenue
Get Hashrate Score History

Get Hashrate Score History

Retrieves the hashrate history of a subaccount.

⚠️

GetHashrateScoreHistory query has rate limitation in place.

Initially, the API allows for a burst of up to 2 requests, and afterward, it gradually restores 1 request every 2 seconds until reaching the maximum allowable limit of 2.

This limitation is imposed to manage and control the rate at which requests can be made to the API, preventing potential misuse or excessive use of resources.

Example

query getHashrateScoreHistory {
  getHashrateScoreHistory(mpn: BTC, uname: "your_username", first: 10, orderBy: DATE_DESC) {
    edges {
      node {
        date
        efficiency
        hashrate
        revenue
        uptimePercentage
        uptimeTotalMinutes
        uptimeTotalMachines
      }
    }
  }
}

Response

{
  "data": {
    "getHashrateScoreHistory": {
      "edges": [
        {
          "node": {
            "date": "",
            "efficiency": "",
            "hashrate": "",
            "revenue": "",
            "uptimePercentage": ,
            "uptimeTotalMinutes": ,
            "uptimeTotalMachines":
          }
        }
      ]
    }
  }
}

Arguments

  • mpn (MiningProfileName!)
enum MiningProfileName {
  ARRR
  BTC
  DASH
  DCR
  KMD
  LBC
  SC
  SCP
  ZEC
  ZEN
  EQUI
  TBTC
  ETH
  TETH
}
  • first (Int) Only read the first n values of the set.

  • last (Int) Only read the last n values of the set.

  • offset (Int) Skip the first n values from our after cursor, an alternative to cursor based pagination. May not be used with last.

  • before (Cursor) Read all values in the set before (above) this cursor.

  • after (Cursor) Read all values in the set after (below) this cursor.

  • orderBy

    NATURAL ,  DATE_DESC , DATE_ASC

Type

ReturnHistoriesConnection

A connection to a list of ReturnHistory values.

type ReturnHistoriesConnection {
  nodes: [ReturnHistory!]!
  edges: [ReturnHistoriesEdge!]!
  pageInfo: PageInfo!
  totalCount: Int!
}
Fields
  • nodes ([ReturnHistory!]!)

A list of ReturnHistory objects.

type ReturnHistory {
  time: Datetime!
  hashrate: BigFloat!
  dataPoints: BigFloat!
}
Fields
  • edges ([ReturnHistoriesEdge!]!)

A list of edges which contains the ReturnHistory and cursor to aid in pagination.

type ReturnHistoriesEdge {
  cursor: Cursor
  node: ReturnHistory!
}
Fields
  • cursor (Cursor) A cursor for use in pagination.
  • node (ReturnHistory!) The ReturnHistory at the end of the edge.
  • pageInfo

Information to aid in pagination.

type PageInfo {
  hasNextPage: Boolean!
  hasPreviousPage: Boolean!
  startCursor: Cursor
  endCursor: Cursor
}

The count of all ReturnHistory you could get from the connection.