Buy stock on limit using Time and sales as the price input

Can anyone help me create a simple code that buys a stock on limit price, using the first price that time and sales sees at 8:30:01 AM CT .

Thank you for your help.