How to get a HOD and LOD price for stock

Hello Everyone,

do you know how to code for getting HOD or LOD on the stock?

Thanks for your help!

Hi you could do this:

import alpaca_trade_api as tradeapi
api = tradeapi.REST(key_id=<YOUR-KEY>,
                    secret_key=<-YOUR-SECRET-KEY>)
api.get_barset('AAPL', 'day', 1, "2020-09-02").df

you will get this:

image

Thanks for your help!