Direct copy of this repo. I made it in Rust to learn it.
Cryptocurrency Price REST API written in Rust. Data is scraped from CoinMarketCap.
Please note that this is an unofficial API and is not supported or controlled by CoinMarketCap itself.
Output: JSON Response:
[
{
"success": true,
"timestamp": 1515959618,
"amount_of_coins": 1433,
"coins": [
{
"name": "bitcoin",
"ticker": "BTC",
"btc": "1.0",
"price": "13615.6",
"currency": "usd"
},
{
"name": "ethereum",
"ticker": "ETH",
"btc": "0.0978496",
"price": "1332.52",
"currency": "usd"
}
]
}
]
...
$ cargo run