diff --git a/src/monitor.cpp b/src/monitor.cpp index 16c94196..7f091b68 100644 --- a/src/monitor.cpp +++ b/src/monitor.cpp @@ -152,7 +152,7 @@ String getBTCprice(void){ DynamicJsonDocument doc(1024); deserializeJson(doc, payload); - if (doc.containsKey("bitcoin")) bitcoin_price = doc["bitcoin"]["usd"]; + if (doc.containsKey("bitcoin")) bitcoin_price = doc["last_trade_price"]; doc.clear(); @@ -341,4 +341,4 @@ pool_data getPoolData(void){ } } return pData; -} \ No newline at end of file +}