Given this basic example, how could I pass minute data rather than daily data?
def initialize(context):
context.stocks = [sid(24),sid(3766),sid(3149),sid(45451),sid(12107)]
def handle_data(context, data):
#calculate price history
prices = history(20, '1d', 'price')
#loop through investable universe
for stock in context.stocks:
if get_open_orders(stock):
continue
current_position = context.portfolio.positions[stock].amount
price = data[stock].price