Skip to content

Commit 9d3fb25

Browse files
committed
Merged revisions 8747 via svnmerge from
https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/branches/v1_0_maint ........ r8747 | jdh2358 | 2010-10-12 10:21:39 -0700 (Tue, 12 Oct 2010) | 1 line tweak volume docstring for yahoo finance ........ svn path=/trunk/matplotlib/; revision=8748
1 parent e097e59 commit 9d3fb25

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

lib/matplotlib/finance.py

+10-6
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,17 @@ def parse_yahoo_historical(fh, adjusted=True, asobject=False):
4747
Parse the historical data in file handle fh from yahoo finance.
4848
4949
*adjusted*
50-
If True (default) replace open, close, high, low, and volume with
51-
their adjusted values.
52-
The adjustment is by a scale factor, S = adjusted_close/close.
53-
Adjusted volume is actual volume divided by S;
54-
Adjusted prices are actual prices multiplied by S. Hence,
55-
the product of price and volume is unchanged by the adjustment.
50+
If True (default) replace open, close, high, and low prices with
51+
their adjusted values. The adjustment is by a scale factor, S =
52+
adjusted_close/close. Adjusted prices are actual prices
53+
multiplied by S.
5654
55+
Volume is not adjusted as it is already backward split adjusted
56+
by Yahoo. If you want to compute dollars traded, multiply volume
57+
by the adjusted close, regardless of whether you choose adjusted
58+
= True|False.
59+
60+
5761
*asobject*
5862
If False (default for compatibility with earlier versions)
5963
return a list of tuples containing

0 commit comments

Comments
 (0)