Skip to main content

hr

Returns dataframe with mean hashrate of btc or eth blockchain and symbol price

Source Code: [link]

openbb.crypto.onchain.hr(symbol: str, interval: str = "24h", start_date: str = "2010-01-01", end_date: Optional[str] = None)

Parameters

NameTypeDescriptionDefaultOptional
symbolstrBlockchain to check hashrate (BTC or ETH)NoneFalse
start_datestrInitial date, format YYYY-MM-DD2010-01-01True
end_datestrFinal date, format YYYY-MM-DDNoneTrue
intervalstrInterval frequency (e.g., 24h)24hTrue

Returns

TypeDescription
pd.DataFramemean hashrate and symbol price over time