Hi, complete beginner here. I've been struggling to specifically print out each of the "lows" of a stock using a 15-minute sized candlesticks. It will give me data which is off by a few cents/dollars. Any help would be appreciated!
def initialize(context):
context.security = sid(8554)
def handle_data(context, data):
prices_15m = data.history(context.security, 'low', 1, '1m').resample('15T').first()
#print (get_datetime('US/Central'))
print(prices_15m)