Skip to main content

A simple parser to consume PR files available with NSE.

Project description

BhavCopyPRParser

A simple parser to consume PR files available with NSE.

National Stock Exchange of India Limited Capital Market Information Service

Information related to files in nuprddmmyy.zip:

This is to inform all the news-vendors and news agencies that, on NSE various instruments like Equities, Debentures, Warrants, Partly Paid Shares etc. are traded.

The nuprddmmyy.zip contains the following files:

Anddmmyy.txt Bcddmmyy.csv bhddmmyy.csv Bmddmmyy.txt cdddmmyyyy.zip corpbondddmmyy.csv etfddmmyy.csv foddmmyyyy.zip Glddmmyy.csv HLddmmyy.csv Pdddmmyy.csv Prddmmyy.csv Readme.txt smeddmmyy.csv Ttddmmyy.csv

Anddmmyy.txt file contains name of the co., its symbol and the announcements made during the day.

Bcddmmyy.csv file contains the corporate action details for securities.

bhddmmyy.csv file contains a list of securities which have hit their price bands during the day.

Bmddmmyy.txt file contains details of Board Meetings of companies.

cdddmmyyyy.zip folder contains press files for Currency Derivative segment.

corpbondddmmyy.csv file contains market data of Corporate bonds traded during the day.

etfddmmyy.csv file contains market data of exchange traded funds traded during the day.

foddmmyyyy.zip folder contains press files for Future & Options Segment.

Glddmmyy.csv file contains a list of the gainers and losers for Nifty Securities, Nifty Next 50 Securities and for other Securities.

HLddmmyy.csv file contains a list of securities which have reached a new high or a new low.

Pdddmmyy.csv file also contains Symbol and Series codes for each Security in addition to the information contained in the prddmmyy.csv file.

Prddmmyy.csv file contains security wise market data information along with the Index details.

Readme.txt is a informative file which contains information about data and structure of all other files.

smeddmmyy.csv file contains market data of SME securities traded during the day.

Ttddmmyy.csv file contains a list of top twenty five securities by traded value.

class BhavPR:
    Function: get_company(search_string)
        Returns a list of company name, symbol pairs as a set that matches the search_string.

    Function: collect(date_start, date_end)
        Returns a bool implying the success of the collection. 
        Collects the PR files available on the server for the provided date range. 
            date_start: Format as 01-01-2020 DD-MM-YYYY
            date_end: Format as 05-01-2020 DD-MM-YYYY

    Function: get_symbol(search_string, on_symbol=False)
        Returns a list of matched company records.
        on_symbol: Limit to symbol field

    Function: set_company(company_name)
        Returns a bool of the context set.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

bhavpr-1.0.0-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file bhavpr-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: bhavpr-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.2

File hashes

Hashes for bhavpr-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 827370e25bef30667146bac93a549dd31df3af19e87a14b06a877804217020c1
MD5 b1739fa049f4a5964edd67027959d293
BLAKE2b-256 d5239737d32da8587e7bead68ee13b7503bd7b3012d2b2d7dbdca8df649431da

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page