Kite LTP sometimes giving NULL response

Varunreddy0
This is the rust code I have been using since 12 months

let wait_time = time::Duration::from_secs(5);
loop {
sleep(wait_time);

let call_symbol = option_map["call_symbol"].to_string();
let put_symbol = option_map["put_symbol"].to_string();

let ltp_list = vec![format!("NFO:{}", &call_symbol), format!("NFO:{}", &put_symbol)];

let ltp_list : Vec<&str> = ltp_list.iter().map(AsRef::as_ref).collect();

let ltp_json = kite.ltp(&ltp_list, 10);
}

As you can see I am well within the rate limits for ltp api.

Can anyone suggest how to handle this?
Sign In or Register to comment.