00:00If this is your first time here, welcome. My name is Vivek and I'm a financially independent
00:04Dalgut.
00:05This channel is all about building a community of algotraders.
00:08We discuss everything about algotrading using Python.
00:10Building and backtesting trading strategies, market updates, and much more.
00:13Please do visit our community website fabtrader.com.
00:15Also do check out my other YouTube channel, Fab Wealth, where I talk about my own financial
00:19independence journey.
00:20And share tools, methods, and strategies that help me achieve my financial freedom.
00:25Previously, I had uploaded this video about downloading NSE data from the new NSE website
00:29using Python.
00:30If you haven't watched this video, please do so.
00:33You might ask, there are already a number of...
00:35packages that download NSE data, and do we really need another one?
00:38Right.
00:38Well, there is a...
00:40There's a real lead for it, and I'll explain why.
00:42NSE, as you know, constantly update their website, and due to this, the...
00:45API endpoints keep changing.
00:46However, most of the Python packages that you see on GitHub don't keep up with these...
00:50updates, so either most of the packages stopped working already, or do not have all these...
00:55functionalities that we normally look for, and that's the reason I thought I'll put this
00:58utility together.
00:59As part of...
01:00my commitment towards this community, I'm not only going to keep the script updated with
01:04any changes to the NSE website...
01:05but I'll also keep enhancing it to include other new things in future.
01:08In this video, I'll talk about...
01:10one of the recent announcements I made to the utility, and it's all about fetching the insider
01:13trading, or sometimes it's called the promoter trade.
01:15including data from NSE website.
01:17So, what is this insider trading data?
01:19And, you know, let's...
01:20take a deeper look.
01:21Every trader looks for an edge, some sort of information that will help him...
01:25give him or her an advantage over others in making better returns.
01:28Right?
01:29So, some people use fundamental...
01:30technical analysis and some use technical analysis to get this edge.
01:32However, those alone is not going to be enough.
01:34Right?
01:35It is exactly at this point in time, the insider trading disclosures come into play.
01:40As you might know, the NSE has strict regulations around insider trading, and it is mandatory for promoters...
01:45or directors or any significant shareholders to declare their buying or selling of their own company stocks.
01:50Right?
01:51So, you might ask, why is this information so significant?
01:53What does it mean for me?
01:54Well...
01:55This information is crucial because it gives you the smart money signals.
01:58Usually, the insider...
02:00they always know something about the company that we public don't know much about.
02:03So, by watching carefully what they are doing...
02:05you can deem a lot of insights on where that particular stock is going to go.
02:08Not just that, there are a number of...
02:10clues and insights you could get from this data.
02:12And I know for a fact because most of my friends who are in...
02:15to fundamental analysis and long-term investing use this data like gold.
02:18To keep this length of the...
02:20video or all short, I will refrain from talking about the intricate details on how to use these details.
02:25And I've already covered that in detail in the blog article.
02:28So, I urge you to kind of go through this.
02:30And I'm sure that you won't be disappointed.
02:31It has a lot of information on how to use this data effectively.
02:35in your decision-making.
02:36So, I'm hoping this particular update will be useful to people who specifically look for...
02:40this type of data.
02:41In this video, I'll share with you the simple Python script that can download this data from...
02:45the NSE website.
02:47Let's now jump into the Python utility.
02:50Don't have to worry.
02:51All of this is already provided in the blog.
02:52You can simply copy this code and use it as you will.
02:55I wish.
02:56The script has...
02:57There are two main scripts here.
02:58The nseutility.py.
02:59This is the main script.
03:00which contains the class and all the functions that download various data from the NSE website.
03:05And this sample is just to explain to you how the insider trading data can be downloaded.
03:10So, all you need to do is just import the NSE utility.
03:13First of all, this particular...
03:15file, you just need to copy this as nseutility.py within your source root.
03:18Once that is done, all you need to do is just...
03:20import that file and you create an instance of the class, which is NSE, which is...
03:25part of the...
03:26this is the class and this is the instance that is created.
03:27Once that is created, the rest is all simple.
03:29All you need to do is just...
03:30type NSE.
03:31And then invoke this particular method, which is get insider trading.
03:34And then when you run this...
03:35script, you get the entire pandas data frame, which is what you actually see on the NSE website.
03:39Right.
03:40So this contains all the information that you need on insider trading.
03:43So there are two variations.
03:44One is...
03:45because if you don't give any parameters and then if you download, it downloads the last
03:4830 days worth of insider trading data.
03:50Whereas you can also give a specific start and an end date and it will only provide you data within this particular...
03:55date range.
03:56So these two options are available for you.
03:59So that's...
04:00pretty much it for this video.
04:01I have a few more announcements that I've done for this utility, which I'll be covering in the...
04:05videos to come.
04:06I hope you like this.
04:07If there are any comments, feedbacks or suggestions...
04:10please do leave a comment and I'll see you in the next video.
04:14If you genuinely...
04:15If you found this video useful, please consider subscribing and liking the video.
04:18And I will see you soon in another video.
04:19And until then...
04:20take care and happy trading.
Comments