<p>You can calculate the change yourself. The coinbase API (not a recommendation, just an example) has and endpoint for 24-hour stats (<a href="https://api.pro.coinbase.com/products/BTC-USD/stats" rel="nofollow noreferrer">https://api.pro.coinbase.com/products/BTC-USD/stats</a>)</p>

<pre><code>{
open: "7674.24000000",
high: "7810.99000000",
low: "7490.00000000",
volume: "14477.94427039",
last: "7694.56000000",
volume_30day: "479763.13996598"
}
</code></pre>

<p>Last price minus the open price equals the 24 hour gain. Divide the gain by the open to get the decimal percentage.</p>

CC BY-SA 4.0
2020-04-27T16:27:05.857Z
Oh, thanks, didn't know about this url.
user105523
CC BY-SA 4.0
2020-04-27T17:19:09.350Z
This url is probably even better: https://api.coindesk.com/v1/bpi/historical/close.json?for=yesterday
user105523
CC BY-SA 4.0
2020-04-27T14:11:10.187Z
2020-04-27T14:11:10.187Z
m1xolyd1an
<p>May be someone could point me towards a public API with Bitcoin price AND 24h change? Like $7'602 +2.3%?</p>

<p>All APIs I've found (like <a href="https://api.coindesk.com/v1/bpi/currentprice.json" rel="nofollow noreferrer">coindesk's</a>) only contain price, not change :(</p>

<api><exchange-rate>
JSON with price AND daily change?
user105523
# JSON with price AND daily change?

(Asked by: username_0 on 2020-04-27)

May be someone could point me towards a public API with Bitcoin price AND 24h change? Like $7'602 +2.3%?

All APIs I've found (like [coindesk's](https://api.coindesk.com/v1/bpi/currentprice.json)) only contain price, not change :(

**Tags:** api, exchange-rate


---

## 1 answers

### Answer by username_1 on 2020-04-27. Score: 0 | Accepted answer

You can calculate the change yourself. The coinbase API (not a recommendation, just an example) has and endpoint for 24-hour stats (https://api.pro.coinbase.com/products/BTC-USD/stats)
{
open: "7674.24000000",
high: "7810.99000000",
low: "7490.00000000",
volume: "14477.94427039",
last: "7694.56000000",
volume_30day: "479763.13996598"
}

Last price minus the open price equals the 24 hour gain. Divide the gain by the open to get the decimal percentage.

> **Comments:**
> **username_0**: Oh, thanks, didn't know about this url.  
> **username_0**: This url is probably even better: https://api.coindesk.com/v1/bpi/historical/close.json?for=yesterday  

---

