Nano Course On Python For Trading
==========================
Module 2

In this post, I will attempt to show a simple Python code to download the past 5 years' Nifty50 stocks EOD Data using the NSEpy library in less than 2

The first few lines are simple to import statements. Pulling public library NSEpy https://t.co/OW1TPC7QXC that we can use to extract historical and real-time data from NSE’s website. Then, we import the most popular pandas library.
Then I define a function "fetchData" that fetches the data using the built-in get_history function of the nsepy library. I adjust the original data frame to store open, high, low and close prices. The original data frame sends more columns - Volume, Turnover, %Deliverable, etc.
I then go ahead and put all Nifty50 tickers in a Python list named nifty50list. I also set our start-date (2014-01-01), end-date(2022-01-21) in the YYYY-MM-DD format, and the path where I want to save my files on my PC.
Finally, I loop through all the Nifty50 tickers calling the fetchData function on each of them and saving them in the path specified above in the CSV format e.g. ADANIPORTS.csv, which came first. This process is repeated for each and every symbol in Nifty50.
The result is 2 minutes to download 50 stocks worth of data! Each ticker's data is saved in a file named Ticker.csv You can visit this colab notebook and try out your hands with the code https://t.co/HDB94AATFr
In Module 3, we will learn to use this data to create and test some trading strategies. Until then, take care and have a great time learning.
Note: NSE website official Terms of Use section 22.f reads as below:

22. Specific Prohibited Uses:

The Site may be used only for lawful purposes by individuals for personal, non-commercial use only. NSE specifically prohibits any other use of the Site.

You May Also Like

And here they are...

THE WINNERS OF THE 24 HOUR STARTUP CHALLENGE

Remember, this money is just fun. If you launched a product (or even attempted a launch) - you did something worth MUCH more than $1,000.

#24hrstartup

The winners 👇

#10

Lattes For Change - Skip a latte and save a life.

https://t.co/M75RAirZzs

@frantzfries built a platform where you can see how skipping your morning latte could do for the world.

A great product for a great cause.

Congrats Chris on winning $250!


#9

Instaland - Create amazing landing pages for your followers.

https://t.co/5KkveJTAsy

A team project! @bpmct and @BaileyPumfleet built a tool for social media influencers to create simple "swipe up" landing pages for followers.

Really impressive for 24 hours. Congrats!


#8

SayHenlo - Chat without distractions

https://t.co/og0B7gmkW6

Built by @DaltonEdwards, it's a platform for combatting conversation overload. This product was also coded exclusively from an iPad 😲

Dalton is a beast. I'm so excited he placed in the top 10.


#7

CoderStory - Learn to code from developers across the globe!

https://t.co/86Ay6nF4AY

Built by @jesswallaceuk, the project is focused on highlighting the experience of developers and people learning to code.

I wish this existed when I learned to code! Congrats on $250!!
Margatha Natarajar murthi - Uthirakosamangai temple near Ramanathapuram,TN
#ArudraDarisanam
Unique Natarajar made of emerlad is abt 6 feet tall.
It is always covered with sandal paste.Only on Thriuvadhirai Star in month Margazhi-Nataraja can be worshipped without sandal paste.


After removing the sandal paste,day long rituals & various abhishekam will be
https://t.co/e1Ye8DrNWb day Maragatha Nataraja sannandhi will be closed after anointing the murthi with fresh sandal paste.Maragatha Natarajar is covered with sandal paste throughout the year


as Emerald has scientific property of its molecules getting disturbed when exposed to light/water/sound.This is an ancient Shiva temple considered to be 3000 years old -believed to be where Bhagwan Shiva gave Veda gyaana to Parvati Devi.This temple has some stunning sculptures.