|
@@ -20,7 +20,7 @@ pub async fn get_bitcoin_price() -> Result<(), Box<dyn std::error::Error>> {
|
|
|
let url = "https://pro-api.coinmarketcap.com/v1/cryptocurrency/listings/latest";
|
|
|
let mut h = HeaderMap::new();
|
|
|
h.insert("content-type", "application/json".parse().unwrap());
|
|
|
- h.insert("X-CMC_PRO_API_KEY","1bf2b1bb-cc75-4b73-8fea-e0b0e6bce603".parse().unwrap());
|
|
|
+ h.insert("X-CMC_PRO_API_KEY","<API_KEY>".parse().unwrap());
|
|
|
let mut params = HashMap::new();
|
|
|
params.insert("symbol", "BTC");
|
|
|
let res = reqwest::Client::new()
|