From a45e371b524a58d2dadc4530674621a7c3a470d6 Mon Sep 17 00:00:00 2001 From: aglkm <39521015+aglkm@users.noreply.github.com> Date: Mon, 19 Jan 2026 23:43:38 +0300 Subject: [PATCH] reduce the calls even more --- src/requests.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/requests.rs b/src/requests.rs index 119d4ab..3786aa4 100644 --- a/src/requests.rs +++ b/src/requests.rs @@ -199,8 +199,8 @@ pub async fn get_market(dashboard: Arc>) -> Result<(), anyhow:: let count = COINGECKO_COUNT.fetch_add(1, Ordering::Relaxed); - // Call CG API only once every 10 calls (15sec * 10) - if CONFIG.coingecko_api == "enabled" && count % 10 == 0 { + // Call CG API only once every 20 calls (15sec * 20) + if CONFIG.coingecko_api == "enabled" && count % 20 == 0 { client = reqwest::Client::new(); result = client.get("https://api.coingecko.com/api/v3/simple/price?ids=grin&vs_currencies=usd%2Cbtc&include_24hr_vol=true").send().await?; val = serde_json::from_str(&result.text().await?)?;