Add waiting time for retrieving 30m candles
This commit is contained in:
parent
2df8f5ae10
commit
704c1ea513
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user