Why different interval can give different daily volume total? #1887
Unanswered
prRZ5F4LXZ
asked this question in
Yahoo's data
Replies: 1 comment
-
I reproduced your error for the '1m' and '15m' intervals. There are missing entries on the '1m' version (I also attached an example of missing data below). Open High Low Close Volume Dividends Stock Splits
Date
2021-07-06 15:12:00-04:00 42.980000 42.980000 42.980000 42.980000 104 0 0
2021-07-06 15:13:00-04:00 43.014999 43.014999 42.980000 43.000000 2153 0 0
2021-07-06 15:14:00-04:00 43.009998 43.020000 43.009998 43.020000 1320 0 0
2021-07-06 15:18:00-04:00 42.980000 43.025002 42.980000 43.025002 700 0 0
2021-07-06 15:19:00-04:00 43.070000 43.070000 43.070000 43.070000 200 0 0
2021-07-06 15:20:00-04:00 43.001701 43.080002 43.001701 43.080002 1210 0 0
2021-07-06 15:21:00-04:00 43.008202 43.169998 43.008202 43.169998 748 0 0
2021-07-06 15:23:00-04:00 43.139999 43.139999 43.009998 43.009998 905 0 0
2021-07-06 15:24:00-04:00 43.000000 43.000000 43.000000 43.000000 250 0 0 My suggestion would be to use the '1d' option for the interval as the volume seems to be the same as on finance.yahoo.com. >>> data = yf.Ticker('CFLT').history(interval='1d', start='2021-07-06', end='2021-07-07')
>>> data
Open High Low Close Volume Dividends Stock Splits
Date
2021-07-06 43.18 44.599998 42.639999 43.0 972900 0 0 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
See below. Depending on the interval, the daily volume total can be different.
But this error seems to be specific to certain tickers. For example, the daily total volumes of MSFT remain the same for different intervals. Does anybody know what causes the error? Is there an alternative data source that provides data without such silly errors?
Beta Was this translation helpful? Give feedback.
All reactions