From 704c1ea5130d7b240ed452922f659f3892edafc8 Mon Sep 17 00:00:00 2001 From: Sik Yoon Date: Sun, 15 Oct 2023 15:27:25 +0900 Subject: [PATCH] Add waiting time for retrieving 30m candles --- src/coin_health_check_team/request_candles.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/coin_health_check_team/request_candles.rs b/src/coin_health_check_team/request_candles.rs index 8f65634..cfd0c7f 100644 --- a/src/coin_health_check_team/request_candles.rs +++ b/src/coin_health_check_team/request_candles.rs @@ -569,7 +569,9 @@ pub async fn fetch_candle_delay( .unwrap(); let mut time_wait = 0; - if interval == "1d" { + if interval == "30m" { + time_wait = 1_000; + } else if interval == "1d" { time_wait = 10_000; } else if interval == "1w" { time_wait = 20_000;