Shilpa Santosh Engineer and Aspiring Python Coder at Marketcalls. Love to explore the complexity of the Financial Markets.

Nifty Returns Heatmap Generation using NSEpy and Seaborn

50 sec read

Everyone love to visualize this market in their own way. Python comes handy when comes to visualization. One of the Awesome programming language to code any level of complexity. However, I start here by simply generating a heatmap that visualizes the Historical Nifty returns since 2000 and thereby visualizing the reality of the market.

Nifty Spot Returns

Nifty Historical Returns Heatmap (percentage)

Here are some of the essential python libraries required for Stock Market Data Visualization

IPython (Interactive Python)
Seaborn (Statistical Data Visualization Package )
Pandas (Python Library to handle time-series data )
NSEpy (Fetch Historical data from NSEpy – NSEpy 0.3 ver or higher)
Matplotlib (Python library to handle 2D plotting)

Sample IPython Notebook to generate Nifty Spot Returns heatmap below :

Stocks Return Heatmap – Ipython Notebook

Shilpa Santosh Engineer and Aspiring Python Coder at Marketcalls. Love to explore the complexity of the Financial Markets.

Getting Started with Google Colab

Google Colab also known as Google Colaboratory is a product from Google Research which allows user to run their python code from their browser...
Rajandran R
1 min read

Python Multi-Broker Library for Algomojo – Trade Automation

Presenting a functional python wrapper for algomojo trading api. Algomojo is a multi broker python library for the Algomojo Free API + Free Algo...
Rajandran R
1 min read

Hurst Exponent – Checking for Trend Persistance – Python…

Hurst exponent is originally developed by the famous hydrologist Harold Edwin Hurst to study the Long-Term Storage Capacity of Reservoirs. Hurst is developed to...
Rajandran R
1 min read

Get Notifications, Alerts on Market Updates, Trading Tools, Automation & More