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.
[wp_ad_camp_5]
Installation
In the CLI terminal, copy and paste the following to install the Plotly library and set your user credentials.
https://gist.github.com/8725c260deb32fceecff
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 :
how to catch sudden spike / spurts in puts/calls in nse data using python