How to find High and Low of a stock after 9:30 am

I have bought a stock at 9:30am, before me buying a stock, it could have touched high or low.
I am having an issue in calculating the exact profit or loss.

you can use python api of any broker and auto-calculate it.