Open In App

NseTools – Getting Book Closure Start Date of Company

Last Updated : 19 Jul, 2021
Improve
Improve
Like Article
Like
Save
Share
Report

In this article we will see how we can get the book closure start date of given company using nsetools. Nsetools is a library for collecting real time data from National Stock Exchange of India. A stock quote is the price of a stock as quoted on an exchange. A basic quote for a specific stock provides information, such as its bid and ask price, last traded price, and volume traded. Book closure is a time period during which a company will not handle adjustments to the shareholder register or requests to transfer shares. Companies will often use the book closure date to identify the cut-off date for determining which investors on record will receive a dividend payment for that period. 

Steps to get the Stock Quote 
1. Import the Nse from nsetools 
2. Create a Nse object 
3. From the Nse object get the stock quote with the help of get_quote method with the NSE Stock code of the company 
4. Get the book closure start date from the quote with the help of ‘bcStartDate’ key 
5. Print the book closure start value 
 

Below is the implementation  

Python3




# importing nse from nse tools
from nsetools import Nse
 
# creating a Nse object
nse = Nse()
 
# nse stock code for wipro
code = "wipro"
 
# getting stock quote
quote = nse.get_quote(code)
 
# getting book closure start date
value = quote['bcStartDate']
 
# printing book closure start date
print("Book closure Start date  : " + str(value))


Output : 

Book closure Start date  : 10-JUL-20

Another example 

Python3




# importing nse from nse tools
from nsetools import Nse
 
# creating a Nse object
nse = Nse()
 
# nse stock code for sbi
code = "sbin"
 
# getting stock quote
quote = nse.get_quote(code)
 
# getting book closure start date
value = quote['bcStartDate']
 
# printing book closure start date
print("Book closure Start date  : " + str(value))


Output : 

Book closure Start date  : 19-JUN-18

 



Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads