coindesk
Bitcoin price index API powered by coindesk.com.
coindesk = "0.1.0"
Because this is an async library you will need an async runtime like async_std
or tokio
.
Example:
use Bitcoin;
async
Output:
currency: USD, rate: 57532.8599, description: United States Dollar, symbol: $
currency: GBP, rate: 41359.4525, description: British Pound Sterling, symbol: £
currency: EUR, rate: 47927.864, description: Euro, symbol: €
time: 2021-05-05 15:58:00 UTC
The time field implements chrono::DateTime
for integration with the rest of your project.
Disclaimer: This data was produced from the CoinDesk Bitcoin Price Index (USD). Non-USD currency data converted using hourly conversion rate from openexchangerates.org
Made with ❤️ in 🦀 by Grant Handy.