In the last tutorial we had seen how to import data from NSEindia using NSEpy library and how to compute co-integration. In this tutorial we will be using plotly – a library to visualize your data interactively and pandas – library to manage time series data to build interactive candle stick charts.
Plotly provides a web-service for hosting graphs and currently Public hosting is free. Just create the account and get the API key for authentication to host your data visualization stuff.
Create your account with plotly and Get the Plotly API Key here in order to use plotly service.
In the CLI terminal, copy and paste the following to install the Plotly library and set your user credentials.
You’ll need to replace ‘DemoAccount’ and ‘lr1c37zw81’ with your Plotly username and API key.
It is recommended to upgrade to the latest version of Pandas and Plotly libraries.
Sample IPython Notebook using Plotly to plot Interactive Candlestick Charts :