Skip to content

Instantly share code, notes, and snippets.

@marketcalls
Created November 15, 2016 10:50
Show Gist options
  • Save marketcalls/bc87b534fb63ec4faae83843fbdc1f39 to your computer and use it in GitHub Desktop.
Save marketcalls/bc87b534fb63ec4faae83843fbdc1f39 to your computer and use it in GitHub Desktop.
Import and Add Stocks
#Import Python Packages
from nsepy.archives import get_price_history
from datetime import date
import pandas as pd
import matplotlib.pyplot as plt
#Create Stocks Watchlist for which correlation martrix is to be plotted.
sym=["SBIN","BHEL","ACC","GAIL","TATAMOTORS","TCS","INFY","SUNPHARMA","IDEA","RELIANCE"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment