Closing prices

any one has a script to get the previous day closing price of new york trading hours?