I have below code in on_Data event. 

  1. for symbol in latest_data.Bars.Keys:

So when I execute call below code, will it get latest/last bar data ?

  1. current_price = self.algorithm.Securities[symbol].Price

Author

Dharmesh Khalasi

July 2024