Skip to content

finance ochl->ohlc #1920

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 29 commits into from
Aug 17, 2013
Merged
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
2c4727a
Update of finance.py to (O,H,L,C) instead of (O,C,H,L)
kramer650 Feb 25, 2013
8745e3a
implemented the wrappers discussed in #1783.
tacaswell Apr 18, 2013
f16dc47
import and pep8 changes
tacaswell Apr 24, 2013
ffb2074
tweaked wording of documentation
tacaswell May 11, 2013
35d70d8
wrapped candlestick2 to have new argument order
tacaswell May 11, 2013
4ab6b95
minor documentation tweak
tacaswell May 11, 2013
4ee6d2e
added depreciation warning + fixed error is function call argument
tacaswell May 11, 2013
428333d
converted all the docstrings numpydoc format
tacaswell May 13, 2013
e509cd2
wrapped and depreciated parse_yahoo_historical
tacaswell May 30, 2013
9c5e1c3
commented out unused line
tacaswell May 30, 2013
ca8845e
fixed pep8, updated depreciation messages because this missed 1.3
tacaswell May 30, 2013
45eea6e
fixed documentation
tacaswell May 30, 2013
10adeb2
wrapped and deprecated plot_day_summary
tacaswell May 30, 2013
96b859f
fixed documentation
tacaswell May 30, 2013
f4dcc2f
re-factored to actually raise depreciation warnings
tacaswell May 30, 2013
c8fcc1a
wrapped and deprecated quotes_historical_yahoo
tacaswell May 30, 2013
a92039b
fixed naming bugs
tacaswell May 30, 2013
1def459
fixed a collection of stupid bugs (like not returning from
tacaswell May 30, 2013
e4fab5d
added note to api_change.rst
tacaswell May 30, 2013
469e267
documentation corrections
tacaswell May 30, 2013
007754c
minor pep8 fix
tacaswell May 31, 2013
58d741f
minor formatting changes to doc-strings
tacaswell Jul 16, 2013
62f4e19
spelling + formatting fixes
tacaswell Jul 21, 2013
4ef8ac9
Added Examples section to `parse_yahoo_historical*`.
tacaswell Aug 4, 2013
4c76044
fixed typos
tacaswell Aug 4, 2013
1e39c0c
updated `finance_demo.py` code to use new api
tacaswell Aug 4, 2013
ca81f16
added the finance module to api list so the documentation gets
tacaswell Aug 4, 2013
e772ac4
added depreciation warning to module doc-string
tacaswell Aug 5, 2013
c4819c2
cleaned up usage of `quotes_historical_yahoo` in demos
tacaswell Aug 5, 2013
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
minor formatting changes to doc-strings
tweaked import
  • Loading branch information
tacaswell committed Jul 21, 2013
commit 58d741fe8f84569c9f54d120002cb834eedea56a
6 changes: 4 additions & 2 deletions lib/matplotlib/finance.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
from matplotlib.patches import Rectangle
from matplotlib.transforms import Affine2D

from cbook import mplDeprecation
from matplotlb.cbook import mplDeprecation

cachedir = get_cachedir()
# cachedir will be None if there is no writable directory.
Expand Down Expand Up @@ -122,6 +122,7 @@ def parse_yahoo_historical_ochl(fh, adjusted=True, asobject=False):

def parse_yahoo_historical_ohlc(fh, adjusted=True, asobject=False):
"""Parse the historical data in file handle fh from yahoo finance.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please add a blank line after the docstring summary?


Parameters
----------

Expand Down Expand Up @@ -347,7 +348,8 @@ def fetch_historical_yahoo(ticker, date1, date2, cachename=None,
Fetch historical data for ticker between date1 and date2. date1 and
date2 are date or datetime instances, or (year, month, day) sequences.

Ex:
Examples

fh = fetch_historical_yahoo('^GSPC', (2000, 1, 1), (2001, 12, 31))

Parameters
Expand Down