Hello,

I would like to know how to get the current price of a security. For example, how can I get the price at any given time of SPY so that I can place an order at another specific price. I tried this but it didn't work:

   def OnData(self, data):

      if data["SPY"].Price == 332.20:
            self.SetHoldings ("SPY", 1)

Any help would be highly appreciated!