In [1]:
import pandas as pd
import requests.packages.urllib3
requests.packages.urllib3.disable_warnings()
In [2]:
import plotly
plotly.__version__
Out[2]:
'1.9.0'
In [3]:
from nsepy.archives import get_price_history
from datetime import date
import plotly.plotly as py
from plotly.tools import FigureFactory as FF
from datetime import datetime
In [4]:
S1 = get_price_history(stock = 'TCS', 
                        start = date(2015,1,1), 
                        end = date(2015,11,26))

fig = FF.create_candlestick(S1.Open, S1.High, S1.Low, S1.Close, dates=S1.index)
py.iplot(fig, filename='finance/tcs-candlestick', validate=False)
Out[4]:
In []: