From ad940f8bf82eb0ba6d9e832ceb98f8eddcdf7046 Mon Sep 17 00:00:00 2001 From: arcsin3x <76581055+arcsin3x@users.noreply.github.com> Date: Wed, 15 Nov 2023 16:57:25 +0800 Subject: [PATCH] Update monitor.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改了api接口,修改了更新时间间隔为1分钟 --- src/monitor.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/monitor.h b/src/monitor.h index 7331b3d..723c13f 100644 --- a/src/monitor.h +++ b/src/monitor.h @@ -13,8 +13,8 @@ #define UPDATE_PERIOD_h 5 //API BTC price -#define getBTCAPI "https://api.coingecko.com/api/v3/simple/price?ids=bitcoin&vs_currencies=usd" -#define UPDATE_BTC_min 5 +#define getBTCAPI "https://api.blockchain.com/v3/exchange/tickers/BTC-USD" +#define UPDATE_BTC_min 1 //API Block height #define getHeightAPI "https://mempool.space/api/blocks/tip/height" @@ -116,4 +116,4 @@ pool_data getPoolData(void); clock_data_t getClockData_t(unsigned long mElapsed); -#endif //MONITOR_API_H \ No newline at end of file +#endif //MONITOR_API_H