I cant figure out why Im only getting minute data in the console rather than daily data, no matter what i state in the code, whether I write
frequency = '1d'
or
frequency = '1m'
, the result is always in minutes
def initialize(context):
# AAPL, MSFT, and SPY
context.securities = [sid(24), sid(5061), sid(8554)]
def handle_data(context, data):
prices = data.history(context.securities, "price", bar_count = 10, frequency = "1d")
print prices