Back

#asic

1 APIs with this tag

Bitcoin Hashprice & Mining Profitability API

The Bitcoin hashprice — the single number every Bitcoin miner watches: how many US dollars a unit of hashing power earns in a day. It is the mining industry's revenue benchmark (the "Hashprice Index"), and it falls every time the difficulty rises, the block subsidy halves, fees dry up or the price drops. This computes it live and keyless from on-chain data and the BTC price: the daily Bitcoin the whole network mines (block subsidy plus transaction fees), the network hashrate, and the dollar price of Bitcoin. The hashprice endpoint returns the current hashprice in dollars per PH/s per day and per TH/s per day, with the inputs behind it — the network hashrate, the daily Bitcoin mined, the share of that which is fees, and the BTC price. The breakeven endpoint turns it into a profitability check: give it your electricity cost (USD per kWh) and your rig's efficiency (J/TH) and it returns the daily revenue, power cost and profit per TH/s, the margin, and the breakeven hashprice at which you would mine at a loss. The asic endpoint runs the same maths over today's popular ASIC miners (Antminer S21, S19 XP, Whatsminer M60 and more) at your electricity cost — daily revenue, power cost and profit for each machine, ranked. This is the hashprice / mining-profitability cut — distinct from the network-security feed (difficulty, hashrate, halving), the multi-coin mining-economics feed (which ranks coins by a relative profitability index, not the dollar hashprice) and the mining-pool-distribution feed. Hashprice is in USD per PH/s and per TH/s per day; costs in USD. No key, nothing stored beyond a short cache.

api.oanor.com/hashprice-api