Alert: Im a beginner so bear with me.
I want to be able to manipulate the current price and the last price 1 minute beforehand. So, how do I define the current price a security is trading at and how do I define the last price a minute ago that the security was valued at? I know there is close_price, open_price, and last_sale_price, but the API does not fully explain what those mean.
I also tried using:
history(2, "1m", "price")
which returns the previous minute's close price and the current price, but is there a way I can separate the two prices and then manipulate them in my algorithm?
Thank you,
Alex