Add waiting time for retrieving 30m candles

This commit is contained in:
Sik Yoon 2023-10-15 15:27:25 +09:00
parent 2df8f5ae10
commit 704c1ea513

View File

@ -569,7 +569,9 @@ pub async fn fetch_candle_delay(
.unwrap(); .unwrap();
let mut time_wait = 0; let mut time_wait = 0;
if interval == "1d" { if interval == "30m" {
time_wait = 1_000;
} else if interval == "1d" {
time_wait = 10_000; time_wait = 10_000;
} else if interval == "1w" { } else if interval == "1w" {
time_wait = 20_000; time_wait = 20_000;