Skip to content

Commit

Permalink
Update monitor.h
Browse files Browse the repository at this point in the history
修改了api接口,修改了更新时间间隔为1分钟
  • Loading branch information
arcsin3x authored Nov 15, 2023
1 parent fca6842 commit ad940f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/monitor.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -116,4 +116,4 @@ pool_data getPoolData(void);
clock_data_t getClockData_t(unsigned long mElapsed);


#endif //MONITOR_API_H
#endif //MONITOR_API_H

0 comments on commit ad940f8

Please sign in to comment.