Hi All
I tried to compare the 1m volume data with the yahoo finance data . but it does not match with quantopian . am i missing some thing ?
my code to print
def handle_data(context, data):
"""
Called every minute.
"""
sids=[sid(24)]
prices_15m_2bar = data.history(sids, 'volume', 1, '1m')
print prices_15m_2bar
For ex the data printed above for 9/20 for AAPL
2019-09-20 13:31:00+00:00 6148172.0
2019-09-20 13:32:00+00:00 151885.0
2019-09-20 13:33:00+00:00 117187.0
2019-09-20 13:34:00+00:00 91811.0
2019-09-20 13:35:00+00:00 93632.0
2019-09-20 13:36:00+00:00 65137.0
2019-09-20 13:37:00+00:00 97718.0
2019-09-20 13:38:00+00:00 69243.0
2019-09-20 13:39:00+00:00 50268.0
The data from yahoo finance
9/20 9:31AM 174.32K
9/20 9:32AM 132.21k so on
is this expected ? thanks for any help