Getting this error message:
MatplotlibDeprecationWarning: The finance module has been deprecated in mpl 2.0 and will be removed in mpl 2.2. Please use the modu
All code for matplotlib.finance moved to a separate repository. Here is an example of usage. To answer your question:
from mpl_finance import candlestick_ohlc